@kotori-bot/kotori-plugin-webui 1.4.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/{LICENSE → LICENSE.md} +674 -674
  2. package/dist/css/{307.17441c4b.css → 178.50389cc5.css} +1 -1
  3. package/dist/css/191.03157bbe.css +1 -0
  4. package/dist/css/373.0cce6c3e.css +1 -0
  5. package/dist/css/454.0d732bed.css +1 -0
  6. package/dist/css/47.49d67fd6.css +1 -0
  7. package/dist/css/5.b049cb20.css +1 -0
  8. package/dist/css/60.e08a7f71.css +1 -0
  9. package/dist/css/620.53b4f39d.css +1 -0
  10. package/dist/css/866.7bd164ea.css +1 -0
  11. package/dist/css/871.78adf960.css +1 -0
  12. package/dist/css/878.75469f9c.css +1 -0
  13. package/dist/css/974.14fe0cd3.css +1 -0
  14. package/dist/css/app.2339ed96.css +1 -0
  15. package/dist/css/chunk-vendors.9c1b0e0b.css +1 -0
  16. package/dist/fonts/iconfont.0785b652.eot +0 -0
  17. package/dist/fonts/iconfont.6cfc7ac2.woff +0 -0
  18. package/dist/fonts/iconfont.7f7c61f0.ttf +0 -0
  19. package/dist/fonts/iconfont.e5653996.woff2 +0 -0
  20. package/dist/img/addAvatar.5d18468f.svg +1 -0
  21. package/dist/img/favicon-gray.c2bacd13.svg +81 -0
  22. package/dist/img/iconfont.8017d8e3.svg +405 -0
  23. package/dist/img/removeAvatar.102a1309.svg +1 -0
  24. package/dist/index.html +1 -1
  25. package/dist/js/178.5506400e.js +2 -0
  26. package/dist/js/178.5506400e.js.map +1 -0
  27. package/dist/js/191.d1d8acb0.js +112 -0
  28. package/dist/js/191.d1d8acb0.js.map +1 -0
  29. package/dist/js/373.8f482efc.js +2 -0
  30. package/dist/js/373.8f482efc.js.map +1 -0
  31. package/dist/js/454.9fcb434d.js +2 -0
  32. package/dist/js/454.9fcb434d.js.map +1 -0
  33. package/dist/js/47.b880ff7d.js +2 -0
  34. package/dist/js/47.b880ff7d.js.map +1 -0
  35. package/dist/js/5.f818b113.js +2 -0
  36. package/dist/js/5.f818b113.js.map +1 -0
  37. package/dist/js/60.df7c62f1.js +2 -0
  38. package/dist/js/60.df7c62f1.js.map +1 -0
  39. package/dist/js/620.cc5f8280.js +2 -0
  40. package/dist/js/620.cc5f8280.js.map +1 -0
  41. package/dist/js/866.4506cf7d.js +2 -0
  42. package/dist/js/866.4506cf7d.js.map +1 -0
  43. package/dist/js/871.adcb95ca.js +2 -0
  44. package/dist/js/871.adcb95ca.js.map +1 -0
  45. package/dist/js/878.d5db5741.js +2 -0
  46. package/dist/js/878.d5db5741.js.map +1 -0
  47. package/dist/js/974.5d32785c.js +2 -0
  48. package/dist/js/974.5d32785c.js.map +1 -0
  49. package/dist/js/app.ff7f084b.js +2 -0
  50. package/dist/js/app.ff7f084b.js.map +1 -0
  51. package/dist/js/chunk-vendors.b2a9455e.js +77 -0
  52. package/dist/js/chunk-vendors.b2a9455e.js.map +1 -0
  53. package/lib/index.js +12 -14
  54. package/lib/plugin/index.js +8 -10
  55. package/lib/routers/api/accounts.d.ts +1 -1
  56. package/lib/routers/api/accounts.js +8 -10
  57. package/lib/routers/api/config.d.ts +1 -1
  58. package/lib/routers/api/config.js +8 -10
  59. package/lib/routers/api/data.d.ts +1 -1
  60. package/lib/routers/api/data.js +8 -10
  61. package/lib/routers/api/demo.d.ts +1 -1
  62. package/lib/routers/api/demo.js +8 -10
  63. package/lib/routers/index.d.ts +1 -1
  64. package/lib/routers/index.js +8 -10
  65. package/lib/routers/router.js +8 -10
  66. package/lib/service/index.d.ts +19 -30
  67. package/lib/service/index.js +8 -10
  68. package/lib/types/index.js +8 -10
  69. package/lib/utils/autoSave.js +8 -10
  70. package/lib/utils/common.js +8 -10
  71. package/lib/utils/observer.js +8 -10
  72. package/lib/utils/transport.js +8 -10
  73. package/lib/ws/index.js +8 -10
  74. package/package.json +2 -2
  75. package/dist/css/157.4f26d8f6.css +0 -1
  76. package/dist/css/398.68e1d5c0.css +0 -1
  77. package/dist/css/501.9015c7b8.css +0 -1
  78. package/dist/css/61.c4036428.css +0 -1
  79. package/dist/css/677.1f6dda12.css +0 -1
  80. package/dist/css/805.47c05599.css +0 -1
  81. package/dist/css/859.a4c60906.css +0 -1
  82. package/dist/css/879.594eeca0.css +0 -1
  83. package/dist/css/988.a57fcb7a.css +0 -1
  84. package/dist/css/app.8629041a.css +0 -1
  85. package/dist/css/chunk-vendors.8f724415.css +0 -1
  86. package/dist/js/157.b3b7776c.js +0 -112
  87. package/dist/js/157.b3b7776c.js.map +0 -1
  88. package/dist/js/307.5dcc1e5b.js +0 -2
  89. package/dist/js/307.5dcc1e5b.js.map +0 -1
  90. package/dist/js/398.5a1256fe.js +0 -2
  91. package/dist/js/398.5a1256fe.js.map +0 -1
  92. package/dist/js/501.2cce9c69.js +0 -2
  93. package/dist/js/501.2cce9c69.js.map +0 -1
  94. package/dist/js/61.b1925deb.js +0 -2
  95. package/dist/js/61.b1925deb.js.map +0 -1
  96. package/dist/js/677.17ed8bda.js +0 -2
  97. package/dist/js/677.17ed8bda.js.map +0 -1
  98. package/dist/js/805.635a82e6.js +0 -2
  99. package/dist/js/805.635a82e6.js.map +0 -1
  100. package/dist/js/859.740917f5.js +0 -2
  101. package/dist/js/859.740917f5.js.map +0 -1
  102. package/dist/js/879.c08f48f3.js +0 -2
  103. package/dist/js/879.c08f48f3.js.map +0 -1
  104. package/dist/js/988.6ab22bc8.js +0 -2
  105. package/dist/js/988.6ab22bc8.js.map +0 -1
  106. package/dist/js/app.4afe7ee6.js +0 -2
  107. package/dist/js/app.4afe7ee6.js.map +0 -1
  108. package/dist/js/chunk-vendors.74ce961b.js +0 -75
  109. package/dist/js/chunk-vendors.74ce961b.js.map +0 -1
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1723120644868" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1868" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><path d="M512 69.818182C267.636364 69.818182 69.818182 267.636364 69.818182 512s197.818182 442.181818 442.181818 442.181818 442.181818-197.818182 442.181818-442.181818S756.363636 69.818182 512 69.818182z m0 837.818182c-218.763636 0-395.636364-176.872727-395.636364-395.636364S293.236364 116.363636 512 116.363636s395.636364 176.872727 395.636364 395.636364-176.872727 395.636364-395.636364 395.636364z" p-id="1869" fill="#8a8a8a"></path><path d="M721.454545 488.727273H302.545455c-13.963636 0-23.272727 11.636364-23.272728 23.272727 0 13.963636 11.636364 23.272727 23.272728 23.272727h418.90909c13.963636 0 23.272727-9.309091 23.272728-23.272727s-11.636364-23.272727-23.272728-23.272727z" p-id="1870" fill="#8a8a8a"></path></svg>
package/dist/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico?v2"><link rel="stylesheet" href="https://unpkg.com/layui@2.9.8/dist/css/layui.css"/><title>kams</title><script defer="defer" src="js/chunk-vendors.74ce961b.js"></script><script defer="defer" src="js/app.4afe7ee6.js"></script><link href="css/chunk-vendors.8f724415.css" rel="stylesheet"><link href="css/app.8629041a.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but kams doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="https://unpkg.com/layui@2.9.8/dist/layui.js"></script><script src="https://unpkg.com/vue@2.6.14/dist/vue.js"></script><script src="https://unpkg.com/axios@0.27.2/dist/axios.min.js"></script><script src="https://unpkg.com/echarts@5.5.0/dist/echarts.js"></script><script src="https://unpkg.com/element-ui@2.15.8/lib/index.js"></script><script src="https://unpkg.com/vue-router@3.5.1/dist/vue-router.js"></script><script src="https://unpkg.com/vue-web-terminal@2.2.2/lib/vue-web-terminal.js"></script><script src="https://unpkg.com/vuex-persistedstate@3.2.1/dist/vuex-persistedstate.umd.js"></script><script src="https://unpkg.com/vuex@3.6.2/dist/vuex.js"></script></body></html>
1
+ <!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico?v2"><title>kams</title><script defer="defer" src="/js/chunk-vendors.b2a9455e.js"></script><script defer="defer" src="/js/app.ff7f084b.js"></script><link href="/css/chunk-vendors.9c1b0e0b.css" rel="stylesheet"><link href="/css/app.2339ed96.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but kams doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
@@ -0,0 +1,2 @@
1
+ "use strict";(self["webpackChunkkams"]=self["webpackChunkkams"]||[]).push([[178,373],{1373:function(t,e,i){i.r(e),i.d(e,{default:function(){return d}});var a=function(){var t=this,e=t._self._c;return e("el-card",{staticClass:"modules-item"},[t._t("title",(function(){return[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("span",[t._v(t._s(t.getCurrent?.description))]),e("el-link",{staticStyle:{float:"right",padding:"3px 0"},attrs:{type:"primary",target:"_blank",href:`https://kotori.js.org/modules/#${t.getCurrent?.name}`,title:"官方文档"}},[t._v(" 文档 ")])],1)]})),t.isLoading?[e("div",{staticClass:"avatar list"},[e("img",{attrs:{src:`http://k.hotaru.icu/api/data/avatar/${t.getCurrent.name}`,title:t.getCurrent.name}})]),e("div",{staticClass:"title list"},[e("h3",[t._v(t._s(t.getCurrent.name))])]),e("div",{staticClass:"download list"},[e("pps-button",{attrs:{theme:"confirm"},nativeOn:{click:function(e){t.dialog=!0}}},[t._v("下载")])],1),e("div",{staticClass:"author list"},[e("h3",{staticClass:"mb10"},[t._v("开发信息")]),e("ul",[e("li",[e("strong",[t._v("类别 :")]),t._v("   "+t._s(t.category)+" ")]),e("li",[e("strong",[t._v("作者 :")]),t._v("   "),e("el-link",{attrs:{type:"primary",href:`mailto://${t.getCurrent.author?.email}`}},[t._v(" "+t._s(t.getCurrent.author?.name)+" ")])],1),e("li",[e("strong",[t._v("描述 :")]),t._v("   "+t._s(t.getCurrent.description)+" ")])])]),e("div",{staticClass:"version list"},[e("h3",{staticClass:"mb10"},[t._v("版本信息")]),e("ul",[e("li",[e("strong",[t._v("最新版本 : ")]),t._v(" v"+t._s(t.getCurrent.version)+" ")]),e("li",[e("strong",[t._v("创建日期 : ")]),e("span",{directives:[{name:"trans-time",rawName:"v-trans-time",value:t.getCurrent.time.created,expression:"getCurrent.time.created"}]})]),e("li",[e("strong",[t._v("更新日期 : ")]),e("span",{directives:[{name:"trans-time",rawName:"v-trans-time",value:t.getCurrent.time.modified,expression:"getCurrent.time.modified"}]})])])]),e("div",{staticClass:"file list"},[e("h3",{staticClass:"mb10"},[t._v("文件信息")]),e("ul",[e("li",[e("strong",[t._v("依赖数 : ")]),t._v(" "+t._s(t.getCurrent.dist.dependencies)+" ")]),e("li",[e("strong",[t._v("文件数 : ")]),t._v(" "+t._s(t.getCurrent.dist.fileCount)+" ")]),e("li",[e("strong",[t._v("大 小 : ")]),t._v(" "+t._s(t.unpackSize)+" ")])])])]:e("el-empty",{attrs:{description:"描述文字"}}),e("pps-dialog",{attrs:{title:"提示",show:t.dialog},on:{"update:show":function(e){t.dialog=e}},scopedSlots:t._u([{key:"content",fn:function(){return[e("el-link",{staticClass:"downloadLink",attrs:{type:"primary",href:`${t.getCurrent.dist.tarball}`}},[t._v(" 直接下载 ")]),e("el-link",{staticClass:"downloadLink",attrs:{target:"_blank",type:"primary",href:`https://www.npmjs.com/package/${t.getCurrent.name}`}},[t._v(" npm下载 ")])]},proxy:!0}])})],2)},s=[],r=i(3518),n={name:"description",data(){return{detail:{},dialog:!1}},methods:{downloadFn(){console.log(this.getCurrent.dist.tarball)},transTime(t){const e=new Date(t),i=e.getFullYear(),a=e.getMonth()+1,s=e.getDate(),r=e.getHours()>=10?e.getHours():`0${e.getHours()}`,n=e.getMinutes()>=10?e.getMinutes():`0${e.getMinutes()}`,l=e.getSeconds()>=10?e.getSeconds():`0${e.getSeconds()}`;return`${i}-${a}-${s} ${r}:${n}:${l}`}},computed:{...(0,r.L8)("modulesDetail",["getCurrent"]),category(){const t={official:"官方",plugin:"插件",adapter:"适配器",database:"数据库",service:"服务"},e=this.getCurrent.category||[],i=e.map((e=>t[e]));return i.join("、")},modifiedTime(){return this.transTime()},createdTime(){return this.transTime()},unpackSize(){const t=this.getCurrent.dist.unpackedSize;let e="";return t&&(e=t>1048576?`${(t/1024/1024).toFixed(2)}MB`:t>1024?`${(t/1024).toFixed(2)}KB`:`${t}B`),e},isLoading(){return!!this.getCurrent}},created(){this.detail=this.$store.state.modulesDetail.current},mounted(){}},l=n,o=i(1656),u=(0,o.A)(l,a,s,!1,null,"90b9b612",null),d=u.exports},6614:function(t,e,i){i.r(e),i.d(e,{default:function(){return _}});var a=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"resize-ob",rawName:"v-resize-ob",value:t.cardResize,expression:"cardResize"}],staticClass:"wrapper"},[e("div",{staticClass:"k-detail-list"},[e("div",{staticClass:"items"},t._l(t.currentDetails,(function(i,a){return e("k-detail-item",{key:a,staticClass:"k-detail-item",attrs:{avatar:`http://k.hotaru.icu/api/data/avatar/${i.name}`},on:{detail:function(e){return t.handleClick(a)}},scopedSlots:t._u([{key:"title",fn:function(){return[t._v(t._s(i?.name))]},proxy:!0},{key:"des",fn:function(){return[t._v(t._s(i?.description))]},proxy:!0},{key:"author",fn:function(){return[t._v("V"+t._s(i?.version)+" "+t._s(i?.author?.name))]},proxy:!0}],null,!0)})})),1),e("div",{staticClass:"pagination"},[e("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.detailsLen,"page-size":t.itemNum,"pager-count":5,"current-page":t.pageIndex},on:{"update:currentPage":function(e){t.pageIndex=e},"update:current-page":function(e){t.pageIndex=e},"current-change":t.changeCurrentPage}})],1),e("pps-dialog",{attrs:{title:t.getCurrent?.name,show:t.isShowDialog},on:{"update:show":function(e){t.isShowDialog=e}},scopedSlots:t._u([{key:"content",fn:function(){return[e("k-des",{scopedSlots:t._u([{key:"title",fn:function(){return[e("div")]},proxy:!0}])})]},proxy:!0}])})],1),e("div",{staticClass:"k-description"},[e("router-view")],1)])},s=[],r=(i(4114),function(){var t=this,e=t._self._c;return e("div",{staticClass:"item-detail-wrapper"},[e("div",{staticClass:"item-detail-container"},[e("div",{staticClass:"item-detail"},[e("div",{staticClass:"body"},[e("div",{staticClass:"avatar"},[t._t("avatar",(function(){return[e("img",{attrs:{src:t.avatar}})]}))],2),e("div",{staticClass:"detail"},[e("div",{staticClass:"title"},[e("el-link",{attrs:{underline:!1}},[e("h3",[t._t("title",(function(){return[t._v("test")]}))],2)])],1),e("div",{staticClass:"des"},[t._t("des",(function(){return[t._v(" 使用kotori插件更轻量更易用!使用kotori插件更轻量更易用!使用kotori插件更轻量更易用!使用kotori插件更轻量更易用!使用kotori插件更轻量更易用! ")]}))],2),e("div",{staticClass:"author"},[t._t("author",(function(){return[t._v("v1.2.0 biyuehu")]}))],2)])]),e("div",{staticClass:"action"},[t._t("action",(function(){return[e("pps-button",{attrs:{theme:"confirm"},on:{click:t.handleClick}},[t._v("详情")])]}))],2)])])])}),n=[],l=i.p+"img/logo.2302933b.png",o={name:"k-detail-item",data(){return{image:l}},props:{width:{type:String,default:"25%"},avatar:{type:String,default:""}},methods:{handleClick(){this.$emit("detail")}},computed:{}},u=o,d=i(1656),c=(0,d.A)(u,r,n,!1,null,"89a17930",null),g=c.exports,m=i(1373),h=i(3518),p={name:"modulesCenter",components:{kDetailItem:g,kDes:m["default"]},data(){return{currentDetails:null,itemNum:16,detailsLen:0,pageSize:[],pageIndex:1,isNarrow:!1,isShowDialog:!1}},methods:{cardResize(t,e){const i=Math.floor(t);this.isNarrow=i<=425,this.itemNum=i<=1819&&i>820?9:i<=820&&i>632?6:i<=632&&i>425?3:16},sliceData(t,e){this.currentDetails=this.getData.slice(t,e),this.$store.commit("modulesDetail/updateCurrent",t)},calcPage(t){this.pageSize=[];const e=Math.ceil(t/this.itemNum);for(let a=1;a<=e;a++){const i=a*this.itemNum-this.itemNum,s=a*this.itemNum;a<e?this.pageSize.push({start:i,end:s}):this.pageSize.push({start:i,end:t})}try{this.sliceData(this.pageSize[0].start,this.pageSize[0].end)}catch(i){}this.pageIndex=1},handleClick(t){this.$store.commit("modulesDetail/updateCurrent",t+this.itemId),this.isNarrow&&(this.isShowDialog=!0)},changeCurrentPage(t){const e=t-1;this.sliceData(this.pageSize[e].start,this.pageSize[e].end)}},computed:{...(0,h.L8)("modulesDetail",["getData","getCurrent"]),itemId(){return(this.pageIndex-1)*this.itemNum}},watch:{itemNum:{immediate:!1,handler(){this.calcPage(this.detailsLen)}},getData:{immediate:!0,handler(t){t&&t.length?(this.detailsLen=t.length,this.calcPage(this.detailsLen)):this.currentDetails=[]}}},created(){},mounted(){this.detailsLen=this.getData.length,this.calcPage(this.detailsLen)}},v=p,C=(0,d.A)(v,a,s,!1,null,null,null),_=C.exports}}]);
2
+ //# sourceMappingURL=178.5506400e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"js/178.5506400e.js","mappings":"wJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,UAAU,CAACE,YAAY,gBAAgB,CAACJ,EAAIK,GAAG,SAAQ,WAAW,MAAO,CAACH,EAAG,MAAM,CAACE,YAAY,WAAWE,MAAM,CAAC,KAAO,UAAUC,KAAK,UAAU,CAACL,EAAG,OAAO,CAACF,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,YAAYC,gBAAgBT,EAAG,UAAU,CAACU,YAAY,CAAC,MAAQ,QAAQ,QAAU,SAASN,MAAM,CAAC,KAAO,UAAU,OAAS,SAAS,KAAQ,kCAAiCN,EAAIU,YAAYG,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GCjIqQ,ICQjQ,GAAY,OACd,EACA7F,EACAyC,GACA,EACA,KACA,KACA,MAIF,EAAe,EAAiB,O","sources":["webpack://kams/./src/views/modules/description.vue","webpack://kams/src/views/modules/description.vue","webpack://kams/./src/views/modules/description.vue?0f6b","webpack://kams/./src/views/modules/description.vue?6149","webpack://kams/./src/views/modules/modulesCenter.vue","webpack://kams/./src/views/modules/itemDetails.vue","webpack://kams/src/views/modules/itemDetails.vue","webpack://kams/./src/views/modules/itemDetails.vue?6b4a","webpack://kams/./src/views/modules/itemDetails.vue?2e56","webpack://kams/src/views/modules/modulesCenter.vue","webpack://kams/./src/views/modules/modulesCenter.vue?8db2","webpack://kams/./src/views/modules/modulesCenter.vue?a6f3"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-card',{staticClass:\"modules-item\"},[_vm._t(\"title\",function(){return [_c('div',{staticClass:\"clearfix\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('span',[_vm._v(_vm._s(_vm.getCurrent?.description))]),_c('el-link',{staticStyle:{\"float\":\"right\",\"padding\":\"3px 0\"},attrs:{\"type\":\"primary\",\"target\":\"_blank\",\"href\":`https://kotori.js.org/modules/#${_vm.getCurrent?.name}`,\"title\":\"官方文档\"}},[_vm._v(\" 文档 \")])],1)]}),(_vm.isLoading)?[_c('div',{staticClass:\"avatar list\"},[_c('img',{attrs:{\"src\":`http://k.hotaru.icu/api/data/avatar/${_vm.getCurrent.name}`,\"title\":_vm.getCurrent.name}})]),_c('div',{staticClass:\"title list\"},[_c('h3',[_vm._v(_vm._s(_vm.getCurrent.name))])]),_c('div',{staticClass:\"download list\"},[_c('pps-button',{attrs:{\"theme\":\"confirm\"},nativeOn:{\"click\":function($event){_vm.dialog = true}}},[_vm._v(\"下载\")])],1),_c('div',{staticClass:\"author list\"},[_c('h3',{staticClass:\"mb10\"},[_vm._v(\"开发信息\")]),_c('ul',[_c('li',[_c('strong',[_vm._v(\"类别 :\")]),_vm._v(\"   \"+_vm._s(_vm.category)+\" \")]),_c('li',[_c('strong',[_vm._v(\"作者 :\")]),_vm._v(\"   \"),_c('el-link',{attrs:{\"type\":\"primary\",\"href\":`mailto://${_vm.getCurrent.author?.email}`}},[_vm._v(\" \"+_vm._s(_vm.getCurrent.author?.name)+\" \")])],1),_c('li',[_c('strong',[_vm._v(\"描述 :\")]),_vm._v(\"   \"+_vm._s(_vm.getCurrent.description)+\" \")])])]),_c('div',{staticClass:\"version list\"},[_c('h3',{staticClass:\"mb10\"},[_vm._v(\"版本信息\")]),_c('ul',[_c('li',[_c('strong',[_vm._v(\"最新版本 : \")]),_vm._v(\" v\"+_vm._s(_vm.getCurrent.version)+\" \")]),_c('li',[_c('strong',[_vm._v(\"创建日期 : \")]),_c('span',{directives:[{name:\"trans-time\",rawName:\"v-trans-time\",value:(_vm.getCurrent.time.created),expression:\"getCurrent.time.created\"}]})]),_c('li',[_c('strong',[_vm._v(\"更新日期 : \")]),_c('span',{directives:[{name:\"trans-time\",rawName:\"v-trans-time\",value:(_vm.getCurrent.time.modified),expression:\"getCurrent.time.modified\"}]})])])]),_c('div',{staticClass:\"file list\"},[_c('h3',{staticClass:\"mb10\"},[_vm._v(\"文件信息\")]),_c('ul',[_c('li',[_c('strong',[_vm._v(\"依赖数 : \")]),_vm._v(\" \"+_vm._s(_vm.getCurrent.dist.dependencies)+\" \")]),_c('li',[_c('strong',[_vm._v(\"文件数 : \")]),_vm._v(\" \"+_vm._s(_vm.getCurrent.dist.fileCount)+\" \")]),_c('li',[_c('strong',[_vm._v(\"大 小 : \")]),_vm._v(\" \"+_vm._s(_vm.unpackSize)+\" \")])])])]:_c('el-empty',{attrs:{\"description\":\"描述文字\"}}),_c('pps-dialog',{attrs:{\"title\":\"提示\",\"show\":_vm.dialog},on:{\"update:show\":function($event){_vm.dialog=$event}},scopedSlots:_vm._u([{key:\"content\",fn:function(){return [_c('el-link',{staticClass:\"downloadLink\",attrs:{\"type\":\"primary\",\"href\":`${_vm.getCurrent.dist.tarball}`}},[_vm._v(\" 直接下载 \")]),_c('el-link',{staticClass:\"downloadLink\",attrs:{\"target\":\"_blank\",\"type\":\"primary\",\"href\":`https://www.npmjs.com/package/${_vm.getCurrent.name}`}},[_vm._v(\" npm下载 \")])]},proxy:true}])})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <el-card class=\"modules-item\">\r\n <slot name=\"title\">\r\n <div slot=\"header\" class=\"clearfix\">\r\n <span>{{ getCurrent?.description }}</span>\r\n <el-link\r\n style=\"float: right; padding: 3px 0\"\r\n type=\"primary\"\r\n target=\"_blank\"\r\n :href=\"`https://kotori.js.org/modules/#${getCurrent?.name}`\"\r\n title=\"官方文档\"\r\n >\r\n 文档\r\n </el-link>\r\n </div>\r\n </slot>\r\n <template v-if=\"isLoading\">\r\n <div class=\"avatar list\">\r\n <img\r\n :src=\"`http://k.hotaru.icu/api/data/avatar/${getCurrent.name}`\"\r\n :title=\"getCurrent.name\"\r\n />\r\n </div>\r\n <div class=\"title list\">\r\n <h3>{{ getCurrent.name }}</h3>\r\n </div>\r\n <div class=\"download list\">\r\n <pps-button theme=\"confirm\" @click.native=\"dialog = true\">下载</pps-button>\r\n </div>\r\n <div class=\"author list\">\r\n <h3 class=\"mb10\">开发信息</h3>\r\n <ul>\r\n <li>\r\n <strong>类别 :</strong>\r\n &nbsp;\r\n {{ category }}\r\n </li>\r\n <li>\r\n <strong>作者 :</strong>\r\n &nbsp;\r\n <el-link type=\"primary\" :href=\"`mailto://${getCurrent.author?.email}`\">\r\n {{ getCurrent.author?.name }}\r\n </el-link>\r\n </li>\r\n <li>\r\n <strong>描述 :</strong>\r\n &nbsp;\r\n {{ getCurrent.description }}\r\n </li>\r\n </ul>\r\n </div>\r\n <div class=\"version list\">\r\n <h3 class=\"mb10\">版本信息</h3>\r\n <ul>\r\n <li>\r\n <strong>最新版本 :&nbsp;</strong>\r\n v{{ getCurrent.version }}\r\n </li>\r\n <li>\r\n <strong>创建日期 :&nbsp;</strong>\r\n <span v-trans-time=\"getCurrent.time.created\"></span>\r\n </li>\r\n <li>\r\n <strong>更新日期 :&nbsp;</strong>\r\n <span v-trans-time=\"getCurrent.time.modified\"></span>\r\n </li>\r\n </ul>\r\n </div>\r\n <div class=\"file list\">\r\n <h3 class=\"mb10\">文件信息</h3>\r\n <ul>\r\n <li>\r\n <strong>依赖数 :&nbsp;</strong>\r\n {{ getCurrent.dist.dependencies }}\r\n </li>\r\n <li>\r\n <strong>文件数 :&nbsp;</strong>\r\n {{ getCurrent.dist.fileCount }}\r\n </li>\r\n <li>\r\n <strong>大&emsp;小 :&nbsp;</strong>\r\n {{ unpackSize }}\r\n </li>\r\n </ul>\r\n </div>\r\n </template>\r\n <el-empty v-else description=\"描述文字\"></el-empty>\r\n <pps-dialog title=\"提示\" :show.sync=\"dialog\">\r\n <template v-slot:content>\r\n <el-link type=\"primary\" class=\"downloadLink\" :href=\"`${getCurrent.dist.tarball}`\">\r\n 直接下载\r\n </el-link>\r\n <el-link\r\n target=\"_blank\"\r\n type=\"primary\"\r\n class=\"downloadLink\"\r\n :href=\"`https://www.npmjs.com/package/${getCurrent.name}`\"\r\n >\r\n npm下载\r\n </el-link>\r\n </template>\r\n </pps-dialog>\r\n </el-card>\r\n</template>\r\n\r\n<script>\r\nimport { mapGetters } from 'vuex';\r\nexport default {\r\n name: 'description',\r\n data() {\r\n return {\r\n detail: {},\r\n dialog: false\r\n };\r\n },\r\n methods: {\r\n downloadFn() {\r\n console.log(this.getCurrent.dist.tarball);\r\n },\r\n transTime(time) {\r\n const date = new Date(time);\r\n const year = date.getFullYear();\r\n const month = date.getMonth() + 1; // 月份是从0开始的,所以需要+1\r\n const day = date.getDate();\r\n const hours = date.getHours() >= 10 ? date.getHours() : `0${date.getHours()}`;\r\n const minutes = date.getMinutes() >= 10 ? date.getMinutes() : `0${date.getMinutes()}`;\r\n const seconds = date.getSeconds() >= 10 ? date.getSeconds() : `0${date.getSeconds()}`;\r\n return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;\r\n }\r\n },\r\n computed: {\r\n ...mapGetters('modulesDetail', ['getCurrent']),\r\n category() {\r\n const categoryMap = {\r\n official: '官方',\r\n plugin: '插件',\r\n adapter: '适配器',\r\n database: '数据库',\r\n service: '服务'\r\n };\r\n const enArr = this.getCurrent.category || [];\r\n const chArr = enArr.map((item) => categoryMap[item]);\r\n return chArr.join('、');\r\n },\r\n modifiedTime() {\r\n return this.transTime();\r\n },\r\n createdTime() {\r\n return this.transTime();\r\n },\r\n unpackSize() {\r\n const size = this.getCurrent.dist.unpackedSize;\r\n let tranSize = '';\r\n if (size) {\r\n if (size > 1024 * 1024) {\r\n tranSize = `${(size / 1024 / 1024).toFixed(2)}MB`;\r\n } else if (size > 1024) {\r\n tranSize = `${(size / 1024).toFixed(2)}KB`;\r\n } else {\r\n tranSize = `${size}B`;\r\n }\r\n }\r\n return tranSize;\r\n },\r\n isLoading() {\r\n if (this.getCurrent) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n },\r\n created() {\r\n this.detail = this.$store.state.modulesDetail.current;\r\n },\r\n mounted() {}\r\n};\r\n</script>\r\n\r\n<style scoped lang=\"less\">\r\n.modules-item {\r\n height: 100%;\r\n .title {\r\n text-align: center;\r\n }\r\n .list + .list {\r\n margin-top: 20px;\r\n }\r\n .avatar {\r\n text-align: center;\r\n & img {\r\n width: 100px;\r\n }\r\n }\r\n .download {\r\n text-align: center;\r\n & button {\r\n width: 60%;\r\n border-radius: 5px;\r\n }\r\n }\r\n ul {\r\n margin-left: 20px;\r\n li + li {\r\n margin-top: 5px;\r\n }\r\n }\r\n}\r\n.mb10 {\r\n margin-bottom: 10px;\r\n}\r\n.downloadLink + .downloadLink {\r\n margin-left: 20px;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./description.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.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./description.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./description.vue?vue&type=template&id=90b9b612&scoped=true\"\nimport script from \"./description.vue?vue&type=script&lang=js\"\nexport * from \"./description.vue?vue&type=script&lang=js\"\nimport style0 from \"./description.vue?vue&type=style&index=0&id=90b9b612&prod&scoped=true&lang=less\"\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 \"90b9b612\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:\"resize-ob\",rawName:\"v-resize-ob\",value:(_vm.cardResize),expression:\"cardResize\"}],staticClass:\"wrapper\"},[_c('div',{staticClass:\"k-detail-list\"},[_c('div',{staticClass:\"items\"},_vm._l((_vm.currentDetails),function(item,index){return _c('k-detail-item',{key:index,staticClass:\"k-detail-item\",attrs:{\"avatar\":`http://k.hotaru.icu/api/data/avatar/${item.name}`},on:{\"detail\":function($event){return _vm.handleClick(index)}},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(_vm._s(item?.name))]},proxy:true},{key:\"des\",fn:function(){return [_vm._v(_vm._s(item?.description))]},proxy:true},{key:\"author\",fn:function(){return [_vm._v(\"V\"+_vm._s(item?.version)+\" \"+_vm._s(item?.author?.name))]},proxy:true}],null,true)})}),1),_c('div',{staticClass:\"pagination\"},[_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"prev, pager, next\",\"total\":_vm.detailsLen,\"page-size\":_vm.itemNum,\"pager-count\":5,\"current-page\":_vm.pageIndex},on:{\"update:currentPage\":function($event){_vm.pageIndex=$event},\"update:current-page\":function($event){_vm.pageIndex=$event},\"current-change\":_vm.changeCurrentPage}})],1),_c('pps-dialog',{attrs:{\"title\":_vm.getCurrent?.name,\"show\":_vm.isShowDialog},on:{\"update:show\":function($event){_vm.isShowDialog=$event}},scopedSlots:_vm._u([{key:\"content\",fn:function(){return [_c('k-des',{scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_c('div')]},proxy:true}])})]},proxy:true}])})],1),_c('div',{staticClass:\"k-description\"},[_c('router-view')],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"item-detail-wrapper\"},[_c('div',{staticClass:\"item-detail-container\"},[_c('div',{staticClass:\"item-detail\"},[_c('div',{staticClass:\"body\"},[_c('div',{staticClass:\"avatar\"},[_vm._t(\"avatar\",function(){return [_c('img',{attrs:{\"src\":_vm.avatar}})]})],2),_c('div',{staticClass:\"detail\"},[_c('div',{staticClass:\"title\"},[_c('el-link',{attrs:{\"underline\":false}},[_c('h3',[_vm._t(\"title\",function(){return [_vm._v(\"test\")]})],2)])],1),_c('div',{staticClass:\"des\"},[_vm._t(\"des\",function(){return [_vm._v(\" 使用kotori插件更轻量更易用!使用kotori插件更轻量更易用!使用kotori插件更轻量更易用!使用kotori插件更轻量更易用!使用kotori插件更轻量更易用! \")]})],2),_c('div',{staticClass:\"author\"},[_vm._t(\"author\",function(){return [_vm._v(\"v1.2.0 biyuehu\")]})],2)])]),_c('div',{staticClass:\"action\"},[_vm._t(\"action\",function(){return [_c('pps-button',{attrs:{\"theme\":\"confirm\"},on:{\"click\":_vm.handleClick}},[_vm._v(\"详情\")])]})],2)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"item-detail-wrapper\">\r\n <div class=\"item-detail-container\">\r\n <div class=\"item-detail\">\r\n <div class=\"body\">\r\n <div class=\"avatar\">\r\n <slot name=\"avatar\"><img :src=\"avatar\" /></slot>\r\n </div>\r\n <div class=\"detail\">\r\n <div class=\"title\">\r\n <el-link :underline=\"false\">\r\n <h3>\r\n <slot name=\"title\">test</slot>\r\n </h3>\r\n </el-link>\r\n </div>\r\n <div class=\"des\">\r\n <slot name=\"des\">\r\n 使用kotori插件更轻量更易用!使用kotori插件更轻量更易用!使用kotori插件更轻量更易用!使用kotori插件更轻量更易用!使用kotori插件更轻量更易用!\r\n </slot>\r\n </div>\r\n <div class=\"author\">\r\n <slot name=\"author\">v1.2.0 biyuehu</slot>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"action\">\r\n <slot name=\"action\">\r\n <pps-button theme=\"confirm\" @click=\"handleClick\">详情</pps-button>\r\n </slot>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport image from '@/assets/logo.png';\r\nexport default {\r\n name: 'k-detail-item',\r\n data() {\r\n return {\r\n image\r\n };\r\n },\r\n props: {\r\n width: {\r\n type: String,\r\n default: '25%'\r\n },\r\n avatar: {\r\n type: String,\r\n default: ''\r\n }\r\n },\r\n methods: {\r\n handleClick() {\r\n this.$emit('detail');\r\n }\r\n },\r\n computed: {}\r\n};\r\n</script>\r\n\r\n<style scoped lang=\"less\">\r\n.item-detail-wrapper {\r\n padding-left: 8px;\r\n padding-right: 8px;\r\n box-sizing: border-box;\r\n\r\n .item-detail-container {\r\n margin-block-end: 16px;\r\n\r\n .item-detail {\r\n padding: 20px;\r\n background: #fff;\r\n border-radius: 4px;\r\n border: 1px solid #ebeef5;\r\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\r\n\r\n .body {\r\n display: flex;\r\n flex-direction: row;\r\n .avatar {\r\n margin-right: 10px;\r\n img {\r\n width: 46px;\r\n height: 46px;\r\n border-radius: 50%;\r\n background: #cccccc;\r\n }\r\n }\r\n .detail {\r\n .title {\r\n margin-bottom: 5px;\r\n & h3 {\r\n display: -webkit-box;\r\n overflow: hidden;\r\n -webkit-line-clamp: 1;\r\n word-break: break-word;\r\n -webkit-box-orient: vertical;\r\n }\r\n }\r\n .des {\r\n height: 38px;\r\n display: -webkit-box;\r\n margin-bottom: 10px;\r\n overflow: hidden;\r\n -webkit-line-clamp: 2;\r\n word-break: break-word;\r\n -webkit-box-orient: vertical;\r\n }\r\n .author {\r\n display: -webkit-box;\r\n margin-bottom: 10px;\r\n overflow: hidden;\r\n -webkit-line-clamp: 1;\r\n word-break: break-word;\r\n -webkit-box-orient: vertical;\r\n }\r\n }\r\n }\r\n .action {\r\n text-align: right;\r\n // margin-top: 10px;\r\n }\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./itemDetails.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.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./itemDetails.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./itemDetails.vue?vue&type=template&id=89a17930&scoped=true\"\nimport script from \"./itemDetails.vue?vue&type=script&lang=js\"\nexport * from \"./itemDetails.vue?vue&type=script&lang=js\"\nimport style0 from \"./itemDetails.vue?vue&type=style&index=0&id=89a17930&prod&scoped=true&lang=less\"\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 \"89a17930\",\n null\n \n)\n\nexport default component.exports","<template>\r\n <div class=\"wrapper\" v-resize-ob=\"cardResize\">\r\n <div class=\"k-detail-list\">\r\n <div class=\"items\">\r\n <k-detail-item\r\n :key=\"index\"\r\n class=\"k-detail-item\"\r\n @detail=\"handleClick(index)\"\r\n v-for=\"(item, index) in currentDetails\"\r\n :avatar=\"`http://k.hotaru.icu/api/data/avatar/${item.name}`\"\r\n >\r\n <template v-slot:title>{{ item?.name }}</template>\r\n <template v-slot:des>{{ item?.description }}</template>\r\n <template v-slot:author>V{{ item?.version }} {{ item?.author?.name }}</template>\r\n </k-detail-item>\r\n </div>\r\n <div class=\"pagination\">\r\n <el-pagination\r\n background\r\n layout=\"prev, pager, next\"\r\n :total=\"detailsLen\"\r\n :page-size=\"itemNum\"\r\n :pager-count=\"5\"\r\n :current-page.sync=\"pageIndex\"\r\n @current-change=\"changeCurrentPage\"\r\n ></el-pagination>\r\n </div>\r\n <pps-dialog :title=\"getCurrent?.name\" :show.sync=\"isShowDialog\">\r\n <template v-slot:content>\r\n <k-des>\r\n <template v-slot:title><div></div></template>\r\n </k-des>\r\n </template>\r\n </pps-dialog>\r\n </div>\r\n <div class=\"k-description\">\r\n <router-view></router-view>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport kDetailItem from '@/views/modules/itemDetails.vue';\r\nimport kDes from '@/views/modules/description';\r\nimport { mapGetters } from 'vuex';\r\n\r\nexport default {\r\n name: 'modulesCenter',\r\n components: { kDetailItem, kDes },\r\n data() {\r\n return {\r\n currentDetails: null,\r\n itemNum: 16,\r\n detailsLen: 0,\r\n pageSize: [],\r\n pageIndex: 1,\r\n isNarrow: false,\r\n isShowDialog: false\r\n };\r\n },\r\n methods: {\r\n cardResize(x, _) {\r\n const xx = Math.floor(x);\r\n if (xx <= 425) this.isNarrow = true;\r\n else this.isNarrow = false;\r\n if (xx <= 1819 && xx > 820) this.itemNum = 9;\r\n else if (xx <= 820 && xx > 632) this.itemNum = 6;\r\n else if (xx <= 632 && xx > 425) this.itemNum = 3;\r\n else this.itemNum = 16;\r\n },\r\n sliceData(start, end) {\r\n this.currentDetails = this.getData.slice(start, end);\r\n this.$store.commit('modulesDetail/updateCurrent', start);\r\n },\r\n calcPage(num) {\r\n this.pageSize = [];\r\n const row = Math.ceil(num / this.itemNum);\r\n for (let i = 1; i <= row; i++) {\r\n const start = i * this.itemNum - this.itemNum;\r\n const end = i * this.itemNum;\r\n if (i < row) {\r\n this.pageSize.push({ start, end });\r\n continue;\r\n }\r\n this.pageSize.push({ start, end: num });\r\n }\r\n try {\r\n this.sliceData(this.pageSize[0].start, this.pageSize[0].end);\r\n } catch (error) {}\r\n this.pageIndex = 1;\r\n },\r\n handleClick(index) {\r\n this.$store.commit('modulesDetail/updateCurrent', index + this.itemId);\r\n if (this.isNarrow) this.isShowDialog = true;\r\n },\r\n changeCurrentPage(num) {\r\n const index = num - 1;\r\n this.sliceData(this.pageSize[index].start, this.pageSize[index].end);\r\n }\r\n },\r\n computed: {\r\n ...mapGetters('modulesDetail', ['getData', 'getCurrent']),\r\n itemId() {\r\n return (this.pageIndex - 1) * this.itemNum;\r\n }\r\n },\r\n watch: {\r\n itemNum: {\r\n immediate: false,\r\n handler() {\r\n this.calcPage(this.detailsLen);\r\n }\r\n },\r\n getData: {\r\n immediate: true,\r\n handler(newVal) {\r\n if (newVal && newVal.length) {\r\n this.detailsLen = newVal.length;\r\n this.calcPage(this.detailsLen);\r\n } else {\r\n this.currentDetails = [];\r\n }\r\n }\r\n }\r\n },\r\n created() {},\r\n mounted() {\r\n this.detailsLen = this.getData.length;\r\n this.calcPage(this.detailsLen);\r\n }\r\n};\r\n</script>\r\n\r\n<style lang=\"less\">\r\n.wrapper {\r\n display: flex;\r\n width: 100%;\r\n flex-direction: row-reverse;\r\n justify-content: space-around;\r\n}\r\n.k-detail-list {\r\n margin-block-start: 10px;\r\n .items {\r\n display: flex;\r\n height: fit-content;\r\n flex-flow: row wrap;\r\n width: 100%;\r\n }\r\n .pagination {\r\n width: 100%;\r\n .el-pagination {\r\n width: fit-content;\r\n margin: 0 auto;\r\n }\r\n }\r\n}\r\n\r\n.k-description {\r\n margin-block-start: 10px;\r\n margin-inline-end: 10px;\r\n flex: 1;\r\n * {\r\n box-sizing: border-box;\r\n }\r\n}\r\n\r\n.k-detail-item {\r\n width: 25%;\r\n}\r\n\r\n@media screen and (min-width: 1920px) {\r\n .k-detail-list {\r\n width: 75%;\r\n }\r\n .k-detail-item {\r\n width: 25%;\r\n }\r\n}\r\n@media screen and (max-width: 1919px) and (min-width: 920px) {\r\n .k-detail-list {\r\n width: 75%;\r\n }\r\n .k-detail-item {\r\n width: 33.3%;\r\n }\r\n}\r\n@media screen and (max-width: 919px) and (min-width: 732px) {\r\n .k-detail-list {\r\n width: 66.6%;\r\n }\r\n .k-detail-item {\r\n width: 50%;\r\n }\r\n}\r\n@media screen and (max-width: 731px) and (min-width: 526px) {\r\n .k-detail-list {\r\n width: 50%;\r\n }\r\n .k-detail-item {\r\n width: 100%;\r\n }\r\n}\r\n@media screen and (max-width: 525px) {\r\n .k-detail-list {\r\n width: 100%;\r\n }\r\n .k-detail-item {\r\n width: 100%;\r\n }\r\n .k-description {\r\n display: none;\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./modulesCenter.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.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./modulesCenter.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./modulesCenter.vue?vue&type=template&id=6df302ae\"\nimport script from \"./modulesCenter.vue?vue&type=script&lang=js\"\nexport * from \"./modulesCenter.vue?vue&type=script&lang=js\"\nimport style0 from \"./modulesCenter.vue?vue&type=style&index=0&id=6df302ae&prod&lang=less\"\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"],"names":["render","_vm","this","_c","_self","staticClass","_t","attrs","slot","_v","_s","getCurrent","description","staticStyle","name","isLoading","nativeOn","$event","dialog","category","author","email","version","directives","rawName","value","time","created","expression","modified","dist","dependencies","fileCount","unpackSize","on","scopedSlots","_u","key","fn","tarball","proxy","staticRenderFns","data","detail","methods","downloadFn","console","log","transTime","date","Date","year","getFullYear","month","getMonth","day","getDate","hours","getHours","minutes","getMinutes","seconds","getSeconds","computed","mapGetters","categoryMap","official","plugin","adapter","database","service","enArr","chArr","map","item","join","modifiedTime","createdTime","size","unpackedSize","tranSize","toFixed","$store","state","modulesDetail","current","mounted","component","cardResize","_l","currentDetails","index","handleClick","detailsLen","itemNum","pageIndex","changeCurrentPage","isShowDialog","avatar","image","props","width","type","String","default","$emit","components","kDetailItem","kDes","pageSize","isNarrow","x","_","xx","Math","floor","sliceData","start","end","getData","slice","commit","calcPage","num","row","ceil","i","push","error","itemId","watch","immediate","handler","newVal","length"],"sourceRoot":""}
@@ -0,0 +1,112 @@
1
+ "use strict";(self["webpackChunkkams"]=self["webpackChunkkams"]||[]).push([[191],{4191:function(e,t,n){n.r(t),n.d(t,{default:function(){return f}});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"root"},[t("div",{staticClass:"k-console"},[t("Terminal",{attrs:{name:"my-terminal","init-log":[{content:"Welcome to kotori console!✋"}],"scroll-mode":"smooth","show-header":!1}})],1),t("pps-form",{on:{submit:function(t){return e.sendMsg()},reset:function(t){return e.clearMsg()}}},[t("pps-input",{attrs:{content:e.inputData},on:{"update:content":function(t){e.inputData=t}}},[t("pps-button",{attrs:{theme:"confirm"}},[e._v("发送")]),t("pps-button",{attrs:{theme:"primary",type:"reset"}},[e._v("清屏")])],1)],1)],1)},o=[],s=n(3516),i=n(6872),a={name:"kConsole",data(){return{messages:[],inputData:"",action:"command",color:null,loggerLevelMap:{10:"TRACE",20:"DEBUG",25:"LOG",30:"INFO",40:"WARN",50:"ERROR",60:"FATAL",70:"SILENT"}}},methods:{onExecCmd(e,t,n,r){if("fail"===e)r("Something wrong!!!");else{const e=["success","error","system","info","warning"],r=e[Math.floor(Math.random()*e.length)];n({type:"normal",class:r,tag:"成功",content:t})}},handleClick(){console.log("click")},firstMsg(){const e=this.$store.state.webSocketOption.console.data||null;if(!e)return this.$message({type:"error",message:"未获取到数据,检查后端是否开启!"});this.pushMsg({date:new Date(e.time),pid:e.pid,label:e.label,msg:e.msg})},sendFn(e){try{this.$ws.instance.send(JSON.stringify(e))}catch(t){return this.$message({type:"error",message:`未连接后端,请检查后端是否开启!${t}`})}this.pushMsg({label:["user"],msg:this.inputData})},sendMsg(){this.$ws.instance||this.$ws.init();const e={command:this.inputData,action:this.action};0===this.$ws.instance.readyState?this.$nextTick((()=>{this.sendFn(e)})):2===this.$ws.instance.readyState?this.$message.error("连接正在关闭,请重新连接"):3===this.$ws.instance.readyState?(this.$message.error("重新连接中..."),this.$ws.init(this.sendFn(e))):this.sendFn(e),this.inputData=""},pushMsg(e){const t={date:new Date,label:["bot"],msg:"nothing",level:"30"};let{date:n,label:r,msg:o,level:s}={...t,...e};n=new Date(n).toLocaleString(),r=r.join(" ");const a=`${n} [${this.loggerLevelMap[s]}] (${r}):  ${this.color.parse(o)}`;this.$nextTick((()=>{i.TerminalApi.pushMessage("my-terminal",{type:"ansi",content:a})}))},clearMsg(){i.TerminalApi.clearLog("my-terminal")}},computed:{},created(){this.color=new s.Colors(new s.TerminalAdapter)},mounted(){this.$ws.bus.$on("wsMessage",(e=>{"console_output"===e.type&&this.pushMsg(e.data)}))},activated(){},deactivated(){this.$store.commit("layoutOption/updateIsFoldAside",!1)},beforeDestroy(){this.$ws.bus.$off("wsMessage"),this.$store.commit("layoutOption/updateIsFoldAside",!1)},updated(){}},c=a,l=n(1656),u=(0,l.A)(c,r,o,!1,null,"2ea25454",null),f=u.exports},9993:function(e,t,n){
2
+ /**
3
+ * @Package @kotori-bot/tools
4
+ * @Version 1.5.1
5
+ * @Author Hotaru <me@hotaru.icu>
6
+ * @Copyright 2024 Hotaru. All rights reserved.
7
+ * @License GPL-3.0
8
+ * @Link https://github.com/kotorijs/kotori
9
+ * @Date 2024/8/14 20:46:10
10
+ */
11
+ var r=n(4550)["default"],o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,c=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})},l=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let c of i(t))a.call(e,c)||c===n||o(e,c,{get:()=>t[c],enumerable:!(r=s(t,c))||r.enumerable});return e},u=e=>l(o({},"__esModule",{value:!0}),e),f={};c(f,{BrowserAdapter:()=>g,default:()=>m}),e.exports=u(f);var d=n(301);const h={reset:"color:inherit; background-color:inherit;",bold:"font-weight:bold;",dim:"opacity:0.5;",italic:"font-style:italic;",underline:"text-decoration:underline;",inverse:"color:#ffffff; background-color:#000000;",hidden:"visibility:hidden;",strikethrough:"text-decoration:line-through;",black:"color:#000000;",red:"color:#FF0000;",green:"color:#00FF00;",yellow:"color:#FFFF00;",blue:"color:#0000FF;",magenta:"color:#FF00FF;",cyan:"color:#00FFFF;",white:"color:#FFFFFF;",gray:"color:#808080;",bgBlack:"background-color:#000000;",bgRed:"background-color:#FF0000;",bgGreen:"background-color:#00FF00;",bgYellow:"background-color:#FFFF00;",bgBlue:"background-color:#0000FF;",bgMagenta:"background-color:#FF00FF;",bgCyan:"background-color:#00FFFF;",bgWhite:"background-color:#FFFFFF;",blackBright:"color:#1C1C1C;",redBright:"color:#FF5555;",greenBright:"color:#55FF55;",yellowBright:"color:#FFFF55;",blueBright:"color:#5555FF;",magentaBright:"color:#FF55FF;",cyanBright:"color:#55FFFF;",whiteBright:"color:#BBBBBB;",bgBlackBright:"background-color:#1C1C1C;",bgRedBright:"background-color:#FF5555;",bgGreenBright:"background-color:#55FF55;",bgYellowBright:"background-color:#FFFF55;",bgBlueBright:"background-color:#5555FF;",bgMagentaBright:"background-color:#FF55FF;",bgCyanBright:"background-color:#55FFFF;",bgWhiteBright:"background-color:#BBBBBB;"};class p{constructor(e){r(this,"list",void 0),this.list={...h,...e}}dye(e){return t=>`<span style="${this.list[e]}">${t}</span>`}}const g=new Proxy(p,{construct(e,t,n){const r=Reflect.construct(e,t,n),o={};for(const s of d.colorsIdentity)o[s]=r.dye(s);return o}});var m=g},7910:function(e,t,n){
12
+ /**
13
+ * @Package @kotori-bot/tools
14
+ * @Version 1.5.1
15
+ * @Author Hotaru <me@hotaru.icu>
16
+ * @Copyright 2024 Hotaru. All rights reserved.
17
+ * @License GPL-3.0
18
+ * @Link https://github.com/kotorijs/kotori
19
+ * @Date 2024/8/14 20:46:10
20
+ */
21
+ var r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a=(e,t,n,a)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let c of s(t))i.call(e,c)||c===n||r(e,c,{get:()=>t[c],enumerable:!(a=o(t,c))||a.enumerable});return e},c=(e,t,n)=>(a(e,t,"default"),n&&a(n,t,"default")),l=e=>a(r({},"__esModule",{value:!0}),e),u={};e.exports=l(u),c(u,n(9802),e.exports)},9802:function(e,t,n){
22
+ /**
23
+ * @Package @kotori-bot/tools
24
+ * @Version 1.5.1
25
+ * @Author Hotaru <me@hotaru.icu>
26
+ * @Copyright 2024 Hotaru. All rights reserved.
27
+ * @License GPL-3.0
28
+ * @Link https://github.com/kotorijs/kotori
29
+ * @Date 2024/8/14 20:46:10
30
+ */
31
+ var r=n(4550)["default"],o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,c=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})},l=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let c of i(t))a.call(e,c)||c===n||o(e,c,{get:()=>t[c],enumerable:!(r=s(t,c))||r.enumerable});return e},u=e=>l(o({},"__esModule",{value:!0}),e),f={};c(f,{TerminalAdapter:()=>w,colors:()=>b,default:()=>O}),e.exports=u(f);var d=n(301);const h=(e,t,n,r,o=t.substring(0,e)+r,s=t.substring(e+n.length),i=s.indexOf(n))=>o+(i<0?s:h(i,s,n,r)),p=(e,t,n,r,o)=>e<0?n+t+r:n+h(e,t,r,o)+r,g=(e,t,n=e,r=e.length+1)=>o=>o||""!==o&&void 0!==o?p((""+o).indexOf(t,r),o,e,t,n):"",m=(e,t,n)=>g(`[${e}m`,`[${t}m`,n),b={reset:m(0,0),bold:m(1,22,""),dim:m(2,22,""),italic:m(3,23),underline:m(4,24),inverse:m(7,27),hidden:m(8,28),strikethrough:m(9,29),black:m(30,39),red:m(31,39),green:m(32,39),yellow:m(33,39),blue:m(34,39),magenta:m(35,39),cyan:m(36,39),white:m(37,39),gray:m(90,39),bgBlack:m(40,49),bgRed:m(41,49),bgGreen:m(42,49),bgYellow:m(43,49),bgBlue:m(44,49),bgMagenta:m(45,49),bgCyan:m(46,49),bgWhite:m(47,49),blackBright:m(90,39),redBright:m(91,39),greenBright:m(92,39),yellowBright:m(93,39),blueBright:m(94,39),magentaBright:m(95,39),cyanBright:m(96,39),whiteBright:m(97,39),bgBlackBright:m(100,49),bgRedBright:m(101,49),bgGreenBright:m(102,49),bgYellowBright:m(103,49),bgBlueBright:m(104,49),bgMagentaBright:m(105,49),bgCyanBright:m(106,49),bgWhiteBright:m(107,49)};class y{constructor(){r(this,"c",b)}}const w=new Proxy(y,{construct(e,t,n){const{c:r}=Reflect.construct(e,t,n),o={};for(const s of d.colorsIdentity)o[s]=r[s].bind(r);return o}});var O=w},5716:function(e,t,n){
32
+ /**
33
+ * @Package @kotori-bot/tools
34
+ * @Version 1.5.1
35
+ * @Author Hotaru <me@hotaru.icu>
36
+ * @Copyright 2024 Hotaru. All rights reserved.
37
+ * @License GPL-3.0
38
+ * @Link https://github.com/kotorijs/kotori
39
+ * @Date 2024/8/14 20:46:10
40
+ */
41
+ var r=n(4550)["default"];n(4114);var o=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})},f=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of a(t))l.call(e,o)||o===n||s(e,o,{get:()=>t[o],enumerable:!(r=i(t,o))||r.enumerable});return e},d=(e,t,n)=>(f(e,t,"default"),n&&f(n,t,"default")),h=(e,t,n)=>(n=null!=e?o(c(e)):{},f(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)),p=e=>f(s({},"__esModule",{value:!0}),e),g={};u(g,{Colors:()=>w,default:()=>O}),e.exports=p(g);var m=n(301),b=n(7910),y=h(n(9993));d(g,n(301),e.exports),d(g,n(7910),e.exports);class w{constructor(e){r(this,"customRules",void 0),r(this,"c",void 0),"adapter"in e?(this.c=e.adapter,this.customRules=e.rules??{}):(this.c=e,this.customRules={})}parse(e){const t=[...m.colorsIdentity,...Object.keys(this.customRules),"clear"],n=[];let r="",o="";const s=()=>{if(o){for(let e=n.length-1;e>=0;e--)o=this.dye(o,n[e]);r+=o,o=""}},i=new RegExp(`(<(${t.join("|")})>|</(${t.join("|")})>|([^<]+))`,"g");let a=i.exec(e);while(null!==a){if(a[2])s(),n.push(a[2]);else if(a[3]){s();const e=n.pop();if(e!==a[3])continue}else a[4]&&(o+=a[4]);a=i.exec(e)}return s(),r}batch(e){return e.map((e=>this.parse(e)))}dye(e,t){return t in this.c?this.c[t](e):t in this.customRules?this.customRules[t](e):this.clear(e)}clear(e){return this.clear.toString(),e.replace(/<clear>(.*?)<\/clear>/g,"$1")}}(e=>{function t(t){return new e(t)}e.createColor=t;const n=t({adapter:globalThis.document?new y.default:new b.TerminalAdapter});e.parse=n.parse.bind(n),e.batch=n.batch.bind(n),e.dye=n.dye.bind(n),e.clear=n.clear.bind(n)})(w||(w={}));var O=w},301:function(e){
42
+ /**
43
+ * @Package @kotori-bot/tools
44
+ * @Version 1.5.1
45
+ * @Author Hotaru <me@hotaru.icu>
46
+ * @Copyright 2024 Hotaru. All rights reserved.
47
+ * @License GPL-3.0
48
+ * @Link https://github.com/kotorijs/kotori
49
+ * @Date 2024/8/14 20:46:10
50
+ */
51
+ var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},i=(e,s,i,a)=>{if(s&&"object"===typeof s||"function"===typeof s)for(let c of r(s))o.call(e,c)||c===i||t(e,c,{get:()=>s[c],enumerable:!(a=n(s,c))||a.enumerable});return e},a=e=>i(t({},"__esModule",{value:!0}),e),c={};s(c,{colorsIdentity:()=>l}),e.exports=a(c);const l=["reset","bold","dim","italic","underline","inverse","hidden","strikethrough","black","red","green","yellow","blue","magenta","cyan","white","gray","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright"]},9447:function(e,t,n){
52
+ /**
53
+ * @Package @kotori-bot/tools
54
+ * @Version 1.5.1
55
+ * @Author Hotaru <me@hotaru.icu>
56
+ * @Copyright 2024 Hotaru. All rights reserved.
57
+ * @License GPL-3.0
58
+ * @Link https://github.com/kotorijs/kotori
59
+ * @Date 2024/8/14 20:46:10
60
+ */
61
+ n(4114);var r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},c=(e,t,n,a)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let c of s(t))i.call(e,c)||c===n||r(e,c,{get:()=>t[c],enumerable:!(a=o(t,c))||a.enumerable});return e},l=e=>c(r({},"__esModule",{value:!0}),e),u={};function f(...e){e.length.toString()}function d(e,t=!0){if("function"!==typeof e)return!1;const n=e.toString();return void 0!==e.prototype&&(e.prototype.constructor===e&&("class"===n.slice(0,5)||(Object.getOwnPropertyNames(e.prototype).length>=2||!/^function\s+\(|^function\s+anonymous\(/.test(n)&&(!(!t||!/^function\s+[A-Z]/.test(n))||!!/\b\(this\b|\bthis[.[]\b/.test(n)&&(!(t&&!/classCallCheck\(this/.test(n))||/^function\sdefault_\d+\s*\(/.test(n))))))}function h(e,t){if(!e.global)return e.exec(t);const n=[];let r=e.exec(t);while(r)n.push(r),r=e.exec(t);return 0===n.length?null:n}function p(e,t){const n=Object.assign(t,{break:"\n"});let r=e;for(const o of Object.keys(n))"string"!==typeof n[o]&&(n[o]=String(n[o])),r=r.replaceAll(`%${o}%`,n[o]);return r}function g(e,t){let n=e;return t.forEach(((e,t)=>{n=n.replaceAll(`{${t}}`,String(e))})),n}function m(e){return new Promise((t=>setTimeout((()=>t(e)),e)))}a(u,{isClass:()=>d,none:()=>f,regExpExecAll:()=>h,sleep:()=>m,stringFormat:()=>g,stringTemp:()=>p}),e.exports=l(u)},191:function(e,t,n){
62
+ /**
63
+ * @Package @kotori-bot/tools
64
+ * @Version 1.5.1
65
+ * @Author Hotaru <me@hotaru.icu>
66
+ * @Copyright 2024 Hotaru. All rights reserved.
67
+ * @License GPL-3.0
68
+ * @Link https://github.com/kotorijs/kotori
69
+ * @Date 2024/8/14 20:46:10
70
+ */
71
+ var r=n(4550)["default"],o=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})},f=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of a(t))l.call(e,o)||o===n||s(e,o,{get:()=>t[o],enumerable:!(r=i(t,o))||r.enumerable});return e},d=(e,t,n)=>(n=null!=e?o(c(e)):{},f(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)),h=e=>f(s({},"__esModule",{value:!0}),e),p={};u(p,{Http:()=>m,default:()=>b}),e.exports=h(p);var g=d(n(9487));class m{constructor(e){r(this,"instance",void 0),r(this,"config",void 0),r(this,"method",(async(e,t,n,r="get")=>(await this.instance[r](e,Object.assign(this.config,n||{},{params:t}))).data)),r(this,"get",((e,t,n)=>this.method(e,t,n,"get"))),r(this,"post",(async(e,t,n)=>(await g.default.post(e,t,Object.assign(this.config,n))).data)),r(this,"patch",(async(e,t,n)=>(await g.default.patch(e,t,Object.assign(this.config,n))).data)),r(this,"put",(async(e,t,n)=>(await g.default.put(e,t,Object.assign(this.config,n))).data)),r(this,"delete",((e,t,n)=>this.method(e,t,n,"delete"))),r(this,"head",((e,t,n)=>this.method(e,t,n,"head"))),r(this,"options",((e,t,n)=>this.method(e,t,n,"options"))),r(this,"request",void 0),r(this,"response",void 0),this.config=e||{},this.instance=g.default.create(this.config),this.request=this.instance.interceptors.request.use.bind(this.instance.interceptors.request),this.response=this.instance.interceptors.response.use.bind(this.instance.interceptors.response)}extend(e){const t=new m(Object.assign(this.config,e));return t}ws(e,t){return new WebSocket(`${this.config.baseURL??""}${e}`,t)}}var b=m},2227:function(e,t,n){
72
+ /**
73
+ * @Package @kotori-bot/tools
74
+ * @Version 1.5.1
75
+ * @Author Hotaru <me@hotaru.icu>
76
+ * @Copyright 2024 Hotaru. All rights reserved.
77
+ * @License GPL-3.0
78
+ * @Link https://github.com/kotorijs/kotori
79
+ * @Date 2024/8/14 20:46:10
80
+ */
81
+ var r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a=(e,t,n,a)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let c of s(t))i.call(e,c)||c===n||r(e,c,{get:()=>t[c],enumerable:!(a=o(t,c))||a.enumerable});return e},c=(e,t,n)=>(a(e,t,"default"),n&&a(n,t,"default")),l=e=>a(r({},"__esModule",{value:!0}),e),u={};e.exports=l(u),c(u,n(9447),e.exports),c(u,n(5716),e.exports),c(u,n(191),e.exports),c(u,n(5988),e.exports)},5988:function(e,t,n){
82
+ /**
83
+ * @Package @kotori-bot/tools
84
+ * @Version 1.5.1
85
+ * @Author Hotaru <me@hotaru.icu>
86
+ * @Copyright 2024 Hotaru. All rights reserved.
87
+ * @License GPL-3.0
88
+ * @Link https://github.com/kotorijs/kotori
89
+ * @Date 2024/8/14 20:46:10
90
+ */
91
+ var r,o=n(4550)["default"],s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,l=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})},u=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of a(t))c.call(e,o)||o===n||s(e,o,{get:()=>t[o],enumerable:!(r=i(t,o))||r.enumerable});return e},f=e=>u(s({},"__esModule",{value:!0}),e),d={};l(d,{random:()=>r}),e.exports=f(d);class h{constructor(e=Math.random){o(this,"seed",void 0),this.seed=e}int(e=0,t=100){const n=Math.ceil(e),r=Math.floor(t);return Math.floor(this.seed()*(r-n))+n}float(e=0,t=1){return this.seed()*(t-e)+e}bool(e=.5){return this.seed()<e}choice(e){if(0===e.length)throw new Error("Cannot choose from an empty list");const t=this.int(0,e.length);return e[t]}shuffle(e){const t=[...e];for(let n=t.length-1;n>0;n--){const e=this.int(0,n+1);[t[n],t[e]]=[t[e],t[n]]}return t}uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*this.seed()|0,n="x"===e?t:3&t|8;return n.toString(16)}))}}(e=>{const t=new h;e.int=t.int.bind(t),e.float=t.float.bind(t),e.bool=t.bool.bind(t),e.choice=t.choice.bind(t),e.shuffle=t.shuffle.bind(t),e.uuid=t.uuid.bind(t),e.clone=(e=Math.random)=>new h(e)})(r||(r={}))},3516:function(e,t,n){
92
+ /**
93
+ * @Package @kotori-bot/tools
94
+ * @Version 1.5.1
95
+ * @Author Hotaru <me@hotaru.icu>
96
+ * @Copyright 2024 Hotaru. All rights reserved.
97
+ * @License GPL-3.0
98
+ * @Link https://github.com/kotorijs/kotori
99
+ * @Date 2024/8/14 20:46:10
100
+ */
101
+ var r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a=(e,t,n,a)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let c of s(t))i.call(e,c)||c===n||r(e,c,{get:()=>t[c],enumerable:!(a=o(t,c))||a.enumerable});return e},c=(e,t,n)=>(a(e,t,"default"),n&&a(n,t,"default")),l=e=>a(r({},"__esModule",{value:!0}),e),u={};e.exports=l(u),c(u,n(2227),e.exports),c(u,n(8772),e.exports)},8772:function(e){
102
+ /**
103
+ * @Package @kotori-bot/tools
104
+ * @Version 1.5.1
105
+ * @Author Hotaru <me@hotaru.icu>
106
+ * @Copyright 2024 Hotaru. All rights reserved.
107
+ * @License GPL-3.0
108
+ * @Link https://github.com/kotorijs/kotori
109
+ * @Date 2024/8/14 20:46:10
110
+ */
111
+ var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(e,s,i,a)=>{if(s&&"object"===typeof s||"function"===typeof s)for(let c of r(s))o.call(e,c)||c===i||t(e,c,{get:()=>s[c],enumerable:!(a=n(s,c))||a.enumerable});return e},i=e=>s(t({},"__esModule",{value:!0}),e),a={};e.exports=i(a)},9487:function(e,t,n){function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,i=(e=>t=>{const n=o.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),a=e=>(e=e.toLowerCase(),t=>i(t)===e),c=e=>t=>typeof t===e,{isArray:l}=Array,u=c("undefined");function f(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d=a("ArrayBuffer");function h(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t}const p=c("string"),g=c("function"),m=c("number"),b=e=>null!==e&&"object"===typeof e,y=e=>!0===e||!1===e,w=e=>{if("object"!==i(e))return!1;const t=s(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},O=a("Date"),E=a("File"),v=a("Blob"),R=a("FileList"),x=e=>b(e)&&g(e.pipe),F=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=i(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},S=a("URLSearchParams"),[j,B,T,A]=["ReadableStream","Request","Response","Headers"].map(a),P=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function C(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,o;if("object"!==typeof e&&(e=[e]),l(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function k(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;while(o-- >0)if(r=n[o],t===r.toLowerCase())return r;return null}const _=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:n.g)(),N=e=>!u(e)&&e!==_;function D(){const{caseless:e}=N(this)&&this||{},t={},n=(n,r)=>{const o=e&&k(t,r)||r;w(t[o])&&w(n)?t[o]=D(t[o],n):w(n)?t[o]=D({},n):l(n)?t[o]=n.slice():t[o]=n};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&C(arguments[r],n);return t}const L=(e,t,n,{allOwnKeys:o}={})=>(C(t,((t,o)=>{n&&g(t)?e[o]=r(t,n):e[o]=t}),{allOwnKeys:o}),e),U=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),M=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},q=(e,t,n,r)=>{let o,i,a;const c={};if(t=t||{},null==e)return t;do{o=Object.getOwnPropertyNames(e),i=o.length;while(i-- >0)a=o[i],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},$=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},I=e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},z=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&s(Uint8Array)),W=(e,t)=>{const n=e&&e[Symbol.iterator],r=n.call(e);let o;while((o=r.next())&&!o.done){const n=o.value;t.call(e,n[0],n[1])}},H=(e,t)=>{let n;const r=[];while(null!==(n=e.exec(t)))r.push(n);return r},J=a("HTMLFormElement"),G=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),K=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),V=a("RegExp"),X=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};C(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},Y=e=>{X(e,((t,n)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];g(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},Q=(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return l(e)?r(e):r(String(e).split(t)),n},Z=()=>{},ee=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,te="abcdefghijklmnopqrstuvwxyz",ne="0123456789",re={DIGIT:ne,ALPHA:te,ALPHA_DIGIT:te+te.toUpperCase()+ne},oe=(e=16,t=re.ALPHA_DIGIT)=>{let n="";const{length:r}=t;while(e--)n+=t[Math.random()*r|0];return n};function se(e){return!!(e&&g(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const ie=e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=l(e)?[]:{};return C(e,((e,t)=>{const s=n(e,r+1);!u(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},ae=a("AsyncFunction"),ce=e=>e&&(b(e)||g(e))&&g(e.then)&&g(e.catch),le=((e,t)=>e?setImmediate:t?((e,t)=>(_.addEventListener("message",(({source:n,data:r})=>{n===_&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),_.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"===typeof setImmediate,g(_.postMessage)),ue="undefined"!==typeof queueMicrotask?queueMicrotask.bind(_):"undefined"!==typeof process&&process.nextTick||le;var fe={isArray:l,isArrayBuffer:d,isBuffer:f,isFormData:F,isArrayBufferView:h,isString:p,isNumber:m,isBoolean:y,isObject:b,isPlainObject:w,isReadableStream:j,isRequest:B,isResponse:T,isHeaders:A,isUndefined:u,isDate:O,isFile:E,isBlob:v,isRegExp:V,isFunction:g,isStream:x,isURLSearchParams:S,isTypedArray:z,isFileList:R,forEach:C,merge:D,extend:L,trim:P,stripBOM:U,inherits:M,toFlatObject:q,kindOf:i,kindOfTest:a,endsWith:$,toArray:I,forEachEntry:W,matchAll:H,isHTMLForm:J,hasOwnProperty:K,hasOwnProp:K,reduceDescriptors:X,freezeMethods:Y,toObjectSet:Q,toCamelCase:G,noop:Z,toFiniteNumber:ee,findKey:k,global:_,isContextDefined:N,ALPHABET:re,generateString:oe,isSpecCompliantForm:se,toJSONObject:ie,isAsyncFn:ae,isThenable:ce,setImmediate:le,asap:ue};function de(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}fe.inherits(de,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const he=de.prototype,pe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{pe[e]={value:e}})),Object.defineProperties(de,pe),Object.defineProperty(he,"isAxiosError",{value:!0}),de.from=(e,t,n,r,o,s)=>{const i=Object.create(he);return fe.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),de.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};var ge=null;function me(e){return fe.isPlainObject(e)||fe.isArray(e)}function be(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function ye(e,t,n){return e?e.concat(t).map((function(e,t){return e=be(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function we(e){return fe.isArray(e)&&!e.some(me)}const Oe=fe.toFlatObject(fe,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ee(e,t,n){if(!fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!fe.isUndefined(t[e])}));const r=n.metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,a=n.Blob||"undefined"!==typeof Blob&&Blob,c=a&&fe.isSpecCompliantForm(t);if(!fe.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(fe.isDate(e))return e.toISOString();if(!c&&fe.isBlob(e))throw new de("Blob is not supported. Use a Buffer instead.");return fe.isArrayBuffer(e)||fe.isTypedArray(e)?c&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"===typeof e)if(fe.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(fe.isArray(e)&&we(e)||(fe.isFileList(e)||fe.endsWith(n,"[]"))&&(a=fe.toArray(e)))return n=be(n),a.forEach((function(e,r){!fe.isUndefined(e)&&null!==e&&t.append(!0===i?ye([n],r,s):null===i?n:n+"[]",l(e))})),!1;return!!me(e)||(t.append(ye(o,n,s),l(e)),!1)}const f=[],d=Object.assign(Oe,{defaultVisitor:u,convertValue:l,isVisitable:me});function h(e,n){if(!fe.isUndefined(e)){if(-1!==f.indexOf(e))throw Error("Circular reference detected in "+n.join("."));f.push(e),fe.forEach(e,(function(e,r){const s=!(fe.isUndefined(e)||null===e)&&o.call(t,e,fe.isString(r)?r.trim():r,n,d);!0===s&&h(e,n?n.concat(r):[r])})),f.pop()}}if(!fe.isObject(e))throw new TypeError("data must be an object");return h(e),t}function ve(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Re(e,t){this._pairs=[],e&&Ee(e,this,t)}const xe=Re.prototype;function Fe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Se(e,t,n){if(!t)return e;const r=n&&n.encode||Fe,o=n&&n.serialize;let s;if(s=o?o(t,n):fe.isURLSearchParams(t)?t.toString():new Re(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}xe.append=function(e,t){this._pairs.push([e,t])},xe.toString=function(e){const t=e?function(t){return e.call(this,t,ve)}:ve;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class je{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){fe.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Be=je,Te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ae="undefined"!==typeof URLSearchParams?URLSearchParams:Re,Pe="undefined"!==typeof FormData?FormData:null,Ce="undefined"!==typeof Blob?Blob:null,ke={isBrowser:!0,classes:{URLSearchParams:Ae,FormData:Pe,Blob:Ce},protocols:["http","https","file","blob","url","data"]};const _e="undefined"!==typeof window&&"undefined"!==typeof document,Ne=(e=>_e&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!==typeof navigator&&navigator.product),De=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Le=_e&&window.location.href||"http://localhost";var Ue=Object.freeze({__proto__:null,hasBrowserEnv:_e,hasStandardBrowserWebWorkerEnv:De,hasStandardBrowserEnv:Ne,origin:Le}),Me={...Ue,...ke};function qe(e,t){return Ee(e,new Me.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Me.isNode&&fe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function $e(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function Ie(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function ze(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&fe.isArray(r)?r.length:s,a)return fe.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&fe.isObject(r[s])||(r[s]=[]);const c=t(e,n,r[s],o);return c&&fe.isArray(r[s])&&(r[s]=Ie(r[s])),!i}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};return fe.forEachEntry(e,((e,r)=>{t($e(e),r,n,0)})),n}return null}function We(e,t,n){if(fe.isString(e))try{return(t||JSON.parse)(e),fe.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}const He={transitional:Te,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=fe.isObject(e);o&&fe.isHTMLForm(e)&&(e=new FormData(e));const s=fe.isFormData(e);if(s)return r?JSON.stringify(ze(e)):e;if(fe.isArrayBuffer(e)||fe.isBuffer(e)||fe.isStream(e)||fe.isFile(e)||fe.isBlob(e)||fe.isReadableStream(e))return e;if(fe.isArrayBufferView(e))return e.buffer;if(fe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return qe(e,this.formSerializer).toString();if((i=fe.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ee(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),We(e)):e}],transformResponse:[function(e){const t=this.transitional||He.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(fe.isResponse(e)||fe.isReadableStream(e))return e;if(e&&fe.isString(e)&&(n&&!this.responseType||r)){const n=t&&t.silentJSONParsing,s=!n&&r;try{return JSON.parse(e)}catch(o){if(s){if("SyntaxError"===o.name)throw de.from(o,de.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fe.forEach(["delete","get","head","post","put","patch"],(e=>{He.headers[e]={}}));var Je=He;const Ge=fe.toObjectSet(["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","user-agent"]);var Ke=e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ge[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t};const Ve=Symbol("internals");function Xe(e){return e&&String(e).trim().toLowerCase()}function Ye(e){return!1===e||null==e?e:fe.isArray(e)?e.map(Ye):String(e)}function Qe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(e))t[r[1]]=r[2];return t}const Ze=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function et(e,t,n,r,o){return fe.isFunction(r)?r.call(this,t,n):(o&&(t=n),fe.isString(t)?fe.isString(r)?-1!==t.indexOf(r):fe.isRegExp(r)?r.test(t):void 0:void 0)}function tt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function nt(e,t){const n=fe.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}class rt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Xe(t);if(!o)throw new Error("header name must be a non-empty string");const s=fe.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Ye(e))}const s=(e,t)=>fe.forEach(e,((e,n)=>o(e,n,t)));if(fe.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(fe.isString(e)&&(e=e.trim())&&!Ze(e))s(Ke(e),t);else if(fe.isHeaders(e))for(const[i,a]of e.entries())o(a,i,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Xe(e),e){const n=fe.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return Qe(e);if(fe.isFunction(t))return t.call(this,e,n);if(fe.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Xe(e),e){const n=fe.findKey(this,e);return!(!n||void 0===this[n]||t&&!et(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Xe(e),e){const o=fe.findKey(n,e);!o||t&&!et(n,n[o],o,t)||(delete n[o],r=!0)}}return fe.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;while(n--){const o=t[n];e&&!et(this,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return fe.forEach(this,((r,o)=>{const s=fe.findKey(n,o);if(s)return t[s]=Ye(r),void delete t[o];const i=e?tt(o):String(o).trim();i!==o&&delete t[o],t[i]=Ye(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return fe.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&fe.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=this[Ve]=this[Ve]={accessors:{}},n=t.accessors,r=this.prototype;function o(e){const t=Xe(e);n[t]||(nt(r,e),n[t]=!0)}return fe.isArray(e)?e.forEach(o):o(e),this}}rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),fe.reduceDescriptors(rt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),fe.freezeMethods(rt);var ot=rt;function st(e,t){const n=this||Je,r=t||n,o=ot.from(r.headers);let s=r.data;return fe.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function it(e){return!(!e||!e.__CANCEL__)}function at(e,t,n){de.call(this,null==e?"canceled":e,de.ERR_CANCELED,t,n),this.name="CanceledError"}function ct(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function lt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ut(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,f=0;while(u!==s)f+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}}function ft(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)},a=(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout((()=>{r=null,i(n)}),s-a)))},c=()=>n&&i(n);return[a,c]}fe.inherits(at,de,{__CANCEL__:!0});const dt=(e,t,n=3)=>{let r=0;const o=ut(50,250);return ft((n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a),l=s<=i;r=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&l?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0};e(u)}),n)},ht=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},pt=e=>(...t)=>fe.asap((()=>e(...t)));var gt=Me.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=fe.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),mt=Me.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];fe.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),fe.isString(r)&&i.push("path="+r),fe.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wt(e,t){return e&&!bt(t)?yt(e,t):t}const Ot=e=>e instanceof ot?{...e}:e;function Et(e,t){t=t||{};const n={};function r(e,t,n){return fe.isPlainObject(e)&&fe.isPlainObject(t)?fe.merge.call({caseless:n},e,t):fe.isPlainObject(t)?fe.merge({},t):fe.isArray(t)?t.slice():t}function o(e,t,n){return fe.isUndefined(t)?fe.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!fe.isUndefined(t))return r(void 0,t)}function i(e,t){return fe.isUndefined(t)?fe.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(Ot(e),Ot(t),!0)};return fe.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);fe.isUndefined(i)&&s!==a||(n[r]=i)})),n}var vt=e=>{const t=Et({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:c}=t;if(t.headers=a=ot.from(a),t.url=Se(wt(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),fe.isFormData(r))if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(Me.hasStandardBrowserEnv&&(o&&fe.isFunction(o)&&(o=o(t)),o||!1!==o&&gt(t.url))){const e=s&&i&&mt.read(i);e&&a.set(s,e)}return t};const Rt="undefined"!==typeof XMLHttpRequest;var xt=Rt&&function(e){return new Promise((function(t,n){const r=vt(e);let o=r.data;const s=ot.from(r.headers).normalize();let i,a,c,l,u,{responseType:f,onUploadProgress:d,onDownloadProgress:h}=r;function p(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=ot.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),o=f&&"text"!==f&&"json"!==f?g.response:g.responseText,s={data:o,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};ct((function(e){t(e),p()}),(function(e){n(e),p()}),s),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new de("Request aborted",de.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new de("Network Error",de.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Te;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new de(t,o.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,g)),g=null},void 0===o&&s.setContentType(null),"setRequestHeader"in g&&fe.forEach(s.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),fe.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),f&&"json"!==f&&(g.responseType=r.responseType),h&&([c,u]=dt(h,!0),g.addEventListener("progress",c)),d&&g.upload&&([a,l]=dt(d),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(i=t=>{g&&(n(!t||t.type?new at(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const b=lt(r.url);b&&-1===Me.protocols.indexOf(b)?n(new de("Unsupported protocol "+b+":",de.ERR_BAD_REQUEST,e)):g.send(o||null)}))};const Ft=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof de?t:new at(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{o(new de(`timeout ${t} of ms exceeded`,de.ETIMEDOUT))}),t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=i,[a,()=>{s&&clearTimeout(s),s=null}]};var St=Ft;const jt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;while(o<n)r=o+t,yield e.slice(o,r),o=r},Bt=async function*(e,t,n){for await(const r of e)yield*jt(ArrayBuffer.isView(r)?r:await n(String(r)),t)},Tt=(e,t,n,r,o)=>{const s=Bt(e,t,o);let i,a=0,c=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await s.next();if(t)return c(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw c(t),t}},cancel(e){return c(e),s.return()}},{highWaterMark:2})},At="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Pt=At&&"function"===typeof ReadableStream,Ct=At&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),kt=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},_t=Pt&&kt((()=>{let e=!1;const t=new Request(Me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Nt=65536,Dt=Pt&&kt((()=>fe.isReadableStream(new Response("").body))),Lt={stream:Dt&&(e=>e.body)};At&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Lt[t]&&(Lt[t]=fe.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new de(`Response type '${t}' is not supported`,de.ERR_NOT_SUPPORT,n)})}))})(new Response);const Ut=async e=>null==e?0:fe.isBlob(e)?e.size:fe.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:fe.isArrayBufferView(e)||fe.isArrayBuffer(e)?e.byteLength:(fe.isURLSearchParams(e)&&(e+=""),fe.isString(e)?(await Ct(e)).byteLength:void 0),Mt=async(e,t)=>{const n=fe.toFiniteNumber(e.getContentLength());return null==n?Ut(t):n};var qt=At&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:f="same-origin",fetchOptions:d}=vt(e);l=l?(l+"").toLowerCase():"text";let h,p,[g,m]=o||s||i?St([o,s],i):[];const b=()=>{!h&&setTimeout((()=>{g&&g.unsubscribe()})),h=!0};let y;try{if(c&&_t&&"get"!==n&&"head"!==n&&0!==(y=await Mt(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(fe.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=ht(y,dt(pt(c)));r=Tt(n.body,Nt,e,t,Ct)}}fe.isString(f)||(f=f?"include":"omit"),p=new Request(t,{...d,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:f});let o=await fetch(p);const s=Dt&&("stream"===l||"response"===l);if(Dt&&(a||s)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=fe.toFiniteNumber(o.headers.get("content-length")),[n,r]=a&&ht(t,dt(pt(a),!0))||[];o=new Response(Tt(o.body,Nt,n,(()=>{r&&r(),s&&b()}),Ct),e)}l=l||"text";let i=await Lt[fe.findKey(Lt,l)||"text"](o,e);return!s&&b(),m&&m(),await new Promise(((t,n)=>{ct(t,n,{data:i,headers:ot.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(w){if(b(),w&&"TypeError"===w.name&&/fetch/i.test(w.message))throw Object.assign(new de("Network Error",de.ERR_NETWORK,e,p),{cause:w.cause||w});throw de.from(w,w&&w.code,e,p)}});const $t={http:ge,xhr:xt,fetch:qt};fe.forEach($t,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const It=e=>`- ${e}`,zt=e=>fe.isFunction(e)||null===e||!1===e;var Wt={getAdapter:e=>{e=fe.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){let t;if(n=e[s],r=n,!zt(n)&&(r=$t[(t=String(n)).toLowerCase()],void 0===r))throw new de(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+s]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(It).join("\n"):" "+It(e[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r},adapters:$t};function Ht(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new at(null,e)}function Jt(e){Ht(e),e.headers=ot.from(e.headers),e.data=st.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=Wt.getAdapter(e.adapter||Je.adapter);return t(e).then((function(t){return Ht(e),t.data=st.call(e,e.transformResponse,t),t.headers=ot.from(t.headers),t}),(function(t){return it(t)||(Ht(e),t&&t.response&&(t.response.data=st.call(e,e.transformResponse,t.response),t.response.headers=ot.from(t.response.headers))),Promise.reject(t)}))}const Gt="1.7.4",Kt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Kt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Vt={};function Xt(e,t,n){if("object"!==typeof e)throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;while(o-- >0){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new de("option "+s+" must be "+n,de.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new de("Unknown option "+s,de.ERR_BAD_OPTION)}}Kt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Gt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new de(r(o," has been removed"+(t?" in "+t:"")),de.ERR_DEPRECATED);return t&&!Vt[o]&&(Vt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}};var Yt={assertOptions:Xt,validators:Kt};const Qt=Yt.validators;class Zt{constructor(e){this.defaults=e,this.interceptors={request:new Be,response:new Be}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Et(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Yt.assertOptions(n,{silentJSONParsing:Qt.transitional(Qt.boolean),forcedJSONParsing:Qt.transitional(Qt.boolean),clarifyTimeoutError:Qt.transitional(Qt.boolean)},!1),null!=r&&(fe.isFunction(r)?t.paramsSerializer={serialize:r}:Yt.assertOptions(r,{encode:Qt.function,serialize:Qt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&fe.merge(o.common,o[t.method]);o&&fe.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ot.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,f=0;if(!a){const e=[Jt.bind(this),void 0];e.unshift.apply(e,i),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);while(f<u)l=l.then(e[f++],e[f++]);return l}u=i.length;let d=t;f=0;while(f<u){const e=i[f++],t=i[f++];try{d=e(d)}catch(h){t.call(this,h);break}}try{l=Jt.call(this,d)}catch(h){return Promise.reject(h)}f=0,u=c.length;while(f<u)l=l.then(c[f++],c[f++]);return l}getUri(e){e=Et(this.defaults,e);const t=wt(e.baseURL,e.url);return Se(t,e.params,e.paramsSerializer)}}fe.forEach(["delete","get","head","options"],(function(e){Zt.prototype[e]=function(t,n){return this.request(Et(n||{},{method:e,url:t,data:(n||{}).data}))}})),fe.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Et(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Zt.prototype[e]=t(),Zt.prototype[e+"Form"]=t(!0)}));var en=Zt;class tn{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new at(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new tn((function(t){e=t}));return{token:t,cancel:e}}}var nn=tn;function rn(e){return function(t){return e.apply(null,t)}}function on(e){return fe.isObject(e)&&!0===e.isAxiosError}const sn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(sn).forEach((([e,t])=>{sn[t]=e}));var an=sn;function cn(e){const t=new en(e),n=r(en.prototype.request,t);return fe.extend(n,en.prototype,t,{allOwnKeys:!0}),fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return cn(Et(e,t))},n}const ln=cn(Je);ln.Axios=en,ln.CanceledError=at,ln.CancelToken=nn,ln.isCancel=it,ln.VERSION=Gt,ln.toFormData=Ee,ln.AxiosError=de,ln.Cancel=ln.CanceledError,ln.all=function(e){return Promise.all(e)},ln.spread=rn,ln.isAxiosError=on,ln.mergeConfig=Et,ln.AxiosHeaders=ot,ln.formToJSON=e=>ze(fe.isHTMLForm(e)?new FormData(e):e),ln.getAdapter=Wt.getAdapter,ln.HttpStatusCode=an,ln.default=ln,e.exports=ln}}]);
112
+ //# sourceMappingURL=191.d1d8acb0.js.map