@camera.ui/server 0.0.41 → 0.0.42

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 (134) hide show
  1. package/dist/interface/@tanstack.eLHW7NcP.0.0.42.js +1 -0
  2. package/dist/interface/{@vee-validate.BN6pp7gT.0.0.41.js → @vee-validate.BAfChhT9.0.0.42.js} +1 -1
  3. package/dist/interface/{@vue.HgptpWSe.0.0.41.js → @vue.BdBOeiq-.0.0.42.js} +1 -1
  4. package/dist/interface/{@vueform.o-ddyf2r.0.0.41.js → @vueform.ARIqMcEu.0.0.42.js} +1 -1
  5. package/dist/interface/{@vueuse.0AqyrsW4.0.0.41.js → @vueuse.f0xYzGEw.0.0.42.js} +1 -1
  6. package/dist/interface/{Account.rWnoeynZ.0.0.41.js → Account.Dbr6AdoJ.0.0.42.js} +1 -1
  7. package/dist/interface/{Adminpanel.DmVBZO7B.0.0.41.js → Adminpanel.BIIY54qZ.0.0.42.js} +2 -2
  8. package/dist/interface/{Appearance.CWq9SdBF.0.0.41.js → Appearance.DKbGgHO4.0.0.42.js} +1 -1
  9. package/dist/interface/{Backup.gg2dY5Kw.0.0.41.js → Backup.DiStp89f.0.0.42.js} +1 -1
  10. package/dist/interface/{Camera.DC8dTFKj.0.0.41.js → Camera.DZhko6aD.0.0.42.js} +1 -1
  11. package/dist/interface/{Cameras.BTbXKjiK.0.0.41.js → Cameras.D_RxbjSn.0.0.42.js} +1 -1
  12. package/dist/interface/{Camview.9qmsYNcJ.0.0.41.js → Camview.CRziyvAE.0.0.42.js} +1 -1
  13. package/dist/interface/{Config.B6iyCBiG.0.0.41.js → Config.CIHxeWbL.0.0.42.js} +1 -1
  14. package/dist/interface/{Console.D8_i4IrL.0.0.41.js → Console.DxMp1yEc.0.0.42.js} +1 -1
  15. package/dist/interface/{FirstSteps.CNdfoio6.0.0.41.js → FirstSteps.CZrsOY_A.0.0.42.js} +1 -1
  16. package/dist/interface/{NewCamera.DboRF8X5.0.0.41.js → NewCamera.CJjItJcA.0.0.42.js} +1 -1
  17. package/dist/interface/{Plugin.CtbpXA8-.0.0.41.js → Plugin.CNE9ofv3.0.0.42.js} +1 -1
  18. package/dist/interface/{Plugins.C-h6Ohpb.0.0.41.js → Plugins.B1r9Pdzn.0.0.42.js} +1 -1
  19. package/dist/interface/Recordings.BKxx73-a.0.0.42.js +1 -0
  20. package/dist/interface/Recordings.BR9V4O3H.0.0.42.js +1 -0
  21. package/dist/interface/{Settings.BLIeDAua.0.0.41.js → Settings.BLNvU80D.0.0.42.js} +1 -1
  22. package/dist/interface/{System.ttFMkejl.0.0.41.js → System.1EeBkZqd.0.0.42.js} +1 -1
  23. package/dist/interface/{User.ByejsWGp.0.0.41.js → User.VypM0Fal.0.0.42.js} +1 -1
  24. package/dist/interface/{VConfigEditor.vue_vue_type_script_setup_true_lang.Cl2zDL7n.0.0.41.js → VConfigEditor.vue_vue_type_script_setup_true_lang.BunWkSow.0.0.42.js} +2 -2
  25. package/dist/interface/{VConsole.C_RAZERN.0.0.41.js → VConsole.DNZXpTeP.0.0.42.js} +1 -1
  26. package/dist/interface/{VPlayer.C-i6REq9.0.0.41.js → VPlayer.C8lnRmAC.0.0.42.js} +1 -1
  27. package/dist/interface/{VPluginCard.DuHfeDOo.0.0.41.js → VPluginCard.lgx1bsOh.0.0.42.js} +1 -1
  28. package/dist/interface/{ace-builds.CJ5_HA6k.0.0.41.js → ace-builds.DnVkAAFx.0.0.42.js} +1 -1
  29. package/dist/interface/{apexcharts.BvzAjsR8.0.0.41.js → apexcharts.DG5_gZNd.0.0.42.js} +1 -1
  30. package/dist/interface/{axios.CG9kBweI.0.0.41.js → axios.DIsA03vz.0.0.42.js} +1 -1
  31. package/dist/interface/{backup.Eqa_gnBJ.0.0.41.js → backup.RjMQrvXV.0.0.42.js} +1 -1
  32. package/dist/interface/{dnd-core.DlR0vdws.0.0.41.js → dnd-core.DeGHWzvT.0.0.42.js} +1 -1
  33. package/dist/interface/{draggabilly.MGblyd4O.0.0.41.js → draggabilly.Az-MfZgR.0.0.42.js} +1 -1
  34. package/dist/interface/{engine.io-client.Bmv4tt9j.0.0.41.js → engine.io-client.CF00OIS7.0.0.42.js} +1 -1
  35. package/dist/interface/{fast-deep-equal.CltXOu8w.0.0.41.js → fast-deep-equal.BXJJeuC4.0.0.42.js} +1 -1
  36. package/dist/interface/{highlight.js.BI1DQKiW.0.0.41.js → highlight.js.CIqbmQ7C.0.0.42.js} +1 -1
  37. package/dist/interface/index.html +32 -32
  38. package/dist/interface/{linkify-it.DIqOOItF.0.0.41.js → linkify-it.CKk8PpxN.0.0.42.js} +1 -1
  39. package/dist/interface/main.UISdF3me.0.0.42.js +4 -0
  40. package/dist/interface/{markdown-it.BoSfr4I_.0.0.41.js → markdown-it.Dbxz_ULT.0.0.42.js} +1 -1
  41. package/dist/interface/{nprogress.B4qekFjh.0.0.41.js → nprogress.NNZV18oa.0.0.42.js} +1 -1
  42. package/dist/interface/{pinia.CzEXGLAe.0.0.41.js → pinia.Cp-l9HGG.0.0.42.js} +2 -2
  43. package/dist/interface/{plugins.5zIS5blM.0.0.41.js → plugins.DGYkLbo6.0.0.42.js} +1 -1
  44. package/dist/interface/{qrcode.BIXps75H.0.0.41.js → qrcode.DDQCZj2E.0.0.42.js} +1 -1
  45. package/dist/interface/{react-dnd-touch-backend.BP3qju5g.0.0.41.js → react-dnd-touch-backend.B37boCwi.0.0.42.js} +1 -1
  46. package/dist/interface/{rxjs.Dq5nE0it.0.0.41.js → rxjs.Cev1RieB.0.0.42.js} +1 -1
  47. package/dist/interface/{socket.io-client.Dd2M9OF7.0.0.41.js → socket.io-client.C-1xTpnq.0.0.42.js} +1 -1
  48. package/dist/interface/{socket.io-parser.BP9NTxl9.0.0.41.js → socket.io-parser.BEw_j0GT.0.0.42.js} +1 -1
  49. package/dist/interface/sw.js +1 -1
  50. package/dist/interface/{system.CX3eZanU.0.0.41.js → system.B5jyMq14.0.0.42.js} +1 -1
  51. package/dist/interface/{unidragger.Coz7gnad.0.0.41.js → unidragger.nnXyFKz_.0.0.42.js} +1 -1
  52. package/dist/interface/{vee-validate.rx6EoM-V.0.0.41.js → vee-validate.qiUoqTto.0.0.42.js} +1 -1
  53. package/dist/interface/{vue-i18n.CLbC5t4S.0.0.41.js → vue-i18n.BlZr5K2E.0.0.42.js} +1 -1
  54. package/dist/interface/{vue-inline-svg.BHDMo3hs.0.0.41.js → vue-inline-svg.f9lpuPZy.0.0.42.js} +1 -1
  55. package/dist/interface/{vue-router.BlIBZAV8.0.0.41.js → vue-router.B4qL3wgp.0.0.42.js} +1 -1
  56. package/dist/interface/{vue3-apexcharts.CJu6sQGy.0.0.41.js → vue3-apexcharts.BALWKgyK.0.0.42.js} +1 -1
  57. package/dist/interface/{vue3-dnd.CKocKVAc.0.0.41.js → vue3-dnd.TDFxKrbc.0.0.42.js} +1 -1
  58. package/dist/interface/{vue3-toastify.B344fBI7.0.0.41.js → vue3-toastify.C-4dlaWB.0.0.42.js} +1 -1
  59. package/dist/interface/{vuetify.cl53-mu0.0.0.41.js → vuetify.C0h7Mge1.0.0.42.js} +1 -1
  60. package/dist/interface/zod.bkdEMpUp.0.0.42.js +1 -0
  61. package/dist/server/package.json +10 -10
  62. package/dist/server/requirements.txt +1 -1
  63. package/dist/server/src/api/websocket/nsp/metrics.js.map +1 -1
  64. package/dist/server/src/api/websocket/nsp/status.js.map +1 -1
  65. package/dist/server/src/camera/controller.js +4 -5
  66. package/dist/server/src/camera/controller.js.map +1 -1
  67. package/dist/server/src/nats/index.d.ts +2 -2
  68. package/dist/server/src/nats/index.js +2 -2
  69. package/dist/server/src/nats/index.js.map +1 -1
  70. package/dist/server/src/nats/server.d.ts +1 -1
  71. package/dist/server/src/nats/server.js +1 -1
  72. package/dist/server/src/nats/server.js.map +1 -1
  73. package/package.json +10 -10
  74. package/dist/interface/@tanstack.BMdKtFKV.0.0.41.js +0 -1
  75. package/dist/interface/Recordings.DDez2bDG.0.0.41.js +0 -1
  76. package/dist/interface/Recordings.nAMAxDb-.0.0.41.js +0 -1
  77. package/dist/interface/main.DGoYNhZz.0.0.41.js +0 -5
  78. package/dist/interface/point-in-polygon-hao.l0sNRNKZ.0.0.41.js +0 -1
  79. package/dist/interface/sweepline-intersections.l0sNRNKZ.0.0.41.js +0 -1
  80. package/dist/interface/vue.l0sNRNKZ.0.0.41.js +0 -1
  81. package/dist/interface/zod.Bn-rxnIN.0.0.41.js +0 -1
  82. /package/dist/interface/{@babel.l0sNRNKZ.0.0.41.js → @babel.l0sNRNKZ.0.0.42.js} +0 -0
  83. /package/dist/interface/{@intlify.Do1-T-x0.0.0.41.js → @intlify.Do1-T-x0.0.0.42.js} +0 -0
  84. /package/dist/interface/{@mdi.CbjpODVZ.0.0.41.js → @mdi.CbjpODVZ.0.0.42.js} +0 -0
  85. /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.41.js → @react-dnd.CcwRs9xb.0.0.42.js} +0 -0
  86. /package/dist/interface/{@socket.io.Dkula2eQ.0.0.41.js → @socket.io.Dkula2eQ.0.0.42.js} +0 -0
  87. /package/dist/interface/{@xterm.ChIdrMXz.0.0.41.js → @xterm.DcCEcUkn.0.0.42.js} +0 -0
  88. /package/dist/interface/assets/{@vueform.0.0.41.CroAHJs8.css → @vueform.0.0.42.CroAHJs8.css} +0 -0
  89. /package/dist/interface/assets/{@xterm.0.0.41.CFbL2ovg.css → @xterm.0.0.42.CFbL2ovg.css} +0 -0
  90. /package/dist/interface/assets/{Account.0.0.41.Bnw6Lbtd.css → Account.0.0.42.Bnw6Lbtd.css} +0 -0
  91. /package/dist/interface/assets/{Adminpanel.0.0.41.a3t1v3MB.css → Adminpanel.0.0.42.a3t1v3MB.css} +0 -0
  92. /package/dist/interface/assets/{Backup.0.0.41.CX0rT0QJ.css → Backup.0.0.42.CX0rT0QJ.css} +0 -0
  93. /package/dist/interface/assets/{Camera.0.0.41.Br9s6-lM.css → Camera.0.0.42.Br9s6-lM.css} +0 -0
  94. /package/dist/interface/assets/{Cameras.0.0.41.Buf1Dgce.css → Cameras.0.0.42.Buf1Dgce.css} +0 -0
  95. /package/dist/interface/assets/{Camview.0.0.41.B7Cja2ry.css → Camview.0.0.42.B7Cja2ry.css} +0 -0
  96. /package/dist/interface/assets/{Config.0.0.41.DNGo2krN.css → Config.0.0.42.DNGo2krN.css} +0 -0
  97. /package/dist/interface/assets/{Console.0.0.41.Bh8l9QnM.css → Console.0.0.42.Bh8l9QnM.css} +0 -0
  98. /package/dist/interface/assets/{FirstSteps.0.0.41.Mu8VPl13.css → FirstSteps.0.0.42.Mu8VPl13.css} +0 -0
  99. /package/dist/interface/assets/{NewCamera.0.0.41.C7CL-ujd.css → NewCamera.0.0.42.C7CL-ujd.css} +0 -0
  100. /package/dist/interface/assets/{Plugin.0.0.41.YIpAU1_n.css → Plugin.0.0.42.YIpAU1_n.css} +0 -0
  101. /package/dist/interface/assets/{Plugins.0.0.41.DXSoO9M1.css → Plugins.0.0.42.DXSoO9M1.css} +0 -0
  102. /package/dist/interface/assets/{Settings.0.0.41.CVmui2kE.css → Settings.0.0.42.CVmui2kE.css} +0 -0
  103. /package/dist/interface/assets/{User.0.0.41.BiGtIFqt.css → User.0.0.42.BiGtIFqt.css} +0 -0
  104. /package/dist/interface/assets/{VConsole.0.0.41.BCqKHpmJ.css → VConsole.0.0.42.BCqKHpmJ.css} +0 -0
  105. /package/dist/interface/assets/{VPlayer.0.0.41.C4lm2rVR.css → VPlayer.0.0.42.C4lm2rVR.css} +0 -0
  106. /package/dist/interface/assets/{VPluginCard.0.0.41.C8Lj6X-J.css → VPluginCard.0.0.42.C8Lj6X-J.css} +0 -0
  107. /package/dist/interface/assets/{highlight.0.0.41.Ch2EwETz.css → highlight.0.0.42.Ch2EwETz.css} +0 -0
  108. /package/dist/interface/assets/{logo-256.0.0.41.BCQk9H1-.png → logo-256.0.0.42.BCQk9H1-.png} +0 -0
  109. /package/dist/interface/assets/{logo-512.0.0.41.DLKVOU2S.png → logo-512.0.0.42.DLKVOU2S.png} +0 -0
  110. /package/dist/interface/assets/{logo.0.0.41.DmEiRk0z.png → logo.0.0.42.DmEiRk0z.png} +0 -0
  111. /package/dist/interface/assets/{main.0.0.41.OJngntGT.css → main.0.0.42.OJngntGT.css} +0 -0
  112. /package/dist/interface/assets/{mode-json.0.0.41.Br7xisR1.js → mode-json.0.0.42.Br7xisR1.js} +0 -0
  113. /package/dist/interface/assets/{mode-yaml.0.0.41.CIYL8U3d.js → mode-yaml.0.0.42.CIYL8U3d.js} +0 -0
  114. /package/dist/interface/assets/{vue3-toastify.0.0.41.DHXAGmwn.css → vue3-toastify.0.0.42.DHXAGmwn.css} +0 -0
  115. /package/dist/interface/assets/{vuetify.0.0.41.Dua9WSqa.css → vuetify.0.0.42.Dua9WSqa.css} +0 -0
  116. /package/dist/interface/{@turf.l0sNRNKZ.0.0.41.js → birpc.l0sNRNKZ.0.0.42.js} +0 -0
  117. /package/dist/interface/{compare-versions.DqEOhma6.0.0.41.js → compare-versions.DqEOhma6.0.0.42.js} +0 -0
  118. /package/dist/interface/{dijkstrajs.C00ieaqj.0.0.41.js → dijkstrajs.C00ieaqj.0.0.42.js} +0 -0
  119. /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.41.js → engine.io-parser.BiEtp6m2.0.0.42.js} +0 -0
  120. /package/dist/interface/{entities.C20TfXL6.0.0.41.js → entities.C20TfXL6.0.0.42.js} +0 -0
  121. /package/dist/interface/{ev-emitter.X5f1qa-c.0.0.41.js → ev-emitter.X5f1qa-c.0.0.42.js} +0 -0
  122. /package/dist/interface/{get-size.D1dS-IaP.0.0.41.js → get-size.D1dS-IaP.0.0.42.js} +0 -0
  123. /package/dist/interface/{hookable.B8xFkYCm.0.0.41.js → hookable.B8xFkYCm.0.0.42.js} +0 -0
  124. /package/dist/interface/{mdurl.k9Sl0PQj.0.0.41.js → mdurl.k9Sl0PQj.0.0.42.js} +0 -0
  125. /package/dist/interface/{perfect-debounce.Cp2ysxOb.0.0.41.js → perfect-debounce.Cp2ysxOb.0.0.42.js} +0 -0
  126. /package/dist/interface/{punycode.js.Dj65hjkv.0.0.41.js → punycode.js.Dj65hjkv.0.0.42.js} +0 -0
  127. /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.41.js → react-dnd-html5-backend.1HQjlkwI.0.0.42.js} +0 -0
  128. /package/dist/interface/{redux.BFxtlG_c.0.0.41.js → redux.BFxtlG_c.0.0.42.js} +0 -0
  129. /package/dist/interface/{tslib.9k7AwCpt.0.0.41.js → tslib.9k7AwCpt.0.0.42.js} +0 -0
  130. /package/dist/interface/{types.Cz9TaZAP.0.0.41.js → types.Cz9TaZAP.0.0.42.js} +0 -0
  131. /package/dist/interface/{uc.micro.kMc2yuuw.0.0.41.js → uc.micro.kMc2yuuw.0.0.42.js} +0 -0
  132. /package/dist/interface/{utils.mAKpSMLY.0.0.41.js → utils.mAKpSMLY.0.0.42.js} +0 -0
  133. /package/dist/interface/{uuid.Ch9TGLTe.0.0.41.js → uuid.Ch9TGLTe.0.0.42.js} +0 -0
  134. /package/dist/interface/{birpc.l0sNRNKZ.0.0.41.js → vue.l0sNRNKZ.0.0.42.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{_ as vt}from"./VConfigEditor.vue_vue_type_script_setup_true_lang.Cl2zDL7n.0.0.41.js";import{y as yt,a as ht,j as bt,h as _t,e as wt,f as xt}from"./main.DGoYNhZz.0.0.41.js";import{G as Pt,t as kt,r as p,c as H,w as $,S as Vt,R as Ct,a5 as Nt,b as r,d as w,f as i,u as e,ac as S,P as n,ab as o,a7 as g,a9 as u,k as c,aa as y,m as Z,i as P,p as x,al as $t}from"./@vue.HgptpWSe.0.0.41.js";import{aw as pe,ab as Lt,h as St,g as zt,ax as ge,aa as At,ay as Qt,az as Bt,aA as Tt,T as Rt,aB as fe}from"./@mdi.CbjpODVZ.0.0.41.js";import{b as Ut}from"./@vueform.o-ddyf2r.0.0.41.js";import{i as Dt}from"./vue3-toastify.B344fBI7.0.0.41.js";import{P as It}from"./plugins.5zIS5blM.0.0.41.js";import{V as Et}from"./VConsole.C_RAZERN.0.0.41.js";import{P as _}from"./types.Cz9TaZAP.0.0.41.js";import{s as Ot}from"./pinia.CzEXGLAe.0.0.41.js";import{e as h,a as oe,_ as jt,p as ve,l as Wt,n as ye,b as U,f as z,j as Mt,o as Ht,H as Jt,I as Kt,J as Gt,z as Ft}from"./vuetify.cl53-mu0.0.0.41.js";const qt={class:"flex space-x-4 w-full"},Yt={key:0,class:"relative"},Xt={class:"absolute",style:{"z-index":"1",bottom:"0px",right:"-5px"}},Zt={class:"flex items-center w-full truncate",style:{height:"28px","max-height":"28px"}},el={key:0,class:"mx-1"},tl={class:"ml-auto"},ll={key:0},sl={key:0,class:"truncate text-sm text-disabled"},al={class:"w-full h-full py-3"},ol={class:"multiline-ellipsis text-disabled text-sm"},nl={class:"flex space-x-1 items-center h-full w-full mt-auto",style:{height:"28px","max-height":"28px"}},il={class:"flex items-center justify-center"},ul={style:{"font-size":"9pt"}},rl={style:{margin:"5px"}},dl={class:"flex flex-row w-full justify-start items-center"},cl={class:"icon-wrapper"},ml={class:"menu-item ml-2"},pl={key:1,class:"my-1"},gl={class:"flex flex-row w-full justify-start items-center"},fl={class:"icon-wrapper"},vl={class:"menu-item ml-2"},yl={key:2,class:"my-1"},hl={class:"flex flex-row w-full justify-start items-center"},bl={class:"icon-wrapper"},_l={class:"menu-item ml-2"},wl={key:3,class:"my-1"},xl={class:"flex flex-row w-full justify-start items-center"},Pl={class:"icon-wrapper"},kl={class:"menu-item ml-2"},Vl={key:5,class:"my-1"},Cl={class:"flex flex-row w-full justify-start items-center"},Nl={class:"icon-wrapper"},$l={class:"menu-item ml-2"},Ll={key:7,class:"my-1"},Sl={class:"flex flex-row w-full justify-start items-center"},zl={class:"icon-wrapper"},Al={class:"menu-item ml-2",style:{color:"#ef4444 !important"}},Ql={class:"text-white"},Bl={class:"v-label"},Tl=Pt({__name:"VPluginCard",props:{plugin:{},showInstallButton:{type:Boolean,default:!1},showToggle:{type:Boolean,default:!1},showSettings:{type:Boolean,default:!1},showLogo:{type:Boolean,default:!1},showRestart:{type:Boolean,default:!1},showPluginStatus:{type:Boolean,default:!1},showPluginType:{type:Boolean,default:!0},showPluginCode:{type:Boolean,default:!0},showFullPluginName:{type:Boolean,default:!1},showLogs:{type:Boolean,default:!1},showConfigs:{type:Boolean,default:!1},borderRadius:{default:"8px"},background:{default:"var(--background-inner-component)"},width:{default:"100%"},height:{default:"100%"},minWidth:{},maxWidth:{},minHeight:{},maxHeight:{}},emits:["isLoading"],setup(he,{emit:be}){const d=new It,ne=yt(),_e=ht(),{smallMobileActive:J}=bt(),we=be,xe=he,{plugin:t,background:ie,borderRadius:Pe,height:ke,minHeight:Ve,maxHeight:Ce,width:Ne,minWidth:$e,maxWidth:Le,showToggle:ue,showSettings:Se,showInstallButton:ze,showLogo:K,showRestart:Ae,showPluginStatus:re,showLogs:Qe,showConfigs:Be,showPluginType:Te,showPluginCode:de,showFullPluginName:Re}=kt(xe),{theme:Ue}=Ot(_e),D=p(""),ee=p(t.value.installedVersion||t.value.latestVersion),A=p(t.value.installedVersion||t.value.latestVersion),De=p(!1),k=p(),G=p(),Ie=p(null),m=p({color:"rgba(var(--color-rgb), 0.3)",text:_.UNKNOWN}),F=p(!1),L=p(!t.value.disabled),I=p(!1),Q=p(!1),V=p(!1),B=p(!1),T=p(!1),E=p(!1),q=p(!1),O=p(null);d.toggleQueryActivator("downloadLogQuery",!1),d.toggleQueryActivator("getPluginVersionsQuery",!1),d.toggleQueryActivator("getPluginConfigJsonQuery",!1),d.toggleQueryActivator("getPluginUpdateQuery",t.value.installPath!==void 0),d.toggleQueryActivator("getPluginLogoQuery",K.value);const{mutateAsync:Ee,isPending:Oe}=d.enablePluginQuery(),{mutateAsync:je,isPending:We}=d.disablePluginQuery(),{mutateAsync:Me,isPending:He}=d.startPluginQuery(),{mutateAsync:Je,isPending:Ke}=d.stopPluginQuery(),{mutateAsync:Ge,isPending:Fe}=d.restartPluginQuery(),{mutateAsync:qe,isPending:Ye}=d.installPluginQuery(),{mutateAsync:Xe,isPending:Ze}=d.uninstallPluginQuery(),{mutate:et,isPending:tt}=d.patchPluginConfigQuery(),{data:Y,isLoading:te}=d.getPluginVersionsQuery(t.value.pluginName),{data:j,isLoading:lt}=d.getPluginUpdateQuery(t.value.pluginName),{data:le,isLoading:st}=d.getPluginConfigJsonQuery(t.value.pluginName),{data:at,isLoading:ot}=d.getPluginLogoQuery(t.value.pluginName),{data:ce,isLoading:nt,suspense:it}=d.downloadLogQuery(t.value.pluginName),ut=H(()=>({fontSize:14,showGutter:!J.value})),rt=H(()=>({fontSize:J.value?12:14})),C=H(()=>De.value||Oe.value||We.value||Fe.value||Ze.value||Ye.value||He.value||Ke.value||st.value),W=H(()=>m.value.text===_.STOPPED||m.value.text===_.DISABLED||m.value.text===_.ERROR||m.value.text===_.UNKNOWN),dt=H(()=>{var l;const s=new Set;if(t.value["camera.ui"]){const f=t.value["camera.ui"];f.extension?s.add(f.extension):f.supportAdditionalCameras&&((l=f.builtIns)!=null&&l.length)&&(s.add("camera"),f.builtIns.forEach(R=>s.add(R)))}return s.size===0&&s.add("camera"),Array.from(s)});$(Y,()=>{var s;(s=Y.value)!=null&&s.versions.length&&(A.value=Y.value.versions[0])}),$(t,()=>{ee.value=t.value.installedVersion||t.value.latestVersion,L.value=!t.value.disabled},{deep:!0}),$(le,()=>{le.value&&(D.value=JSON.stringify(le.value,null,2))},{deep:!0,immediate:!0}),$(C,s=>we("isLoading",s)),$(Q,s=>{d.toggleQueryActivator("getPluginConfigJsonQuery",s)}),$(T,s=>{d.toggleQueryActivator("getPluginVersionsQuery",s)}),$(V,s=>{se(s),s||setTimeout(()=>{q.value=!1},300)}),$(J,()=>{ct()});const me=s=>{switch(s){case _.ERROR:m.value.color="#9d5752";break;case _.STARTING:m.value.color="orange",L.value=!0;break;case _.READY:m.value.color="yellow",L.value=!0;break;case _.STARTED:m.value.color="green",L.value=!0;break;case _.STOPPED:m.value.color="red";break;case _.DISABLED:m.value.color="transparent";break;case _.UNKNOWN:m.value.color="gray";break;default:m.value.color="gray";break}},se=s=>{var l,f,R,N,X,a,v;s?(k.value=ne.connectToNamespace("/logs"),(l=k.value)==null||l.socket.on(`stdout/${t.value.pluginName}`,b=>{var M;(M=O.value)==null||M.writeTerminal(b)}),(f=k.value)==null||f.socket.on("stdout",b=>{var M;(M=O.value)==null||M.writeTerminal(b)}),(R=k.value)==null||R.socket.on("disconnect",()=>{var b;(b=O.value)==null||b.writeTerminal(`\r
1
+ import{_ as vt}from"./VConfigEditor.vue_vue_type_script_setup_true_lang.BunWkSow.0.0.42.js";import{y as yt,a as ht,j as bt,h as _t,e as wt,f as xt}from"./main.UISdF3me.0.0.42.js";import{G as Pt,t as kt,r as p,c as H,w as $,S as Vt,R as Ct,a5 as Nt,b as r,d as w,f as i,u as e,ac as S,P as n,ab as o,a7 as g,a9 as u,k as c,aa as y,m as Z,i as P,p as x,al as $t}from"./@vue.BdBOeiq-.0.0.42.js";import{aw as pe,ab as Lt,h as St,g as zt,ax as ge,aa as At,ay as Qt,az as Bt,aA as Tt,T as Rt,aB as fe}from"./@mdi.CbjpODVZ.0.0.42.js";import{b as Ut}from"./@vueform.ARIqMcEu.0.0.42.js";import{i as Dt}from"./vue3-toastify.C-4dlaWB.0.0.42.js";import{P as It}from"./plugins.DGYkLbo6.0.0.42.js";import{V as Et}from"./VConsole.DNZXpTeP.0.0.42.js";import{P as _}from"./types.Cz9TaZAP.0.0.42.js";import{s as Ot}from"./pinia.Cp-l9HGG.0.0.42.js";import{e as h,a as oe,_ as jt,p as ve,l as Wt,n as ye,b as U,f as z,j as Mt,o as Ht,H as Jt,I as Kt,J as Gt,z as Ft}from"./vuetify.C0h7Mge1.0.0.42.js";const qt={class:"flex space-x-4 w-full"},Yt={key:0,class:"relative"},Xt={class:"absolute",style:{"z-index":"1",bottom:"0px",right:"-5px"}},Zt={class:"flex items-center w-full truncate",style:{height:"28px","max-height":"28px"}},el={key:0,class:"mx-1"},tl={class:"ml-auto"},ll={key:0},sl={key:0,class:"truncate text-sm text-disabled"},al={class:"w-full h-full py-3"},ol={class:"multiline-ellipsis text-disabled text-sm"},nl={class:"flex space-x-1 items-center h-full w-full mt-auto",style:{height:"28px","max-height":"28px"}},il={class:"flex items-center justify-center"},ul={style:{"font-size":"9pt"}},rl={style:{margin:"5px"}},dl={class:"flex flex-row w-full justify-start items-center"},cl={class:"icon-wrapper"},ml={class:"menu-item ml-2"},pl={key:1,class:"my-1"},gl={class:"flex flex-row w-full justify-start items-center"},fl={class:"icon-wrapper"},vl={class:"menu-item ml-2"},yl={key:2,class:"my-1"},hl={class:"flex flex-row w-full justify-start items-center"},bl={class:"icon-wrapper"},_l={class:"menu-item ml-2"},wl={key:3,class:"my-1"},xl={class:"flex flex-row w-full justify-start items-center"},Pl={class:"icon-wrapper"},kl={class:"menu-item ml-2"},Vl={key:5,class:"my-1"},Cl={class:"flex flex-row w-full justify-start items-center"},Nl={class:"icon-wrapper"},$l={class:"menu-item ml-2"},Ll={key:7,class:"my-1"},Sl={class:"flex flex-row w-full justify-start items-center"},zl={class:"icon-wrapper"},Al={class:"menu-item ml-2",style:{color:"#ef4444 !important"}},Ql={class:"text-white"},Bl={class:"v-label"},Tl=Pt({__name:"VPluginCard",props:{plugin:{},showInstallButton:{type:Boolean,default:!1},showToggle:{type:Boolean,default:!1},showSettings:{type:Boolean,default:!1},showLogo:{type:Boolean,default:!1},showRestart:{type:Boolean,default:!1},showPluginStatus:{type:Boolean,default:!1},showPluginType:{type:Boolean,default:!0},showPluginCode:{type:Boolean,default:!0},showFullPluginName:{type:Boolean,default:!1},showLogs:{type:Boolean,default:!1},showConfigs:{type:Boolean,default:!1},borderRadius:{default:"8px"},background:{default:"var(--background-inner-component)"},width:{default:"100%"},height:{default:"100%"},minWidth:{},maxWidth:{},minHeight:{},maxHeight:{}},emits:["isLoading"],setup(he,{emit:be}){const d=new It,ne=yt(),_e=ht(),{smallMobileActive:J}=bt(),we=be,xe=he,{plugin:t,background:ie,borderRadius:Pe,height:ke,minHeight:Ve,maxHeight:Ce,width:Ne,minWidth:$e,maxWidth:Le,showToggle:ue,showSettings:Se,showInstallButton:ze,showLogo:K,showRestart:Ae,showPluginStatus:re,showLogs:Qe,showConfigs:Be,showPluginType:Te,showPluginCode:de,showFullPluginName:Re}=kt(xe),{theme:Ue}=Ot(_e),D=p(""),ee=p(t.value.installedVersion||t.value.latestVersion),A=p(t.value.installedVersion||t.value.latestVersion),De=p(!1),k=p(),G=p(),Ie=p(null),m=p({color:"rgba(var(--color-rgb), 0.3)",text:_.UNKNOWN}),F=p(!1),L=p(!t.value.disabled),I=p(!1),Q=p(!1),V=p(!1),B=p(!1),T=p(!1),E=p(!1),q=p(!1),O=p(null);d.toggleQueryActivator("downloadLogQuery",!1),d.toggleQueryActivator("getPluginVersionsQuery",!1),d.toggleQueryActivator("getPluginConfigJsonQuery",!1),d.toggleQueryActivator("getPluginUpdateQuery",t.value.installPath!==void 0),d.toggleQueryActivator("getPluginLogoQuery",K.value);const{mutateAsync:Ee,isPending:Oe}=d.enablePluginQuery(),{mutateAsync:je,isPending:We}=d.disablePluginQuery(),{mutateAsync:Me,isPending:He}=d.startPluginQuery(),{mutateAsync:Je,isPending:Ke}=d.stopPluginQuery(),{mutateAsync:Ge,isPending:Fe}=d.restartPluginQuery(),{mutateAsync:qe,isPending:Ye}=d.installPluginQuery(),{mutateAsync:Xe,isPending:Ze}=d.uninstallPluginQuery(),{mutate:et,isPending:tt}=d.patchPluginConfigQuery(),{data:Y,isLoading:te}=d.getPluginVersionsQuery(t.value.pluginName),{data:j,isLoading:lt}=d.getPluginUpdateQuery(t.value.pluginName),{data:le,isLoading:st}=d.getPluginConfigJsonQuery(t.value.pluginName),{data:at,isLoading:ot}=d.getPluginLogoQuery(t.value.pluginName),{data:ce,isLoading:nt,suspense:it}=d.downloadLogQuery(t.value.pluginName),ut=H(()=>({fontSize:14,showGutter:!J.value})),rt=H(()=>({fontSize:J.value?12:14})),C=H(()=>De.value||Oe.value||We.value||Fe.value||Ze.value||Ye.value||He.value||Ke.value||st.value),W=H(()=>m.value.text===_.STOPPED||m.value.text===_.DISABLED||m.value.text===_.ERROR||m.value.text===_.UNKNOWN),dt=H(()=>{var l;const s=new Set;if(t.value["camera.ui"]){const f=t.value["camera.ui"];f.extension?s.add(f.extension):f.supportAdditionalCameras&&((l=f.builtIns)!=null&&l.length)&&(s.add("camera"),f.builtIns.forEach(R=>s.add(R)))}return s.size===0&&s.add("camera"),Array.from(s)});$(Y,()=>{var s;(s=Y.value)!=null&&s.versions.length&&(A.value=Y.value.versions[0])}),$(t,()=>{ee.value=t.value.installedVersion||t.value.latestVersion,L.value=!t.value.disabled},{deep:!0}),$(le,()=>{le.value&&(D.value=JSON.stringify(le.value,null,2))},{deep:!0,immediate:!0}),$(C,s=>we("isLoading",s)),$(Q,s=>{d.toggleQueryActivator("getPluginConfigJsonQuery",s)}),$(T,s=>{d.toggleQueryActivator("getPluginVersionsQuery",s)}),$(V,s=>{se(s),s||setTimeout(()=>{q.value=!1},300)}),$(J,()=>{ct()});const me=s=>{switch(s){case _.ERROR:m.value.color="#9d5752";break;case _.STARTING:m.value.color="orange",L.value=!0;break;case _.READY:m.value.color="yellow",L.value=!0;break;case _.STARTED:m.value.color="green",L.value=!0;break;case _.STOPPED:m.value.color="red";break;case _.DISABLED:m.value.color="transparent";break;case _.UNKNOWN:m.value.color="gray";break;default:m.value.color="gray";break}},se=s=>{var l,f,R,N,X,a,v;s?(k.value=ne.connectToNamespace("/logs"),(l=k.value)==null||l.socket.on(`stdout/${t.value.pluginName}`,b=>{var M;(M=O.value)==null||M.writeTerminal(b)}),(f=k.value)==null||f.socket.on("stdout",b=>{var M;(M=O.value)==null||M.writeTerminal(b)}),(R=k.value)==null||R.socket.on("disconnect",()=>{var b;(b=O.value)==null||b.writeTerminal(`\r
2
2
  Websocket failed to connect! Is the server running?\r
3
3
  \r
4
4
  `)}),(N=k.value)==null||N.socket.on("clear-log",()=>{var b;(b=O.value)==null||b.clearTerminal()}),I.value||(X=k.value)==null||X.socket.emit("get-plugin-log",t.value.pluginName)):(v=(a=k.value)==null?void 0:a.end)==null||v.call(a)},ct=()=>{V.value&&(se(!1),se(!0))},ae=async(s="latest")=>{I.value=!0,T.value=!1,q.value=!0,V.value=!0,await qe({pluginData:{pluginname:t.value.pluginName,pluginversion:s}}),ee.value=t.value.installedVersion||t.value.latestVersion,I.value=!1},mt=async()=>{E.value=!1,I.value=!0,q.value=!0,V.value=!0,await Xe({pluginName:t.value.pluginName,removeStorage:F.value}),I.value=!1},pt=async()=>{B.value=!1,await Ge({pluginName:t.value.pluginName})},gt=async()=>{let s;try{s=JSON.parse(D.value)}catch(l){console.error(l.message),Dt.error(l.message);return}et({pluginName:t.value.pluginName,configData:s},{onSuccess:()=>{Q.value=!1}})},ft=async()=>{try{if(d.toggleQueryActivator("downloadLogQuery",!0),await it(),ce.value){const s=ce.value,l=window.URL.createObjectURL(new Blob([s])),f=document.createElement("a");f.href=l,f.setAttribute("download",`camera.ui.${t.value.pluginName}.log.txt`),document.body.appendChild(f),f.click(),f.remove()}}finally{d.toggleQueryActivator("downloadLogQuery",!1)}};return Vt(()=>{if(re.value){if(G.value=ne.getExistingNamespace("/plugins"),!G.value)throw new Error("Not connected to plugins!");G.value.request("get-plugin-status",t.value.pluginName).subscribe(s=>{m.value.text=s.status,me(s.status)}),G.value.socket.on(`plugin-status-${t.value.pluginName}`,s=>{m.value.text=s.status,me(s.status)})}}),Ct(()=>{var s,l;(l=(s=k.value)==null?void 0:s.end)==null||l.call(s)}),(s,l)=>{const f=_t,R=Nt("router-link"),N=wt,X=vt;return r(),w("div",{ref_key:"pluginCard",ref:Ie,class:"inner-component mt-0 flex flex-col w-full h-full p-5",style:S({width:e(Ne),height:e(ke),background:e(ie),minHeight:e(Ve),maxHeight:e(Ce),minWidth:e($e),maxWidth:e(Le),borderRadius:e(Pe)+" !important"})},[i("div",qt,[e(K)?(r(),w("div",Yt,[i("div",Xt,[e(de)?(r(),w("div",{key:0,class:"plugin-logo-type flex items-center justify-center",style:S({background:e(t).isPython?"var(--background-inner-component)":"#f7df1c"})},[n(h,{size:15,style:S({marginTop:e(t).isPython?void 0:"-2px",marginRight:e(t).isPython?void 0:"1px"})},{default:o(()=>[g(u(e(t).isPython?"$cuiPy":"$cuiJs"),1)]),_:1},8,["style"])],4)):c("",!0)]),n(jt,{size:"50",style:{border:"1px solid rgba(var(--color-rgb), 0.15)"}},{default:o(()=>[e(ot)?c("",!0):(r(),y(f,{key:0,src:`data:image/png;base64,${e(at)}`,"error-height":70,"spinner-size":20,"spinner-width":3},null,8,["src"])),n(oe,{size:"20",width:"3",color:"#df2a4c",indeterminate:""})]),_:1})])):c("",!0),i("div",{class:"w-full",style:S({maxWidth:e(t).installPath?"calc(100% - 52px - 16px)":void 0})},[i("div",Zt,[n(R,{to:e(t).installPath?`/plugins/${e(t).pluginName}`:"",class:"text-lg font-semibold truncate mr-1"},{default:o(()=>[g(u(e(Re)?e(t).pluginName:e(t).displayName),1)]),_:1},8,["to"]),e(t).installPath&&e(lt)?(r(),w("div",el,[n(oe,{size:"12",width:"2",color:"#df2a4c",indeterminate:""})])):c("",!0),n(ve,{text:s.$t("components.plugin_card.update_available"),location:"top"},{activator:o(({props:a})=>{var v;return[(v=e(j))!=null&&v.updateAvailable?(r(),y(h,Z({key:0},a,{size:"17",color:"green",class:"mx-1"}),{default:o(()=>[g(u(e(pe)),1)]),_:2},1040)):c("",!0)]}),_:1},8,["text"]),i("div",tl,[e(C)&&e(ue)?(r(),w("div",ll,[n(oe,{color:"#df2a4c",indeterminate:"",size:"15",width:"2"})])):e(ue)?(r(),y(e(Ut),{key:1,modelValue:e(L),"onUpdate:modelValue":l[0]||(l[0]=a=>P(L)?L.value=a:null),class:"toggle-primary",onChange:l[1]||(l[1]=a=>a?e(Ee)({pluginName:e(t).pluginName}):e(je)({pluginName:e(t).pluginName}))},null,8,["modelValue"])):c("",!0)])]),e(Te)?(r(),w("div",sl,u(e(dt).map(a=>s.$t(`components.plugin_types.${a}`)).join(", ")),1)):c("",!0)],4)]),i("div",al,[i("div",ol,u(e(t).description||s.$t("components.plugin_card.no_description")),1)]),i("div",nl,[i("div",il,[!e(K)&&e(de)?(r(),w("div",{key:0,class:"plugin-logo-type flex items-center justify-center mr-1",style:S({background:e(t).isPython?"var(--background-inner-component)":"#f7df1c","border-color":e(K)?void 0:e(ie)})},[n(h,{size:15,style:S({marginTop:e(t).isPython?void 0:"-2px",marginRight:e(t).isPython?void 0:"1px"})},{default:o(()=>[g(u(e(t).isPython?"$cuiPy":"$cuiJs"),1)]),_:1},8,["style"])],4)):c("",!0),n(Wt,{class:"mr-1 flex items-center justify-center",size:"x-small",onClick:l[2]||(l[2]=x(a=>{var v;return s.$router.absUrl((v=e(t).links)==null?void 0:v.homepage)},["prevent"]))},{default:o(()=>[i("span",ul,"v"+u(e(t).installedVersion||e(t).latestVersion),1),n(h,{size:"12",class:"ml-1"},{default:o(()=>[g(u(e(Lt)),1)]),_:1})]),_:1})]),l[25]||(l[25]=i("div",{class:"ml-auto"},null,-1)),e(re)&&e(m).text!==e(_).DISABLED&&e(m).text!==e(_).UNKNOWN?(r(),y(ve,{key:0,location:"top",text:s.$t(`components.plugin_card.status_${e(m).text}`)},{activator:o(({props:a})=>[n(ye,Z(a,{color:e(m).color,dot:"",inline:""}),null,16,["color"])]),_:1},8,["text"])):c("",!0),e(Qe)?(r(),y(U,{key:1,class:"disabled-text",size:"28",rounded:"",density:"compact",variant:"text",onClick:l[3]||(l[3]=x(a=>V.value=!0,["prevent"]))},{default:o(()=>[n(h,{size:"20"},{default:o(()=>[g(u(e(St)),1)]),_:1})]),_:1})):c("",!0),e(Be)?(r(),y(U,{key:2,class:"disabled-text",size:"28",rounded:"",density:"compact",variant:"text",disabled:e(C),onClick:l[4]||(l[4]=x(a=>Q.value=!0,["prevent"]))},{default:o(()=>[n(h,{size:"20"},{default:o(()=>[g(u(e(zt)),1)]),_:1})]),_:1},8,["disabled"])):c("",!0),e(Ae)?(r(),y(U,{key:3,class:"disabled-text",size:"28",rounded:"",density:"compact",variant:"text",disabled:e(C)||e(W),onClick:l[5]||(l[5]=x(a=>B.value=!0,["prevent"]))},{default:o(()=>[n(h,{size:"20"},{default:o(()=>[g(u(e(ge)),1)]),_:1})]),_:1},8,["disabled"])):c("",!0),e(Se)||e(t).installPath?(r(),y(Ht,{key:4,offset:"2"},{activator:o(({props:a})=>{var v;return[(v=e(j))!=null&&v.updateAvailable?(r(),y(ye,{key:0,dot:"",color:"red","offset-x":"2","offset-y":"2"},{default:o(()=>[n(U,Z({class:"disabled-text"},a,{size:"28",rounded:"",density:"compact",variant:"text",disabled:e(C)}),{default:o(()=>[n(h,{size:"20"},{default:o(()=>[g(u(e(fe)),1)]),_:1})]),_:2},1040,["disabled"])]),_:2},1024)):(r(),y(U,Z({key:1,class:"disabled-text"},a,{size:"28",rounded:"",density:"compact",variant:"text",disabled:e(C)}),{default:o(()=>[n(h,{size:"20"},{default:o(()=>[g(u(e(fe)),1)]),_:1})]),_:2},1040,["disabled"]))]}),default:o(()=>[n(Mt,{width:"200",style:{border:"1px solid var(--background-timeline)","border-radius":"10px"},elevation:"3"},{default:o(()=>{var a,v;return[i("div",rl,[e(t).installPath&&((a=e(j))!=null&&a.updateAvailable)?(r(),y(z,{key:0,style:{"border-radius":"5px !important"},onClick:l[6]||(l[6]=x(b=>ae(e(j).latestVersion),["prevent"]))},{default:o(()=>[i("div",dl,[i("div",cl,[n(h,{size:"20",class:"text-passive"},{default:o(()=>[g(u(e(pe)),1)]),_:1})]),i("span",ml,u(s.$t("components.plugin_card.update")),1)])]),_:1})):c("",!0),e(t).installPath&&((v=e(j))!=null&&v.updateAvailable)?(r(),w("div",pl)):c("",!0),n(z,{to:e(t).installPath?`/plugins/${e(t).pluginName}`:"",style:{"border-radius":"5px !important"}},{default:o(()=>[i("div",gl,[i("div",fl,[n(h,{size:"20",class:"text-passive"},{default:o(()=>[g(u(e(At)),1)]),_:1})]),i("span",vl,u(s.$t("components.plugin_card.settings")),1)])]),_:1},8,["to"]),e(t).installPath?(r(),w("div",yl)):c("",!0),n(z,{disabled:e(t).private,style:{"border-radius":"5px !important"},onClick:l[7]||(l[7]=x(b=>T.value=!0,["prevent"]))},{default:o(()=>[i("div",hl,[i("div",bl,[n(h,{size:"20",class:"text-passive"},{default:o(()=>[g(u(e(Qt)),1)]),_:1})]),i("span",_l,u(s.$t("components.plugin_card.select_version")),1)])]),_:1},8,["disabled"]),e(t).installPath?(r(),w("div",wl)):c("",!0),e(t).installPath&&!e(t).disabled?(r(),y(z,{key:4,disabled:e(t).disabled,style:{"border-radius":"5px !important"},onClick:l[8]||(l[8]=x(b=>e(W)?e(Me)({pluginName:e(t).pluginName}):e(Je)({pluginName:e(t).pluginName}),["prevent"]))},{default:o(()=>[i("div",xl,[i("div",Pl,[n(h,{size:"20",class:"text-passive"},{default:o(()=>[g(u(e(W)?e(Bt):e(Tt)),1)]),_:1})]),i("span",kl,u(e(W)?s.$t("components.plugin_card.start"):s.$t("components.plugin_card.stop")),1)])]),_:1},8,["disabled"])):c("",!0),e(t).installPath?(r(),w("div",Vl)):c("",!0),e(t).installPath&&!e(W)?(r(),y(z,{key:6,style:{"border-radius":"5px !important"},disabled:e(t).disabled,onClick:l[9]||(l[9]=x(b=>B.value=!0,["prevent"]))},{default:o(()=>[i("div",Cl,[i("div",Nl,[n(h,{size:"20",class:"text-passive"},{default:o(()=>[g(u(e(ge)),1)]),_:1})]),i("span",$l,u(s.$t("components.plugin_card.restart")),1)])]),_:1},8,["disabled"])):c("",!0),e(t).installPath?(r(),w("div",Ll)):c("",!0),e(t).installPath?(r(),y(z,{key:8,style:{color:"#ef4444 !important","border-radius":"5px !important"},onClick:l[10]||(l[10]=x(b=>E.value=!0,["prevent"]))},{default:o(()=>[i("div",Sl,[i("div",zl,[n(h,{size:"20",color:"red"},{default:o(()=>[g(u(e(Rt)),1)]),_:1})]),i("span",Al,u(s.$t("components.plugin_card.uninstall")),1)])]),_:1})):c("",!0)])]}),_:1})]),_:1})):e(ze)?(r(),y(U,{key:5,class:"disabled-text",density:"compact",color:"#df2a4c",variant:"flat",disabled:e(C),onClick:l[11]||(l[11]=x(a=>ae(),["prevent"]))},{default:o(()=>[i("span",Ql,u(s.$t("components.form.button.install")),1)]),_:1},8,["disabled"])):c("",!0)]),n(N,{modelValue:e(B),"onUpdate:modelValue":l[12]||(l[12]=a=>P(B)?B.value=a:null),title:s.$t("components.dialog.title.confirm"),"confirm-text":"components.form.button.restart",onConfirm:l[13]||(l[13]=a=>pt())},{content:o(()=>[i("span",null,u(s.$t("components.dialog.message.confirm_restart_plugin")),1)]),_:1},8,["modelValue","title"]),n(N,{modelValue:e(E),"onUpdate:modelValue":l[15]||(l[15]=a=>P(E)?E.value=a:null),title:s.$t("components.dialog.title.confirm"),"confirm-text":"components.form.button.uninstall",onConfirm:l[16]||(l[16]=a=>mt())},{content:o(()=>[i("span",null,u(s.$t("components.dialog.message.confirm_uninstall_plugin")),1),n(z,{class:"px-0 mt-3"},{prepend:o(()=>[n(Kt,{start:""},{default:o(()=>[n(Gt,{modelValue:e(F),"onUpdate:modelValue":l[14]||(l[14]=a=>P(F)?F.value=a:null),color:"#df2a4c"},null,8,["modelValue"])]),_:1})]),default:o(()=>[n(Jt,null,{default:o(()=>[g(u(s.$t("components.form.label.remove_storage")),1)]),_:1})]),_:1})]),_:1},8,["modelValue","title"]),n(N,{modelValue:e(T),"onUpdate:modelValue":l[18]||(l[18]=a=>P(T)?T.value=a:null),title:s.$t("components.dialog.title.install_version"),"confirm-text":e(A)===e(ee)?"components.form.button.reinstall":"components.form.button.install",loading:e(te),onConfirm:l[19]||(l[19]=a=>ae(e(A)))},{content:o(()=>{var a;return[i("label",Bl,u(s.$t("components.form.label.plugin_version")),1),n(Ft,{modelValue:e(A),"onUpdate:modelValue":l[17]||(l[17]=v=>P(A)?A.value=v:null),"hide-details":"",solo:"",variant:"outlined",density:"compact",items:((a=e(Y))==null?void 0:a.versions)||[],disabled:e(te),loading:e(te),onKeydown:x(()=>null,["prevent"])},null,8,["modelValue","items","disabled","loading"])]}),_:1},8,["modelValue","title","confirm-text","loading"]),n(N,{modelValue:e(V),"onUpdate:modelValue":l[20]||(l[20]=a=>P(V)?V.value=a:null),title:s.$t("components.dialog.title.log"),"confirm-text":"components.form.button.download",loading:e(nt),"fullscreen-content":"","hide-confirm-button":e(q),onConfirm:l[21]||(l[21]=a=>ft())},{content:o(()=>[n(Et,{ref_key:"consoleRef",ref:O,class:"text-editor",options:e(rt)},null,8,["options"])]),_:1},8,["modelValue","title","loading","hide-confirm-button"]),n(N,{modelValue:e(Q),"onUpdate:modelValue":l[23]||(l[23]=a=>P(Q)?Q.value=a:null),title:s.$t("components.dialog.title.plugin_config"),loading:e(tt),"fullscreen-content":"",onConfirm:l[24]||(l[24]=a=>gt())},{content:o(()=>[(r(),y($t,null,{default:o(()=>[n(X,{modelValue:e(D),"onUpdate:modelValue":l[22]||(l[22]=a=>P(D)?D.value=a:null),lang:"json",theme:e(Ue),options:e(ut),"read-only":e(C),class:"config-editor",style:S(e(J)?"height: 100%":"height: 400px")},null,8,["modelValue","theme","options","read-only","style"])]),_:1}))]),_:1},8,["modelValue","title","loading"])],4)}}}),Kl=xt(Tl,[["__scopeId","data-v-e44d0686"]]);export{Kl as _};
@@ -1,4 +1,4 @@
1
- import{g as Ae}from"./@xterm.ChIdrMXz.0.0.41.js";function Me(he,fe){for(var T=0;T<fe.length;T++){const M=fe[T];if(typeof M!="string"&&!Array.isArray(M)){for(const z in M)if(z!=="default"&&!(z in he)){const k=Object.getOwnPropertyDescriptor(M,z);k&&Object.defineProperty(he,z,k.get?k:{enumerable:!0,get:()=>M[z]})}}}return Object.freeze(Object.defineProperty(he,Symbol.toStringTag,{value:"Module"}))}const Te="/assets/mode-json.0.0.41.Br7xisR1.js",Ie="/assets/mode-yaml.0.0.41.CIYL8U3d.js",Ee="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3R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3J0cyA9PSAib2JqZWN0IiAmJiBtb2R1bGUpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1vZHVsZS5leHBvcnRzID0gbTsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgfSkoKTsKICAgICAgICAgICAg";var ve={exports:{}},be;function Le(){return be||(be=1,function(he,fe){(function(){var T="ace",M=function(){return this}();!M&&typeof window<"u"&&(M=window);var z=function(n,r,i){if(typeof n!="string"){z.original?z.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(i=r),z.modules[n]||(z.payloads[n]=i,z.modules[n]=null)};z.modules={},z.payloads={};var k=function(n,r,i){if(typeof r=="string"){var t=a(n,r);if(t!=null)return i&&i(),t}else if(Object.prototype.toString.call(r)==="[object Array]"){for(var e=[],o=0,s=r.length;o<s;++o){var c=a(n,r[o]);if(c==null&&A.original)return;e.push(c)}return i&&i.apply(null,e)||!0}},A=function(n,r){var i=k("",n,r);return i==null&&A.original?A.original.apply(this,arguments):i},C=function(n,r){if(r.indexOf("!")!==-1){var i=r.split("!");return C(n,i[0])+"!"+C(n,i[1])}if(r.charAt(0)=="."){var t=n.split("/").slice(0,-1).join("/");for(r=t+"/"+r;r.indexOf(".")!==-1&&e!=r;){var e=r;r=r.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return r},a=function(n,r){r=C(n,r);var i=z.modules[r];if(!i){if(i=z.payloads[r],typeof i=="function"){var t={},e={id:r,uri:"",exports:t,packaged:!0},o=function(c,u){return k(r,c,u)},s=i(o,t,e);t=s||e.exports,z.modules[r]=t,delete z.payloads[r]}i=z.modules[r]=t||i}return i};function h(n){var r=M;M[n]||(M[n]={}),r=M[n],(!r.define||!r.define.packaged)&&(z.original=r.define,r.define=z,r.define.packaged=!0),(!r.require||!r.require.packaged)&&(A.original=r.require,r.require=A,r.require.packaged=!0)}h(T)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(T,M,z){function k(A,C,a){Object.defineProperty(A,C,{value:a,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||k(String.prototype,"startsWith",function(A,C){return C=C||0,this.lastIndexOf(A,C)===C}),String.prototype.endsWith||k(String.prototype,"endsWith",function(A,C){var a=this;(C===void 0||C>a.length)&&(C=a.length),C-=A.length;var h=a.indexOf(A,C);return h!==-1&&h===C}),String.prototype.repeat||k(String.prototype,"repeat",function(A){for(var C="",a=this;A>0;)A&1&&(C+=a),(A>>=1)&&(a+=a);return C}),String.prototype.includes||k(String.prototype,"includes",function(A,C){return this.indexOf(A,C)!=-1}),Object.assign||(Object.assign=function(A){if(A==null)throw new TypeError("Cannot convert undefined or null to object");for(var C=Object(A),a=1;a<arguments.length;a++){var h=arguments[a];h!=null&&Object.keys(h).forEach(function(n){C[n]=h[n]})}return C}),Object.values||(Object.values=function(A){return Object.keys(A).map(function(C){return A[C]})}),Array.prototype.find||k(Array.prototype,"find",function(A){for(var C=this.length,a=arguments[1],h=0;h<C;h++){var n=this[h];if(A.call(a,n,h,this))return n}}),Array.prototype.findIndex||k(Array.prototype,"findIndex",function(A){for(var C=this.length,a=arguments[1],h=0;h<C;h++){var n=this[h];if(A.call(a,n,h,this))return h}}),Array.prototype.includes||k(Array.prototype,"includes",function(A,C){return this.indexOf(A,C)!=-1}),Array.prototype.fill||k(Array.prototype,"fill",function(A){for(var C=this,a=C.length>>>0,h=arguments[1],n=h>>0,r=n<0?Math.max(a+n,0):Math.min(n,a),i=arguments[2],t=i===void 0?a:i>>0,e=t<0?Math.max(a+t,0):Math.min(t,a);r<e;)C[r]=A,r++;return C}),Array.of||k(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(T,M,z){T("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(T,M,z){M.deepCopy=function k(A){if(typeof A!="object"||!A)return A;var C;if(Array.isArray(A)){C=[];for(var a=0;a<A.length;a++)C[a]=k(A[a]);return C}if(Object.prototype.toString.call(A)!=="[object Object]")return A;C={};for(var a in A)C[a]=k(A[a]);return C}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(T,M,z){M.last=function(C){return C[C.length-1]},M.stringReverse=function(C){return C.split("").reverse().join("")},M.stringRepeat=function(C,a){for(var h="";a>0;)a&1&&(h+=C),(a>>=1)&&(C+=C);return h};var k=/^\s\s*/,A=/\s\s*$/;M.stringTrimLeft=function(C){return C.replace(k,"")},M.stringTrimRight=function(C){return C.replace(A,"")},M.copyObject=function(C){var a={};for(var h in C)a[h]=C[h];return a},M.copyArray=function(C){for(var a=[],h=0,n=C.length;h<n;h++)C[h]&&typeof C[h]=="object"?a[h]=this.copyObject(C[h]):a[h]=C[h];return a},M.deepCopy=T("./deep_copy").deepCopy,M.arrayToMap=function(C){for(var a={},h=0;h<C.length;h++)a[C[h]]=1;return a},M.createMap=function(C){var a=Object.create(null);for(var h in C)a[h]=C[h];return a},M.arrayRemove=function(C,a){for(var h=0;h<=C.length;h++)a===C[h]&&C.splice(h,1)},M.escapeRegExp=function(C){return C.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},M.escapeHTML=function(C){return(""+C).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},M.getMatchOffsets=function(C,a){var h=[];return C.replace(a,function(n){h.push({offset:arguments[arguments.length-2],length:n.length})}),h},M.deferredCall=function(C){var a=null,h=function(){a=null,C()},n=function(r){return n.cancel(),a=setTimeout(h,r||0),n};return n.schedule=n,n.call=function(){return this.cancel(),C(),n},n.cancel=function(){return clearTimeout(a),a=null,n},n.isPending=function(){return a},n},M.delayedCall=function(C,a){var h=null,n=function(){h=null,C()},r=function(i){h==null&&(h=setTimeout(n,i||a))};return r.delay=function(i){h&&clearTimeout(h),h=setTimeout(n,i||a)},r.schedule=r,r.call=function(){this.cancel(),C()},r.cancel=function(){h&&clearTimeout(h),h=null},r.isPending=function(){return h},r},M.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},M.skipEmptyMatch=function(C,a,h){return h&&C.codePointAt(a)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(T,M,z){M.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},M.getOS=function(){return M.isMac?M.OS.MAC:M.isLinux?M.OS.LINUX:M.OS.WINDOWS};var k=typeof navigator=="object"?navigator:{},A=(/mac|win|linux/i.exec(k.platform)||["other"])[0].toLowerCase(),C=k.userAgent||"",a=k.appName||"";M.isWin=A=="win",M.isMac=A=="mac",M.isLinux=A=="linux",M.isIE=a=="Microsoft Internet Explorer"||a.indexOf("MSAppHost")>=0?parseFloat((C.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((C.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),M.isOldIE=M.isIE&&M.isIE<9,M.isGecko=M.isMozilla=C.match(/ Gecko\/\d+/),M.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",M.isWebKit=parseFloat(C.split("WebKit/")[1])||void 0,M.isChrome=parseFloat(C.split(" Chrome/")[1])||void 0,M.isSafari=parseFloat(C.split(" Safari/")[1])&&!M.isChrome||void 0,M.isEdge=parseFloat(C.split(" Edge/")[1])||void 0,M.isAIR=C.indexOf("AdobeAIR")>=0,M.isAndroid=C.indexOf("Android")>=0,M.isChromeOS=C.indexOf(" CrOS ")>=0,M.isIOS=/iPad|iPhone|iPod/.test(C)&&!window.MSStream,M.isIOS&&(M.isMac=!0),M.isMobile=M.isIOS||M.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(T,M,z){var k=T("./useragent"),A="http://www.w3.org/1999/xhtml";M.buildDom=function i(t,e,o){if(typeof t=="string"&&t){var s=document.createTextNode(t);return e&&e.appendChild(s),s}if(!Array.isArray(t))return t&&t.appendChild&&e&&e.appendChild(t),t;if(typeof t[0]!="string"||!t[0]){for(var c=[],u=0;u<t.length;u++){var y=i(t[u],e,o);y&&c.push(y)}return c}var m=document.createElement(t[0]),p=t[1],g=1;p&&typeof p=="object"&&!Array.isArray(p)&&(g=2);for(var u=g;u<t.length;u++)i(t[u],m,o);return g==2&&Object.keys(p).forEach(function(w){var x=p[w];w==="class"?m.className=Array.isArray(x)?x.join(" "):x:typeof x=="function"||w=="value"||w[0]=="$"?m[w]=x:w==="ref"?o&&(o[x]=m):w==="style"?typeof x=="string"&&(m.style.cssText=x):x!=null&&m.setAttribute(w,x)}),e&&e.appendChild(m),m},M.getDocumentHead=function(i){return i||(i=document),i.head||i.getElementsByTagName("head")[0]||i.documentElement},M.createElement=function(i,t){return document.createElementNS?document.createElementNS(t||A,i):document.createElement(i)},M.removeChildren=function(i){i.innerHTML=""},M.createTextNode=function(i,t){var e=t?t.ownerDocument:document;return e.createTextNode(i)},M.createFragment=function(i){var t=i?i.ownerDocument:document;return t.createDocumentFragment()},M.hasCssClass=function(i,t){var e=(i.className+"").split(/\s+/g);return e.indexOf(t)!==-1},M.addCssClass=function(i,t){M.hasCssClass(i,t)||(i.className+=" "+t)},M.removeCssClass=function(i,t){for(var e=i.className.split(/\s+/g);;){var o=e.indexOf(t);if(o==-1)break;e.splice(o,1)}i.className=e.join(" ")},M.toggleCssClass=function(i,t){for(var e=i.className.split(/\s+/g),o=!0;;){var s=e.indexOf(t);if(s==-1)break;o=!1,e.splice(s,1)}return o&&e.push(t),i.className=e.join(" "),o},M.setCssClass=function(i,t,e){e?M.addCssClass(i,t):M.removeCssClass(i,t)},M.hasCssString=function(i,t){var e=0,o;if(t=t||document,o=t.querySelectorAll("style")){for(;e<o.length;)if(o[e++].id===i)return!0}},M.removeElementById=function(i,t){t=t||document,t.getElementById(i)&&t.getElementById(i).remove()};var C,a=[];M.useStrictCSP=function(i){C=i,i==!1?h():a||(a=[])};function h(){var i=a;a=null,i&&i.forEach(function(t){n(t[0],t[1])})}function n(i,t,e){if(!(typeof document>"u")){if(a){if(e)h();else if(e===!1)return a.push([i,t])}if(!C){var o=e;!e||!e.getRootNode?o=document:(o=e.getRootNode(),(!o||o==e)&&(o=document));var s=o.ownerDocument||o;if(t&&M.hasCssString(t,o))return null;t&&(i+=`
1
+ import{g as Ae}from"./@xterm.DcCEcUkn.0.0.42.js";function Me(he,fe){for(var T=0;T<fe.length;T++){const M=fe[T];if(typeof M!="string"&&!Array.isArray(M)){for(const z in M)if(z!=="default"&&!(z in he)){const k=Object.getOwnPropertyDescriptor(M,z);k&&Object.defineProperty(he,z,k.get?k:{enumerable:!0,get:()=>M[z]})}}}return Object.freeze(Object.defineProperty(he,Symbol.toStringTag,{value:"Module"}))}const Te="/assets/mode-json.0.0.42.Br7xisR1.js",Ie="/assets/mode-yaml.0.0.42.CIYL8U3d.js",Ee="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL3RvbW9ycm93LWNzcyIsWyJyZXF1aXJlIiwiZXhwb3J0cyIsIm1vZHVsZSJdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpe21vZHVsZS5leHBvcnRzID0gIi5hY2UtdG9tb3Jyb3cgLmFjZV9ndXR0ZXIge1xuICBiYWNrZ3JvdW5kOiAjZjZmNmY2O1xuICBjb2xvcjogIzRENEQ0Q1xufVxuXG4uYWNlLXRvbW9ycm93IC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogI2Y2ZjZmNlxufVxuXG4uYWNlLXRvbW9ycm93IHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0ZGRkZGRjtcbiAgY29sb3I6ICM0RDRENENcbn1cblxuLmFjZS10b21vcnJvdyAuYWNlX2N1cnNvciB7XG4gIGNvbG9yOiAjQUVBRkFEXG59XG5cbi5hY2UtdG9tb3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lL2xpYi9kb20iXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKXtleHBvcnRzLmlzRGFyayA9IHRydWU7CmV4cG9ydHMuY3NzQ2xhc3MgPSAiYWNlLXR3aWxpZ2h0IjsKZXhwb3J0cy5jc3NUZXh0ID0gcmVxdWlyZSgiLi90d2lsaWdodC1jc3MiKTsKdmFyIGRvbSA9IHJlcXVpcmUoIi4uL2xpYi9kb20iKTsKZG9tLmltcG9ydENzc1N0cmluZyhleHBvcnRzLmNzc1RleHQsIGV4cG9ydHMuY3NzQ2xhc3MsIGZhbHNlKTsKCn0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvdHdpbGlnaHQiXSwgZnVuY3Rpb24obSkgewogICAgICAgICAgICAgICAgICAgICAgICBpZiAodHlwZW9mIG1vZHVsZSA9PSAib2JqZWN0IiAmJiB0eXBlb2YgZXhwb3J0cyA9PSAib2JqZWN0IiAmJiBtb2R1bGUpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1vZHVsZS5leHBvcnRzID0gbTsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgfSkoKTsKICAgICAgICAgICAg";var ve={exports:{}},be;function Le(){return be||(be=1,function(he,fe){(function(){var T="ace",M=function(){return this}();!M&&typeof window<"u"&&(M=window);var z=function(n,r,i){if(typeof n!="string"){z.original?z.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(i=r),z.modules[n]||(z.payloads[n]=i,z.modules[n]=null)};z.modules={},z.payloads={};var k=function(n,r,i){if(typeof r=="string"){var t=a(n,r);if(t!=null)return i&&i(),t}else if(Object.prototype.toString.call(r)==="[object Array]"){for(var e=[],o=0,s=r.length;o<s;++o){var c=a(n,r[o]);if(c==null&&A.original)return;e.push(c)}return i&&i.apply(null,e)||!0}},A=function(n,r){var i=k("",n,r);return i==null&&A.original?A.original.apply(this,arguments):i},C=function(n,r){if(r.indexOf("!")!==-1){var i=r.split("!");return C(n,i[0])+"!"+C(n,i[1])}if(r.charAt(0)=="."){var t=n.split("/").slice(0,-1).join("/");for(r=t+"/"+r;r.indexOf(".")!==-1&&e!=r;){var e=r;r=r.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return r},a=function(n,r){r=C(n,r);var i=z.modules[r];if(!i){if(i=z.payloads[r],typeof i=="function"){var t={},e={id:r,uri:"",exports:t,packaged:!0},o=function(c,u){return k(r,c,u)},s=i(o,t,e);t=s||e.exports,z.modules[r]=t,delete z.payloads[r]}i=z.modules[r]=t||i}return i};function h(n){var r=M;M[n]||(M[n]={}),r=M[n],(!r.define||!r.define.packaged)&&(z.original=r.define,r.define=z,r.define.packaged=!0),(!r.require||!r.require.packaged)&&(A.original=r.require,r.require=A,r.require.packaged=!0)}h(T)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(T,M,z){function k(A,C,a){Object.defineProperty(A,C,{value:a,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||k(String.prototype,"startsWith",function(A,C){return C=C||0,this.lastIndexOf(A,C)===C}),String.prototype.endsWith||k(String.prototype,"endsWith",function(A,C){var a=this;(C===void 0||C>a.length)&&(C=a.length),C-=A.length;var h=a.indexOf(A,C);return h!==-1&&h===C}),String.prototype.repeat||k(String.prototype,"repeat",function(A){for(var C="",a=this;A>0;)A&1&&(C+=a),(A>>=1)&&(a+=a);return C}),String.prototype.includes||k(String.prototype,"includes",function(A,C){return this.indexOf(A,C)!=-1}),Object.assign||(Object.assign=function(A){if(A==null)throw new TypeError("Cannot convert undefined or null to object");for(var C=Object(A),a=1;a<arguments.length;a++){var h=arguments[a];h!=null&&Object.keys(h).forEach(function(n){C[n]=h[n]})}return C}),Object.values||(Object.values=function(A){return Object.keys(A).map(function(C){return A[C]})}),Array.prototype.find||k(Array.prototype,"find",function(A){for(var C=this.length,a=arguments[1],h=0;h<C;h++){var n=this[h];if(A.call(a,n,h,this))return n}}),Array.prototype.findIndex||k(Array.prototype,"findIndex",function(A){for(var C=this.length,a=arguments[1],h=0;h<C;h++){var n=this[h];if(A.call(a,n,h,this))return h}}),Array.prototype.includes||k(Array.prototype,"includes",function(A,C){return this.indexOf(A,C)!=-1}),Array.prototype.fill||k(Array.prototype,"fill",function(A){for(var C=this,a=C.length>>>0,h=arguments[1],n=h>>0,r=n<0?Math.max(a+n,0):Math.min(n,a),i=arguments[2],t=i===void 0?a:i>>0,e=t<0?Math.max(a+t,0):Math.min(t,a);r<e;)C[r]=A,r++;return C}),Array.of||k(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(T,M,z){T("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(T,M,z){M.deepCopy=function k(A){if(typeof A!="object"||!A)return A;var C;if(Array.isArray(A)){C=[];for(var a=0;a<A.length;a++)C[a]=k(A[a]);return C}if(Object.prototype.toString.call(A)!=="[object Object]")return A;C={};for(var a in A)C[a]=k(A[a]);return C}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(T,M,z){M.last=function(C){return C[C.length-1]},M.stringReverse=function(C){return C.split("").reverse().join("")},M.stringRepeat=function(C,a){for(var h="";a>0;)a&1&&(h+=C),(a>>=1)&&(C+=C);return h};var k=/^\s\s*/,A=/\s\s*$/;M.stringTrimLeft=function(C){return C.replace(k,"")},M.stringTrimRight=function(C){return C.replace(A,"")},M.copyObject=function(C){var a={};for(var h in C)a[h]=C[h];return a},M.copyArray=function(C){for(var a=[],h=0,n=C.length;h<n;h++)C[h]&&typeof C[h]=="object"?a[h]=this.copyObject(C[h]):a[h]=C[h];return a},M.deepCopy=T("./deep_copy").deepCopy,M.arrayToMap=function(C){for(var a={},h=0;h<C.length;h++)a[C[h]]=1;return a},M.createMap=function(C){var a=Object.create(null);for(var h in C)a[h]=C[h];return a},M.arrayRemove=function(C,a){for(var h=0;h<=C.length;h++)a===C[h]&&C.splice(h,1)},M.escapeRegExp=function(C){return C.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},M.escapeHTML=function(C){return(""+C).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},M.getMatchOffsets=function(C,a){var h=[];return C.replace(a,function(n){h.push({offset:arguments[arguments.length-2],length:n.length})}),h},M.deferredCall=function(C){var a=null,h=function(){a=null,C()},n=function(r){return n.cancel(),a=setTimeout(h,r||0),n};return n.schedule=n,n.call=function(){return this.cancel(),C(),n},n.cancel=function(){return clearTimeout(a),a=null,n},n.isPending=function(){return a},n},M.delayedCall=function(C,a){var h=null,n=function(){h=null,C()},r=function(i){h==null&&(h=setTimeout(n,i||a))};return r.delay=function(i){h&&clearTimeout(h),h=setTimeout(n,i||a)},r.schedule=r,r.call=function(){this.cancel(),C()},r.cancel=function(){h&&clearTimeout(h),h=null},r.isPending=function(){return h},r},M.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},M.skipEmptyMatch=function(C,a,h){return h&&C.codePointAt(a)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(T,M,z){M.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},M.getOS=function(){return M.isMac?M.OS.MAC:M.isLinux?M.OS.LINUX:M.OS.WINDOWS};var k=typeof navigator=="object"?navigator:{},A=(/mac|win|linux/i.exec(k.platform)||["other"])[0].toLowerCase(),C=k.userAgent||"",a=k.appName||"";M.isWin=A=="win",M.isMac=A=="mac",M.isLinux=A=="linux",M.isIE=a=="Microsoft Internet Explorer"||a.indexOf("MSAppHost")>=0?parseFloat((C.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((C.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),M.isOldIE=M.isIE&&M.isIE<9,M.isGecko=M.isMozilla=C.match(/ Gecko\/\d+/),M.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",M.isWebKit=parseFloat(C.split("WebKit/")[1])||void 0,M.isChrome=parseFloat(C.split(" Chrome/")[1])||void 0,M.isSafari=parseFloat(C.split(" Safari/")[1])&&!M.isChrome||void 0,M.isEdge=parseFloat(C.split(" Edge/")[1])||void 0,M.isAIR=C.indexOf("AdobeAIR")>=0,M.isAndroid=C.indexOf("Android")>=0,M.isChromeOS=C.indexOf(" CrOS ")>=0,M.isIOS=/iPad|iPhone|iPod/.test(C)&&!window.MSStream,M.isIOS&&(M.isMac=!0),M.isMobile=M.isIOS||M.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(T,M,z){var k=T("./useragent"),A="http://www.w3.org/1999/xhtml";M.buildDom=function i(t,e,o){if(typeof t=="string"&&t){var s=document.createTextNode(t);return e&&e.appendChild(s),s}if(!Array.isArray(t))return t&&t.appendChild&&e&&e.appendChild(t),t;if(typeof t[0]!="string"||!t[0]){for(var c=[],u=0;u<t.length;u++){var y=i(t[u],e,o);y&&c.push(y)}return c}var m=document.createElement(t[0]),p=t[1],g=1;p&&typeof p=="object"&&!Array.isArray(p)&&(g=2);for(var u=g;u<t.length;u++)i(t[u],m,o);return g==2&&Object.keys(p).forEach(function(w){var x=p[w];w==="class"?m.className=Array.isArray(x)?x.join(" "):x:typeof x=="function"||w=="value"||w[0]=="$"?m[w]=x:w==="ref"?o&&(o[x]=m):w==="style"?typeof x=="string"&&(m.style.cssText=x):x!=null&&m.setAttribute(w,x)}),e&&e.appendChild(m),m},M.getDocumentHead=function(i){return i||(i=document),i.head||i.getElementsByTagName("head")[0]||i.documentElement},M.createElement=function(i,t){return document.createElementNS?document.createElementNS(t||A,i):document.createElement(i)},M.removeChildren=function(i){i.innerHTML=""},M.createTextNode=function(i,t){var e=t?t.ownerDocument:document;return e.createTextNode(i)},M.createFragment=function(i){var t=i?i.ownerDocument:document;return t.createDocumentFragment()},M.hasCssClass=function(i,t){var e=(i.className+"").split(/\s+/g);return e.indexOf(t)!==-1},M.addCssClass=function(i,t){M.hasCssClass(i,t)||(i.className+=" "+t)},M.removeCssClass=function(i,t){for(var e=i.className.split(/\s+/g);;){var o=e.indexOf(t);if(o==-1)break;e.splice(o,1)}i.className=e.join(" ")},M.toggleCssClass=function(i,t){for(var e=i.className.split(/\s+/g),o=!0;;){var s=e.indexOf(t);if(s==-1)break;o=!1,e.splice(s,1)}return o&&e.push(t),i.className=e.join(" "),o},M.setCssClass=function(i,t,e){e?M.addCssClass(i,t):M.removeCssClass(i,t)},M.hasCssString=function(i,t){var e=0,o;if(t=t||document,o=t.querySelectorAll("style")){for(;e<o.length;)if(o[e++].id===i)return!0}},M.removeElementById=function(i,t){t=t||document,t.getElementById(i)&&t.getElementById(i).remove()};var C,a=[];M.useStrictCSP=function(i){C=i,i==!1?h():a||(a=[])};function h(){var i=a;a=null,i&&i.forEach(function(t){n(t[0],t[1])})}function n(i,t,e){if(!(typeof document>"u")){if(a){if(e)h();else if(e===!1)return a.push([i,t])}if(!C){var o=e;!e||!e.getRootNode?o=document:(o=e.getRootNode(),(!o||o==e)&&(o=document));var s=o.ownerDocument||o;if(t&&M.hasCssString(t,o))return null;t&&(i+=`
2
2
  /*# sourceURL=ace/css/`+t+" */");var c=M.createElement("style");c.appendChild(s.createTextNode(i)),t&&(c.id=t),o==s&&(o=M.getDocumentHead(s)),o.insertBefore(c,o.firstChild)}}}if(M.importCssString=n,M.importCssStylsheet=function(i,t){M.buildDom(["link",{rel:"stylesheet",href:i}],M.getDocumentHead(t))},M.scrollbarWidth=function(i){var t=M.createElement("ace_inner");t.style.width="100%",t.style.minWidth="0px",t.style.height="200px",t.style.display="block";var e=M.createElement("ace_outer"),o=e.style;o.position="absolute",o.left="-10000px",o.overflow="hidden",o.width="200px",o.minWidth="0px",o.height="150px",o.display="block",e.appendChild(t);var s=i&&i.documentElement||document&&document.documentElement;if(!s)return 0;s.appendChild(e);var c=t.offsetWidth;o.overflow="scroll";var u=t.offsetWidth;return c===u&&(u=e.clientWidth),s.removeChild(e),c-u},M.computedStyle=function(i,t){return window.getComputedStyle(i,"")||{}},M.setStyle=function(i,t,e){i[t]!==e&&(i[t]=e)},M.HAS_CSS_ANIMATION=!1,M.HAS_CSS_TRANSFORMS=!1,M.HI_DPI=k.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,k.isChromeOS&&(M.HI_DPI=!1),typeof document<"u"){var r=document.createElement("div");M.HI_DPI&&r.style.transform!==void 0&&(M.HAS_CSS_TRANSFORMS=!0),!k.isEdge&&typeof r.style.animationName<"u"&&(M.HAS_CSS_ANIMATION=!0),r=null}M.HAS_CSS_TRANSFORMS?M.translate=function(i,t,e){i.style.transform="translate("+Math.round(t)+"px, "+Math.round(e)+"px)"}:M.translate=function(i,t,e){i.style.top=Math.round(e)+"px",i.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(T,M,z){/*
3
3
  * based on code from:
4
4
  *
@@ -1,4 +1,4 @@
1
- import{g as dr}from"./@xterm.ChIdrMXz.0.0.41.js";/*!
1
+ import{g as dr}from"./@xterm.DcCEcUkn.0.0.42.js";/*!
2
2
  * ApexCharts v4.1.0
3
3
  * (c) 2018-2024 ApexCharts
4
4
  * Released under the MIT License.
@@ -2,5 +2,5 @@ function Ce(e,t){return function(){return e.apply(t,arguments)}}const{toString:Z
2
2
  `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Yt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},we=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function $(e){return e===!1||e==null?e:a.isArray(e)?e.map($):String(e)}function tn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const nn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ee(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function rn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function sn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let A=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,u){const l=j(f);if(!l)throw new Error("header name must be a non-empty string");const d=a.findKey(s,l);(!d||s[d]===void 0||u===!0||u===void 0&&s[d]!==!1)&&(s[d||f]=$(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!nn(t))i(en(t),n);else if(a.isHeaders(t))for(const[c,f]of t.entries())o(f,c,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=j(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return tn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ee(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=j(i),i){const c=a.findKey(r,i);c&&(!n||ee(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ee(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=$(s),delete n[o];return}const c=t?rn(o):String(o).trim();c!==o&&delete n[o],n[c]=$(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
3
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[we]=this[we]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=j(i);r[c]||(sn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(A.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(A);function te(e,t){const n=this||I,r=t||n,s=A.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function ze(e){return!!(e&&e.__CANCEL__)}function k(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});function $e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function on(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function an(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=r[o];i||(i=u),n[s]=f,r[s]=u;let d=o,b=0;for(;d!==s;)b+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const R=l&&u-l;return R?Math.round(b*1e3/R):void 0}}function cn(e,t){let n=0,r=1e3/t,s,o;const i=(u,l=Date.now())=>{n=l,s=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),d=l-n;d>=r?i(u,l):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const V=(e,t,n=3)=>{let r=0;const s=an(50,250);return cn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,u=s(f),l=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},Ee=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Re=e=>(...t)=>a.asap(()=>e(...t)),un=O.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,O.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,ln=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&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 fn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Je(e,t){return e&&!fn(t)?dn(e,t):t}const Se=e=>e instanceof A?{...e}:e;function D(e,t){t=t||{};const n={};function r(u,l,d,b){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:b},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,d,b){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,d,b)}else return r(u,l,d,b)}function o(u,l){if(!a.isUndefined(l))return r(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,d){if(d in t)return r(u,l);if(d in e)return r(void 0,u)}const f={url:o,method:o,data:o,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:c,headers:(u,l,d)=>s(Se(u),Se(l),d,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=f[l]||s,b=d(e[l],t[l],l);a.isUndefined(b)&&d!==c||(n[l]=b)}),n}const Ve=e=>{const t=D({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=A.from(i),t.url=He(Je(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...l]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...l].join("; "))}}if(O.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&un(t.url))){const u=s&&o&&ln.read(o);u&&i.set(s,u)}return t},pn=typeof XMLHttpRequest<"u",hn=pn&&function(e){return new Promise(function(n,r){const s=Ve(e);let o=s.data;const i=A.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,d,b,R,p;function y(){R&&R(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function w(){if(!h)return;const g=A.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:g,config:e,request:h};$e(function(F){n(F),y()},function(F){r(F),y()},T),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new m("Request aborted",m.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const T=s.transitional||Ie;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new m(P,T.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(P,T){h.setRequestHeader(T,P)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),u&&([b,p]=V(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([d,R]=V(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(l=g=>{h&&(r(!g||g.type?new k(null,e,h):g),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const S=on(s.url);if(S&&O.protocols.indexOf(S)===-1){r(new m("Unsupported protocol "+S+":",m.ERR_BAD_REQUEST,e));return}h.send(o||null)})},mn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof m?l:new k(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new m(`timeout ${t} of ms exceeded`,m.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},yn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},bn=async function*(e,t){for await(const n of wn(e))yield*yn(n,t)},wn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ge=(e,t,n,r)=>{const s=bn(e,t);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let d=l.byteLength;if(n){let b=o+=d;n(b)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},Q=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",We=Q&&typeof ReadableStream=="function",En=Q&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ke=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rn=We&&Ke(()=>{let e=!1;const t=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Oe=64*1024,ie=We&&Ke(()=>a.isReadableStream(new Response("").body)),W={stream:ie&&(e=>e.body)};Q&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!W[t]&&(W[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new m(`Response type '${t}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const Sn=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(O.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await En(e)).byteLength},gn=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Sn(t)},On=Q&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:b}=Ve(e);u=u?(u+"").toLowerCase():"text";let R=mn([s,o&&o.toAbortSignal()],i),p;const y=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let h;try{if(f&&Rn&&n!=="get"&&n!=="head"&&(h=await gn(l,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),_;if(a.isFormData(r)&&(_=T.headers.get("content-type"))&&l.setContentType(_),T.body){const[F,M]=Ee(h,V(Re(f)));r=ge(T.body,Oe,F,M)}}a.isString(d)||(d=d?"include":"omit");const w="credentials"in Request.prototype;p=new Request(t,{...b,signal:R,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:w?d:void 0});let S=await fetch(p);const g=ie&&(u==="stream"||u==="response");if(ie&&(c||g&&y)){const T={};["status","statusText","headers"].forEach(de=>{T[de]=S[de]});const _=a.toFiniteNumber(S.headers.get("content-length")),[F,M]=c&&Ee(_,V(Re(c),!0))||[];S=new Response(ge(S.body,Oe,F,()=>{M&&M(),y&&y()}),T)}u=u||"text";let P=await W[a.findKey(W,u)||"text"](S,e);return!g&&y&&y(),await new Promise((T,_)=>{$e(T,_,{data:P,headers:A.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:p})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,e,p),{cause:w.cause||w}):m.from(w,w&&w.code,e,p)}}),ae={http:jt,xhr:hn,fetch:On};a.forEach(ae,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Te=e=>`- ${e}`,Tn=e=>a.isFunction(e)||e===null||e===!1,ve={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!Tn(n)&&(r=ae[(i=String(n)).toLowerCase()],r===void 0))throw new m(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
4
4
  `+o.map(Te).join(`
5
- `):" "+Te(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ae};function ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k(null,e)}function Ae(e){return ne(e),e.headers=A.from(e.headers),e.data=te.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ve.getAdapter(e.adapter||I.adapter)(e).then(function(r){return ne(e),r.data=te.call(e,e.transformResponse,r),r.headers=A.from(r.headers),r},function(r){return ze(r)||(ne(e),r&&r.response&&(r.response.data=te.call(e,e.transformResponse,r.response),r.response.headers=A.from(r.response.headers))),Promise.reject(r)})}const Xe="1.7.8",Z={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Z[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xe={};Z.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Xe+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!xe[i]&&(xe[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};Z.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function An(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new m("option "+o+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const J={assertOptions:An,validators:Z},N=J.validators;let B=class{constructor(t){this.defaults=t,this.interceptors={request:new be,response:new be}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
5
+ `):" "+Te(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ae};function ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k(null,e)}function Ae(e){return ne(e),e.headers=A.from(e.headers),e.data=te.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ve.getAdapter(e.adapter||I.adapter)(e).then(function(r){return ne(e),r.data=te.call(e,e.transformResponse,r),r.headers=A.from(r.headers),r},function(r){return ze(r)||(ne(e),r&&r.response&&(r.response.data=te.call(e,e.transformResponse,r.response),r.response.headers=A.from(r.response.headers))),Promise.reject(r)})}const Xe="1.7.9",Z={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Z[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xe={};Z.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Xe+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!xe[i]&&(xe[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};Z.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function An(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new m("option "+o+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const J={assertOptions:An,validators:Z},N=J.validators;let B=class{constructor(t){this.defaults=t,this.interceptors={request:new be,response:new be}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
6
  `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=D(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&J.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:J.assertOptions(s,{encode:N.function,serialize:N.function},!0)),J.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=A.concat(i,o);const c=[];let f=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(f=f&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let l,d=0,b;if(!f){const p=[Ae.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,u),b=p.length,l=Promise.resolve(n);d<b;)l=l.then(p[d++],p[d++]);return l}b=c.length;let R=n;for(d=0;d<b;){const p=c[d++],y=c[d++];try{R=p(R)}catch(h){y.call(this,h);break}}try{l=Ae.call(this,R)}catch(p){return Promise.reject(p)}for(d=0,b=u.length;d<b;)l=l.then(u[d++],u[d++]);return l}getUri(t){t=D(this.defaults,t);const n=Je(t.baseURL,t.url);return He(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){B.prototype[t]=function(n,r){return this.request(D(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(D(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}B.prototype[t]=n(),B.prototype[t+"Form"]=n(!0)});let xn=class Ge{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new k(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ge(function(s){t=s}),cancel:t}}};function Cn(e){return function(n){return e.apply(null,n)}}function Nn(e){return a.isObject(e)&&e.isAxiosError===!0}const ce={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(ce).forEach(([e,t])=>{ce[t]=e});function Qe(e){const t=new B(e),n=Ce(B.prototype.request,t);return a.extend(n,B.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Qe(D(e,s))},n}const E=Qe(I);E.Axios=B;E.CanceledError=k;E.CancelToken=xn;E.isCancel=ze;E.VERSION=Xe;E.toFormData=G;E.AxiosError=m;E.Cancel=E.CanceledError;E.all=function(t){return Promise.all(t)};E.spread=Cn;E.isAxiosError=Nn;E.mergeConfig=D;E.AxiosHeaders=A;E.formToJSON=e=>Me(a.isHTMLForm(e)?new FormData(e):e);E.getAdapter=ve.getAdapter;E.HttpStatusCode=ce;E.default=E;const{Axios:Fn,AxiosError:Ln,CanceledError:Bn,isCancel:Dn,CancelToken:Un,VERSION:kn,all:jn,Cancel:qn,isAxiosError:Hn,spread:In,toFormData:Mn,AxiosHeaders:zn,HttpStatusCode:$n,formToJSON:Jn,getAdapter:Vn,mergeConfig:Wn}=E;export{Ln as A,E as a};
@@ -1 +1 @@
1
- import"./vue3-toastify.B344fBI7.0.0.41.js";import{x as a}from"./main.DGoYNhZz.0.0.41.js";const n=async s=>(await a.post("/backup/download",{localStorage:s},{responseType:"arraybuffer"})).data,t=async s=>(await a.post("/backup/restore",s)).data;export{n as d,t as r};
1
+ import"./vue3-toastify.C-4dlaWB.0.0.42.js";import{x as a}from"./main.UISdF3me.0.0.42.js";const n=async s=>(await a.post("/backup/download",{localStorage:s},{responseType:"arraybuffer"})).data,t=async s=>(await a.post("/backup/restore",s)).data;export{n as d,t as r};
@@ -1 +1 @@
1
- import{c as j}from"./redux.BFxtlG_c.0.0.41.js";import{i as s,a as M}from"./@react-dnd.CcwRs9xb.0.0.41.js";function H(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function N(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function L(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,c)=>{o===1&&i.push(c)}),i}function k(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function B(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:c}=n,u=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,u,l);const f=W(r,u);if(f==null){t.dispatch(V);return}let b=null;if(o){if(!c)throw new Error("getSourceClientOffset must be defined");F(c),b=c(f)}t.dispatch(_(o,b));const D=l.getSource(f).beginDrag(u,f);if(D==null)return;X(D),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:D,sourceId:f,clientOffset:o||null,sourceClientOffset:b||null,isSourcePublic:!!i}}}}function q(t,e,r){s(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s(r.getSource(n),"Expected sourceIds to be registered.")})}function F(t){s(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function X(t){s(U(t),"Item must be an object.")}function W(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function z(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function J(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){z(t,i,r[i])})}return t}function Q(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Y(n),ee(n).forEach((c,u)=>{const l=Z(c,u,i,n),f={type:y,payload:{dropResult:J({},r,l)}};t.dispatch(f)})}}function Y(t){s(t.isDragging(),"Cannot call drop while not dragging."),s(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Z(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return K(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function K(t){s(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function ee(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function te(t){return function(){const r=t.getMonitor(),n=t.getRegistry();re(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function re(t){s(t.isDragging(),"Cannot call endDrag while not dragging.")}function T(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function ne(t){return function(r,{clientOffset:n}={}){ie(r);const i=r.slice(0),o=t.getMonitor(),c=t.getRegistry(),u=o.getItemType();return se(i,c,u),oe(i,o,c),ce(i,o,c),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ie(t){s(Array.isArray(t),"Expected targetIds to be an array.")}function oe(t,e,r){s(e.isDragging(),"Cannot call hover while not dragging."),s(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s(o,"Expected targetIds to be registered.")}}function se(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);T(o,r)||t.splice(n,1)}}function ce(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ue(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ae(t){return{beginDrag:B(t),publishDragSource:ue(t),hover:ne(t),drop:Q(t),endDrag:te(t)}}class fe{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...c)=>{const u=o.apply(e,c);typeof u<"u"&&r(u)}}const i=ae(this);return Object.keys(i).reduce((o,c)=>{const u=i[c];return o[c]=n(u),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function le(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function de(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(le(e,n),r)}function ge(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],C=[];g.__IS_NONE__=!0;C.__IS_ALL__=!0;function pe(t,e){return t===g?!1:t===C||typeof e>"u"?!0:k(e,t).length>0}class he{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s(typeof e=="function","listener must be a function."),s(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const c=this.store.getState(),u=c.stateId;try{u===i||u===i+1&&!pe(c.dirtyHandlerIds,n)||e()}finally{i=u}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return T(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!T(i,o))return!1;const c=this.getTargetIds();if(!c.length)return!1;const u=c.indexOf(e);return n?u===c.length-1:u>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return de(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ge(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const R="dnd-core/ADD_SOURCE",v="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function ye(t){return{type:R,payload:{sourceId:t}}}function Se(t){return{type:v,payload:{targetId:t}}}function Oe(t){return{type:x,payload:{sourceId:t}}}function be(t){return{type:O,payload:{targetId:t}}}function De(t){s(typeof t.canDrag=="function","Expected canDrag to be a function."),s(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s(typeof t.endDrag=="function","Expected endDrag to be a function.")}function Te(t){s(typeof t.canDrop=="function","Expected canDrop to be a function."),s(typeof t.hover=="function","Expected hover to be a function."),s(typeof t.drop=="function","Expected beginDrag to be a function.")}function m(t,e){if(e&&Array.isArray(t)){t.forEach(r=>m(r,!1));return}s(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var a;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(a||(a={}));let me=0;function Ee(){return me++}function Ie(t){const e=Ee().toString();switch(t){case a.SOURCE:return`S${e}`;case a.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return a.SOURCE;case"T":return a.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ce{addSource(e,r){m(e),De(r);const n=this.addHandler(a.SOURCE,e,r);return this.store.dispatch(ye(n)),n}addTarget(e,r){m(e,!0),Te(r);const n=this.addHandler(a.TARGET,e,r);return this.store.dispatch(Se(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===a.SOURCE}isTargetId(e){return w(e)===a.TARGET}removeSource(e){s(this.getSource(e),"Expected an existing source."),this.store.dispatch(Oe(e)),M(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(be(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ie(e);return this.types.set(i,r),e===a.SOURCE?this.dragSources.set(i,n):e===a.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Re=(t,e)=>t===e;function ve(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function xe(t,e,r=Re){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function _e(t=g,e){switch(e.type){case h:break;case R:case v:case O:case x:return g;case p:case I:case S:case y:default:return C}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=L(r,n);if(!(i.length>0||!xe(r,n)))return g;const c=n[n.length-1],u=r[r.length-1];return c!==u&&(c&&i.push(c),u&&i.push(u)),i}function we(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){we(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ae(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return ve(t.clientOffset,r.clientOffset)?t:Pe({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ue(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ue(t,i,r[i])})}return t}const Ge={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $e(t=Ge,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:N(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function je(t=0,e){switch(e.type){case R:case v:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function He(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){He(t,i,r[i])})}return t}function Le(t={},e){return{dirtyHandlerIds:_e(t.dirtyHandlerIds,{type:e.type,payload:Ne({},e.payload,{prevTargetIds:H(t,"dragOperation.targetIds",[])})}),dragOffset:Ae(t.dragOffset,e),refCount:je(t.refCount,e),dragOperation:$e(t.dragOperation,e),stateId:Me(t.stateId)}}function Fe(t,e=void 0,r={},n=!1){const i=ke(n),o=new he(i,new Ce(i)),c=new fe(i,o),u=t(c,e,r);return c.receiveBackend(u),c}function ke(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return j(Le,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}export{Fe as c};
1
+ import{c as j}from"./redux.BFxtlG_c.0.0.42.js";import{i as s,a as M}from"./@react-dnd.CcwRs9xb.0.0.42.js";function H(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function N(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function L(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,c)=>{o===1&&i.push(c)}),i}function k(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function B(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:c}=n,u=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,u,l);const f=W(r,u);if(f==null){t.dispatch(V);return}let b=null;if(o){if(!c)throw new Error("getSourceClientOffset must be defined");F(c),b=c(f)}t.dispatch(_(o,b));const D=l.getSource(f).beginDrag(u,f);if(D==null)return;X(D),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:D,sourceId:f,clientOffset:o||null,sourceClientOffset:b||null,isSourcePublic:!!i}}}}function q(t,e,r){s(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s(r.getSource(n),"Expected sourceIds to be registered.")})}function F(t){s(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function X(t){s(U(t),"Item must be an object.")}function W(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function z(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function J(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){z(t,i,r[i])})}return t}function Q(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Y(n),ee(n).forEach((c,u)=>{const l=Z(c,u,i,n),f={type:y,payload:{dropResult:J({},r,l)}};t.dispatch(f)})}}function Y(t){s(t.isDragging(),"Cannot call drop while not dragging."),s(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Z(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return K(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function K(t){s(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function ee(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function te(t){return function(){const r=t.getMonitor(),n=t.getRegistry();re(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function re(t){s(t.isDragging(),"Cannot call endDrag while not dragging.")}function T(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function ne(t){return function(r,{clientOffset:n}={}){ie(r);const i=r.slice(0),o=t.getMonitor(),c=t.getRegistry(),u=o.getItemType();return se(i,c,u),oe(i,o,c),ce(i,o,c),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ie(t){s(Array.isArray(t),"Expected targetIds to be an array.")}function oe(t,e,r){s(e.isDragging(),"Cannot call hover while not dragging."),s(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s(o,"Expected targetIds to be registered.")}}function se(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);T(o,r)||t.splice(n,1)}}function ce(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ue(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ae(t){return{beginDrag:B(t),publishDragSource:ue(t),hover:ne(t),drop:Q(t),endDrag:te(t)}}class fe{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...c)=>{const u=o.apply(e,c);typeof u<"u"&&r(u)}}const i=ae(this);return Object.keys(i).reduce((o,c)=>{const u=i[c];return o[c]=n(u),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function le(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function de(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(le(e,n),r)}function ge(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],C=[];g.__IS_NONE__=!0;C.__IS_ALL__=!0;function pe(t,e){return t===g?!1:t===C||typeof e>"u"?!0:k(e,t).length>0}class he{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s(typeof e=="function","listener must be a function."),s(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const c=this.store.getState(),u=c.stateId;try{u===i||u===i+1&&!pe(c.dirtyHandlerIds,n)||e()}finally{i=u}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return T(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!T(i,o))return!1;const c=this.getTargetIds();if(!c.length)return!1;const u=c.indexOf(e);return n?u===c.length-1:u>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return de(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ge(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const R="dnd-core/ADD_SOURCE",v="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function ye(t){return{type:R,payload:{sourceId:t}}}function Se(t){return{type:v,payload:{targetId:t}}}function Oe(t){return{type:x,payload:{sourceId:t}}}function be(t){return{type:O,payload:{targetId:t}}}function De(t){s(typeof t.canDrag=="function","Expected canDrag to be a function."),s(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s(typeof t.endDrag=="function","Expected endDrag to be a function.")}function Te(t){s(typeof t.canDrop=="function","Expected canDrop to be a function."),s(typeof t.hover=="function","Expected hover to be a function."),s(typeof t.drop=="function","Expected beginDrag to be a function.")}function m(t,e){if(e&&Array.isArray(t)){t.forEach(r=>m(r,!1));return}s(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var a;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(a||(a={}));let me=0;function Ee(){return me++}function Ie(t){const e=Ee().toString();switch(t){case a.SOURCE:return`S${e}`;case a.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return a.SOURCE;case"T":return a.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ce{addSource(e,r){m(e),De(r);const n=this.addHandler(a.SOURCE,e,r);return this.store.dispatch(ye(n)),n}addTarget(e,r){m(e,!0),Te(r);const n=this.addHandler(a.TARGET,e,r);return this.store.dispatch(Se(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===a.SOURCE}isTargetId(e){return w(e)===a.TARGET}removeSource(e){s(this.getSource(e),"Expected an existing source."),this.store.dispatch(Oe(e)),M(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(be(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ie(e);return this.types.set(i,r),e===a.SOURCE?this.dragSources.set(i,n):e===a.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Re=(t,e)=>t===e;function ve(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function xe(t,e,r=Re){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function _e(t=g,e){switch(e.type){case h:break;case R:case v:case O:case x:return g;case p:case I:case S:case y:default:return C}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=L(r,n);if(!(i.length>0||!xe(r,n)))return g;const c=n[n.length-1],u=r[r.length-1];return c!==u&&(c&&i.push(c),u&&i.push(u)),i}function we(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){we(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ae(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return ve(t.clientOffset,r.clientOffset)?t:Pe({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ue(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ue(t,i,r[i])})}return t}const Ge={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $e(t=Ge,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:N(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function je(t=0,e){switch(e.type){case R:case v:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function He(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){He(t,i,r[i])})}return t}function Le(t={},e){return{dirtyHandlerIds:_e(t.dirtyHandlerIds,{type:e.type,payload:Ne({},e.payload,{prevTargetIds:H(t,"dragOperation.targetIds",[])})}),dragOffset:Ae(t.dragOffset,e),refCount:je(t.refCount,e),dragOperation:$e(t.dragOperation,e),stateId:Me(t.stateId)}}function Fe(t,e=void 0,r={},n=!1){const i=ke(n),o=new he(i,new Ce(i)),c=new fe(i,o),u=t(c,e,r);return c.receiveBackend(u),c}function ke(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return j(Le,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}export{Fe as c};
@@ -1,4 +1,4 @@
1
- import{g as $}from"./@xterm.ChIdrMXz.0.0.41.js";import{r as q}from"./get-size.D1dS-IaP.0.0.41.js";import{r as M}from"./unidragger.Coz7gnad.0.0.41.js";var f={exports:{}};/*!
1
+ import{g as $}from"./@xterm.DcCEcUkn.0.0.42.js";import{r as q}from"./get-size.D1dS-IaP.0.0.42.js";import{r as M}from"./unidragger.nnXyFKz_.0.0.42.js";var f={exports:{}};/*!
2
2
  * Draggabilly v3.0.0
3
3
  * Make that shiz draggable
4
4
  * https://draggabilly.desandro.com
@@ -1 +1 @@
1
- import{d as L,a as O,e as B,b as H,c as U,f as F,p as x}from"./engine.io-parser.BiEtp6m2.0.0.41.js";import{E as y}from"./@socket.io.Dkula2eQ.0.0.41.js";const _=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),a=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),I="arraybuffer";function E(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}const N=a.setTimeout,A=a.clearTimeout;function w(r,e){e.useNativeTimers?(r.setTimeoutFn=N.bind(a),r.clearTimeoutFn=A.bind(a)):(r.setTimeoutFn=a.setTimeout.bind(a),r.clearTimeoutFn=a.clearTimeout.bind(a))}const W=1.33;function D(r){return typeof r=="string"?M(r):Math.ceil((r.byteLength||r.size)*W)}function M(r){let e=0,t=0;for(let s=0,i=r.length;s<i;s++)e=r.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function R(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function X(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function z(r){let e={},t=r.split("&");for(let s=0,i=t.length;s<i;s++){let o=t[s].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}class J extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class b extends y{constructor(e){super(),this.writable=!1,w(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new J(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=L(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=X(e);return t.length?"?"+t:""}}class V extends b{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};O(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,B(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=R()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let P=!1;try{P=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const j=P;function $(){}class G extends V{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class h extends y{constructor(e,t,s){super(),this.createRequest=e,w(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=E(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=h.requestsCount++,h.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=$,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete h.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}h.requestsCount=0;h.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",k);else if(typeof addEventListener=="function"){const r="onpagehide"in a?"pagehide":"unload";addEventListener(r,k,!1)}}function k(){for(let r in h.requests)h.requests.hasOwnProperty(r)&&h.requests[r].abort()}const K=function(){const r=q({xdomain:!1});return r&&r.responseType!==null}();class Q extends G{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=K&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new h(q,this.uri(),e)}}function q(r){const e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||j))return new XMLHttpRequest}catch{}if(!e)try{return new a[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const C=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Y extends b{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=C?{}:E(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;H(s,this.supportsBinary,o=>{try{this.doWrite(s,o)}catch{}i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=R()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const m=a.WebSocket||a.MozWebSocket;class Z extends Y{createSocket(e,t,s){return C?new m(e,t,s):t?new m(e,t):new m(e)}doWrite(e,t){this.ws.send(t)}}class ee extends b{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=U(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=F();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const o=()=>{s.read().then(({done:l,value:d})=>{l||(this.onPacket(d),o())}).catch(l=>{})};o();const n={type:"open"};this.query.sid&&(n.data=`{"sid":"${this.query.sid}"}`),this._writer.write(n).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const te={websocket:Z,webtransport:ee,polling:Q},se=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,re=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function S(r){if(r.length>8e3)throw"URI too long";const e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=se.exec(r||""),o={},n=14;for(;n--;)o[re[n]]=i[n]||"";return t!=-1&&s!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ie(o,o.path),o.queryKey=oe(o,o.query),o}function ie(r,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function oe(r,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(t[i]=o)}),t}const g=typeof addEventListener=="function"&&typeof removeEventListener=="function",f=[];g&&addEventListener("offline",()=>{f.forEach(r=>r())},!1);class c extends y{constructor(e,t){if(super(),this.binaryType=I,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=S(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=S(t.host).host);w(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=z(this.opts.query)),g&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},f.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=x,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const i=this.writeBuffer[s].data;if(i&&(t+=D(i)),s>0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,_(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:e,data:t,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(c.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),g&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=f.indexOf(this._offlineEventListener);s!==-1&&f.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}c.protocol=x;class ne extends c{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;c.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",p=>{if(!s)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;c.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(T(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=t.name,this.emitReserved("upgradeError",u)}}))};function o(){s||(s=!0,T(),t.close(),t=null)}const n=p=>{const u=new Error("probe error: "+p);u.transport=t.name,o(),this.emitReserved("upgradeError",u)};function l(){n("transport closed")}function d(){n("socket closed")}function v(p){t&&p.name!==t.name&&o()}const T=()=>{t.removeListener("open",i),t.removeListener("error",n),t.removeListener("close",l),this.off("close",d),this.off("upgrading",v)};t.once("open",i),t.once("error",n),t.once("close",l),this.once("close",d),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}class ce extends ne{constructor(e,t={}){const s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>te[i]).filter(i=>!!i)),super(e,s)}}export{ce as S,w as i,_ as n,S as p};
1
+ import{d as L,a as O,e as B,b as H,c as U,f as F,p as x}from"./engine.io-parser.BiEtp6m2.0.0.42.js";import{E as y}from"./@socket.io.Dkula2eQ.0.0.42.js";const _=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),a=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),I="arraybuffer";function E(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}const N=a.setTimeout,A=a.clearTimeout;function w(r,e){e.useNativeTimers?(r.setTimeoutFn=N.bind(a),r.clearTimeoutFn=A.bind(a)):(r.setTimeoutFn=a.setTimeout.bind(a),r.clearTimeoutFn=a.clearTimeout.bind(a))}const W=1.33;function D(r){return typeof r=="string"?M(r):Math.ceil((r.byteLength||r.size)*W)}function M(r){let e=0,t=0;for(let s=0,i=r.length;s<i;s++)e=r.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function R(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function X(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function z(r){let e={},t=r.split("&");for(let s=0,i=t.length;s<i;s++){let o=t[s].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}class J extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class b extends y{constructor(e){super(),this.writable=!1,w(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new J(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=L(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=X(e);return t.length?"?"+t:""}}class V extends b{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};O(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,B(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=R()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let P=!1;try{P=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const j=P;function $(){}class G extends V{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class h extends y{constructor(e,t,s){super(),this.createRequest=e,w(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=E(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=h.requestsCount++,h.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=$,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete h.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}h.requestsCount=0;h.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",k);else if(typeof addEventListener=="function"){const r="onpagehide"in a?"pagehide":"unload";addEventListener(r,k,!1)}}function k(){for(let r in h.requests)h.requests.hasOwnProperty(r)&&h.requests[r].abort()}const K=function(){const r=q({xdomain:!1});return r&&r.responseType!==null}();class Q extends G{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=K&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new h(q,this.uri(),e)}}function q(r){const e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||j))return new XMLHttpRequest}catch{}if(!e)try{return new a[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const C=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Y extends b{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=C?{}:E(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;H(s,this.supportsBinary,o=>{try{this.doWrite(s,o)}catch{}i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=R()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const m=a.WebSocket||a.MozWebSocket;class Z extends Y{createSocket(e,t,s){return C?new m(e,t,s):t?new m(e,t):new m(e)}doWrite(e,t){this.ws.send(t)}}class ee extends b{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=U(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=F();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const o=()=>{s.read().then(({done:l,value:d})=>{l||(this.onPacket(d),o())}).catch(l=>{})};o();const n={type:"open"};this.query.sid&&(n.data=`{"sid":"${this.query.sid}"}`),this._writer.write(n).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const te={websocket:Z,webtransport:ee,polling:Q},se=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,re=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function S(r){if(r.length>8e3)throw"URI too long";const e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=se.exec(r||""),o={},n=14;for(;n--;)o[re[n]]=i[n]||"";return t!=-1&&s!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ie(o,o.path),o.queryKey=oe(o,o.query),o}function ie(r,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function oe(r,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(t[i]=o)}),t}const g=typeof addEventListener=="function"&&typeof removeEventListener=="function",f=[];g&&addEventListener("offline",()=>{f.forEach(r=>r())},!1);class c extends y{constructor(e,t){if(super(),this.binaryType=I,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=S(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=S(t.host).host);w(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=z(this.opts.query)),g&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},f.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=x,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const i=this.writeBuffer[s].data;if(i&&(t+=D(i)),s>0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,_(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:e,data:t,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(c.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),g&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=f.indexOf(this._offlineEventListener);s!==-1&&f.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}c.protocol=x;class ne extends c{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;c.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",p=>{if(!s)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;c.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(T(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=t.name,this.emitReserved("upgradeError",u)}}))};function o(){s||(s=!0,T(),t.close(),t=null)}const n=p=>{const u=new Error("probe error: "+p);u.transport=t.name,o(),this.emitReserved("upgradeError",u)};function l(){n("transport closed")}function d(){n("socket closed")}function v(p){t&&p.name!==t.name&&o()}const T=()=>{t.removeListener("open",i),t.removeListener("error",n),t.removeListener("close",l),this.off("close",d),this.off("upgrading",v)};t.once("open",i),t.once("error",n),t.once("close",l),this.once("close",d),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}class ce extends ne{constructor(e,t={}){const s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>te[i]).filter(i=>!!i)),super(e,s)}}export{ce as S,w as i,_ as n,S as p};
@@ -1 +1 @@
1
- import{g as l}from"./@xterm.ChIdrMXz.0.0.41.js";var o,c;function a(){return c||(c=1,o=function n(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var u,e,f;if(Array.isArray(r)){if(u=r.length,u!=t.length)return!1;for(e=u;e--!==0;)if(!n(r[e],t[e]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(f=Object.keys(r),u=f.length,u!==Object.keys(t).length)return!1;for(e=u;e--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[e]))return!1;for(e=u;e--!==0;){var s=f[e];if(!n(r[s],t[s]))return!1}return!0}return r!==r&&t!==t}),o}var p=a();const O=l(p);export{O as e};
1
+ import{g as l}from"./@xterm.DcCEcUkn.0.0.42.js";var o,c;function a(){return c||(c=1,o=function n(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var u,e,f;if(Array.isArray(r)){if(u=r.length,u!=t.length)return!1;for(e=u;e--!==0;)if(!n(r[e],t[e]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(f=Object.keys(r),u=f.length,u!==Object.keys(t).length)return!1;for(e=u;e--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[e]))return!1;for(e=u;e--!==0;){var s=f[e];if(!n(r[s],t[s]))return!1}return!0}return r!==r&&t!==t}),o}var p=a();const O=l(p);export{O as e};