camera.ui3 0.0.31-alpha.3 → 0.0.31-alpha.4
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.
- package/dist/interface/{@intlify.D-zKcAzQ.0.0.31-alpha.3.js → @intlify.Jdj6PDCT.0.0.31-alpha.4.js} +5 -5
- package/dist/interface/@tanstack.u9j0vFG7.0.0.31-alpha.4.js +1 -0
- package/dist/interface/{@vee-validate.CRR-zynB.0.0.31-alpha.3.js → @vee-validate.CeTK5aSi.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/@vue.BH6Bo0Pn.0.0.31-alpha.4.js +17 -0
- package/dist/interface/{@vueform.Bc8doccG.0.0.31-alpha.3.js → @vueform.BK0SRdZT.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{@vueuse.DilXJfuq.0.0.31-alpha.3.js → @vueuse.L53ctOxB.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{Account.DUJ2ChYh.0.0.31-alpha.3.js → Account.DHs-KLmU.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{Adminpanel.Bs5BSHqj.0.0.31-alpha.3.js → Adminpanel.BOEzHUvR.0.0.31-alpha.4.js} +2 -2
- package/dist/interface/{Appearance.px0zfdT6.0.0.31-alpha.3.js → Appearance.DK5A9rgs.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{Backup.fnNyl37I.0.0.31-alpha.3.js → Backup.EFH8hrjt.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{Camera.BxYs0sBu.0.0.31-alpha.3.js → Camera.U4jywpEp.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{Cameras.WZcYU7ET.0.0.31-alpha.3.js → Cameras.DUgAvSn3.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{Camview.DdU54VBc.0.0.31-alpha.3.js → Camview.ouLWdVoJ.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{Config.DcqbW26O.0.0.31-alpha.3.js → Config.Ci1OL_As.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{Console.zg9yV3pk.0.0.31-alpha.3.js → Console.C8c6w5YK.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{FirstSteps.CtANqbfR.0.0.31-alpha.3.js → FirstSteps.Cta-bQRC.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{NewCamera.ByScMX1A.0.0.31-alpha.3.js → NewCamera.DHfe1GsP.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{Plugin.BO6pVLjB.0.0.31-alpha.3.js → Plugin.Bp-p6qzO.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{Plugins.DiwDf7eb.0.0.31-alpha.3.js → Plugins.DKG-euyo.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/Recordings.DvfXUR9h.0.0.31-alpha.4.js +1 -0
- package/dist/interface/Recordings.RJVoljmf.0.0.31-alpha.4.js +1 -0
- package/dist/interface/{Settings.DtCoqTZg.0.0.31-alpha.3.js → Settings.B6oomJuI.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{System.QV_J5S2i.0.0.31-alpha.3.js → System.DYqzMqvm.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{User.BOiBRofa.0.0.31-alpha.3.js → User.BX6H5sQ7.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{VConfigEditor.vue_vue_type_script_setup_true_lang.DrOIGJs8.0.0.31-alpha.3.js → VConfigEditor.vue_vue_type_script_setup_true_lang.BVi__CZg.0.0.31-alpha.4.js} +2 -2
- package/dist/interface/{VConsole.DpzWvk8_.0.0.31-alpha.3.js → VConsole.DE3kdzhx.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{VPlayer.BbnWJq6v.0.0.31-alpha.3.js → VPlayer.DBmxioQd.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{VPluginCard.ByhIZRtG.0.0.31-alpha.3.js → VPluginCard.DjaavIDj.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{ace-builds.CiNjpneP.0.0.31-alpha.3.js → ace-builds.Dx450mYI.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{apexcharts.BC7dHJey.0.0.31-alpha.3.js → apexcharts.OmQvSZRP.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{dnd-core.DGBOJ56p.0.0.31-alpha.3.js → dnd-core.D_o4rKnM.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{draggabilly.Df44wrEw.0.0.31-alpha.3.js → draggabilly.BgUX20jQ.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{engine.io-client.BHlY_gPI.0.0.31-alpha.3.js → engine.io-client.Ct3XmaZr.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{ev-emitter.CaI-eq2c.0.0.31-alpha.3.js → ev-emitter.C-zXZyj5.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{fast-deep-equal.CGteOI15.0.0.31-alpha.3.js → fast-deep-equal.DnuWAPiP.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{highlight.js.CBE8OK5M.0.0.31-alpha.3.js → highlight.js.83tXWXtw.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/index.html +34 -34
- package/dist/interface/{linkify-it.D8YmDxfh.0.0.31-alpha.3.js → linkify-it.tOYhRcj3.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/main.J8NGbG5S.0.0.31-alpha.4.js +2 -0
- package/dist/interface/{markdown-it.BLLBOvQA.0.0.31-alpha.3.js → markdown-it.6mdFTr-e.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{nprogress.CYUDEACo.0.0.31-alpha.3.js → nprogress.iYKNBadB.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{pinia.BSjp3AdH.0.0.31-alpha.3.js → pinia.E6ew1z2Q.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{plugins.BYw-u_wj.0.0.31-alpha.3.js → plugins.VJiYKYRl.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/pwa/pwa-120x120.png +0 -0
- package/dist/interface/pwa/pwa-144x144.png +0 -0
- package/dist/interface/pwa/pwa-152x152.png +0 -0
- package/dist/interface/pwa/pwa-167x167.png +0 -0
- package/dist/interface/pwa/pwa-192x192.png +0 -0
- package/dist/interface/pwa/pwa-24x24.png +0 -0
- package/dist/interface/pwa/pwa-36x36.png +0 -0
- package/dist/interface/pwa/pwa-48x48.png +0 -0
- package/dist/interface/pwa/pwa-50x50.png +0 -0
- package/dist/interface/pwa/pwa-64x64.png +0 -0
- package/dist/interface/pwa/pwa-72x72.png +0 -0
- package/dist/interface/pwa/pwa-88x88.png +0 -0
- package/dist/interface/pwa/pwa-96x96.png +0 -0
- package/dist/interface/{qrcode.ViEJWv07.0.0.31-alpha.3.js → qrcode.D1EYQJZ8.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{react-dnd-touch-backend.B25g6HMz.0.0.31-alpha.3.js → react-dnd-touch-backend.B6P_MW8h.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{rxjs.DAxo7H7n.0.0.31-alpha.3.js → rxjs.CxkkGsQ5.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{socket.io-client.BAvngsQr.0.0.31-alpha.3.js → socket.io-client.C_eRWoxp.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{socket.io-parser.CtF_-BH9.0.0.31-alpha.3.js → socket.io-parser.CREbE98O.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/sw.js +1 -1
- package/dist/interface/{system.Bq8F1liq.0.0.31-alpha.3.js → system.DpI2abFn.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{ui.DATGy2-L.0.0.31-alpha.3.js → ui.3yvnEIE1.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{unidragger.Bhi60qVI.0.0.31-alpha.3.js → unidragger.DLjMBILF.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{v-calendar.aXsE30_x.0.0.31-alpha.3.js → v-calendar.DHNvU-YH.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{vee-validate.Cw-ckZ38.0.0.31-alpha.3.js → vee-validate.B1-qhDGi.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{vue-i18n.BZqluQfO.0.0.31-alpha.3.js → vue-i18n.pFxQhMHL.0.0.31-alpha.4.js} +4 -4
- package/dist/interface/{vue-inline-svg.DVQ-GYng.0.0.31-alpha.3.js → vue-inline-svg.fvr_QCTK.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{vue-router.B7Lhq6-j.0.0.31-alpha.3.js → vue-router.QYYQLEuQ.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{vue3-apexcharts.Cs1h-kYs.0.0.31-alpha.3.js → vue3-apexcharts.BeWkPuyx.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{vue3-dnd.WByi5z3Y.0.0.31-alpha.3.js → vue3-dnd.UqV602qV.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{vue3-toastify.CAYOaBs7.0.0.31-alpha.3.js → vue3-toastify.fPSwJwA9.0.0.31-alpha.4.js} +1 -1
- package/dist/interface/{vuetify.BSQt06NV.0.0.31-alpha.3.js → vuetify.B5tihVxi.0.0.31-alpha.4.js} +1 -1
- package/dist/server/bin/cameraui.d.ts +0 -6
- package/dist/server/bin/cameraui.js +9 -128
- package/dist/server/bin/cameraui.js.map +1 -1
- package/dist/server/bin/installer/freebsd.js +3 -0
- package/dist/server/bin/installer/freebsd.js.map +1 -1
- package/dist/server/bin/installer/linux.d.ts +6 -0
- package/dist/server/bin/installer/linux.js +31 -2
- package/dist/server/bin/installer/linux.js.map +1 -1
- package/dist/server/bin/logger.d.ts +16 -0
- package/dist/server/bin/logger.js +133 -0
- package/dist/server/bin/logger.js.map +1 -0
- package/dist/server/package.json +7 -7
- package/dist/server/src/api/services/cameras.service.js.map +1 -1
- package/package.json +7 -7
- package/dist/interface/@tanstack.BESNofNd.0.0.31-alpha.3.js +0 -1
- package/dist/interface/@vue.DawUEI-_.0.0.31-alpha.3.js +0 -17
- package/dist/interface/Recordings.DWlYo0_z.0.0.31-alpha.3.js +0 -1
- package/dist/interface/Recordings.DX29red_.0.0.31-alpha.3.js +0 -1
- package/dist/interface/main.DpuxXIXo.0.0.31-alpha.3.js +0 -2
- /package/dist/interface/{@babel.l0sNRNKZ.0.0.31-alpha.3.js → @babel.l0sNRNKZ.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{@camera.ui.DiVLAlWa.0.0.31-alpha.3.js → @camera.ui.DiVLAlWa.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{@mdi.DVdKciOk.0.0.31-alpha.3.js → @mdi.DVdKciOk.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{@popperjs.BQBsAJpH.0.0.31-alpha.3.js → @popperjs.BQBsAJpH.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.31-alpha.3.js → @react-dnd.CcwRs9xb.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{@socket.io.Dkula2eQ.0.0.31-alpha.3.js → @socket.io.Dkula2eQ.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{@xterm.BFqH4gFP.0.0.31-alpha.3.js → @xterm.D1SKXPWU.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/assets/{@vueform.0.0.31-alpha.3.h7tNX9p6.css → @vueform.0.0.31-alpha.4.h7tNX9p6.css} +0 -0
- /package/dist/interface/assets/{@xterm.0.0.31-alpha.3.CGrrDQr5.css → @xterm.0.0.31-alpha.4.CGrrDQr5.css} +0 -0
- /package/dist/interface/assets/{Account.0.0.31-alpha.3.Ce3OmKrC.css → Account.0.0.31-alpha.4.Ce3OmKrC.css} +0 -0
- /package/dist/interface/assets/{Adminpanel.0.0.31-alpha.3.CXsTAXPL.css → Adminpanel.0.0.31-alpha.4.CXsTAXPL.css} +0 -0
- /package/dist/interface/assets/{Backup.0.0.31-alpha.3.BIwaSlv3.css → Backup.0.0.31-alpha.4.BIwaSlv3.css} +0 -0
- /package/dist/interface/assets/{Camera.0.0.31-alpha.3.BDtUJ-lA.css → Camera.0.0.31-alpha.4.BDtUJ-lA.css} +0 -0
- /package/dist/interface/assets/{Cameras.0.0.31-alpha.3.Djx0F2MM.css → Cameras.0.0.31-alpha.4.Djx0F2MM.css} +0 -0
- /package/dist/interface/assets/{Camview.0.0.31-alpha.3.Ce_V-Nxj.css → Camview.0.0.31-alpha.4.Ce_V-Nxj.css} +0 -0
- /package/dist/interface/assets/{Config.0.0.31-alpha.3.xOTKGJ5Y.css → Config.0.0.31-alpha.4.xOTKGJ5Y.css} +0 -0
- /package/dist/interface/assets/{Console.0.0.31-alpha.3.DWrfRWs9.css → Console.0.0.31-alpha.4.DWrfRWs9.css} +0 -0
- /package/dist/interface/assets/{FirstSteps.0.0.31-alpha.3.CCo2y-sU.css → FirstSteps.0.0.31-alpha.4.CCo2y-sU.css} +0 -0
- /package/dist/interface/assets/{NewCamera.0.0.31-alpha.3.BWK7TkdY.css → NewCamera.0.0.31-alpha.4.BWK7TkdY.css} +0 -0
- /package/dist/interface/assets/{Plugin.0.0.31-alpha.3.BtRA6zDt.css → Plugin.0.0.31-alpha.4.BtRA6zDt.css} +0 -0
- /package/dist/interface/assets/{Plugins.0.0.31-alpha.3.Cwu0aGUO.css → Plugins.0.0.31-alpha.4.Cwu0aGUO.css} +0 -0
- /package/dist/interface/assets/{Settings.0.0.31-alpha.3.DC_-E3CR.css → Settings.0.0.31-alpha.4.DC_-E3CR.css} +0 -0
- /package/dist/interface/assets/{User.0.0.31-alpha.3.DPDcJbx8.css → User.0.0.31-alpha.4.DPDcJbx8.css} +0 -0
- /package/dist/interface/assets/{VConsole.0.0.31-alpha.3.BZT1WyS-.css → VConsole.0.0.31-alpha.4.BZT1WyS-.css} +0 -0
- /package/dist/interface/assets/{VPlayer.0.0.31-alpha.3.6GqQ0F0K.css → VPlayer.0.0.31-alpha.4.6GqQ0F0K.css} +0 -0
- /package/dist/interface/assets/{VPluginCard.0.0.31-alpha.3.CyNvwFGk.css → VPluginCard.0.0.31-alpha.4.CyNvwFGk.css} +0 -0
- /package/dist/interface/assets/{highlight.0.0.31-alpha.3.DgoK_Xib.css → highlight.0.0.31-alpha.4.DgoK_Xib.css} +0 -0
- /package/dist/interface/assets/{logo-256.0.0.31-alpha.3.BCQk9H1-.png → logo-256.0.0.31-alpha.4.BCQk9H1-.png} +0 -0
- /package/dist/interface/assets/{logo-512.0.0.31-alpha.3.DLKVOU2S.png → logo-512.0.0.31-alpha.4.DLKVOU2S.png} +0 -0
- /package/dist/interface/assets/{logo.0.0.31-alpha.3.DmEiRk0z.png → logo.0.0.31-alpha.4.DmEiRk0z.png} +0 -0
- /package/dist/interface/assets/{main.0.0.31-alpha.3.CqDyfc1x.css → main.0.0.31-alpha.4.CqDyfc1x.css} +0 -0
- /package/dist/interface/assets/{mode-json.0.0.31-alpha.3.Br7xisR1.js → mode-json.0.0.31-alpha.4.Br7xisR1.js} +0 -0
- /package/dist/interface/assets/{mode-yaml.0.0.31-alpha.3.CIYL8U3d.js → mode-yaml.0.0.31-alpha.4.CIYL8U3d.js} +0 -0
- /package/dist/interface/assets/{v-calendar.0.0.31-alpha.3.CtSuDYZU.css → v-calendar.0.0.31-alpha.4.CtSuDYZU.css} +0 -0
- /package/dist/interface/assets/{vue3-toastify.0.0.31-alpha.3.DTY1DMRs.css → vue3-toastify.0.0.31-alpha.4.DTY1DMRs.css} +0 -0
- /package/dist/interface/assets/{vuetify.0.0.31-alpha.3.Cd1awv3t.css → vuetify.0.0.31-alpha.4.Cd1awv3t.css} +0 -0
- /package/dist/interface/{axios.C-n2IhIP.0.0.31-alpha.3.js → axios.C-n2IhIP.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{compare-versions.DqEOhma6.0.0.31-alpha.3.js → compare-versions.DqEOhma6.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{dijkstrajs.D_NXgYpA.0.0.31-alpha.3.js → dijkstrajs.D_NXgYpA.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.31-alpha.3.js → engine.io-parser.BiEtp6m2.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{entities.C20TfXL6.0.0.31-alpha.3.js → entities.C20TfXL6.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{get-size.D1dS-IaP.0.0.31-alpha.3.js → get-size.D1dS-IaP.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{mdurl.k9Sl0PQj.0.0.31-alpha.3.js → mdurl.k9Sl0PQj.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{punycode.js.Dj65hjkv.0.0.31-alpha.3.js → punycode.js.Dj65hjkv.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.31-alpha.3.js → react-dnd-html5-backend.1HQjlkwI.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{redux.CuxFRhX_.0.0.31-alpha.3.js → redux.CuxFRhX_.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{tslib.9k7AwCpt.0.0.31-alpha.3.js → tslib.9k7AwCpt.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{types.Cz9TaZAP.0.0.31-alpha.3.js → types.Cz9TaZAP.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{uc.micro.kMc2yuuw.0.0.31-alpha.3.js → uc.micro.kMc2yuuw.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{utils.mAKpSMLY.0.0.31-alpha.3.js → utils.mAKpSMLY.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{uuid.DvF23Exx.0.0.31-alpha.3.js → uuid.DvF23Exx.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{vue.l0sNRNKZ.0.0.31-alpha.3.js → vue.l0sNRNKZ.0.0.31-alpha.4.js} +0 -0
- /package/dist/interface/{zod.DnW1_kUe.0.0.31-alpha.3.js → zod.DnW1_kUe.0.0.31-alpha.4.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as yt}from"./VConfigEditor.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import{_ as yt}from"./VConfigEditor.vue_vue_type_script_setup_true_lang.BVi__CZg.0.0.31-alpha.4.js";import{y as ht,a as bt,f as _t,e as wt,w as xt,d as Pt}from"./main.J8NGbG5S.0.0.31-alpha.4.js";import{G as kt,t as Vt,r as p,c as H,w as $,a3 as Nt,V as Ct,K as $t,b as r,d as w,f as i,u as e,Y as S,N as n,S as o,W as g,U as u,k as d,P as y,m as ee,i as P,p as x,ap as Lt}from"./@vue.BH6Bo0Pn.0.0.31-alpha.4.js";import{as as ge,ac as St,h as Qt,g as At,at as fe,au as ve,aa as zt,av as Bt,aw as Tt,ax as Ut,T as Rt}from"./@mdi.DVdKciOk.0.0.31-alpha.4.js";import{b as Dt}from"./@vueform.BK0SRdZT.0.0.31-alpha.4.js";import{i as It}from"./vue3-toastify.fPSwJwA9.0.0.31-alpha.4.js";import{P as Et}from"./plugins.VJiYKYRl.0.0.31-alpha.4.js";import{S as Ot}from"./system.DpI2abFn.0.0.31-alpha.4.js";import{V as jt}from"./VConsole.DE3kdzhx.0.0.31-alpha.4.js";import{P as _}from"./types.Cz9TaZAP.0.0.31-alpha.4.js";import{s as Wt}from"./pinia.E6ew1z2Q.0.0.31-alpha.4.js";import{e as h,V as oe,$ as Mt,X as ye,m as Ht,l as he,b as U,f as Q,j as Jt,o as Kt,I as Gt,J as Ft,H as Yt,y as qt}from"./vuetify.B5tihVxi.0.0.31-alpha.4.js";const Xt={class:"flex space-x-4 w-full"},Zt={key:0,class:"relative"},el={class:"absolute",style:{"z-index":"1",bottom:"0px",right:"-5px"}},tl={class:"flex items-center w-full truncate",style:{height:"28px","max-height":"28px"}},ll={key:0,class:"mx-1"},sl={class:"ml-auto"},al={key:0},ol={key:0,class:"truncate text-sm text-disabled"},nl={class:"w-full h-full py-3"},il={class:"multiline-ellipsis text-disabled text-sm"},ul={class:"flex space-x-1 items-center h-full w-full mt-auto",style:{height:"28px","max-height":"28px"}},rl={class:"flex items-center justify-center"},dl={style:{"font-size":"9pt"}},cl={style:{margin:"5px"}},ml={class:"flex flex-row w-full justify-start items-center"},pl={class:"icon-wrapper"},gl={class:"menu-item ml-2"},fl={key:1,class:"my-1"},vl={class:"flex flex-row w-full justify-start items-center"},yl={class:"icon-wrapper"},hl={class:"menu-item ml-2"},bl={key:2,class:"my-1"},_l={class:"flex flex-row w-full justify-start items-center"},wl={class:"icon-wrapper"},xl={class:"menu-item ml-2"},Pl={key:3,class:"my-1"},kl={class:"flex flex-row w-full justify-start items-center"},Vl={class:"icon-wrapper"},Nl={class:"menu-item ml-2"},Cl={key:5,class:"my-1"},$l={class:"flex flex-row w-full justify-start items-center"},Ll={class:"icon-wrapper"},Sl={class:"menu-item ml-2"},Ql={key:7,class:"my-1"},Al={class:"flex flex-row w-full justify-start items-center"},zl={class:"icon-wrapper"},Bl={class:"menu-item ml-2",style:{color:"#ef4444 !important"}},Tl={class:"text-white"},Ul={class:"v-label"},Rl=kt({__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(be,{emit:_e}){const c=new Et,J=new Ot,ne=ht(),we=bt(),{smallMobileActive:K}=_t(),xe=_e,Pe=be,{plugin:t,background:ie,borderRadius:ke,height:Ve,minHeight:Ne,maxHeight:Ce,width:$e,minWidth:Le,maxWidth:Se,showToggle:ue,showSettings:Qe,showInstallButton:Ae,showLogo:G,showRestart:ze,showPluginStatus:re,showLogs:Be,showConfigs:Te,showPluginType:Ue,showPluginCode:de,showFullPluginName:Re}=Vt(Pe),{theme:De}=Wt(we),R=p(""),ce=p(t.value.installedVersion||t.value.latestVersion),D=p(t.value.installedVersion||t.value.latestVersion),Ie=p(!1),k=p(),F=p(),Ee=p(null),m=p({color:"rgba(var(--color-rgb), 0.3)",text:_.UNKNOWN}),Y=p(!1),L=p(!t.value.disabled),I=p(!1),A=p(!1),V=p(!1),z=p(!1),B=p(!1),E=p(!1),q=p(!1),O=p(null);J.toggleQueryActivator("downloadLogQuery",!1),c.toggleQueryActivator("getPluginVersionsQuery",!1),c.toggleQueryActivator("getPluginConfigJsonQuery",!1),c.toggleQueryActivator("getPluginUpdateQuery",t.value.installPath!==void 0),c.toggleQueryActivator("getPluginLogoQuery",G.value);const{mutateAsync:Oe,isPending:je}=c.enablePluginQuery(),{mutateAsync:We,isPending:Me}=c.disablePluginQuery(),{mutateAsync:He,isPending:Je}=c.startPluginQuery(),{mutateAsync:Ke,isPending:Ge}=c.stopPluginQuery(),{mutateAsync:Fe,isPending:Ye}=c.restartPluginQuery(),{mutateAsync:qe,isPending:Xe}=c.installPluginQuery(),{mutateAsync:Ze,isPending:et}=c.uninstallPluginQuery(),{mutate:tt,isPending:lt}=c.patchPluginConfigQuery(),{data:X,isLoading:te}=c.getPluginVersionsQuery(t.value.pluginName),{data:j,isLoading:st}=c.getPluginUpdateQuery(t.value.pluginName),{data:le,isLoading:at}=c.getPluginConfigJsonQuery(t.value.pluginName),{data:ot,isLoading:nt}=c.getPluginLogoQuery(t.value.pluginName),{data:me,isLoading:it,suspense:ut}=J.downloadLogQuery([`[${t.value.displayName}]`,t.value.pluginName]),rt=H(()=>({fontSize:14,showGutter:!K.value})),dt=H(()=>({fontSize:K.value?12:14})),N=H(()=>Ie.value||je.value||Me.value||Ye.value||et.value||Xe.value||Je.value||Ge.value||at.value),W=H(()=>m.value.text===_.STOPPED||m.value.text===_.DISABLED||m.value.text===_.ERROR||m.value.text===_.UNKNOWN),ct=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(T=>s.add(T)))}return s.size===0&&s.add("camera"),Array.from(s)});$(X,()=>{var s;(s=X.value)!=null&&s.versions.length&&(D.value=X.value.versions[0])}),$(t,()=>{ce.value=t.value.installedVersion||t.value.latestVersion,L.value=!t.value.disabled},{deep:!0}),$(le,()=>{le.value&&(R.value=JSON.stringify(le.value,null,2))},{deep:!0,immediate:!0}),$(N,s=>xe("isLoading",s)),$(A,s=>{c.toggleQueryActivator("getPluginConfigJsonQuery",s)}),$(B,s=>{c.toggleQueryActivator("getPluginVersionsQuery",s)}),$(V,s=>{se(s),s||setTimeout(()=>{q.value=!1},300)}),$(K,()=>{mt()});const pe=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,T,C,Z,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)}),(T=k.value)==null||T.socket.on("disconnect",()=>{var b;(b=O.value)==null||b.writeTerminal(`
|
|
2
2
|
\rWebsocket failed to connect! Is the server running?
|
|
3
3
|
\r
|
|
4
4
|
\r`)}),(C=k.value)==null||C.socket.on("clear-log",()=>{var b;(b=O.value)==null||b.clearTerminal()}),I.value||(Z=k.value)==null||Z.socket.emit("get-log",[`[${t.value.displayName}]`,t.value.pluginName])):(v=(a=k.value)==null?void 0:a.end)==null||v.call(a)},mt=()=>{V.value&&(se(!1),se(!0))},ae=async(s="latest")=>{I.value=!0,B.value=!1,q.value=!0,t.value.installedVersion!==s&&(V.value=!0,await qe({pluginData:{pluginname:t.value.pluginName,pluginversion:s}}),ce.value=t.value.installedVersion||t.value.latestVersion,I.value=!1)},pt=async()=>{E.value=!1,I.value=!0,q.value=!0,V.value=!0,await Ze({pluginName:t.value.pluginName,removeStorage:Y.value}),I.value=!1},gt=async()=>{z.value=!1,await Fe({pluginName:t.value.pluginName})},ft=async()=>{let s;try{s=JSON.parse(R.value)}catch(l){console.error(l.message),It.error(l.message);return}tt({pluginName:t.value.pluginName,configData:s},{onSuccess:()=>{A.value=!1}})},vt=async()=>{try{if(J.toggleQueryActivator("downloadLogQuery",!0),await ut(),me.value){const s=me.value,l=window.URL.createObjectURL(new Blob([s])),f=document.createElement("a");f.href=l,f.setAttribute("download",`${t.value.pluginName}.log.txt`),document.body.appendChild(f),f.click(),f.remove()}}finally{J.toggleQueryActivator("downloadLogQuery",!1)}};return Nt(()=>{if(re.value){if(F.value=ne.getExistingNamespace("/plugins"),!F.value)throw new Error("Not connected to plugins!");F.value.request("get-plugin-status",t.value.pluginName).subscribe(s=>{m.value.text=s.status,pe(s.status)}),F.value.socket.on(`plugin-status-${t.value.pluginName}`,s=>{m.value.text=s.status,pe(s.status)})}}),Ct(()=>{var s,l;(l=(s=k.value)==null?void 0:s.end)==null||l.call(s)}),(s,l)=>{const f=wt,T=$t("router-link"),C=xt,Z=yt;return r(),w("div",{ref_key:"pluginCard",ref:Ee,class:"inner-component mt-0 flex flex-col w-full h-full p-5",style:S({width:e($e),height:e(Ve),background:e(ie),minHeight:e(Ne),maxHeight:e(Ce),minWidth:e(Le),maxWidth:e(Se),borderRadius:e(ke)+" !important"})},[i("div",Xt,[e(G)?(r(),w("div",Zt,[i("div",el,[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)):d("",!0)]),n(Mt,{size:"50",style:{border:"1px solid rgba(var(--color-rgb), 0.15)"}},{default:o(()=>[e(nt)?d("",!0):(r(),y(f,{key:0,src:`data:image/png;base64,${e(ot)}`,"error-height":70,"spinner-size":20,"spinner-width":3},null,8,["src"])),n(oe,{size:"20",width:"3",color:"#df2a4c",indeterminate:""})]),_:1})])):d("",!0),i("div",{class:"w-full",style:S({maxWidth:e(t).installPath?"calc(100% - 52px - 16px)":void 0})},[i("div",tl,[n(T,{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(st)?(r(),w("div",ll,[n(oe,{size:"12",width:"2",color:"#df2a4c",indeterminate:""})])):d("",!0),n(ye,{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,ee({key:0},a,{size:"17",color:"green",class:"mx-1"}),{default:o(()=>[g(u(e(ge)),1)]),_:2},1040)):d("",!0)]}),_:1},8,["text"]),i("div",sl,[e(N)&&e(ue)?(r(),w("div",al,[n(oe,{color:"#df2a4c",indeterminate:"",size:"15",width:"2"})])):e(ue)?(r(),y(e(Dt),{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(Oe)({pluginName:e(t).pluginName}):e(We)({pluginName:e(t).pluginName}))},null,8,["modelValue"])):d("",!0)])]),e(Ue)?(r(),w("div",ol,u(e(ct).map(a=>s.$t(`components.plugin_types.${a}`)).join(", ")),1)):d("",!0)],4)]),i("div",nl,[i("div",il,u(e(t).description||s.$t("components.plugin_card.no_description")),1)]),i("div",ul,[i("div",rl,[!e(G)&&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(G)?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)):d("",!0),n(Ht,{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",dl,"v"+u(e(t).installedVersion||e(t).latestVersion),1),n(h,{size:"12",class:"ml-1"},{default:o(()=>[g(u(e(St)),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(ye,{key:0,location:"top",text:s.$t(`components.plugin_card.status_${e(m).text}`)},{activator:o(({props:a})=>[n(he,ee(a,{color:e(m).color,dot:"",inline:""}),null,16,["color"])]),_:1},8,["text"])):d("",!0),e(Be)?(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(Qt)),1)]),_:1})]),_:1})):d("",!0),e(Te)?(r(),y(U,{key:2,class:"disabled-text",size:"28",rounded:"",density:"compact",variant:"text",disabled:e(N),onClick:l[4]||(l[4]=x(a=>A.value=!0,["prevent"]))},{default:o(()=>[n(h,{size:"20"},{default:o(()=>[g(u(e(At)),1)]),_:1})]),_:1},8,["disabled"])):d("",!0),e(ze)?(r(),y(U,{key:3,class:"disabled-text",size:"28",rounded:"",density:"compact",variant:"text",disabled:e(N)||e(W),onClick:l[5]||(l[5]=x(a=>z.value=!0,["prevent"]))},{default:o(()=>[n(h,{size:"20"},{default:o(()=>[g(u(e(fe)),1)]),_:1})]),_:1},8,["disabled"])):d("",!0),e(Qe)||e(t).installPath?(r(),y(Kt,{key:4,offset:"2"},{activator:o(({props:a})=>{var v;return[(v=e(j))!=null&&v.updateAvailable?(r(),y(he,{key:0,dot:"",color:"red","offset-x":"2","offset-y":"2"},{default:o(()=>[n(U,ee({class:"disabled-text"},a,{size:"28",rounded:"",density:"compact",variant:"text",disabled:e(N)}),{default:o(()=>[n(h,{size:"20"},{default:o(()=>[g(u(e(ve)),1)]),_:1})]),_:2},1040,["disabled"])]),_:2},1024)):(r(),y(U,ee({key:1,class:"disabled-text"},a,{size:"28",rounded:"",density:"compact",variant:"text",disabled:e(N)}),{default:o(()=>[n(h,{size:"20"},{default:o(()=>[g(u(e(ve)),1)]),_:1})]),_:2},1040,["disabled"]))]}),default:o(()=>[n(Jt,{width:"200",style:{border:"1px solid var(--background-timeline)","border-radius":"10px"},elevation:"3"},{default:o(()=>{var a,v;return[i("div",cl,[e(t).installPath&&((a=e(j))!=null&&a.updateAvailable)?(r(),y(Q,{key:0,style:{"border-radius":"5px !important"},onClick:l[6]||(l[6]=x(b=>ae(e(j).latestVersion),["prevent"]))},{default:o(()=>[i("div",ml,[i("div",pl,[n(h,{size:"20",class:"text-passive"},{default:o(()=>[g(u(e(ge)),1)]),_:1})]),i("span",gl,u(s.$t("components.plugin_card.update")),1)])]),_:1})):d("",!0),e(t).installPath&&((v=e(j))!=null&&v.updateAvailable)?(r(),w("div",fl)):d("",!0),n(Q,{to:e(t).installPath?`/plugins/${e(t).pluginName}`:"",style:{"border-radius":"5px !important"}},{default:o(()=>[i("div",vl,[i("div",yl,[n(h,{size:"20",class:"text-passive"},{default:o(()=>[g(u(e(zt)),1)]),_:1})]),i("span",hl,u(s.$t("components.plugin_card.settings")),1)])]),_:1},8,["to"]),e(t).installPath?(r(),w("div",bl)):d("",!0),n(Q,{disabled:e(t).private,style:{"border-radius":"5px !important"},onClick:l[7]||(l[7]=x(b=>B.value=!0,["prevent"]))},{default:o(()=>[i("div",_l,[i("div",wl,[n(h,{size:"20",class:"text-passive"},{default:o(()=>[g(u(e(Bt)),1)]),_:1})]),i("span",xl,u(s.$t("components.plugin_card.select_version")),1)])]),_:1},8,["disabled"]),e(t).installPath?(r(),w("div",Pl)):d("",!0),e(t).installPath&&!e(t).disabled?(r(),y(Q,{key:4,disabled:e(t).disabled,style:{"border-radius":"5px !important"},onClick:l[8]||(l[8]=x(b=>e(W)?e(He)({pluginName:e(t).pluginName}):e(Ke)({pluginName:e(t).pluginName}),["prevent"]))},{default:o(()=>[i("div",kl,[i("div",Vl,[n(h,{size:"20",class:"text-passive"},{default:o(()=>[g(u(e(W)?e(Tt):e(Ut)),1)]),_:1})]),i("span",Nl,u(e(W)?s.$t("components.plugin_card.start"):s.$t("components.plugin_card.stop")),1)])]),_:1},8,["disabled"])):d("",!0),e(t).installPath?(r(),w("div",Cl)):d("",!0),e(t).installPath&&!e(W)?(r(),y(Q,{key:6,style:{"border-radius":"5px !important"},disabled:e(t).disabled,onClick:l[9]||(l[9]=x(b=>z.value=!0,["prevent"]))},{default:o(()=>[i("div",$l,[i("div",Ll,[n(h,{size:"20",class:"text-passive"},{default:o(()=>[g(u(e(fe)),1)]),_:1})]),i("span",Sl,u(s.$t("components.plugin_card.restart")),1)])]),_:1},8,["disabled"])):d("",!0),e(t).installPath?(r(),w("div",Ql)):d("",!0),e(t).installPath?(r(),y(Q,{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",Al,[i("div",zl,[n(h,{size:"20",color:"red"},{default:o(()=>[g(u(e(Rt)),1)]),_:1})]),i("span",Bl,u(s.$t("components.plugin_card.uninstall")),1)])]),_:1})):d("",!0)])]}),_:1})]),_:1})):e(Ae)?(r(),y(U,{key:5,class:"disabled-text",density:"compact",color:"#df2a4c",variant:"flat",disabled:e(N),onClick:l[11]||(l[11]=x(a=>ae(),["prevent"]))},{default:o(()=>[i("span",Tl,u(s.$t("components.form.button.install")),1)]),_:1},8,["disabled"])):d("",!0)]),n(C,{modelValue:e(z),"onUpdate:modelValue":l[12]||(l[12]=a=>P(z)?z.value=a:null),title:s.$t("components.dialog.title.confirm"),"confirm-text":"components.form.button.restart",onConfirm:l[13]||(l[13]=a=>gt())},{content:o(()=>[i("span",null,u(s.$t("components.dialog.message.confirm_restart_plugin")),1)]),_:1},8,["modelValue","title"]),n(C,{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=>pt())},{content:o(()=>[i("span",null,u(s.$t("components.dialog.message.confirm_uninstall_plugin")),1),n(Q,{class:"px-0 mt-3"},{prepend:o(()=>[n(Gt,{start:""},{default:o(()=>[n(Ft,{modelValue:e(Y),"onUpdate:modelValue":l[14]||(l[14]=a=>P(Y)?Y.value=a:null),color:"#df2a4c"},null,8,["modelValue"])]),_:1})]),default:o(()=>[n(Yt,null,{default:o(()=>[g(u(s.$t("components.form.label.remove_storage")),1)]),_:1})]),_:1})]),_:1},8,["modelValue","title"]),n(C,{modelValue:e(B),"onUpdate:modelValue":l[18]||(l[18]=a=>P(B)?B.value=a:null),title:s.$t("components.dialog.title.install_version"),"confirm-text":"components.form.button.install",loading:e(te),onConfirm:l[19]||(l[19]=a=>ae(e(D)))},{content:o(()=>{var a;return[i("label",Ul,u(s.$t("components.form.label.plugin_version")),1),n(qt,{modelValue:e(D),"onUpdate:modelValue":l[17]||(l[17]=v=>P(D)?D.value=v:null),"hide-details":"",solo:"",variant:"outlined",density:"compact",items:((a=e(X))==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","loading"]),n(C,{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(it),"fullscreen-content":"","hide-confirm-button":e(q),onConfirm:l[21]||(l[21]=a=>vt())},{content:o(()=>[n(jt,{ref_key:"consoleRef",ref:O,class:"text-editor",options:e(dt)},null,8,["options"])]),_:1},8,["modelValue","title","loading","hide-confirm-button"]),n(C,{modelValue:e(A),"onUpdate:modelValue":l[23]||(l[23]=a=>P(A)?A.value=a:null),title:s.$t("components.dialog.title.plugin_config"),loading:e(lt),"fullscreen-content":"",onConfirm:l[24]||(l[24]=a=>ft())},{content:o(()=>[(r(),y(Lt,null,{default:o(()=>[n(Z,{modelValue:e(R),"onUpdate:modelValue":l[22]||(l[22]=a=>P(R)?R.value=a:null),lang:"json",theme:e(De),options:e(rt),"read-only":e(N),class:"config-editor",style:S(e(K)?"height: 100%":"height: 400px")},null,8,["modelValue","theme","options","read-only","style"])]),_:1}))]),_:1},8,["modelValue","title","loading"])],4)}}}),Yl=Pt(Rl,[["__scopeId","data-v-891a936d"]]);export{Yl as _};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Se}from"./@xterm.BFqH4gFP.0.0.31-alpha.3.js";function Ae(he,fe){for(var I=0;I<fe.length;I++){const x=fe[I];if(typeof x!="string"&&!Array.isArray(x)){for(const H in x)if(H!=="default"&&!(H in he)){const T=Object.getOwnPropertyDescriptor(x,H);T&&Object.defineProperty(he,H,T.get?T:{enumerable:!0,get:()=>x[H]})}}}return Object.freeze(Object.defineProperty(he,Symbol.toStringTag,{value:"Module"}))}const xe="/assets/mode-json.0.0.31-alpha.3.Br7xisR1.js",ke="/assets/mode-yaml.0.0.31-alpha.3.CIYL8U3d.js",Te="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL3RvbW9ycm93LWNzcyIsWyJyZXF1aXJlIiwiZXhwb3J0cyIsIm1vZHVsZSJdLC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IG1vZHVsZS5leHBvcnRzID0gbTsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgfSkoKTsKICAgICAgICAgICAg";var we={exports:{}};(function(he,fe){(function(){var I="ace",x=function(){return this}();!x&&typeof window<"u"&&(x=window);var H=function(o,i,n){if(typeof o!="string"){H.original?H.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(n=i),H.modules[o]||(H.payloads[o]=n,H.modules[o]=null)};H.modules={},H.payloads={};var T=function(o,i,n){if(typeof i=="string"){var t=a(o,i);if(t!=null)return n&&n(),t}else if(Object.prototype.toString.call(i)==="[object Array]"){for(var e=[],r=0,s=i.length;r<s;++r){var l=a(o,i[r]);if(l==null&&M.original)return;e.push(l)}return n&&n.apply(null,e)||!0}},M=function(o,i){var n=T("",o,i);return n==null&&M.original?M.original.apply(this,arguments):n},S=function(o,i){if(i.indexOf("!")!==-1){var n=i.split("!");return S(o,n[0])+"!"+S(o,n[1])}if(i.charAt(0)=="."){var t=o.split("/").slice(0,-1).join("/");for(i=t+"/"+i;i.indexOf(".")!==-1&&e!=i;){var e=i;i=i.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},a=function(o,i){i=S(o,i);var n=H.modules[i];if(!n){if(n=H.payloads[i],typeof n=="function"){var t={},e={id:i,uri:"",exports:t,packaged:!0},r=function(l,u){return T(i,l,u)},s=n(r,t,e);t=s||e.exports,H.modules[i]=t,delete H.payloads[i]}n=H.modules[i]=t||n}return n};function c(o){var i=x;x[o]||(x[o]={}),i=x[o],(!i.define||!i.define.packaged)&&(H.original=i.define,i.define=H,i.define.packaged=!0),(!i.require||!i.require.packaged)&&(M.original=i.require,i.require=M,i.require.packaged=!0)}c(I)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(I,x,H){function T(M,S,a){Object.defineProperty(M,S,{value:a,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||T(String.prototype,"startsWith",function(M,S){return S=S||0,this.lastIndexOf(M,S)===S}),String.prototype.endsWith||T(String.prototype,"endsWith",function(M,S){var a=this;(S===void 0||S>a.length)&&(S=a.length),S-=M.length;var c=a.indexOf(M,S);return c!==-1&&c===S}),String.prototype.repeat||T(String.prototype,"repeat",function(M){for(var S="",a=this;M>0;)M&1&&(S+=a),(M>>=1)&&(a+=a);return S}),String.prototype.includes||T(String.prototype,"includes",function(M,S){return this.indexOf(M,S)!=-1}),Object.assign||(Object.assign=function(M){if(M==null)throw new TypeError("Cannot convert undefined or null to object");for(var S=Object(M),a=1;a<arguments.length;a++){var c=arguments[a];c!=null&&Object.keys(c).forEach(function(o){S[o]=c[o]})}return S}),Object.values||(Object.values=function(M){return Object.keys(M).map(function(S){return M[S]})}),Array.prototype.find||T(Array.prototype,"find",function(M){for(var S=this.length,a=arguments[1],c=0;c<S;c++){var o=this[c];if(M.call(a,o,c,this))return o}}),Array.prototype.findIndex||T(Array.prototype,"findIndex",function(M){for(var S=this.length,a=arguments[1],c=0;c<S;c++){var o=this[c];if(M.call(a,o,c,this))return c}}),Array.prototype.includes||T(Array.prototype,"includes",function(M,S){return this.indexOf(M,S)!=-1}),Array.prototype.fill||T(Array.prototype,"fill",function(M){for(var S=this,a=S.length>>>0,c=arguments[1],o=c>>0,i=o<0?Math.max(a+o,0):Math.min(o,a),n=arguments[2],t=n===void 0?a:n>>0,e=t<0?Math.max(a+t,0):Math.min(t,a);i<e;)S[i]=M,i++;return S}),Array.of||T(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(I,x,H){I("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(I,x,H){x.deepCopy=function T(M){if(typeof M!="object"||!M)return M;var S;if(Array.isArray(M)){S=[];for(var a=0;a<M.length;a++)S[a]=T(M[a]);return S}if(Object.prototype.toString.call(M)!=="[object Object]")return M;S={};for(var a in M)S[a]=T(M[a]);return S}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(I,x,H){x.last=function(S){return S[S.length-1]},x.stringReverse=function(S){return S.split("").reverse().join("")},x.stringRepeat=function(S,a){for(var c="";a>0;)a&1&&(c+=S),(a>>=1)&&(S+=S);return c};var T=/^\s\s*/,M=/\s\s*$/;x.stringTrimLeft=function(S){return S.replace(T,"")},x.stringTrimRight=function(S){return S.replace(M,"")},x.copyObject=function(S){var a={};for(var c in S)a[c]=S[c];return a},x.copyArray=function(S){for(var a=[],c=0,o=S.length;c<o;c++)S[c]&&typeof S[c]=="object"?a[c]=this.copyObject(S[c]):a[c]=S[c];return a},x.deepCopy=I("./deep_copy").deepCopy,x.arrayToMap=function(S){for(var a={},c=0;c<S.length;c++)a[S[c]]=1;return a},x.createMap=function(S){var a=Object.create(null);for(var c in S)a[c]=S[c];return a},x.arrayRemove=function(S,a){for(var c=0;c<=S.length;c++)a===S[c]&&S.splice(c,1)},x.escapeRegExp=function(S){return S.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},x.escapeHTML=function(S){return(""+S).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},x.getMatchOffsets=function(S,a){var c=[];return S.replace(a,function(o){c.push({offset:arguments[arguments.length-2],length:o.length})}),c},x.deferredCall=function(S){var a=null,c=function(){a=null,S()},o=function(i){return o.cancel(),a=setTimeout(c,i||0),o};return o.schedule=o,o.call=function(){return this.cancel(),S(),o},o.cancel=function(){return clearTimeout(a),a=null,o},o.isPending=function(){return a},o},x.delayedCall=function(S,a){var c=null,o=function(){c=null,S()},i=function(n){c==null&&(c=setTimeout(o,n||a))};return i.delay=function(n){c&&clearTimeout(c),c=setTimeout(o,n||a)},i.schedule=i,i.call=function(){this.cancel(),S()},i.cancel=function(){c&&clearTimeout(c),c=null},i.isPending=function(){return c},i},x.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},x.skipEmptyMatch=function(S,a,c){return c&&S.codePointAt(a)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(I,x,H){x.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},x.getOS=function(){return x.isMac?x.OS.MAC:x.isLinux?x.OS.LINUX:x.OS.WINDOWS};var T=typeof navigator=="object"?navigator:{},M=(/mac|win|linux/i.exec(T.platform)||["other"])[0].toLowerCase(),S=T.userAgent||"",a=T.appName||"";x.isWin=M=="win",x.isMac=M=="mac",x.isLinux=M=="linux",x.isIE=a=="Microsoft Internet Explorer"||a.indexOf("MSAppHost")>=0?parseFloat((S.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((S.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),x.isOldIE=x.isIE&&x.isIE<9,x.isGecko=x.isMozilla=S.match(/ Gecko\/\d+/),x.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",x.isWebKit=parseFloat(S.split("WebKit/")[1])||void 0,x.isChrome=parseFloat(S.split(" Chrome/")[1])||void 0,x.isSafari=parseFloat(S.split(" Safari/")[1])&&!x.isChrome||void 0,x.isEdge=parseFloat(S.split(" Edge/")[1])||void 0,x.isAIR=S.indexOf("AdobeAIR")>=0,x.isAndroid=S.indexOf("Android")>=0,x.isChromeOS=S.indexOf(" CrOS ")>=0,x.isIOS=/iPad|iPhone|iPod/.test(S)&&!window.MSStream,x.isIOS&&(x.isMac=!0),x.isMobile=x.isIOS||x.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(I,x,H){var T=I("./useragent"),M="http://www.w3.org/1999/xhtml";x.buildDom=function n(t,e,r){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 l=[],u=0;u<t.length;u++){var b=n(t[u],e,r);b&&l.push(b)}return l}var m=document.createElement(t[0]),g=t[1],d=1;g&&typeof g=="object"&&!Array.isArray(g)&&(d=2);for(var u=d;u<t.length;u++)n(t[u],m,r);return d==2&&Object.keys(g).forEach(function(C){var k=g[C];C==="class"?m.className=Array.isArray(k)?k.join(" "):k:typeof k=="function"||C=="value"||C[0]=="$"?m[C]=k:C==="ref"?r&&(r[k]=m):C==="style"?typeof k=="string"&&(m.style.cssText=k):k!=null&&m.setAttribute(C,k)}),e&&e.appendChild(m),m},x.getDocumentHead=function(n){return n||(n=document),n.head||n.getElementsByTagName("head")[0]||n.documentElement},x.createElement=function(n,t){return document.createElementNS?document.createElementNS(t||M,n):document.createElement(n)},x.removeChildren=function(n){n.innerHTML=""},x.createTextNode=function(n,t){var e=t?t.ownerDocument:document;return e.createTextNode(n)},x.createFragment=function(n){var t=n?n.ownerDocument:document;return t.createDocumentFragment()},x.hasCssClass=function(n,t){var e=(n.className+"").split(/\s+/g);return e.indexOf(t)!==-1},x.addCssClass=function(n,t){x.hasCssClass(n,t)||(n.className+=" "+t)},x.removeCssClass=function(n,t){for(var e=n.className.split(/\s+/g);;){var r=e.indexOf(t);if(r==-1)break;e.splice(r,1)}n.className=e.join(" ")},x.toggleCssClass=function(n,t){for(var e=n.className.split(/\s+/g),r=!0;;){var s=e.indexOf(t);if(s==-1)break;r=!1,e.splice(s,1)}return r&&e.push(t),n.className=e.join(" "),r},x.setCssClass=function(n,t,e){e?x.addCssClass(n,t):x.removeCssClass(n,t)},x.hasCssString=function(n,t){var e=0,r;if(t=t||document,r=t.querySelectorAll("style")){for(;e<r.length;)if(r[e++].id===n)return!0}},x.removeElementById=function(n,t){t=t||document,t.getElementById(n)&&t.getElementById(n).remove()};var S,a=[];x.useStrictCSP=function(n){S=n,n==!1?c():a||(a=[])};function c(){var n=a;a=null,n&&n.forEach(function(t){o(t[0],t[1])})}function o(n,t,e){if(!(typeof document>"u")){if(a){if(e)c();else if(e===!1)return a.push([n,t])}if(!S){var r=e;!e||!e.getRootNode?r=document:(r=e.getRootNode(),(!r||r==e)&&(r=document));var s=r.ownerDocument||r;if(t&&x.hasCssString(t,r))return null;t&&(n+=`
|
|
1
|
+
import{g as Se}from"./@xterm.D1SKXPWU.0.0.31-alpha.4.js";function Ae(he,fe){for(var I=0;I<fe.length;I++){const x=fe[I];if(typeof x!="string"&&!Array.isArray(x)){for(const H in x)if(H!=="default"&&!(H in he)){const T=Object.getOwnPropertyDescriptor(x,H);T&&Object.defineProperty(he,H,T.get?T:{enumerable:!0,get:()=>x[H]})}}}return Object.freeze(Object.defineProperty(he,Symbol.toStringTag,{value:"Module"}))}const xe="/assets/mode-json.0.0.31-alpha.4.Br7xisR1.js",ke="/assets/mode-yaml.0.0.31-alpha.4.CIYL8U3d.js",Te="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL3RvbW9ycm93LWNzcyIsWyJyZXF1aXJlIiwiZXhwb3J0cyIsIm1vZHVsZSJdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpe21vZHVsZS5leHBvcnRzID0gIi5hY2UtdG9tb3Jyb3cgLmFjZV9ndXR0ZXIge1xuICBiYWNrZ3JvdW5kOiAjZjZmNmY2O1xuICBjb2xvcjogIzRENEQ0Q1xufVxuXG4uYWNlLXRvbW9ycm93IC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogI2Y2ZjZmNlxufVxuXG4uYWNlLXRvbW9ycm93IHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0ZGRkZGRjtcbiAgY29sb3I6ICM0RDRENENcbn1cblxuLmFjZS10b21vcnJvdyAuYWNlX2N1cnNvciB7XG4gIGNvbG9yOiAjQUVBRkFEXG59XG5cbi5hY2UtdG9tb3Jyb3cgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kO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LmlzRGFyayA9IHRydWU7CmV4cG9ydHMuY3NzQ2xhc3MgPSAiYWNlLXR3aWxpZ2h0IjsKZXhwb3J0cy5jc3NUZXh0ID0gcmVxdWlyZSgiLi90d2lsaWdodC1jc3MiKTsKdmFyIGRvbSA9IHJlcXVpcmUoIi4uL2xpYi9kb20iKTsKZG9tLmltcG9ydENzc1N0cmluZyhleHBvcnRzLmNzc1RleHQsIGV4cG9ydHMuY3NzQ2xhc3MsIGZhbHNlKTsKCn0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvdHdpbGlnaHQiXSwgZnVuY3Rpb24obSkgewogICAgICAgICAgICAgICAgICAgICAgICBpZiAodHlwZW9mIG1vZHVsZSA9PSAib2JqZWN0IiAmJiB0eXBlb2YgZXhwb3J0cyA9PSAib2JqZWN0IiAmJiBtb2R1bGUpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1vZHVsZS5leHBvcnRzID0gbTsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgfSkoKTsKICAgICAgICAgICAg";var we={exports:{}};(function(he,fe){(function(){var I="ace",x=function(){return this}();!x&&typeof window<"u"&&(x=window);var H=function(o,i,n){if(typeof o!="string"){H.original?H.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(n=i),H.modules[o]||(H.payloads[o]=n,H.modules[o]=null)};H.modules={},H.payloads={};var T=function(o,i,n){if(typeof i=="string"){var t=a(o,i);if(t!=null)return n&&n(),t}else if(Object.prototype.toString.call(i)==="[object Array]"){for(var e=[],r=0,s=i.length;r<s;++r){var l=a(o,i[r]);if(l==null&&M.original)return;e.push(l)}return n&&n.apply(null,e)||!0}},M=function(o,i){var n=T("",o,i);return n==null&&M.original?M.original.apply(this,arguments):n},S=function(o,i){if(i.indexOf("!")!==-1){var n=i.split("!");return S(o,n[0])+"!"+S(o,n[1])}if(i.charAt(0)=="."){var t=o.split("/").slice(0,-1).join("/");for(i=t+"/"+i;i.indexOf(".")!==-1&&e!=i;){var e=i;i=i.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},a=function(o,i){i=S(o,i);var n=H.modules[i];if(!n){if(n=H.payloads[i],typeof n=="function"){var t={},e={id:i,uri:"",exports:t,packaged:!0},r=function(l,u){return T(i,l,u)},s=n(r,t,e);t=s||e.exports,H.modules[i]=t,delete H.payloads[i]}n=H.modules[i]=t||n}return n};function c(o){var i=x;x[o]||(x[o]={}),i=x[o],(!i.define||!i.define.packaged)&&(H.original=i.define,i.define=H,i.define.packaged=!0),(!i.require||!i.require.packaged)&&(M.original=i.require,i.require=M,i.require.packaged=!0)}c(I)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(I,x,H){function T(M,S,a){Object.defineProperty(M,S,{value:a,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||T(String.prototype,"startsWith",function(M,S){return S=S||0,this.lastIndexOf(M,S)===S}),String.prototype.endsWith||T(String.prototype,"endsWith",function(M,S){var a=this;(S===void 0||S>a.length)&&(S=a.length),S-=M.length;var c=a.indexOf(M,S);return c!==-1&&c===S}),String.prototype.repeat||T(String.prototype,"repeat",function(M){for(var S="",a=this;M>0;)M&1&&(S+=a),(M>>=1)&&(a+=a);return S}),String.prototype.includes||T(String.prototype,"includes",function(M,S){return this.indexOf(M,S)!=-1}),Object.assign||(Object.assign=function(M){if(M==null)throw new TypeError("Cannot convert undefined or null to object");for(var S=Object(M),a=1;a<arguments.length;a++){var c=arguments[a];c!=null&&Object.keys(c).forEach(function(o){S[o]=c[o]})}return S}),Object.values||(Object.values=function(M){return Object.keys(M).map(function(S){return M[S]})}),Array.prototype.find||T(Array.prototype,"find",function(M){for(var S=this.length,a=arguments[1],c=0;c<S;c++){var o=this[c];if(M.call(a,o,c,this))return o}}),Array.prototype.findIndex||T(Array.prototype,"findIndex",function(M){for(var S=this.length,a=arguments[1],c=0;c<S;c++){var o=this[c];if(M.call(a,o,c,this))return c}}),Array.prototype.includes||T(Array.prototype,"includes",function(M,S){return this.indexOf(M,S)!=-1}),Array.prototype.fill||T(Array.prototype,"fill",function(M){for(var S=this,a=S.length>>>0,c=arguments[1],o=c>>0,i=o<0?Math.max(a+o,0):Math.min(o,a),n=arguments[2],t=n===void 0?a:n>>0,e=t<0?Math.max(a+t,0):Math.min(t,a);i<e;)S[i]=M,i++;return S}),Array.of||T(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(I,x,H){I("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(I,x,H){x.deepCopy=function T(M){if(typeof M!="object"||!M)return M;var S;if(Array.isArray(M)){S=[];for(var a=0;a<M.length;a++)S[a]=T(M[a]);return S}if(Object.prototype.toString.call(M)!=="[object Object]")return M;S={};for(var a in M)S[a]=T(M[a]);return S}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(I,x,H){x.last=function(S){return S[S.length-1]},x.stringReverse=function(S){return S.split("").reverse().join("")},x.stringRepeat=function(S,a){for(var c="";a>0;)a&1&&(c+=S),(a>>=1)&&(S+=S);return c};var T=/^\s\s*/,M=/\s\s*$/;x.stringTrimLeft=function(S){return S.replace(T,"")},x.stringTrimRight=function(S){return S.replace(M,"")},x.copyObject=function(S){var a={};for(var c in S)a[c]=S[c];return a},x.copyArray=function(S){for(var a=[],c=0,o=S.length;c<o;c++)S[c]&&typeof S[c]=="object"?a[c]=this.copyObject(S[c]):a[c]=S[c];return a},x.deepCopy=I("./deep_copy").deepCopy,x.arrayToMap=function(S){for(var a={},c=0;c<S.length;c++)a[S[c]]=1;return a},x.createMap=function(S){var a=Object.create(null);for(var c in S)a[c]=S[c];return a},x.arrayRemove=function(S,a){for(var c=0;c<=S.length;c++)a===S[c]&&S.splice(c,1)},x.escapeRegExp=function(S){return S.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},x.escapeHTML=function(S){return(""+S).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},x.getMatchOffsets=function(S,a){var c=[];return S.replace(a,function(o){c.push({offset:arguments[arguments.length-2],length:o.length})}),c},x.deferredCall=function(S){var a=null,c=function(){a=null,S()},o=function(i){return o.cancel(),a=setTimeout(c,i||0),o};return o.schedule=o,o.call=function(){return this.cancel(),S(),o},o.cancel=function(){return clearTimeout(a),a=null,o},o.isPending=function(){return a},o},x.delayedCall=function(S,a){var c=null,o=function(){c=null,S()},i=function(n){c==null&&(c=setTimeout(o,n||a))};return i.delay=function(n){c&&clearTimeout(c),c=setTimeout(o,n||a)},i.schedule=i,i.call=function(){this.cancel(),S()},i.cancel=function(){c&&clearTimeout(c),c=null},i.isPending=function(){return c},i},x.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},x.skipEmptyMatch=function(S,a,c){return c&&S.codePointAt(a)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(I,x,H){x.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},x.getOS=function(){return x.isMac?x.OS.MAC:x.isLinux?x.OS.LINUX:x.OS.WINDOWS};var T=typeof navigator=="object"?navigator:{},M=(/mac|win|linux/i.exec(T.platform)||["other"])[0].toLowerCase(),S=T.userAgent||"",a=T.appName||"";x.isWin=M=="win",x.isMac=M=="mac",x.isLinux=M=="linux",x.isIE=a=="Microsoft Internet Explorer"||a.indexOf("MSAppHost")>=0?parseFloat((S.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((S.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),x.isOldIE=x.isIE&&x.isIE<9,x.isGecko=x.isMozilla=S.match(/ Gecko\/\d+/),x.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",x.isWebKit=parseFloat(S.split("WebKit/")[1])||void 0,x.isChrome=parseFloat(S.split(" Chrome/")[1])||void 0,x.isSafari=parseFloat(S.split(" Safari/")[1])&&!x.isChrome||void 0,x.isEdge=parseFloat(S.split(" Edge/")[1])||void 0,x.isAIR=S.indexOf("AdobeAIR")>=0,x.isAndroid=S.indexOf("Android")>=0,x.isChromeOS=S.indexOf(" CrOS ")>=0,x.isIOS=/iPad|iPhone|iPod/.test(S)&&!window.MSStream,x.isIOS&&(x.isMac=!0),x.isMobile=x.isIOS||x.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(I,x,H){var T=I("./useragent"),M="http://www.w3.org/1999/xhtml";x.buildDom=function n(t,e,r){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 l=[],u=0;u<t.length;u++){var b=n(t[u],e,r);b&&l.push(b)}return l}var m=document.createElement(t[0]),g=t[1],d=1;g&&typeof g=="object"&&!Array.isArray(g)&&(d=2);for(var u=d;u<t.length;u++)n(t[u],m,r);return d==2&&Object.keys(g).forEach(function(C){var k=g[C];C==="class"?m.className=Array.isArray(k)?k.join(" "):k:typeof k=="function"||C=="value"||C[0]=="$"?m[C]=k:C==="ref"?r&&(r[k]=m):C==="style"?typeof k=="string"&&(m.style.cssText=k):k!=null&&m.setAttribute(C,k)}),e&&e.appendChild(m),m},x.getDocumentHead=function(n){return n||(n=document),n.head||n.getElementsByTagName("head")[0]||n.documentElement},x.createElement=function(n,t){return document.createElementNS?document.createElementNS(t||M,n):document.createElement(n)},x.removeChildren=function(n){n.innerHTML=""},x.createTextNode=function(n,t){var e=t?t.ownerDocument:document;return e.createTextNode(n)},x.createFragment=function(n){var t=n?n.ownerDocument:document;return t.createDocumentFragment()},x.hasCssClass=function(n,t){var e=(n.className+"").split(/\s+/g);return e.indexOf(t)!==-1},x.addCssClass=function(n,t){x.hasCssClass(n,t)||(n.className+=" "+t)},x.removeCssClass=function(n,t){for(var e=n.className.split(/\s+/g);;){var r=e.indexOf(t);if(r==-1)break;e.splice(r,1)}n.className=e.join(" ")},x.toggleCssClass=function(n,t){for(var e=n.className.split(/\s+/g),r=!0;;){var s=e.indexOf(t);if(s==-1)break;r=!1,e.splice(s,1)}return r&&e.push(t),n.className=e.join(" "),r},x.setCssClass=function(n,t,e){e?x.addCssClass(n,t):x.removeCssClass(n,t)},x.hasCssString=function(n,t){var e=0,r;if(t=t||document,r=t.querySelectorAll("style")){for(;e<r.length;)if(r[e++].id===n)return!0}},x.removeElementById=function(n,t){t=t||document,t.getElementById(n)&&t.getElementById(n).remove()};var S,a=[];x.useStrictCSP=function(n){S=n,n==!1?c():a||(a=[])};function c(){var n=a;a=null,n&&n.forEach(function(t){o(t[0],t[1])})}function o(n,t,e){if(!(typeof document>"u")){if(a){if(e)c();else if(e===!1)return a.push([n,t])}if(!S){var r=e;!e||!e.getRootNode?r=document:(r=e.getRootNode(),(!r||r==e)&&(r=document));var s=r.ownerDocument||r;if(t&&x.hasCssString(t,r))return null;t&&(n+=`
|
|
2
2
|
/*# sourceURL=ace/css/`+t+" */");var l=x.createElement("style");l.appendChild(s.createTextNode(n)),t&&(l.id=t),r==s&&(r=x.getDocumentHead(s)),r.insertBefore(l,r.firstChild)}}}if(x.importCssString=o,x.importCssStylsheet=function(n,t){x.buildDom(["link",{rel:"stylesheet",href:n}],x.getDocumentHead(t))},x.scrollbarWidth=function(n){var t=x.createElement("ace_inner");t.style.width="100%",t.style.minWidth="0px",t.style.height="200px",t.style.display="block";var e=x.createElement("ace_outer"),r=e.style;r.position="absolute",r.left="-10000px",r.overflow="hidden",r.width="200px",r.minWidth="0px",r.height="150px",r.display="block",e.appendChild(t);var s=n&&n.documentElement||document&&document.documentElement;if(!s)return 0;s.appendChild(e);var l=t.offsetWidth;r.overflow="scroll";var u=t.offsetWidth;return l===u&&(u=e.clientWidth),s.removeChild(e),l-u},x.computedStyle=function(n,t){return window.getComputedStyle(n,"")||{}},x.setStyle=function(n,t,e){n[t]!==e&&(n[t]=e)},x.HAS_CSS_ANIMATION=!1,x.HAS_CSS_TRANSFORMS=!1,x.HI_DPI=T.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,T.isChromeOS&&(x.HI_DPI=!1),typeof document<"u"){var i=document.createElement("div");x.HI_DPI&&i.style.transform!==void 0&&(x.HAS_CSS_TRANSFORMS=!0),!T.isEdge&&typeof i.style.animationName<"u"&&(x.HAS_CSS_ANIMATION=!0),i=null}x.HAS_CSS_TRANSFORMS?x.translate=function(n,t,e){n.style.transform="translate("+Math.round(t)+"px, "+Math.round(e)+"px)"}:x.translate=function(n,t,e){n.style.top=Math.round(e)+"px",n.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(I,x,H){/*
|
|
3
3
|
* based on code from:
|
|
4
4
|
*
|
package/dist/interface/{dnd-core.DGBOJ56p.0.0.31-alpha.3.js → dnd-core.D_o4rKnM.0.0.31-alpha.4.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as j}from"./redux.CuxFRhX_.0.0.31-alpha.3.js";import{i as s,a as M}from"./@react-dnd.CcwRs9xb.0.0.31-alpha.3.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.CuxFRhX_.0.0.31-alpha.4.js";import{i as s,a as M}from"./@react-dnd.CcwRs9xb.0.0.31-alpha.4.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{c as _,g as $}from"./@xterm.
|
|
1
|
+
import{c as _,g as $}from"./@xterm.D1SKXPWU.0.0.31-alpha.4.js";import{r as j}from"./get-size.D1dS-IaP.0.0.31-alpha.4.js";import{r as M}from"./unidragger.DLjMBILF.0.0.31-alpha.4.js";var x={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 F,a as W,e as I,b as M,c as D,f as N,p as C}from"./engine.io-parser.BiEtp6m2.0.0.31-alpha.3.js";import{E as g}from"./@socket.io.Dkula2eQ.0.0.31-alpha.3.js";const a=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function L(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}const X=a.setTimeout,z=a.clearTimeout;function w(r,e){e.useNativeTimers?(r.setTimeoutFn=X.bind(a),r.clearTimeoutFn=z.bind(a)):(r.setTimeoutFn=a.setTimeout.bind(a),r.clearTimeoutFn=a.clearTimeout.bind(a))}const _=1.33;function J(r){return typeof r=="string"?V(r):Math.ceil((r.byteLength||r.size)*_)}function V(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 j(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function $(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 G extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class b extends g{constructor(e){super(),this.writable=!1,w(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,s){return super.emitReserved("error",new G(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=F(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=j(e);return t.length?"?"+t:""}}const O="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),y=64,K={};let k=0,f=0,x;function S(r){let e="";do e=O[r%y]+e,r=Math.floor(r/y);while(r>0);return e}function B(){const r=S(+new Date);return r!==x?(k=0,x=r):r+"."+S(k++)}for(;f<y;f++)K[O[f]]=f;let U=!1;try{U=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Q=U;function H(r){const e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Q))return new XMLHttpRequest}catch{}if(!e)try{return new a[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Y(){}const Z=function(){return new H({xdomain:!1}).responseType!=null}();class ee extends b{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const s=location.protocol==="https:";let i=location.port;i||(i=s?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}const t=e&&e.forceBase64;this.supportsBinary=Z&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}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)};W(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,I(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]=B()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new h(this.uri(),e)}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 g{constructor(e,t){super(),w(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=t.data!==void 0?t.data:null,this.create()}create(){var e;const t=L(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const s=this.xhr=new H(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)),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=Y,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",E);else if(typeof addEventListener=="function"){const r="onpagehide"in a?"pagehide":"unload";addEventListener(r,E,!1)}}function E(){for(let r in h.requests)h.requests.hasOwnProperty(r)&&h.requests[r].abort()}const A=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),m=a.WebSocket||a.MozWebSocket,R=!0,te="arraybuffer",P=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class se extends b{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,s=P?{}:L(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=R&&!P?t?new m(e,t):new m(e):new m(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;M(s,this.supportsBinary,o=>{const n={};try{R&&this.ws.send(o)}catch{}i&&A(()=>{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]=B()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!m}}class re extends b{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=D(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=N();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&&A(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const ie={websocket:se,webtransport:re,polling:ee},oe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ne=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function q(r){if(r.length>2e3)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=oe.exec(r||""),o={},n=14;for(;n--;)o[ne[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=ae(o,o.path),o.queryKey=he(o,o.query),o}function ae(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 he(r,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(t[i]=o)}),t}class c extends g{constructor(e,t={}){super(),this.binaryType=te,this.writeBuffer=[],e&&typeof e=="object"&&(t=e,e=null),e?(e=q(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=q(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=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,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=$(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(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"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=C,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 ie[e](s)}open(){let e;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}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))}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()}onOpen(){if(this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");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.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),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+=J(i)),s>0&&t>this.maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}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){c.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let s=0;const i=e.length;for(;s<i;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}c.protocol=C;export{c as S,w as i,A as n,q as p};
|
|
1
|
+
import{d as F,a as W,e as I,b as M,c as D,f as N,p as C}from"./engine.io-parser.BiEtp6m2.0.0.31-alpha.4.js";import{E as g}from"./@socket.io.Dkula2eQ.0.0.31-alpha.4.js";const a=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function L(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}const X=a.setTimeout,z=a.clearTimeout;function w(r,e){e.useNativeTimers?(r.setTimeoutFn=X.bind(a),r.clearTimeoutFn=z.bind(a)):(r.setTimeoutFn=a.setTimeout.bind(a),r.clearTimeoutFn=a.clearTimeout.bind(a))}const _=1.33;function J(r){return typeof r=="string"?V(r):Math.ceil((r.byteLength||r.size)*_)}function V(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 j(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function $(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 G extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class b extends g{constructor(e){super(),this.writable=!1,w(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,s){return super.emitReserved("error",new G(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=F(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=j(e);return t.length?"?"+t:""}}const O="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),y=64,K={};let k=0,f=0,x;function S(r){let e="";do e=O[r%y]+e,r=Math.floor(r/y);while(r>0);return e}function B(){const r=S(+new Date);return r!==x?(k=0,x=r):r+"."+S(k++)}for(;f<y;f++)K[O[f]]=f;let U=!1;try{U=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Q=U;function H(r){const e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Q))return new XMLHttpRequest}catch{}if(!e)try{return new a[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Y(){}const Z=function(){return new H({xdomain:!1}).responseType!=null}();class ee extends b{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const s=location.protocol==="https:";let i=location.port;i||(i=s?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}const t=e&&e.forceBase64;this.supportsBinary=Z&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}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)};W(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,I(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]=B()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new h(this.uri(),e)}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 g{constructor(e,t){super(),w(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=t.data!==void 0?t.data:null,this.create()}create(){var e;const t=L(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const s=this.xhr=new H(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)),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=Y,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",E);else if(typeof addEventListener=="function"){const r="onpagehide"in a?"pagehide":"unload";addEventListener(r,E,!1)}}function E(){for(let r in h.requests)h.requests.hasOwnProperty(r)&&h.requests[r].abort()}const A=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),m=a.WebSocket||a.MozWebSocket,R=!0,te="arraybuffer",P=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class se extends b{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,s=P?{}:L(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=R&&!P?t?new m(e,t):new m(e):new m(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;M(s,this.supportsBinary,o=>{const n={};try{R&&this.ws.send(o)}catch{}i&&A(()=>{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]=B()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!m}}class re extends b{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=D(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=N();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&&A(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const ie={websocket:se,webtransport:re,polling:ee},oe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ne=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function q(r){if(r.length>2e3)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=oe.exec(r||""),o={},n=14;for(;n--;)o[ne[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=ae(o,o.path),o.queryKey=he(o,o.query),o}function ae(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 he(r,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(t[i]=o)}),t}class c extends g{constructor(e,t={}){super(),this.binaryType=te,this.writeBuffer=[],e&&typeof e=="object"&&(t=e,e=null),e?(e=q(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=q(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=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,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=$(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(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"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=C,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 ie[e](s)}open(){let e;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}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))}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()}onOpen(){if(this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");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.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),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+=J(i)),s>0&&t>this.maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}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){c.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let s=0;const i=e.length;for(;s<i;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}c.protocol=C;export{c as S,w as i,A as n,q as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c}from"./@xterm.
|
|
1
|
+
import{c}from"./@xterm.D1SKXPWU.0.0.31-alpha.4.js";var f={exports:{}},u;function p(){return u||(u=1,function(h){(function(r,s){h.exports?h.exports=s():r.EvEmitter=s()})(typeof window<"u"?window:c,function(){function r(){}let s=r.prototype;return s.on=function(e,n){if(!e||!n)return this;let t=this._events=this._events||{},i=t[e]=t[e]||[];return i.includes(n)||i.push(n),this},s.once=function(e,n){if(!e||!n)return this;this.on(e,n);let t=this._onceEvents=this._onceEvents||{},i=t[e]=t[e]||{};return i[n]=!0,this},s.off=function(e,n){let t=this._events&&this._events[e];if(!t||!t.length)return this;let i=t.indexOf(n);return i!=-1&&t.splice(i,1),this},s.emitEvent=function(e,n){let t=this._events&&this._events[e];if(!t||!t.length)return this;t=t.slice(0),n=n||[];let i=this._onceEvents&&this._onceEvents[e];for(let o of t)i&&i[o]&&(this.off(e,o),delete i[o]),o.apply(this,n);return this},s.allOff=function(){return delete this._events,delete this._onceEvents,this},r})}(f)),f.exports}export{p as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as s}from"./@xterm.
|
|
1
|
+
import{g as s}from"./@xterm.D1SKXPWU.0.0.31-alpha.4.js";var c=function u(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var f,e,o;if(Array.isArray(r)){if(f=r.length,f!=t.length)return!1;for(e=f;e--!==0;)if(!u(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(o=Object.keys(r),f=o.length,f!==Object.keys(t).length)return!1;for(e=f;e--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[e]))return!1;for(e=f;e--!==0;){var n=o[e];if(!u(r[n],t[n]))return!1}return!0}return r!==r&&t!==t};const p=s(c);export{p as e};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as an}from"./@xterm.BFqH4gFP.0.0.31-alpha.3.js";function Le(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(n=>{const t=e[n],c=typeof t;(c==="object"||c==="function")&&!Object.isFrozen(t)&&Le(t)}),e}class Oe{constructor(n){n.data===void 0&&(n.data={}),this.data=n.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Be(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function P(e,...n){const t=Object.create(null);for(const c in e)t[c]=e[c];return n.forEach(function(c){for(const p in c)t[p]=c[p]}),t}const cn="</span>",we=e=>!!e.scope,on=(e,{prefix:n})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const t=e.split(".");return[`${n}${t.shift()}`,...t.map((c,p)=>`${c}${"_".repeat(p+1)}`)].join(" ")}return`${n}${e}`};class ln{constructor(n,t){this.buffer="",this.classPrefix=t.classPrefix,n.walk(this)}addText(n){this.buffer+=Be(n)}openNode(n){if(!we(n))return;const t=on(n.scope,{prefix:this.classPrefix});this.span(t)}closeNode(n){we(n)&&(this.buffer+=cn)}value(){return this.buffer}span(n){this.buffer+=`<span class="${n}">`}}const xe=(e={})=>{const n={children:[]};return Object.assign(n,e),n};class pe{constructor(){this.rootNode=xe(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(n){this.top.children.push(n)}openNode(n){const t=xe({scope:n});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(n){return this.constructor._walk(n,this.rootNode)}static _walk(n,t){return typeof t=="string"?n.addText(t):t.children&&(n.openNode(t),t.children.forEach(c=>this._walk(n,c)),n.closeNode(t)),n}static _collapse(n){typeof n!="string"&&n.children&&(n.children.every(t=>typeof t=="string")?n.children=[n.children.join("")]:n.children.forEach(t=>{pe._collapse(t)}))}}class un extends pe{constructor(n){super(),this.options=n}addText(n){n!==""&&this.add(n)}startScope(n){this.openNode(n)}endScope(){this.closeNode()}__addSublanguage(n,t){const c=n.root;t&&(c.scope=`language:${t}`),this.add(c)}toHTML(){return new ln(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function J(e){return e?typeof e=="string"?e:e.source:null}function ke(e){return K("(?=",e,")")}function gn(e){return K("(?:",e,")*")}function fn(e){return K("(?:",e,")?")}function K(...e){return e.map(t=>J(t)).join("")}function dn(e){const n=e[e.length-1];return typeof n=="object"&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}function _e(...e){return"("+(dn(e).capture?"":"?:")+e.map(c=>J(c)).join("|")+")"}function De(e){return new RegExp(e.toString()+"|").exec("").length-1}function En(e,n){const t=e&&e.exec(n);return t&&t.index===0}const bn=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Se(e,{joinWith:n}){let t=0;return e.map(c=>{t+=1;const p=t;let _=J(c),a="";for(;_.length>0;){const i=bn.exec(_);if(!i){a+=_;break}a+=_.substring(0,i.index),_=_.substring(i.index+i[0].length),i[0][0]==="\\"&&i[1]?a+="\\"+String(Number(i[1])+p):(a+=i[0],i[0]==="("&&t++)}return a}).map(c=>`(${c})`).join(n)}const hn=/\b\B/,Pe="[a-zA-Z]\\w*",Re="[a-zA-Z_]\\w*",Ue="\\b\\d+(\\.\\d+)?",$e="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",He="\\b(0b[01]+)",pn="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",_n=(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=K(n,/.*\b/,e.binary,/\b.*/)),P({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(t,c)=>{t.index!==0&&c.ignoreMatch()}},e)},V={begin:"\\\\[\\s\\S]",relevance:0},Sn={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[V]},Rn={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[V]},Nn={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},oe=function(e,n,t={}){const c=P({scope:"comment",begin:e,end:n,contains:[]},t);c.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const p=_e("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return c.contains.push({begin:K(/[ ]+/,"(",p,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),c},An=oe("//","$"),yn=oe("/\\*","\\*/"),Tn=oe("#","$"),Mn={scope:"number",begin:Ue,relevance:0},On={scope:"number",begin:$e,relevance:0},wn={scope:"number",begin:He,relevance:0},xn={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[V,{begin:/\[/,end:/\]/,relevance:0,contains:[V]}]},In={scope:"title",begin:Pe,relevance:0},Cn={scope:"title",begin:Re,relevance:0},mn={begin:"\\.\\s*"+Re,relevance:0},vn=function(e){return Object.assign(e,{"on:begin":(n,t)=>{t.data._beginMatch=n[1]},"on:end":(n,t)=>{t.data._beginMatch!==n[1]&&t.ignoreMatch()}})};var re=Object.freeze({__proto__:null,APOS_STRING_MODE:Sn,BACKSLASH_ESCAPE:V,BINARY_NUMBER_MODE:wn,BINARY_NUMBER_RE:He,COMMENT:oe,C_BLOCK_COMMENT_MODE:yn,C_LINE_COMMENT_MODE:An,C_NUMBER_MODE:On,C_NUMBER_RE:$e,END_SAME_AS_BEGIN:vn,HASH_COMMENT_MODE:Tn,IDENT_RE:Pe,MATCH_NOTHING_RE:hn,METHOD_GUARD:mn,NUMBER_MODE:Mn,NUMBER_RE:Ue,PHRASAL_WORDS_MODE:Nn,QUOTE_STRING_MODE:Rn,REGEXP_MODE:xn,RE_STARTERS_RE:pn,SHEBANG:_n,TITLE_MODE:In,UNDERSCORE_IDENT_RE:Re,UNDERSCORE_TITLE_MODE:Cn});function Ln(e,n){e.input[e.index-1]==="."&&n.ignoreMatch()}function Bn(e,n){e.className!==void 0&&(e.scope=e.className,delete e.className)}function kn(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Ln,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Dn(e,n){Array.isArray(e.illegal)&&(e.illegal=_e(...e.illegal))}function Pn(e,n){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Un(e,n){e.relevance===void 0&&(e.relevance=1)}const $n=(e,n)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},e);Object.keys(e).forEach(c=>{delete e[c]}),e.keywords=t.keywords,e.begin=K(t.beforeMatch,ke(t.begin)),e.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},e.relevance=0,delete t.beforeMatch},Hn=["of","and","for","in","not","or","if","then","parent","list","value"],Fn="keyword";function Fe(e,n,t=Fn){const c=Object.create(null);return typeof e=="string"?p(t,e.split(" ")):Array.isArray(e)?p(t,e):Object.keys(e).forEach(function(_){Object.assign(c,Fe(e[_],n,_))}),c;function p(_,a){n&&(a=a.map(i=>i.toLowerCase())),a.forEach(function(i){const l=i.split("|");c[l[0]]=[_,Gn(l[0],l[1])]})}}function Gn(e,n){return n?Number(n):Kn(e)?0:1}function Kn(e){return Hn.includes(e.toLowerCase())}const Ie={},G=e=>{console.error(e)},Ce=(e,...n)=>{console.log(`WARN: ${e}`,...n)},W=(e,n)=>{Ie[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),Ie[`${e}/${n}`]=!0)},ae=new Error;function Ge(e,n,{key:t}){let c=0;const p=e[t],_={},a={};for(let i=1;i<=n.length;i++)a[i+c]=p[i],_[i+c]=!0,c+=De(n[i-1]);e[t]=a,e[t]._emit=_,e[t]._multi=!0}function zn(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw G("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ae;if(typeof e.beginScope!="object"||e.beginScope===null)throw G("beginScope must be object"),ae;Ge(e,e.begin,{key:"beginScope"}),e.begin=Se(e.begin,{joinWith:""})}}function Wn(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw G("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ae;if(typeof e.endScope!="object"||e.endScope===null)throw G("endScope must be object"),ae;Ge(e,e.end,{key:"endScope"}),e.end=Se(e.end,{joinWith:""})}}function Zn(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function jn(e){Zn(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),zn(e),Wn(e)}function Yn(e){function n(a,i){return new RegExp(J(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(i?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(i,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,i]),this.matchAt+=De(i)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const i=this.regexes.map(l=>l[1]);this.matcherRe=n(Se(i,{joinWith:"|"}),!0),this.lastIndex=0}exec(i){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(i);if(!l)return null;const E=l.findIndex((T,A)=>A>0&&T!==void 0),b=this.matchIndexes[E];return l.splice(0,E),Object.assign(l,b)}}class c{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(i){if(this.multiRegexes[i])return this.multiRegexes[i];const l=new t;return this.rules.slice(i).forEach(([E,b])=>l.addRule(E,b)),l.compile(),this.multiRegexes[i]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(i,l){this.rules.push([i,l]),l.type==="begin"&&this.count++}exec(i){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let E=l.exec(i);if(this.resumingScanAtSamePosition()&&!(E&&E.index===this.lastIndex)){const b=this.getMatcher(0);b.lastIndex=this.lastIndex+1,E=b.exec(i)}return E&&(this.regexIndex+=E.position+1,this.regexIndex===this.count&&this.considerAll()),E}}function p(a){const i=new c;return a.contains.forEach(l=>i.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&i.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&i.addRule(a.illegal,{type:"illegal"}),i}function _(a,i){const l=a;if(a.isCompiled)return l;[Bn,Pn,jn,$n].forEach(b=>b(a,i)),e.compilerExtensions.forEach(b=>b(a,i)),a.__beforeBegin=null,[kn,Dn,Un].forEach(b=>b(a,i)),a.isCompiled=!0;let E=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),E=a.keywords.$pattern,delete a.keywords.$pattern),E=E||/\w+/,a.keywords&&(a.keywords=Fe(a.keywords,e.case_insensitive)),l.keywordPatternRe=n(E,!0),i&&(a.begin||(a.begin=/\B|\b/),l.beginRe=n(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=n(l.end)),l.terminatorEnd=J(l.end)||"",a.endsWithParent&&i.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+i.terminatorEnd)),a.illegal&&(l.illegalRe=n(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(b){return Xn(b==="self"?a:b)})),a.contains.forEach(function(b){_(b,l)}),a.starts&&_(a.starts,i),l.matcher=p(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=P(e.classNameAliases||{}),_(e)}function Ke(e){return e?e.endsWithParent||Ke(e.starts):!1}function Xn(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(n){return P(e,{variants:null},n)})),e.cachedVariants?e.cachedVariants:Ke(e)?P(e,{starts:e.starts?P(e.starts):null}):Object.isFrozen(e)?P(e):e}var Jn="11.10.0";class Vn extends Error{constructor(n,t){super(n),this.name="HTMLInjectionError",this.html=t}}const he=Be,me=P,ve=Symbol("nomatch"),Qn=7,ze=function(e){const n=Object.create(null),t=Object.create(null),c=[];let p=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let i={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:un};function l(s){return i.noHighlightRe.test(s)}function E(s){let o=s.className+" ";o+=s.parentNode?s.parentNode.className:"";const f=i.languageDetectRe.exec(o);if(f){const h=L(f[1]);return h||(Ce(_.replace("{}",f[1])),Ce("Falling back to no-highlight mode for this block.",s)),h?f[1]:"no-highlight"}return o.split(/\s+/).find(h=>l(h)||L(h))}function b(s,o,f){let h="",N="";typeof o=="object"?(h=s,f=o.ignoreIllegals,N=o.language):(W("10.7.0","highlight(lang, code, ...args) has been deprecated."),W("10.7.0",`Please use highlight(code, options) instead.
|
|
1
|
+
import{g as an}from"./@xterm.D1SKXPWU.0.0.31-alpha.4.js";function Le(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(n=>{const t=e[n],c=typeof t;(c==="object"||c==="function")&&!Object.isFrozen(t)&&Le(t)}),e}class Oe{constructor(n){n.data===void 0&&(n.data={}),this.data=n.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Be(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function P(e,...n){const t=Object.create(null);for(const c in e)t[c]=e[c];return n.forEach(function(c){for(const p in c)t[p]=c[p]}),t}const cn="</span>",we=e=>!!e.scope,on=(e,{prefix:n})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const t=e.split(".");return[`${n}${t.shift()}`,...t.map((c,p)=>`${c}${"_".repeat(p+1)}`)].join(" ")}return`${n}${e}`};class ln{constructor(n,t){this.buffer="",this.classPrefix=t.classPrefix,n.walk(this)}addText(n){this.buffer+=Be(n)}openNode(n){if(!we(n))return;const t=on(n.scope,{prefix:this.classPrefix});this.span(t)}closeNode(n){we(n)&&(this.buffer+=cn)}value(){return this.buffer}span(n){this.buffer+=`<span class="${n}">`}}const xe=(e={})=>{const n={children:[]};return Object.assign(n,e),n};class pe{constructor(){this.rootNode=xe(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(n){this.top.children.push(n)}openNode(n){const t=xe({scope:n});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(n){return this.constructor._walk(n,this.rootNode)}static _walk(n,t){return typeof t=="string"?n.addText(t):t.children&&(n.openNode(t),t.children.forEach(c=>this._walk(n,c)),n.closeNode(t)),n}static _collapse(n){typeof n!="string"&&n.children&&(n.children.every(t=>typeof t=="string")?n.children=[n.children.join("")]:n.children.forEach(t=>{pe._collapse(t)}))}}class un extends pe{constructor(n){super(),this.options=n}addText(n){n!==""&&this.add(n)}startScope(n){this.openNode(n)}endScope(){this.closeNode()}__addSublanguage(n,t){const c=n.root;t&&(c.scope=`language:${t}`),this.add(c)}toHTML(){return new ln(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function J(e){return e?typeof e=="string"?e:e.source:null}function ke(e){return K("(?=",e,")")}function gn(e){return K("(?:",e,")*")}function fn(e){return K("(?:",e,")?")}function K(...e){return e.map(t=>J(t)).join("")}function dn(e){const n=e[e.length-1];return typeof n=="object"&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}function _e(...e){return"("+(dn(e).capture?"":"?:")+e.map(c=>J(c)).join("|")+")"}function De(e){return new RegExp(e.toString()+"|").exec("").length-1}function En(e,n){const t=e&&e.exec(n);return t&&t.index===0}const bn=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Se(e,{joinWith:n}){let t=0;return e.map(c=>{t+=1;const p=t;let _=J(c),a="";for(;_.length>0;){const i=bn.exec(_);if(!i){a+=_;break}a+=_.substring(0,i.index),_=_.substring(i.index+i[0].length),i[0][0]==="\\"&&i[1]?a+="\\"+String(Number(i[1])+p):(a+=i[0],i[0]==="("&&t++)}return a}).map(c=>`(${c})`).join(n)}const hn=/\b\B/,Pe="[a-zA-Z]\\w*",Re="[a-zA-Z_]\\w*",Ue="\\b\\d+(\\.\\d+)?",$e="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",He="\\b(0b[01]+)",pn="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",_n=(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=K(n,/.*\b/,e.binary,/\b.*/)),P({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(t,c)=>{t.index!==0&&c.ignoreMatch()}},e)},V={begin:"\\\\[\\s\\S]",relevance:0},Sn={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[V]},Rn={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[V]},Nn={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},oe=function(e,n,t={}){const c=P({scope:"comment",begin:e,end:n,contains:[]},t);c.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const p=_e("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return c.contains.push({begin:K(/[ ]+/,"(",p,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),c},An=oe("//","$"),yn=oe("/\\*","\\*/"),Tn=oe("#","$"),Mn={scope:"number",begin:Ue,relevance:0},On={scope:"number",begin:$e,relevance:0},wn={scope:"number",begin:He,relevance:0},xn={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[V,{begin:/\[/,end:/\]/,relevance:0,contains:[V]}]},In={scope:"title",begin:Pe,relevance:0},Cn={scope:"title",begin:Re,relevance:0},mn={begin:"\\.\\s*"+Re,relevance:0},vn=function(e){return Object.assign(e,{"on:begin":(n,t)=>{t.data._beginMatch=n[1]},"on:end":(n,t)=>{t.data._beginMatch!==n[1]&&t.ignoreMatch()}})};var re=Object.freeze({__proto__:null,APOS_STRING_MODE:Sn,BACKSLASH_ESCAPE:V,BINARY_NUMBER_MODE:wn,BINARY_NUMBER_RE:He,COMMENT:oe,C_BLOCK_COMMENT_MODE:yn,C_LINE_COMMENT_MODE:An,C_NUMBER_MODE:On,C_NUMBER_RE:$e,END_SAME_AS_BEGIN:vn,HASH_COMMENT_MODE:Tn,IDENT_RE:Pe,MATCH_NOTHING_RE:hn,METHOD_GUARD:mn,NUMBER_MODE:Mn,NUMBER_RE:Ue,PHRASAL_WORDS_MODE:Nn,QUOTE_STRING_MODE:Rn,REGEXP_MODE:xn,RE_STARTERS_RE:pn,SHEBANG:_n,TITLE_MODE:In,UNDERSCORE_IDENT_RE:Re,UNDERSCORE_TITLE_MODE:Cn});function Ln(e,n){e.input[e.index-1]==="."&&n.ignoreMatch()}function Bn(e,n){e.className!==void 0&&(e.scope=e.className,delete e.className)}function kn(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Ln,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Dn(e,n){Array.isArray(e.illegal)&&(e.illegal=_e(...e.illegal))}function Pn(e,n){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Un(e,n){e.relevance===void 0&&(e.relevance=1)}const $n=(e,n)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},e);Object.keys(e).forEach(c=>{delete e[c]}),e.keywords=t.keywords,e.begin=K(t.beforeMatch,ke(t.begin)),e.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},e.relevance=0,delete t.beforeMatch},Hn=["of","and","for","in","not","or","if","then","parent","list","value"],Fn="keyword";function Fe(e,n,t=Fn){const c=Object.create(null);return typeof e=="string"?p(t,e.split(" ")):Array.isArray(e)?p(t,e):Object.keys(e).forEach(function(_){Object.assign(c,Fe(e[_],n,_))}),c;function p(_,a){n&&(a=a.map(i=>i.toLowerCase())),a.forEach(function(i){const l=i.split("|");c[l[0]]=[_,Gn(l[0],l[1])]})}}function Gn(e,n){return n?Number(n):Kn(e)?0:1}function Kn(e){return Hn.includes(e.toLowerCase())}const Ie={},G=e=>{console.error(e)},Ce=(e,...n)=>{console.log(`WARN: ${e}`,...n)},W=(e,n)=>{Ie[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),Ie[`${e}/${n}`]=!0)},ae=new Error;function Ge(e,n,{key:t}){let c=0;const p=e[t],_={},a={};for(let i=1;i<=n.length;i++)a[i+c]=p[i],_[i+c]=!0,c+=De(n[i-1]);e[t]=a,e[t]._emit=_,e[t]._multi=!0}function zn(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw G("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ae;if(typeof e.beginScope!="object"||e.beginScope===null)throw G("beginScope must be object"),ae;Ge(e,e.begin,{key:"beginScope"}),e.begin=Se(e.begin,{joinWith:""})}}function Wn(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw G("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ae;if(typeof e.endScope!="object"||e.endScope===null)throw G("endScope must be object"),ae;Ge(e,e.end,{key:"endScope"}),e.end=Se(e.end,{joinWith:""})}}function Zn(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function jn(e){Zn(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),zn(e),Wn(e)}function Yn(e){function n(a,i){return new RegExp(J(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(i?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(i,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,i]),this.matchAt+=De(i)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const i=this.regexes.map(l=>l[1]);this.matcherRe=n(Se(i,{joinWith:"|"}),!0),this.lastIndex=0}exec(i){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(i);if(!l)return null;const E=l.findIndex((T,A)=>A>0&&T!==void 0),b=this.matchIndexes[E];return l.splice(0,E),Object.assign(l,b)}}class c{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(i){if(this.multiRegexes[i])return this.multiRegexes[i];const l=new t;return this.rules.slice(i).forEach(([E,b])=>l.addRule(E,b)),l.compile(),this.multiRegexes[i]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(i,l){this.rules.push([i,l]),l.type==="begin"&&this.count++}exec(i){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let E=l.exec(i);if(this.resumingScanAtSamePosition()&&!(E&&E.index===this.lastIndex)){const b=this.getMatcher(0);b.lastIndex=this.lastIndex+1,E=b.exec(i)}return E&&(this.regexIndex+=E.position+1,this.regexIndex===this.count&&this.considerAll()),E}}function p(a){const i=new c;return a.contains.forEach(l=>i.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&i.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&i.addRule(a.illegal,{type:"illegal"}),i}function _(a,i){const l=a;if(a.isCompiled)return l;[Bn,Pn,jn,$n].forEach(b=>b(a,i)),e.compilerExtensions.forEach(b=>b(a,i)),a.__beforeBegin=null,[kn,Dn,Un].forEach(b=>b(a,i)),a.isCompiled=!0;let E=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),E=a.keywords.$pattern,delete a.keywords.$pattern),E=E||/\w+/,a.keywords&&(a.keywords=Fe(a.keywords,e.case_insensitive)),l.keywordPatternRe=n(E,!0),i&&(a.begin||(a.begin=/\B|\b/),l.beginRe=n(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=n(l.end)),l.terminatorEnd=J(l.end)||"",a.endsWithParent&&i.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+i.terminatorEnd)),a.illegal&&(l.illegalRe=n(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(b){return Xn(b==="self"?a:b)})),a.contains.forEach(function(b){_(b,l)}),a.starts&&_(a.starts,i),l.matcher=p(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=P(e.classNameAliases||{}),_(e)}function Ke(e){return e?e.endsWithParent||Ke(e.starts):!1}function Xn(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(n){return P(e,{variants:null},n)})),e.cachedVariants?e.cachedVariants:Ke(e)?P(e,{starts:e.starts?P(e.starts):null}):Object.isFrozen(e)?P(e):e}var Jn="11.10.0";class Vn extends Error{constructor(n,t){super(n),this.name="HTMLInjectionError",this.html=t}}const he=Be,me=P,ve=Symbol("nomatch"),Qn=7,ze=function(e){const n=Object.create(null),t=Object.create(null),c=[];let p=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let i={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:un};function l(s){return i.noHighlightRe.test(s)}function E(s){let o=s.className+" ";o+=s.parentNode?s.parentNode.className:"";const f=i.languageDetectRe.exec(o);if(f){const h=L(f[1]);return h||(Ce(_.replace("{}",f[1])),Ce("Falling back to no-highlight mode for this block.",s)),h?f[1]:"no-highlight"}return o.split(/\s+/).find(h=>l(h)||L(h))}function b(s,o,f){let h="",N="";typeof o=="object"?(h=s,f=o.ignoreIllegals,N=o.language):(W("10.7.0","highlight(lang, code, ...args) has been deprecated."),W("10.7.0",`Please use highlight(code, options) instead.
|
|
2
2
|
https://github.com/highlightjs/highlight.js/issues/2277`),N=s,h=o),f===void 0&&(f=!0);const I={code:h,language:N};z("before:highlight",I);const v=I.result?I.result:T(I.language,I.code,f);return v.code=I.code,z("after:highlight",v),v}function T(s,o,f,h){const N=Object.create(null);function I(r,u){return r.keywords[u]}function v(){if(!g.keywords){M.addText(R);return}let r=0;g.keywordPatternRe.lastIndex=0;let u=g.keywordPatternRe.exec(R),d="";for(;u;){d+=R.substring(r,u.index);const S=k.case_insensitive?u[0].toLowerCase():u[0],w=I(g,S);if(w){const[D,sn]=w;if(M.addText(d),d="",N[S]=(N[S]||0)+1,N[S]<=Qn&&(ie+=sn),D.startsWith("_"))d+=u[0];else{const rn=k.classNameAliases[D]||D;B(u[0],rn)}}else d+=u[0];r=g.keywordPatternRe.lastIndex,u=g.keywordPatternRe.exec(R)}d+=R.substring(r),M.addText(d)}function te(){if(R==="")return;let r=null;if(typeof g.subLanguage=="string"){if(!n[g.subLanguage]){M.addText(R);return}r=T(g.subLanguage,R,!0,Me[g.subLanguage]),Me[g.subLanguage]=r._top}else r=y(R,g.subLanguage.length?g.subLanguage:null);g.relevance>0&&(ie+=r.relevance),M.__addSublanguage(r._emitter,r.language)}function m(){g.subLanguage!=null?te():v(),R=""}function B(r,u){r!==""&&(M.startScope(u),M.addText(r),M.endScope())}function Ne(r,u){let d=1;const S=u.length-1;for(;d<=S;){if(!r._emit[d]){d++;continue}const w=k.classNameAliases[r[d]]||r[d],D=u[d];w?B(D,w):(R=D,v(),R=""),d++}}function Ae(r,u){return r.scope&&typeof r.scope=="string"&&M.openNode(k.classNameAliases[r.scope]||r.scope),r.beginScope&&(r.beginScope._wrap?(B(R,k.classNameAliases[r.beginScope._wrap]||r.beginScope._wrap),R=""):r.beginScope._multi&&(Ne(r.beginScope,u),R="")),g=Object.create(r,{parent:{value:g}}),g}function ye(r,u,d){let S=En(r.endRe,d);if(S){if(r["on:end"]){const w=new Oe(r);r["on:end"](u,w),w.isMatchIgnored&&(S=!1)}if(S){for(;r.endsParent&&r.parent;)r=r.parent;return r}}if(r.endsWithParent)return ye(r.parent,u,d)}function Qe(r){return g.matcher.regexIndex===0?(R+=r[0],1):(be=!0,0)}function qe(r){const u=r[0],d=r.rule,S=new Oe(d),w=[d.__beforeBegin,d["on:begin"]];for(const D of w)if(D&&(D(r,S),S.isMatchIgnored))return Qe(u);return d.skip?R+=u:(d.excludeBegin&&(R+=u),m(),!d.returnBegin&&!d.excludeBegin&&(R=u)),Ae(d,r),d.returnBegin?0:u.length}function en(r){const u=r[0],d=o.substring(r.index),S=ye(g,r,d);if(!S)return ve;const w=g;g.endScope&&g.endScope._wrap?(m(),B(u,g.endScope._wrap)):g.endScope&&g.endScope._multi?(m(),Ne(g.endScope,r)):w.skip?R+=u:(w.returnEnd||w.excludeEnd||(R+=u),m(),w.excludeEnd&&(R=u));do g.scope&&M.closeNode(),!g.skip&&!g.subLanguage&&(ie+=g.relevance),g=g.parent;while(g!==S.parent);return S.starts&&Ae(S.starts,r),w.returnEnd?0:u.length}function nn(){const r=[];for(let u=g;u!==k;u=u.parent)u.scope&&r.unshift(u.scope);r.forEach(u=>M.openNode(u))}let se={};function Te(r,u){const d=u&&u[0];if(R+=r,d==null)return m(),0;if(se.type==="begin"&&u.type==="end"&&se.index===u.index&&d===""){if(R+=o.slice(u.index,u.index+1),!p){const S=new Error(`0 width match regex (${s})`);throw S.languageName=s,S.badRule=se.rule,S}return 1}if(se=u,u.type==="begin")return qe(u);if(u.type==="illegal"&&!f){const S=new Error('Illegal lexeme "'+d+'" for mode "'+(g.scope||"<unnamed>")+'"');throw S.mode=g,S}else if(u.type==="end"){const S=en(u);if(S!==ve)return S}if(u.type==="illegal"&&d==="")return 1;if(Ee>1e5&&Ee>u.index*3)throw new Error("potential infinite loop, way more iterations than matches");return R+=d,d.length}const k=L(s);if(!k)throw G(_.replace("{}",s)),new Error('Unknown language: "'+s+'"');const tn=Yn(k);let de="",g=h||tn;const Me={},M=new i.__emitter(i);nn();let R="",ie=0,F=0,Ee=0,be=!1;try{if(k.__emitTokens)k.__emitTokens(o,M);else{for(g.matcher.considerAll();;){Ee++,be?be=!1:g.matcher.considerAll(),g.matcher.lastIndex=F;const r=g.matcher.exec(o);if(!r)break;const u=o.substring(F,r.index),d=Te(u,r);F=r.index+d}Te(o.substring(F))}return M.finalize(),de=M.toHTML(),{language:s,value:de,relevance:ie,illegal:!1,_emitter:M,_top:g}}catch(r){if(r.message&&r.message.includes("Illegal"))return{language:s,value:he(o),illegal:!0,relevance:0,_illegalBy:{message:r.message,index:F,context:o.slice(F-100,F+100),mode:r.mode,resultSoFar:de},_emitter:M};if(p)return{language:s,value:he(o),illegal:!1,relevance:0,errorRaised:r,_emitter:M,_top:g};throw r}}function A(s){const o={value:he(s),illegal:!1,relevance:0,_top:a,_emitter:new i.__emitter(i)};return o._emitter.addText(s),o}function y(s,o){o=o||i.languages||Object.keys(n);const f=A(s),h=o.filter(L).filter(ee).map(m=>T(m,s,!1));h.unshift(f);const N=h.sort((m,B)=>{if(m.relevance!==B.relevance)return B.relevance-m.relevance;if(m.language&&B.language){if(L(m.language).supersetOf===B.language)return 1;if(L(B.language).supersetOf===m.language)return-1}return 0}),[I,v]=N,te=I;return te.secondBest=v,te}function x(s,o,f){const h=o&&t[o]||f;s.classList.add("hljs"),s.classList.add(`language-${h}`)}function O(s){let o=null;const f=E(s);if(l(f))return;if(z("before:highlightElement",{el:s,language:f}),s.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",s);return}if(s.children.length>0&&(i.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(s)),i.throwUnescapedHTML))throw new Vn("One of your code blocks includes unescaped HTML.",s.innerHTML);o=s;const h=o.textContent,N=f?b(h,{language:f,ignoreIllegals:!0}):y(h);s.innerHTML=N.value,s.dataset.highlighted="yes",x(s,f,N.language),s.result={language:N.language,re:N.relevance,relevance:N.relevance},N.secondBest&&(s.secondBest={language:N.secondBest.language,relevance:N.secondBest.relevance}),z("after:highlightElement",{el:s,result:N,text:h})}function C(s){i=me(i,s)}const U=()=>{$(),W("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function j(){$(),W("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Y=!1;function $(){if(document.readyState==="loading"){Y=!0;return}document.querySelectorAll(i.cssSelector).forEach(O)}function X(){Y&&$()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",X,!1);function H(s,o){let f=null;try{f=o(e)}catch(h){if(G("Language definition for '{}' could not be registered.".replace("{}",s)),p)G(h);else throw h;f=a}f.name||(f.name=s),n[s]=f,f.rawDefinition=o.bind(null,e),f.aliases&&q(f.aliases,{languageName:s})}function le(s){delete n[s];for(const o of Object.keys(t))t[o]===s&&delete t[o]}function Q(){return Object.keys(n)}function L(s){return s=(s||"").toLowerCase(),n[s]||n[t[s]]}function q(s,{languageName:o}){typeof s=="string"&&(s=[s]),s.forEach(f=>{t[f.toLowerCase()]=o})}function ee(s){const o=L(s);return o&&!o.disableAutodetect}function ue(s){s["before:highlightBlock"]&&!s["before:highlightElement"]&&(s["before:highlightElement"]=o=>{s["before:highlightBlock"](Object.assign({block:o.el},o))}),s["after:highlightBlock"]&&!s["after:highlightElement"]&&(s["after:highlightElement"]=o=>{s["after:highlightBlock"](Object.assign({block:o.el},o))})}function ge(s){ue(s),c.push(s)}function fe(s){const o=c.indexOf(s);o!==-1&&c.splice(o,1)}function z(s,o){const f=s;c.forEach(function(h){h[f]&&h[f](o)})}function ne(s){return W("10.7.0","highlightBlock will be removed entirely in v12.0"),W("10.7.0","Please use highlightElement now."),O(s)}Object.assign(e,{highlight:b,highlightAuto:y,highlightAll:$,highlightElement:O,highlightBlock:ne,configure:C,initHighlighting:U,initHighlightingOnLoad:j,registerLanguage:H,unregisterLanguage:le,listLanguages:Q,getLanguage:L,registerAliases:q,autoDetection:ee,inherit:me,addPlugin:ge,removePlugin:fe}),e.debugMode=function(){p=!1},e.safeMode=function(){p=!0},e.versionString=Jn,e.regex={concat:K,lookahead:ke,either:_e,optional:fn,anyNumberOfTimes:gn};for(const s in re)typeof re[s]=="object"&&Le(re[s]);return Object.assign(e,re),e},Z=ze({});Z.newInstance=()=>ze({});var qn=Z;Z.HighlightJS=Z;Z.default=Z;const tt=an(qn);function st(e){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},t={match:/[{}[\],:]/,className:"punctuation",relevance:0},c=["true","false","null"],p={scope:"literal",beginKeywords:c.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:c},contains:[n,t,e.QUOTE_STRING_MODE,p,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function it(e){const n=e.regex,t=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),c=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:c,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},E={className:"subst",begin:/\{/,end:/\}/,keywords:i,illegal:/#/},b={begin:/\{\{/,relevance:0},T={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,b,E]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,b,E]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,b,E]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,b,E]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},A="[0-9](_?[0-9])*",y=`(\\b(${A}))?\\.(${A})|\\b(${A})\\.`,x=`\\b|${c.join("|")}`,O={className:"number",relevance:0,variants:[{begin:`(\\b(${A})|(${y}))[eE][+-]?(${A})[jJ]?(?=${x})`},{begin:`(${y})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${x})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${x})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${x})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${x})`},{begin:`\\b(${A})[jJ](?=${x})`}]},C={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},U={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:["self",l,O,T,e.HASH_COMMENT_MODE]}]};return E.contains=[T,O,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[l,O,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},T,C,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,t],scope:{1:"keyword",3:"title.function"},contains:[U]},{variants:[{match:[/\bclass/,/\s+/,t,/\s*/,/\(\s*/,t,/\s*\)/]},{match:[/\bclass/,/\s+/,t]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[O,U,T]}]}}const ce="[A-Za-z$_][0-9A-Za-z$_]*",We=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Ze=["true","false","null","undefined","NaN","Infinity"],je=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ye=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Xe=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Je=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ve=[].concat(Xe,je,Ye);function et(e){const n=e.regex,t=(o,{after:f})=>{const h="</"+o[0].slice(1);return o.input.indexOf(h,f)!==-1},c=ce,p={begin:"<>",end:"</>"},_=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(o,f)=>{const h=o[0].length+o.index,N=o.input[h];if(N==="<"||N===","){f.ignoreMatch();return}N===">"&&(t(o,{after:h})||f.ignoreMatch());let I;const v=o.input.substring(h);if(I=v.match(/^\s*=/)){f.ignoreMatch();return}if((I=v.match(/^\s+extends\s+/))&&I.index===0){f.ignoreMatch();return}}},i={$pattern:ce,keyword:We,literal:Ze,built_in:Ve,"variable.language":Je},l="[0-9](_?[0-9])*",E=`\\.(${l})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",T={className:"number",variants:[{begin:`(\\b(${b})((${E})|\\.)?|(${E}))[eE][+-]?(${l})\\b`},{begin:`\\b(${b})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},A={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},y={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,A],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,A],subLanguage:"css"}},O={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,A],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,A]},j={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:c+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},Y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,y,x,O,C,{match:/\$\d+/},T];A.contains=Y.concat({begin:/\{/,end:/\}/,keywords:i,contains:["self"].concat(Y)});const $=[].concat(j,A.contains),X=$.concat([{begin:/(\s*)\(/,end:/\)/,keywords:i,contains:["self"].concat($)}]),H={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:X},le={variants:[{match:[/class/,/\s+/,c,/\s+/,/extends/,/\s+/,n.concat(c,"(",n.concat(/\./,c),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,c],scope:{1:"keyword",3:"title.class"}}]},Q={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...je,...Ye]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},q={variants:[{match:[/function/,/\s+/,c,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[H],illegal:/%/},ee={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ue(o){return n.concat("(?!",o.join("|"),")")}const ge={match:n.concat(/\b/,ue([...Xe,"super","import"].map(o=>`${o}\\s*\\(`)),c,n.lookahead(/\s*\(/)),className:"title.function",relevance:0},fe={begin:n.concat(/\./,n.lookahead(n.concat(c,/(?![0-9A-Za-z$_(])/))),end:c,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},z={match:[/get|set/,/\s+/,c,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},H]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",s={match:[/const|var|let/,/\s+/,c,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[H]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{PARAMS_CONTAINS:X,CLASS_REFERENCE:Q},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,y,x,O,C,j,{match:/\$\d+/},T,Q,{className:"attr",begin:c+n.lookahead(":"),relevance:0},s,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[j,e.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:X}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:_},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},q,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[H,e.inherit(e.TITLE_MODE,{begin:c,className:"title.function"})]},{match:/\.\.\./,relevance:0},fe,{match:"\\$"+c,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[H]},ge,ee,le,z,{match:/\$[(.]/}]}}function rt(e){const n=et(e),t=ce,c=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],p={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},_={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:c},contains:[n.exports.CLASS_REFERENCE]},a={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},i=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:ce,keyword:We.concat(i),literal:Ze,built_in:Ve.concat(c),"variable.language":Je},E={className:"meta",begin:"@"+t},b=(y,x,O)=>{const C=y.contains.findIndex(U=>U.label===x);if(C===-1)throw new Error("can not find mode to replace");y.contains.splice(C,1,O)};Object.assign(n.keywords,l),n.exports.PARAMS_CONTAINS.push(E);const T=n.contains.find(y=>y.className==="attr");n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,T]),n.contains=n.contains.concat([E,p,_]),b(n,"shebang",e.SHEBANG()),b(n,"use_strict",a);const A=n.contains.find(y=>y.label==="func.def");return A.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function at(e){const n="true false yes no null",t="[\\w#;/?:@&=+$,.~*'()[\\]]+",c={className:"attr",variants:[{begin:/\w[\w :()\./-]*:(?=[ \t]|$)/},{begin:/"\w[\w :()\./-]*":(?=[ \t]|$)/},{begin:/'\w[\w :()\./-]*':(?=[ \t]|$)/}]},p={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},_={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,p]},a=e.inherit(_,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),T={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},A={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},y={begin:/\{/,end:/\}/,contains:[A],illegal:"\\n",relevance:0},x={begin:"\\[",end:"\\]",contains:[A],illegal:"\\n",relevance:0},O=[c,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+t},{className:"type",begin:"!<"+t+">"},{className:"type",begin:"!"+t},{className:"type",begin:"!!"+t},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},T,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},y,x,_],C=[...O];return C.pop(),C.push(a),A.contains=C,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:O}}export{tt as H,st as j,it as p,rt as t,at as y};
|