openc3-cosmos-tool-cmdtlmserver 7.2.0 → 7.2.1
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.
- checksums.yaml +4 -4
- data/tools/cmdtlmserver/{ArrayWidget-D1PArcGr-1cb78ca7cb83e47908ee.js → ArrayWidget-DMSm_P6c-694a5d20f37aee56e971.js} +2 -2
- data/tools/cmdtlmserver/{ArrayplotWidget-DPUPy0qM-9c5325ed3b6e0c89df8f.js → ArrayplotWidget-fdXLhGAl-ee49423a88f0830f3d10.js} +1 -1
- data/tools/cmdtlmserver/{BarColumn-BpdscDQf-2d19bc70f89b83debf2b.js → BarColumn-Bb305iCi-1d6370d3a5948e7070fb.js} +1 -1
- data/tools/cmdtlmserver/{BlockWidget-_VUsK5T9-87cecde84ec9eee53d78.js → BlockWidget-Do3W6tZh-0465ab5ccbba95c9cd95.js} +2 -2
- data/tools/cmdtlmserver/{ButtonWidget-DE41o-cg-c5cd6e74dbabd0420d0e.js → ButtonWidget-DukCQt0F-73553c5eb8665f5a122c.js} +2 -2
- data/tools/cmdtlmserver/CanvasWidget-BRdVWln5-ecfd6c23ebdef1641cbe.js +1 -0
- data/tools/cmdtlmserver/CanvasdotWidget-DV8PeDWz-9ea509837174f807accc.js +1 -0
- data/tools/cmdtlmserver/{CanvasimageWidget-COv_Qnc8-53c8b97c1eff0cb369be.js → CanvasimageWidget-Czbq1GuF-f6237d2815bb4fb67627.js} +1 -1
- data/tools/cmdtlmserver/{CanvasimagevalueWidget-BhuUqLOo-388fa33a3da2d971b05b.js → CanvasimagevalueWidget-DKt5JgEt-4d4748409b4390fd9317.js} +1 -1
- data/tools/cmdtlmserver/CanvaslabelWidget-DW2I1ra1-21be90e9689988d7cc0b.js +1 -0
- data/tools/cmdtlmserver/CanvaslabelvalueWidget-BhzvZVfD-98ba8f4d0b737ae50149.js +1 -0
- data/tools/cmdtlmserver/{CanvaslineWidget-D1K_6mAY-957ef26c77ffcf3c26aa.js → CanvaslineWidget-DsjY37tp-333343a7e55e7ced336a.js} +1 -1
- data/tools/cmdtlmserver/{CanvaslinevalueWidget-D4eaxWhR-488c1eb347eb93f3db22.js → CanvaslinevalueWidget-ihI97G8T-a999105fab2c48e7d5a3.js} +1 -1
- data/tools/cmdtlmserver/CheckbuttonWidget-B778Z-Zo-929c0f581f4e6fc8bb9b.js +1 -0
- data/tools/cmdtlmserver/{CmdPacketsTab-5213fff88faeff8c2bf0.js → CmdPacketsTab-ab63982334bccb674566.js} +1 -1
- data/tools/cmdtlmserver/{CmdTlmServer-db96cc7a37046fc23e08.js → CmdTlmServer-dbb3257de023db2ad7db.js} +2 -2
- data/tools/cmdtlmserver/ComboboxWidget-CuuvOL9K-580e3a816c2a39c9dc31.js +1 -0
- data/tools/cmdtlmserver/DataFlowsTab-651405c9f3cd11ec53ae.js +1 -0
- data/tools/cmdtlmserver/{DateWidget-DkNWx28s-7f519b2f30faeb9fe3fd.js → DateWidget-COvQTAeo-8e7e5760cca1eca77fb7.js} +1 -1
- data/tools/cmdtlmserver/{DetailsDialog-F4KgYM6m-df810d02cfb5e0198172.js → DetailsDialog-DE7lK17G-f251b58f150be03f9878.js} +1 -1
- data/tools/cmdtlmserver/{DynamicWidget-BuSbQVhf-18179cf5a61cbc723d72.js → DynamicWidget-BuSbQVhf-d28b4dd265895ced834e.js} +1 -1
- data/tools/cmdtlmserver/{FilechecksumWidget-DSfNEnDJ-b6d7f28b678c6b571db9.js → FilechecksumWidget-DRnOt_UE-e8bcb330e9f8161abcb5.js} +1 -1
- data/tools/cmdtlmserver/{FiledisplayWidget-D2cxMmrP-91c627968612f56bef53.js → FiledisplayWidget-26R46EjS-50600e2205e679c6e7a3.js} +1 -1
- data/tools/cmdtlmserver/{FormatvalueWidget-6-bj_PJO-5621420fe3506d1932e4.js → FormatvalueWidget-BxyscMJc-deb6fbbd21db3f9b9533.js} +1 -1
- data/tools/cmdtlmserver/Graph-BKw7xw1a-cafa3fdb6d474421c777.js +1 -0
- data/tools/cmdtlmserver/{GraphWidget-COXK3Dab-3f26903e4d5da289ab20.js → GraphWidget-Cs9mvqUu-bb3bb075fd0ea3764beb.js} +1 -1
- data/tools/cmdtlmserver/{HorizontalWidget-C9UFBPsk-84c81a59fc34282ffe71.js → HorizontalWidget-fWLFj7Kg-87dfe4a783ca9d8718a3.js} +1 -1
- data/tools/cmdtlmserver/{HorizontalboxWidget-CWLfmRtr-09493eb27796c1b12919.js → HorizontalboxWidget-DEaXhKEz-3cc78a62e93fced5cc2d.js} +1 -1
- data/tools/cmdtlmserver/HorizontallineWidget-Bvu1QP3S-1c0a38d8daf4285046b0.js +1 -0
- data/tools/cmdtlmserver/{IframeWidget-Bn9eGzrq-fdd10b58ac32de3de437.js → IframeWidget-B143k4lo-211336261edc12558ba4.js} +1 -1
- data/tools/cmdtlmserver/{ImageLoader-_gAudhVo-003969d31d1c3d9e5b32.js → ImageLoader-BCpmQHIl-e1f186d47f7443384752.js} +1 -1
- data/tools/cmdtlmserver/{ImageviewerWidget-BUWhF32Z-751c45f6392ccbe675d5.js → ImageviewerWidget-CLrvr6dw-dbefc7bb490747b4d32b.js} +1 -1
- data/tools/cmdtlmserver/{InterfaceFlowChart-cfadd36d819b485a73ef.js → InterfaceFlowChart-87892813bbc3da7dd816.js} +1 -1
- data/tools/cmdtlmserver/{InterfacesTab-dca6d7668848c4078e8d.js → InterfacesTab-c3d2cc4844087b3f946d.js} +1 -1
- data/tools/cmdtlmserver/{LabelWidget-BhzkN06D-4209a141ff664143bb0f.js → LabelWidget-CA1bTX2B-2c9d603681176335c5dd.js} +1 -1
- data/tools/cmdtlmserver/{LabelledWidget-vx8NvW1b-a9879fd6ddfc57fa36b9.js → LabelledWidget-BDhvr03J-fe41df86dd3cc7e1d625.js} +1 -1
- data/tools/cmdtlmserver/{LabelprogressbarWidget-t5PvKuS4-feb53cc1f8715b39f864.js → LabelprogressbarWidget-g7A5CE8S-17fe760704ac3e7697ad.js} +1 -1
- data/tools/cmdtlmserver/LabelsparklineWidget-B27xXxWg-960e3827bda04825c04a.js +1 -0
- data/tools/cmdtlmserver/{LabelvalueWidget-Cbs1DBK2-ce888769e60d2e4aad2c.js → LabelvalueWidget-DFn8o6LC-382c91895aa50abef201.js} +1 -1
- data/tools/cmdtlmserver/{LabelvaluedescWidget-B7OIOGc0-878e5a0b12c95f9dc732.js → LabelvaluedescWidget-BQpaxFaB-abcd49094e4d21057a3d.js} +1 -1
- data/tools/cmdtlmserver/LabelvaluelimitsbarWidget-C-z96q8z-1f5e8f4cf393ac65098f.js +1 -0
- data/tools/cmdtlmserver/LabelvaluelimitscolumnWidget-D2TMEv9O-11b6844f84b58504c3aa.js +1 -0
- data/tools/cmdtlmserver/{LabelvaluerangebarWidget-Pt_evm3v-77436cdf1233d55bfb62.js → LabelvaluerangebarWidget-D99dZCjz-2c72dd417308f8cf3b83.js} +1 -1
- data/tools/cmdtlmserver/{Layout-CKmC50QZ-85f8ef7d9d4b778fc3f8.js → Layout--_zNJWnw-9367ae190fb0e9bf1b84.js} +1 -1
- data/tools/cmdtlmserver/{LedWidget-D1lmNXpi-3a5b364ce2a97685e9dd.js → LedWidget-D2uxHxe3-22c8c1f89536f753f5e6.js} +1 -1
- data/tools/cmdtlmserver/{LimitsBar-D5IZu7eX-07cdd7c4da705a5b2cac.js → LimitsBar-DN1s8-MS-d3248be80e3262273e82.js} +1 -1
- data/tools/cmdtlmserver/{LimitsbarWidget-VpxQXE-e-a756975fa42f4776712f.js → LimitsbarWidget-Cqhh7LKU-7f40da6484ccbe5da287.js} +1 -1
- data/tools/cmdtlmserver/{LimitscolorWidget-79P41CX7-ad179ada10464166cfb2.js → LimitscolorWidget-haGB4RbY-ddf6b0791eb1be4ac6c5.js} +1 -1
- data/tools/cmdtlmserver/{LimitscolumnWidget-BFDXhJeZ-ded4fac25cb92257eb32.js → LimitscolumnWidget-B1GdmlR_-86b9a2cc5c084b705674.js} +1 -1
- data/tools/cmdtlmserver/{LinegraphWidget-VqkpOlws-fdf5639852f6b641d75f.js → LinegraphWidget-COSOQ0uM-a5300046319a8e9bc2ac.js} +1 -1
- data/tools/cmdtlmserver/{MatrixbycolumnsWidget--ihvirDP-13588dfd9e05a20284cf.js → MatrixbycolumnsWidget-coHlLETG-e799eaa675cfbf970ed5.js} +1 -1
- data/tools/cmdtlmserver/{OpenC3TimePicker-B0lAIU91-1d7cb9e69fdb3e2d19db.js → OpenC3TimePicker-B8Vu9GBz-89d21b420245131e470d.js} +1 -1
- data/tools/cmdtlmserver/{ProgressbarWidget-BIB3r9SL-89623753647970ec01f0.js → ProgressbarWidget-D_yFssIZ-2510755cf05a8167431f.js} +1 -1
- data/tools/cmdtlmserver/{RadiobuttonWidget-C5rxLM7K-572c4d7c32c43b82c96b.js → RadiobuttonWidget-DL0jVTcb-101358296cb6f3e5ac75.js} +1 -1
- data/tools/cmdtlmserver/{RadiogroupWidget-CciTCv1U-ebc68de8edecb013d87d.js → RadiogroupWidget-2-td69IA-98144436c4729f2db047.js} +1 -1
- data/tools/cmdtlmserver/{RangebarWidget-MPQYi2Km-6b2b3f2e820d4e5ce633.js → RangebarWidget-i2mlnxys-3ecd19c88b6a2f13fc7a.js} +1 -1
- data/tools/cmdtlmserver/{RawBuffer-ebb6aadc11fa84048a7f.js → RawBuffer-5a59e58e37f6021cf46c.js} +1 -1
- data/tools/cmdtlmserver/{RawDialog-4383b630959e2310610e.js → RawDialog-3a0c000973893535a456.js} +1 -1
- data/tools/cmdtlmserver/{RollupWidget-CfjGAhzg-6b1de39f95e298a21e0f.js → RollupWidget-BEJ2Icg1-416b8d9160f2a81fd538.js} +1 -1
- data/tools/cmdtlmserver/{RoutersTab-7438fce73b7c2c45c9c7.js → RoutersTab-7710ec67843901567d25.js} +1 -1
- data/tools/cmdtlmserver/ScrollwindowWidget-BU1cRpL8-d99f9e1c5467abc7ed03.js +1 -0
- data/tools/cmdtlmserver/{SignalWidget-C-qecoTO-b31583be1fe1a7a01769.js → SignalWidget-hiTkeem9-9efe6cdd22515ebf8555.js} +1 -1
- data/tools/cmdtlmserver/SpacerWidget-CBmzzS_X-e8f51b2251bb08fed6b0.js +1 -0
- data/tools/cmdtlmserver/SparklineWidget-CizRh6QR-92a3ebcc84a5687d3b93.js +1 -0
- data/tools/cmdtlmserver/{StatusTab-7f111deb77c4a2bc05b0.js → StatusTab-efcdd278c79f71b06e9b.js} +1 -1
- data/tools/cmdtlmserver/{TabbookWidget-CXklff-l-8ad144458fb01c903478.js → TabbookWidget-CvL3Ozmx-19c91b22633cf0927a1e.js} +1 -1
- data/tools/cmdtlmserver/{TargetsTab-29f400440b894771ad34.js → TargetsTab-326711a03f6c9686634d.js} +1 -1
- data/tools/cmdtlmserver/TextboxWidget-BtEwXzDO-52792ac2b6593c85c776.js +1 -0
- data/tools/cmdtlmserver/TextfieldWidget-BDbb57HP-7306fcc70fc27079b1d3.js +1 -0
- data/tools/cmdtlmserver/TimeWidget-DzD8U8l8-db805689f0b8dbaab9f7.js +1 -0
- data/tools/cmdtlmserver/TitleWidget-CL53vf14-c0987297e98b6c858650.js +1 -0
- data/tools/cmdtlmserver/{TlmPacketsTab-6453f72e7567b78bb979.js → TlmPacketsTab-91250bba537c7eb02f7c.js} +1 -1
- data/tools/cmdtlmserver/{Updater-d97ddec520bea4a73d3f.js → Updater-af04370b0601580396d1.js} +1 -1
- data/tools/cmdtlmserver/{VWidget-oMbywhLA-03a02aaf028be7a3c9c0.js → VWidget-5qOYva88-5dc877752d53235d987d.js} +1 -1
- data/tools/cmdtlmserver/ValueWidget-CAkuc_w_-0721aa9556f274d056ba.js +1 -0
- data/tools/cmdtlmserver/ValuelimitsbarWidget-Y8sO05E1-f729f6e347b2f5825407.js +1 -0
- data/tools/cmdtlmserver/{ValuelimitscolumnWidget-BVt6nLXq-ca32b86e6abfcdcca7df.js → ValuelimitscolumnWidget-iOjB_fCj-ae174dd346919467bac7.js} +1 -1
- data/tools/cmdtlmserver/ValuerangebarWidget-DsCoeAm6-7804711bfe999dad21a6.js +1 -0
- data/tools/cmdtlmserver/VerticalWidget-C6O0dhRU-a30bbb27eaa68c233c89.js +1 -0
- data/tools/cmdtlmserver/{VerticalboxWidget-C7RrkfY0-f0cc6f904b80b09e5ba7.js → VerticalboxWidget-B-CoqRJG-ba12b0177fbcd7fb76e1.js} +1 -1
- data/tools/cmdtlmserver/{Widget-D_HaosJK-e286c8e7e2106d81e87c.js → Widget-CtYQauzA-69fc956797d4c4719727.js} +1 -1
- data/tools/cmdtlmserver/main-78902a467d9f5f7771dd.js +1499 -0
- data/tools/cmdtlmserver/main.js +1 -1
- data/tools/cmdtlmserver/services-fee3a04fec3ff6af8998.js +10 -0
- metadata +84 -84
- data/tools/cmdtlmserver/CanvasWidget-BEi8h3Mq-e35c5a9baa7ecd914bcf.js +0 -1
- data/tools/cmdtlmserver/CanvasdotWidget-eZuMgkhL-fda5d43523fafb058839.js +0 -1
- data/tools/cmdtlmserver/CanvaslabelWidget-DtvbgeYH-6e001a64a4a18263f0ee.js +0 -1
- data/tools/cmdtlmserver/CanvaslabelvalueWidget-C_FRIeNb-4134766817f8dcab10e9.js +0 -1
- data/tools/cmdtlmserver/CheckbuttonWidget-ByxMDkiS-6e069bf3ea2500374efe.js +0 -1
- data/tools/cmdtlmserver/ComboboxWidget-CAGxGv2r-d17c3e9aaa2b1b02ab46.js +0 -1
- data/tools/cmdtlmserver/DataFlowsTab-324bc5957f403e4d2794.js +0 -1
- data/tools/cmdtlmserver/Graph-Cz0Ns1FD-0efdbbd522a909650069.js +0 -1
- data/tools/cmdtlmserver/HorizontallineWidget-DeFkOaYO-257ec3426ecc547ca94f.js +0 -1
- data/tools/cmdtlmserver/LabelsparklineWidget-CebbEH-j-f503f09d02fa4f3918c1.js +0 -1
- data/tools/cmdtlmserver/LabelvaluelimitsbarWidget-C57kf-oQ-0be9055fc642dd213441.js +0 -1
- data/tools/cmdtlmserver/LabelvaluelimitscolumnWidget-BRlNDEqp-e812057ca64792e7caed.js +0 -1
- data/tools/cmdtlmserver/ScrollwindowWidget-CupaygNN-1554ccfbbfa2766e4301.js +0 -1
- data/tools/cmdtlmserver/SpacerWidget-VVkOCb6N-dbdf2c2f889a818d027b.js +0 -1
- data/tools/cmdtlmserver/SparklineWidget-Dsmn38z_-1d9eba2ef6ba778585cd.js +0 -1
- data/tools/cmdtlmserver/TextboxWidget-CHs2VYIv-939d75e16d4590c1f1f8.js +0 -1
- data/tools/cmdtlmserver/TextfieldWidget-CdANAW-6-6a6919e7eb62ef86954f.js +0 -1
- data/tools/cmdtlmserver/TimeWidget-D0xT1wXR-19f76febd2f5779fae7a.js +0 -1
- data/tools/cmdtlmserver/TitleWidget-68NWCcXB-7507be046b0a9b3c127c.js +0 -1
- data/tools/cmdtlmserver/ValueWidget-B1aGUBP7-af6d1d1a57943374ee79.js +0 -1
- data/tools/cmdtlmserver/ValuelimitsbarWidget-B7KcRjLS-de09e4004f70b97b84bc.js +0 -1
- data/tools/cmdtlmserver/ValuerangebarWidget-uVZEI32U-d5bd219c6bc362dc1229.js +0 -1
- data/tools/cmdtlmserver/VerticalWidget-DlftYBjH-7f2f1e45111c6a438cd3.js +0 -1
- data/tools/cmdtlmserver/main-ae88870307d629b1ce0e.js +0 -1499
- data/tools/cmdtlmserver/services-a7fe7e9b036652e7b4b1.js +0 -10
data/tools/cmdtlmserver/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["vue","./main-
|
|
1
|
+
System.register(["vue","./main-78902a467d9f5f7771dd.js","vue-router","pinia","single-spa","vuetify"],(function(t,u){"use strict";return{setters:[null,n=>{t({bootstrap:n.f,mount:n.k,unmount:n.r})},null,null,null,null],execute:(function(){})}}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
System.register([],(function(ze,zi){"use strict";return{execute:(function(){function pt(t,e){return function(){return t.apply(e,arguments)}}const{toString:Cr}=Object.prototype,{getPrototypeOf:oe}=Object,{iterator:fe,toStringTag:gt}=Symbol,Ae=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),pe=(t,e)=>{let r=t;const s=[];for(;r!=null&&r!==Object.prototype;){if(s.indexOf(r)!==-1)return!1;if(s.push(r),Ae(r,e))return!0;r=oe(r)}return!1},Pr=(t,e)=>t!=null&&pe(t,e)?t[e]:void 0,Je=(t=>e=>{const r=Cr.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),B=t=>(t=t.toLowerCase(),e=>Je(e)===t),Ce=t=>e=>typeof e===t,{isArray:Y}=Array,ae=Ce("undefined");function ce(t){return t!==null&&!ae(t)&&t.constructor!==null&&!ae(t.constructor)&&U(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const mt=B("ArrayBuffer");function Tr(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&mt(t.buffer),e}const Nr=Ce("string"),U=Ce("function"),bt=Ce("number"),le=t=>t!==null&&typeof t=="object",kr=t=>t===!0||t===!1,Pe=t=>{if(!le(t))return!1;const e=oe(t);return(e===null||e===Object.prototype||oe(e)===null)&&!pe(t,gt)&&!pe(t,fe)},jr=t=>{if(!le(t)||ce(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Ir=B("Date"),Lr=B("File"),Ur=t=>!!(t&&typeof t.uri<"u"),Dr=t=>t&&typeof t.getParts<"u",Fr=B("Blob"),$r=B("FileList"),qr=t=>le(t)&&U(t.pipe);function Br(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const _t=Br(),yt=typeof _t.FormData<"u"?_t.FormData:void 0,Mr=t=>{if(!t)return!1;if(yt&&t instanceof yt)return!0;const e=oe(t);if(!e||e===Object.prototype||!U(t.append))return!1;const r=Je(t);return r==="formdata"||r==="object"&&U(t.toString)&&t.toString()==="[object FormData]"},zr=B("URLSearchParams"),[Jr,Wr,Hr,Vr]=["ReadableStream","Request","Response","Headers"].map(B),Kr=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ge(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let s,n;if(typeof t!="object"&&(t=[t]),Y(t))for(s=0,n=t.length;s<n;s++)e.call(null,t[s],s,t);else{if(ce(t))return;const o=r?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(s=0;s<i;s++)a=o[s],e.call(null,t[a],a,t)}}function wt(t,e){if(ce(t))return null;e=e.toLowerCase();const r=Object.keys(t);let s=r.length,n;for(;s-- >0;)if(n=r[s],e===n.toLowerCase())return n;return null}const Z=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Et=t=>!ae(t)&&t!==Z;function We(...t){const{caseless:e,skipUndefined:r}=Et(this)&&this||{},s={},n=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=e&&typeof i=="string"&&wt(s,i)||i,l=Ae(s,a)?s[a]:void 0;Pe(l)&&Pe(o)?s[a]=We(l,o):Pe(o)?s[a]=We({},o):Y(o)?s[a]=o.slice():(!r||!ae(o))&&(s[a]=o)};for(let o=0,i=t.length;o<i;o++){const a=t[o];if(!a||ce(a)||(ge(a,n),typeof a!="object"||Y(a)))continue;const l=Object.getOwnPropertySymbols(a);for(let h=0;h<l.length;h++){const u=l[h];os.call(a,u)&&n(a[u],u)}}return s}const Xr=(t,e,r,{allOwnKeys:s}={})=>(ge(e,(n,o)=>{r&&U(n)?Object.defineProperty(t,o,{__proto__:null,value:pt(n,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,o,{__proto__:null,value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),t),Qr=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Gr=(t,e,r,s)=>{t.prototype=Object.create(e.prototype,s),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),r&&Object.assign(t.prototype,r)},Yr=(t,e,r,s)=>{let n,o,i;const a={};if(e=e||{},t==null)return e;do{for(n=Object.getOwnPropertyNames(t),o=n.length;o-- >0;)i=n[o],(!s||s(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=r!==!1&&oe(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Zr=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const s=t.indexOf(e,r);return s!==-1&&s===r},es=t=>{if(!t)return null;if(Y(t))return t;let e=t.length;if(!bt(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},ts=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&oe(Uint8Array)),rs=(t,e)=>{const r=(t&&t[fe]).call(t);let s;for(;(s=r.next())&&!s.done;){const n=s.value;e.call(t,n[0],n[1])}},ss=(t,e)=>{let r;const s=[];for(;(r=t.exec(e))!==null;)s.push(r);return s},ns=B("HTMLFormElement"),is=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,r,s){return r.toUpperCase()+s}),{propertyIsEnumerable:os}=Object.prototype,as=B("RegExp"),St=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),s={};ge(r,(n,o)=>{let i;(i=e(n,o,t))!==!1&&(s[o]=i||n)}),Object.defineProperties(t,s)},cs=t=>{St(t,(e,r)=>{if(U(t)&&["arguments","caller","callee"].includes(r))return!1;const s=t[r];if(U(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},ls=(t,e)=>{const r={},s=n=>{n.forEach(o=>{r[o]=!0})};return Y(t)?s(t):s(String(t).split(e)),r},us=()=>{},hs=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function ds(t){return!!(t&&U(t.append)&&t[gt]==="FormData"&&t[fe])}const fs=t=>{const e=new WeakSet,r=s=>{if(le(s)){if(e.has(s))return;if(ce(s))return s;if(!("toJSON"in s)){e.add(s);const n=Y(s)?[]:{};return ge(s,(o,i)=>{const a=r(o);!ae(a)&&(n[i]=a)}),e.delete(s),n}}return s};return r(t)},ps=B("AsyncFunction"),gs=t=>t&&(le(t)||U(t))&&U(t.then)&&U(t.catch),vt=((t,e)=>t?setImmediate:e?((r,s)=>(Z.addEventListener("message",({source:n,data:o})=>{n===Z&&o===r&&s.length&&s.shift()()},!1),n=>{s.push(n),Z.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",U(Z.postMessage)),ms=typeof queueMicrotask<"u"?queueMicrotask.bind(Z):typeof process<"u"&&process.nextTick||vt,Ot=t=>t!=null&&U(t[fe]),bs=t=>t!=null&&pe(t,fe)&&Ot(t),c={isArray:Y,isArrayBuffer:mt,isBuffer:ce,isFormData:Mr,isArrayBufferView:Tr,isString:Nr,isNumber:bt,isBoolean:kr,isObject:le,isPlainObject:Pe,isEmptyObject:jr,isReadableStream:Jr,isRequest:Wr,isResponse:Hr,isHeaders:Vr,isUndefined:ae,isDate:Ir,isFile:Lr,isReactNativeBlob:Ur,isReactNative:Dr,isBlob:Fr,isRegExp:as,isFunction:U,isStream:qr,isURLSearchParams:zr,isTypedArray:ts,isFileList:$r,forEach:ge,merge:We,extend:Xr,trim:Kr,stripBOM:Qr,inherits:Gr,toFlatObject:Yr,kindOf:Je,kindOfTest:B,endsWith:Zr,toArray:es,forEachEntry:rs,matchAll:ss,isHTMLForm:ns,hasOwnProperty:Ae,hasOwnProp:Ae,hasOwnInPrototypeChain:pe,getSafeProp:Pr,reduceDescriptors:St,freezeMethods:cs,toObjectSet:ls,toCamelCase:is,noop:us,toFiniteNumber:hs,findKey:wt,global:Z,isContextDefined:Et,isSpecCompliantForm:ds,toJSONObject:fs,isAsyncFn:ps,isThenable:gs,setImmediate:vt,asap:ms,isIterable:Ot,isSafeIterable:bs},_s=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ys=t=>{const e={};let r,s,n;return t&&t.split(`
|
|
2
|
+
`).forEach(function(o){n=o.indexOf(":"),r=o.substring(0,n).trim().toLowerCase(),s=o.substring(n+1).trim(),!(!r||e[r]&&_s[r])&&(r==="set-cookie"?e[r]?e[r].push(s):e[r]=[s]:e[r]=e[r]?e[r]+", "+s:s)}),e};function ws(t){let e=0,r=t.length;for(;e<r;){const s=t.charCodeAt(e);if(s!==9&&s!==32)break;e+=1}for(;r>e;){const s=t.charCodeAt(r-1);if(s!==9&&s!==32)break;r-=1}return e===0&&r===t.length?t:t.slice(e,r)}const Es=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Ss=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function He(t,e){return c.isArray(t)?t.map(r=>He(r,e)):ws(String(t).replace(e,""))}const vs=t=>He(t,Es),Os=t=>He(t,Ss);function Rt(t){const e=Object.create(null);return c.forEach(t.toJSON(),(r,s)=>{e[s]=Os(r)}),e}const xt=Symbol("internals");function me(t){return t&&String(t).trim().toLowerCase()}function Te(t){return t===!1||t==null?t:c.isArray(t)?t.map(Te):vs(String(t))}function Rs(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=r.exec(t);)e[s[1]]=s[2];return e}const xs=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ve(t,e,r,s,n){if(c.isFunction(s))return s.call(this,e,r);if(n&&(e=r),!!c.isString(e)){if(c.isString(s))return e.indexOf(s)!==-1;if(c.isRegExp(s))return s.test(e)}}function As(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,s)=>r.toUpperCase()+s)}function Cs(t,e){const r=c.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+r,{__proto__:null,value:function(n,o,i){return this[s].call(this,e,n,o,i)},configurable:!0})})}let T=class{constructor(t){t&&this.set(t)}set(t,e,r){const s=this;function n(i,a,l){const h=me(a);if(!h)return;const u=c.findKey(s,h);(!u||s[u]===void 0||l===!0||l===void 0&&s[u]!==!1)&&(s[u||a]=Te(i))}const o=(i,a)=>c.forEach(i,(l,h)=>n(l,h,a));if(c.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if(c.isString(t)&&(t=t.trim())&&!xs(t))o(ys(t),e);else if(c.isObject(t)&&c.isSafeIterable(t)){let i=Object.create(null),a,l;for(const h of t){if(!c.isArray(h))throw new TypeError("Object iterator must return a key-value pair");l=h[0],c.hasOwnProp(i,l)?(a=i[l],i[l]=c.isArray(a)?[...a,h[1]]:[a,h[1]]):i[l]=h[1]}o(i,e)}else t!=null&&n(e,t,r);return this}get(t,e){if(t=me(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!e)return s;if(e===!0)return Rs(s);if(c.isFunction(e))return e.call(this,s,r);if(c.isRegExp(e))return e.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=me(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||Ve(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let s=!1;function n(o){if(o=me(o),o){const i=c.findKey(r,o);i&&(!e||Ve(r,r[i],i,e))&&(delete r[i],s=!0)}}return c.isArray(t)?t.forEach(n):n(t),s}clear(t){const e=Object.keys(this);let r=e.length,s=!1;for(;r--;){const n=e[r];(!t||Ve(this,this[n],n,t,!0))&&(delete this[n],s=!0)}return s}normalize(t){const e=this,r={};return c.forEach(this,(s,n)=>{const o=c.findKey(r,n);if(o){e[o]=Te(s),delete e[n];return}const i=t?As(n):String(n).trim();i!==n&&delete e[n],e[i]=Te(s),r[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(e[s]=t&&c.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(s=>r.set(s)),r}static accessor(t){const e=(this[xt]=this[xt]={accessors:{}}).accessors,r=this.prototype;function s(n){const o=me(n);e[o]||(Cs(r,n),e[o]=!0)}return c.isArray(t)?t.forEach(s):s(t),this}};T.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.reduceDescriptors(T.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(s){this[r]=s}}}),c.freezeMethods(T);const Ps="[REDACTED ****]";function Ts(t){if(c.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(c.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function Ns(t,e){const r=new Set(e.map(o=>String(o).toLowerCase())),s=[],n=o=>{if(o===null||typeof o!="object"||c.isBuffer(o))return o;if(s.indexOf(o)!==-1)return;o instanceof T&&(o=o.toJSON()),s.push(o);let i;if(c.isArray(o))i=[],o.forEach((a,l)=>{const h=n(a);c.isUndefined(h)||(i[l]=h)});else{if(!c.isPlainObject(o)&&Ts(o))return s.pop(),o;i=Object.create(null);for(const[a,l]of Object.entries(o)){const h=r.has(a.toLowerCase())?Ps:n(l);c.isUndefined(h)||(i[a]=h)}}return s.pop(),i};return n(t)}let p=class xr extends Error{static from(e,r,s,n,o,i){const a=new xr(e.message,r||e.code,s,n,o);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,r,s,n,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),s&&(this.config=s),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,r=e&&c.hasOwnProp(e,"redact")?e.redact:void 0,s=c.isArray(r)&&r.length>0?Ns(e,r):c.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:s,code:this.code,status:this.status}}};p.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",p.ERR_BAD_OPTION="ERR_BAD_OPTION",p.ECONNABORTED="ECONNABORTED",p.ETIMEDOUT="ETIMEDOUT",p.ECONNREFUSED="ECONNREFUSED",p.ERR_NETWORK="ERR_NETWORK",p.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",p.ERR_DEPRECATED="ERR_DEPRECATED",p.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",p.ERR_BAD_REQUEST="ERR_BAD_REQUEST",p.ERR_CANCELED="ERR_CANCELED",p.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",p.ERR_INVALID_URL="ERR_INVALID_URL",p.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const ks=null,At=100;function Ke(t){return c.isPlainObject(t)||c.isArray(t)}function Ct(t){return c.endsWith(t,"[]")?t.slice(0,-2):t}function Xe(t,e,r){return t?t.concat(e).map(function(s,n){return s=Ct(s),!r&&n?"["+s+"]":s}).join(r?".":""):e}function js(t){return c.isArray(t)&&!t.some(Ke)}const Is=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function Ne(t,e,r){if(!c.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=c.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,g){return!c.isUndefined(g[f])});const s=r.metaTokens,n=r.visitor||v,o=r.dots,i=r.indexes,a=r.Blob||typeof Blob<"u"&&Blob,l=r.maxDepth===void 0?At:r.maxDepth,h=a&&c.isSpecCompliantForm(e),u=[];if(!c.isFunction(n))throw new TypeError("visitor must be a function");function d(f){if(f===null)return"";if(c.isDate(f))return f.toISOString();if(c.isBoolean(f))return f.toString();if(!h&&c.isBlob(f))throw new p("Blob is not supported. Use a Buffer instead.");if(c.isArrayBuffer(f)||c.isTypedArray(f)){if(h&&typeof a=="function")return new a([f]);if(typeof Buffer<"u")return Buffer.from(f);throw new p("Blob is not supported. Use a Buffer instead.",p.ERR_NOT_SUPPORT)}return f}function m(f){if(f>l)throw new p("Object is too deeply nested ("+f+" levels). Max depth: "+l,p.ERR_FORM_DATA_DEPTH_EXCEEDED)}function b(f,g){if(l===1/0)return JSON.stringify(f);const w=[];return JSON.stringify(f,function(S,R){if(!c.isObject(R))return R;for(;w.length&&w[w.length-1]!==this;)w.pop();return w.push(R),m(g+w.length-1),R})}function v(f,g,w){let S=f;if(c.isReactNative(e)&&c.isReactNativeBlob(f))return e.append(Xe(w,g,o),d(f)),!1;if(f&&!w&&typeof f=="object"){if(c.endsWith(g,"{}"))g=s?g:g.slice(0,-2),f=b(f,1);else if(c.isArray(f)&&js(f)||(c.isFileList(f)||c.endsWith(g,"[]"))&&(S=c.toArray(f)))return g=Ct(g),S.forEach(function(R,X){!(c.isUndefined(R)||R===null)&&e.append(i===!0?Xe([g],X,o):i===null?g:g+"[]",d(R))}),!1}return Ke(f)?!0:(e.append(Xe(w,g,o),d(f)),!1)}const _=Object.assign(Is,{defaultVisitor:v,convertValue:d,isVisitable:Ke});function z(f,g,w=0){if(!c.isUndefined(f)){if(m(w),u.indexOf(f)!==-1)throw new Error("Circular reference detected in "+g.join("."));u.push(f),c.forEach(f,function(S,R){(!(c.isUndefined(S)||S===null)&&n.call(e,S,c.isString(R)?R.trim():R,g,_))===!0&&z(S,g?g.concat(R):[R],w+1)}),u.pop()}}if(!c.isObject(t))throw new TypeError("data must be an object");return z(t),e}function Pt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(r){return e[r]})}function Qe(t,e){this._pairs=[],t&&Ne(t,this,e)}const Tt=Qe.prototype;Tt.append=function(t,e){this._pairs.push([t,e])},Tt.toString=function(t){const e=t?r=>t.call(this,r,Pt):Pt;return this._pairs.map(function(r){return e(r[0])+"="+e(r[1])},"").join("&")};function Ls(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Nt(t,e,r){if(!e)return t;t=t||"";const s=c.isFunction(r)?{serialize:r}:r,n=c.getSafeProp(s,"encode")||Ls,o=c.getSafeProp(s,"serialize");let i;if(o?i=o(e,s):i=c.isURLSearchParams(e)?e.toString():new Qe(e,s).toString(n),i){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class kt{constructor(){this.handlers=[]}use(e,r,s){return this.handlers.push({fulfilled:e,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){c.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ge={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Us=typeof URLSearchParams<"u"?URLSearchParams:Qe,Ds=typeof FormData<"u"?FormData:null,Fs=typeof Blob<"u"?Blob:null,$s={isBrowser:!0,classes:{URLSearchParams:Us,FormData:Ds,Blob:Fs},protocols:["http","https","file","blob","url","data"]},Ye=typeof window<"u"&&typeof document<"u",Ze=typeof navigator=="object"&&navigator||void 0,qs=Ye&&(!Ze||["ReactNative","NativeScript","NS"].indexOf(Ze.product)<0),Bs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ms=Ye&&window.location.href||"http://localhost",zs=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ye,hasStandardBrowserEnv:qs,hasStandardBrowserWebWorkerEnv:Bs,navigator:Ze,origin:Ms},Symbol.toStringTag,{value:"Module"})),P={...zs,...$s};function Js(t,e){return Ne(t,new P.classes.URLSearchParams,{visitor:function(r,s,n,o){return P.isNode&&c.isBuffer(r)?(this.append(s,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...e})}const jt=At;function It(t){if(t>jt)throw new p("FormData field is too deeply nested ("+t+" levels). Max depth: "+jt,p.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Ws(t){const e=[],r=/\w+|\[(\w*)]/g;let s;for(;(s=r.exec(t))!==null;)It(e.length),e.push(s[0]==="[]"?"":s[1]||s[0]);return e}function Hs(t){const e={},r=Object.keys(t);let s;const n=r.length;let o;for(s=0;s<n;s++)o=r[s],e[o]=t[o];return e}function Lt(t){function e(r,s,n,o){It(o);let i=r[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=r.length;return i=!i&&c.isArray(n)?n.length:i,l?(c.hasOwnProp(n,i)?n[i]=c.isArray(n[i])?n[i].concat(s):[n[i],s]:n[i]=s,!a):((!c.hasOwnProp(n,i)||!c.isObject(n[i]))&&(n[i]=[]),e(r,s,n[i],o)&&c.isArray(n[i])&&(n[i]=Hs(n[i])),!a)}if(c.isFormData(t)&&c.isFunction(t.entries)){const r={};return c.forEachEntry(t,(s,n)=>{e(Ws(s),n,r,0)}),r}return null}const ue=(t,e)=>t!=null&&c.hasOwnProp(t,e)?t[e]:void 0;function Vs(t,e,r){if(c.isString(t))try{return(e||JSON.parse)(t),c.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(t)}const be={transitional:Ge,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",s=r.indexOf("application/json")>-1,n=c.isObject(t);if(n&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(Lt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(n){const i=ue(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Js(t,i).toString();if((o=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=ue(this,"env"),l=a&&a.FormData;return Ne(o?{"files[]":t}:t,l&&new l,i)}}return n||s?(e.setContentType("application/json",!1),Vs(t)):t}],transformResponse:[function(t){const e=ue(this,"transitional")||be.transitional,r=e&&e.forcedJSONParsing,s=ue(this,"responseType"),n=s==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!s||n)){const o=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t,ue(this,"parseReviver"))}catch(i){if(o)throw i.name==="SyntaxError"?p.from(i,p.ERR_BAD_RESPONSE,this,null,ue(this,"response")):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch","query"],t=>{be.headers[t]={}});function et(t,e){const r=this||be,s=e||r,n=T.from(s.headers);let o=s.data;return c.forEach(t,function(i){o=i.call(r,o,n.normalize(),e?e.status:void 0)}),n.normalize(),o}function Ut(t){return!!(t&&t.__CANCEL__)}let _e=class extends p{constructor(t,e,r){super(t??"canceled",p.ERR_CANCELED,e,r),this.name="CanceledError",this.__CANCEL__=!0}};function Dt(t,e,r){const s=r.config.validateStatus;!r.status||!s||s(r.status)?t(r):e(new p("Request failed with status code "+r.status,r.status>=400&&r.status<500?p.ERR_BAD_REQUEST:p.ERR_BAD_RESPONSE,r.config,r.request,r))}function Ks(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function Xs(t,e){t=t||10;const r=new Array(t),s=new Array(t);let n=0,o=0,i;return e=e!==void 0?e:1e3,function(a){const l=Date.now(),h=s[o];i||(i=l),r[n]=a,s[n]=l;let u=o,d=0;for(;u!==n;)d+=r[u++],u=u%t;if(n=(n+1)%t,n===o&&(o=(o+1)%t),l-i<e)return;const m=h&&l-h;return m?Math.round(d*1e3/m):void 0}}function Qs(t,e){let r=0,s=1e3/e,n,o;const i=(a,l=Date.now())=>{r=l,n=null,o&&(clearTimeout(o),o=null),t(...a)};return[(...a)=>{const l=Date.now(),h=l-r;h>=s?i(a,l):(n=a,o||(o=setTimeout(()=>{o=null,i(n)},s-h)))},()=>n&&i(n)]}const ke=(t,e,r=3)=>{let s=0;const n=Xs(50,250);return Qs(o=>{if(!o||typeof o.loaded!="number")return;const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=a!=null?Math.min(i,a):i,h=Math.max(0,l-s),u=n(h);s=Math.max(s,l);const d={loaded:l,total:a,progress:a?l/a:void 0,bytes:h,rate:u||void 0,estimated:u&&a?(a-l)/u:void 0,event:o,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(d)},r)},Ft=(t,e)=>{const r=t!=null;return[s=>e[0]({lengthComputable:r,total:t,loaded:s}),e[1]]},$t=t=>(...e)=>c.asap(()=>t(...e)),Gs=P.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,P.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(P.origin),P.navigator&&/(msie|trident)/i.test(P.navigator.userAgent)):()=>!0,Ys=P.hasStandardBrowserEnv?{write(t,e,r,s,n,o,i){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];c.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),c.isString(s)&&a.push(`path=${s}`),c.isString(n)&&a.push(`domain=${n}`),o===!0&&a.push("secure"),c.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let r=0;r<e.length;r++){const s=e[r].replace(/^\s+/,""),n=s.indexOf("=");if(n!==-1&&s.slice(0,n)===t)try{return decodeURIComponent(s.slice(n+1))}catch{return s.slice(n+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Zs(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function en(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}const tn=/^https?:(?!\/\/)/i,rn=/[\t\n\r]/g;function sn(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function nn(t){return sn(t).replace(rn,"")}function qt(t,e){if(typeof t=="string"&&tn.test(nn(t)))throw new p('Invalid URL: missing "//" after protocol',p.ERR_INVALID_URL,e)}function Bt(t,e,r,s){qt(e,s);let n=!Zs(e);return t&&(n||r===!1)?(qt(t,s),en(t,e)):e}const Mt=t=>t instanceof T?{...t}:t;function ee(t,e){t=t||{},e=e||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(u,d,m,b){return c.isPlainObject(u)&&c.isPlainObject(d)?c.merge.call({caseless:b},u,d):c.isPlainObject(d)?c.merge({},d):c.isArray(d)?d.slice():d}function n(u,d,m,b){if(c.isUndefined(d)){if(!c.isUndefined(u))return s(void 0,u,m,b)}else return s(u,d,m,b)}function o(u,d){if(!c.isUndefined(d))return s(void 0,d)}function i(u,d){if(c.isUndefined(d)){if(!c.isUndefined(u))return s(void 0,u)}else return s(void 0,d)}function a(u){const d=c.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!c.isUndefined(d))if(c.isPlainObject(d)){if(c.hasOwnProp(d,u))return d[u]}else return;const m=c.hasOwnProp(t,"transitional")?t.transitional:void 0;if(c.isPlainObject(m)&&c.hasOwnProp(m,u))return m[u]}function l(u,d,m){if(c.hasOwnProp(e,m))return s(u,d);if(c.hasOwnProp(t,m))return s(void 0,u)}const h={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:l,headers:(u,d,m)=>n(Mt(u),Mt(d),m,!0)};return c.forEach(Object.keys({...t,...e}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const d=c.hasOwnProp(h,u)?h[u]:n,m=c.hasOwnProp(t,u)?t[u]:void 0,b=c.hasOwnProp(e,u)?e[u]:void 0,v=d(m,b,u);c.isUndefined(v)&&d!==l||(r[u]=v)}),c.hasOwnProp(e,"validateStatus")&&c.isUndefined(e.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(c.hasOwnProp(t,"validateStatus")?r.validateStatus=s(void 0,t.validateStatus):delete r.validateStatus),r}const on=["content-type","content-length"];function an(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([s,n])=>{on.includes(s.toLowerCase())&&t.set(s,n)})}const cn=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16)));function zt(t){const e=ee({},t),r=m=>c.hasOwnProp(e,m)?e[m]:void 0,s=r("data");let n=r("withXSRFToken");const o=r("xsrfHeaderName"),i=r("xsrfCookieName");let a=r("headers");const l=r("auth"),h=r("baseURL"),u=r("allowAbsoluteUrls"),d=r("url");if(e.headers=a=T.from(a),e.url=Nt(Bt(h,d,u,e),r("params"),r("paramsSerializer")),l){const m=c.getSafeProp(l,"username")||"",b=c.getSafeProp(l,"password")||"";try{a.set("Authorization","Basic "+btoa(m+":"+(b?cn(b):"")))}catch(v){throw p.from(v,p.ERR_BAD_OPTION_VALUE,t)}}if(c.isFormData(s)&&(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv||c.isReactNative(s)?a.setContentType(void 0):c.isFunction(s.getHeaders)&&an(a,s.getHeaders(),r("formDataHeaderPolicy"))),P.hasStandardBrowserEnv&&(c.isFunction(n)&&(n=n(e)),n===!0||n==null&&Gs(e.url))){const m=o&&i&&Ys.read(i);m&&a.set(o,m)}return e}const ln=typeof XMLHttpRequest<"u",un=ln&&function(t){return new Promise(function(e,r){const s=zt(t);let n=s.data;const o=T.from(s.headers).normalize();let{responseType:i,onUploadProgress:a,onDownloadProgress:l}=s,h,u,d,m,b;function v(){m&&m(),b&&b(),s.cancelToken&&s.cancelToken.unsubscribe(h),s.signal&&s.signal.removeEventListener("abort",h)}let _=new XMLHttpRequest;_.open(s.method.toUpperCase(),s.url,!0),_.timeout=s.timeout;function z(){if(!_)return;const g=T.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),w={data:!i||i==="text"||i==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:g,config:t,request:_};Dt(function(S){e(S),v()},function(S){r(S),v()},w),_=null}"onloadend"in _?_.onloadend=z:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.startsWith("file:"))||setTimeout(z)},_.onabort=function(){_&&(r(new p("Request aborted",p.ECONNABORTED,t,_)),v(),_=null)},_.onerror=function(g){const w=g&&g.message?g.message:"Network Error",S=new p(w,p.ERR_NETWORK,t,_);S.event=g||null,r(S),v(),_=null},_.ontimeout=function(){let g=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const w=s.transitional||Ge;s.timeoutErrorMessage&&(g=s.timeoutErrorMessage),r(new p(g,w.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,t,_)),v(),_=null},n===void 0&&o.setContentType(null),"setRequestHeader"in _&&c.forEach(Rt(o),function(g,w){_.setRequestHeader(w,g)}),c.isUndefined(s.withCredentials)||(_.withCredentials=!!s.withCredentials),i&&i!=="json"&&(_.responseType=s.responseType),l&&([d,b]=ke(l,!0),_.addEventListener("progress",d)),a&&_.upload&&([u,m]=ke(a),_.upload.addEventListener("progress",u),_.upload.addEventListener("loadend",m)),(s.cancelToken||s.signal)&&(h=g=>{_&&(r(!g||g.type?new _e(null,t,_):g),_.abort(),v(),_=null)},s.cancelToken&&s.cancelToken.subscribe(h),s.signal&&(s.signal.aborted?h():s.signal.addEventListener("abort",h)));const f=Ks(s.url);if(f&&!P.protocols.includes(f)){r(new p("Unsupported protocol "+f+":",p.ERR_BAD_REQUEST,t)),v();return}_.send(n||null)})},hn=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const r=new AbortController;let s=!1;const n=function(l){if(!s){s=!0,i();const h=l instanceof Error?l:this.reason;r.abort(h instanceof p?h:new _e(h instanceof Error?h.message:h))}};let o=e&&setTimeout(()=>{o=null,n(new p(`timeout of ${e}ms exceeded`,p.ETIMEDOUT))},e);const i=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(n):l.removeEventListener("abort",n)}),t=null)};t.forEach(l=>l.addEventListener("abort",n,{once:!0}));const{signal:a}=r;return a.unsubscribe=()=>c.asap(i),a},dn=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let s=0,n;for(;s<r;)n=s+e,yield t.slice(s,n),s=n},fn=async function*(t,e){for await(const r of pn(t))yield*dn(r,e)},pn=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:s}=await e.read();if(r)break;yield s}}finally{await e.cancel()}},Jt=(t,e,r,s)=>{const n=fn(t,e);let o=0,i,a=l=>{i||(i=!0,s&&s(l))};return new ReadableStream({async pull(l){try{const{done:h,value:u}=await n.next();if(h){a(),l.close();return}let d=u.byteLength;if(r){let m=o+=d;r(m)}l.enqueue(new Uint8Array(u))}catch(h){throw a(h),h}},cancel(l){return a(l),n.return()}},{highWaterMark:2})},je=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,gn=(t,e,r)=>e+2<r&&je(t.charCodeAt(e+1))&&je(t.charCodeAt(e+2));function mn(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const r=t.slice(5,e),s=t.slice(e+1);if(/;base64/i.test(r)){let o=s.length;const i=s.length;for(let d=0;d<i;d++)if(s.charCodeAt(d)===37&&d+2<i){const m=s.charCodeAt(d+1),b=s.charCodeAt(d+2);je(m)&&je(b)&&(o-=2,d+=2)}let a=0,l=i-1;const h=d=>d>=2&&s.charCodeAt(d-2)===37&&s.charCodeAt(d-1)===51&&(s.charCodeAt(d)===68||s.charCodeAt(d)===100);l>=0&&(s.charCodeAt(l)===61?(a++,l--):h(l)&&(a++,l-=3)),a===1&&l>=0&&(s.charCodeAt(l)===61||h(l))&&a++;const u=Math.floor(o/4)*3-(a||0);return u>0?u:0}let n=0;for(let o=0,i=s.length;o<i;o++){const a=s.charCodeAt(o);if(a===37&&gn(s,o,i))n+=1,o+=2;else if(a<128)n+=1;else if(a<2048)n+=2;else if(a>=55296&&a<=56319&&o+1<i){const l=s.charCodeAt(o+1);l>=56320&&l<=57343?(n+=4,o++):n+=3}else n+=3}return n}const tt="1.18.1",Wt=64*1024,{isFunction:Ie}=c,bn=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),Ht=t=>{if(!c.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},Vt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},_n=t=>{const e=t.indexOf("://");let r=t;return e!==-1&&(r=r.slice(e+3)),r.includes("@")||r.includes(":")},yn=t=>{const e=c.global!==void 0&&c.global!==null?c.global:globalThis,{ReadableStream:r,TextEncoder:s}=e;t=c.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:n,Request:o,Response:i}=t,a=n?Ie(n):typeof fetch=="function",l=Ie(o),h=Ie(i);if(!a)return!1;const u=a&&Ie(r),d=a&&(typeof s=="function"?(f=>g=>f.encode(g))(new s):async f=>new Uint8Array(await new o(f).arrayBuffer())),m=l&&u&&Vt(()=>{let f=!1;const g=new o(P.origin,{body:new r,method:"POST",get duplex(){return f=!0,"half"}}),w=g.headers.has("Content-Type");return g.body!=null&&g.body.cancel(),f&&!w}),b=h&&u&&Vt(()=>c.isReadableStream(new i("").body)),v={stream:b&&(f=>f.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!v[f]&&(v[f]=(g,w)=>{let S=g&&g[f];if(S)return S.call(g);throw new p(`Response type '${f}' is not supported`,p.ERR_NOT_SUPPORT,w)})});const _=async f=>{if(f==null)return 0;if(c.isBlob(f))return f.size;if(c.isSpecCompliantForm(f))return(await new o(P.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(c.isArrayBufferView(f)||c.isArrayBuffer(f))return f.byteLength;if(c.isURLSearchParams(f)&&(f=f+""),c.isString(f))return(await d(f)).byteLength},z=async(f,g)=>c.toFiniteNumber(f.getContentLength())??_(g);return async f=>{let{url:g,method:w,data:S,signal:R,cancelToken:X,timeout:ve,onDownloadProgress:ne,onUploadProgress:W,responseType:F,headers:k,withCredentials:J="same-origin",fetchOptions:Q,maxContentLength:j,maxBodyLength:de}=zt(f);const I=c.isNumber(j)&&j>-1,y=c.isNumber(de)&&de>-1,C=O=>c.hasOwnProp(f,O)?f[O]:void 0;let $=n||fetch;F=F?(F+"").toLowerCase():"text";let L=hn([R,X&&X.toAbortSignal()],ve),x=null;const H=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let Oe,Re=null;const Er=()=>new p("Request body larger than maxBodyLength limit",p.ERR_BAD_REQUEST,f,x);try{let O;const q=C("auth");if(q){const E=c.getSafeProp(q,"username")||"",D=c.getSafeProp(q,"password")||"";O={username:E,password:D}}if(_n(g)){const E=new URL(g,P.origin);if(!O&&(E.username||E.password)){const D=Ht(E.username),G=Ht(E.password);O={username:D,password:G}}(E.username||E.password)&&(E.username="",E.password="",g=E.href)}if(O&&(k.delete("authorization"),k.set("Authorization","Basic "+btoa(bn((O.username||"")+":"+(O.password||""))))),I&&typeof g=="string"&&g.startsWith("data:")&&mn(g)>j)throw new p("maxContentLength size of "+j+" exceeded",p.ERR_BAD_RESPONSE,f,x);if(y&&w!=="get"&&w!=="head"){const E=await _(S);if(typeof E=="number"&&isFinite(E)&&(Oe=E,E>de))throw Er()}const Me=y&&(c.isReadableStream(S)||c.isStream(S)),Sr=(E,D,G)=>Jt(E,Wt,ie=>{if(y&&ie>de)throw Re=Er();D&&D(ie)},G);if(m&&w!=="get"&&w!=="head"&&(W||Me)){if(Oe=Oe??await z(k,S),Oe!==0||Me){let E=new o(g,{method:"POST",body:S,duplex:"half"}),D;if(c.isFormData(S)&&(D=E.headers.get("content-type"))&&k.setContentType(D),E.body){const[G,ie]=W&&Ft(Oe,ke($t(W)))||[];S=Sr(E.body,G,ie)}}}else if(Me&&!l&&u&&w!=="get"&&w!=="head")S=Sr(S);else if(Me&&l&&!m&&w!=="get"&&w!=="head")throw new p("Stream request bodies are not supported by the current fetch implementation",p.ERR_NOT_SUPPORT,f,x);c.isString(J)||(J=J?"include":"omit");const Bi=l&&"credentials"in o.prototype;if(c.isFormData(S)){const E=k.getContentType();E&&/^multipart\/form-data/i.test(E)&&!/boundary=/i.test(E)&&k.delete("content-type")}k.set("User-Agent","axios/"+tt,!1);const vr={...Q,signal:L,method:w.toUpperCase(),headers:Rt(k.normalize()),body:S,duplex:"half",credentials:Bi?J:void 0};x=l&&new o(g,vr);let V=await(l?$(x,Q):$(g,vr));const Or=T.from(V.headers);if(I){const E=c.toFiniteNumber(Or.getContentLength());if(E!=null&&E>j)throw new p("maxContentLength size of "+j+" exceeded",p.ERR_BAD_RESPONSE,f,x)}const ft=b&&(F==="stream"||F==="response");if(b&&V.body&&(ne||I||ft&&H)){const E={};["status","statusText","headers"].forEach(xe=>{E[xe]=V[xe]});const D=c.toFiniteNumber(Or.getContentLength()),[G,ie]=ne&&Ft(D,ke($t(ne),!0))||[];let Rr=0;const Mi=xe=>{if(I&&(Rr=xe,Rr>j))throw new p("maxContentLength size of "+j+" exceeded",p.ERR_BAD_RESPONSE,f,x);G&&G(xe)};V=new i(Jt(V.body,Wt,Mi,()=>{ie&&ie(),H&&H()}),E)}F=F||"text";let K=await v[c.findKey(v,F)||"text"](V,f);if(I&&!b&&!ft){let E;if(K!=null&&(typeof K.byteLength=="number"?E=K.byteLength:typeof K.size=="number"?E=K.size:typeof K=="string"&&(E=typeof s=="function"?new s().encode(K).byteLength:K.length)),typeof E=="number"&&E>j)throw new p("maxContentLength size of "+j+" exceeded",p.ERR_BAD_RESPONSE,f,x)}return!ft&&H&&H(),await new Promise((E,D)=>{Dt(E,D,{data:K,headers:T.from(V.headers),status:V.status,statusText:V.statusText,config:f,request:x})})}catch(O){if(H&&H(),L&&L.aborted&&L.reason instanceof p){const q=L.reason;throw q.config=f,x&&(q.request=x),O!==q&&Object.defineProperty(q,"cause",{__proto__:null,value:O,writable:!0,enumerable:!1,configurable:!0}),q}if(Re)throw x&&!Re.request&&(Re.request=x),Re;if(O instanceof p)throw x&&!O.request&&(O.request=x),O;if(O&&O.name==="TypeError"&&/Load failed|fetch/i.test(O.message)){const q=new p("Network Error",p.ERR_NETWORK,f,x,O&&O.response);throw Object.defineProperty(q,"cause",{__proto__:null,value:O.cause||O,writable:!0,enumerable:!1,configurable:!0}),q}throw p.from(O,O&&O.code,f,x,O&&O.response)}}},wn=new Map,Kt=t=>{let e=t&&t.env||{};const{fetch:r,Request:s,Response:n}=e,o=[s,n,r];let i=o.length,a=i,l,h,u=wn;for(;a--;)l=o[a],h=u.get(l),h===void 0&&u.set(l,h=a?new Map:yn(e)),u=h;return h};Kt();const rt={http:ks,xhr:un,fetch:{get:Kt}};c.forEach(rt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const Xt=t=>`- ${t}`,En=t=>c.isFunction(t)||t===null||t===!1;function Sn(t,e){t=c.isArray(t)?t:[t];const{length:r}=t;let s,n;const o={};for(let i=0;i<r;i++){s=t[i];let a;if(n=s,!En(s)&&(n=rt[(a=String(s)).toLowerCase()],n===void 0))throw new p(`Unknown adapter '${a}'`);if(n&&(c.isFunction(n)||(n=n.get(e))))break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([l,h])=>`adapter ${l} `+(h===!1?"is not supported by the environment":"is not available in the build"));let a=r?i.length>1?`since :
|
|
4
|
+
`+i.map(Xt).join(`
|
|
5
|
+
`):" "+Xt(i[0]):"as no adapter specified";throw new p("There is no suitable adapter to dispatch the request "+a,p.ERR_NOT_SUPPORT)}return n}const Qt={getAdapter:Sn,adapters:rt};function st(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new _e(null,t)}function Gt(t){return st(t),t.headers=T.from(t.headers),t.data=et.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Qt.getAdapter(t.adapter||be.adapter,t)(t).then(function(e){st(t),t.response=e;try{e.data=et.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=T.from(e.headers),e},function(e){if(!Ut(e)&&(st(t),e&&e.response)){t.response=e.response;try{e.response.data=et.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=T.from(e.response.headers)}return Promise.reject(e)})}const Le={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Le[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Yt={};Le.transitional=function(t,e,r){function s(n,o){return"[Axios v"+tt+"] Transitional option '"+n+"'"+o+(r?". "+r:"")}return(n,o,i)=>{if(t===!1)throw new p(s(o," has been removed"+(e?" in "+e:"")),p.ERR_DEPRECATED);return e&&!Yt[o]&&(Yt[o]=!0,console.warn(s(o," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(n,o,i):!0}},Le.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function vn(t,e,r){if(typeof t!="object"||t===null)throw new p("options must be an object",p.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let n=s.length;for(;n-- >0;){const o=s[n],i=Object.prototype.hasOwnProperty.call(e,o)?e[o]:void 0;if(i){const a=t[o],l=a===void 0||i(a,o,t);if(l!==!0)throw new p("option "+o+" must be "+l,p.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new p("Unknown option "+o,p.ERR_BAD_OPTION)}}const Ue={assertOptions:vn,validators:Le},N=Ue.validators;let te=class{constructor(t){this.defaults=t||{},this.interceptors={request:new kt,response:new kt}}async request(t,e){try{return await this._request(t,e)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const n=(()=>{if(!s.stack)return"";const o=s.stack.indexOf(`
|
|
6
|
+
`);return o===-1?"":s.stack.slice(o+1)})();try{if(!r.stack)r.stack=n;else if(n){const o=n.indexOf(`
|
|
7
|
+
`),i=o===-1?-1:n.indexOf(`
|
|
8
|
+
`,o+1),a=i===-1?"":n.slice(i+1);String(r.stack).endsWith(a)||(r.stack+=`
|
|
9
|
+
`+n)}}catch{}}throw r}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=ee(this.defaults,e);const{transitional:r,paramsSerializer:s,headers:n}=e;r!==void 0&&Ue.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean),legacyInterceptorReqResOrdering:N.transitional(N.boolean),advertiseZstdAcceptEncoding:N.transitional(N.boolean),validateStatusUndefinedResolves:N.transitional(N.boolean)},!1),s!=null&&(c.isFunction(s)?e.paramsSerializer={serialize:s}:Ue.assertOptions(s,{encode:N.function,serialize:N.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),Ue.assertOptions(e,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=n&&c.merge(n.common,n[e.method]);n&&c.forEach(["delete","get","head","post","put","patch","query","common"],b=>{delete n[b]}),e.headers=T.concat(o,n);const i=[];let a=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(e)===!1)return;a=a&&b.synchronous;const v=e.transitional||Ge;v&&v.legacyInterceptorReqResOrdering?i.unshift(b.fulfilled,b.rejected):i.push(b.fulfilled,b.rejected)});const l=[];this.interceptors.response.forEach(function(b){l.push(b.fulfilled,b.rejected)});let h,u=0,d;if(!a){const b=[Gt.bind(this),void 0];for(b.unshift(...i),b.push(...l),d=b.length,h=Promise.resolve(e);u<d;)h=h.then(b[u++],b[u++]);return h}d=i.length;let m=e;for(;u<d;){const b=i[u++],v=i[u++];try{m=b(m)}catch(_){v.call(this,_);break}}try{h=Gt.call(this,m)}catch(b){return Promise.reject(b)}for(u=0,d=l.length;u<d;)h=h.then(l[u++],l[u++]);return h}getUri(t){t=ee(this.defaults,t);const e=Bt(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Nt(e,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){te.prototype[t]=function(e,r){return this.request(ee(r||{},{method:t,url:e,data:r&&c.hasOwnProp(r,"data")?r.data:void 0}))}}),c.forEach(["post","put","patch","query"],function(t){function e(r){return function(s,n,o){return this.request(ee(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:n}))}}te.prototype[t]=e(),t!=="query"&&(te.prototype[t+"Form"]=e(!0))});let On=class Ar{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(n){r=n});const s=this;this.promise.then(n=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](n);s._listeners=null}),this.promise.then=n=>{let o;const i=new Promise(a=>{s.subscribe(a),o=a}).then(n);return i.cancel=function(){s.unsubscribe(o)},i},e(function(n,o,i){s.reason||(s.reason=new _e(n,o,i),r(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=s=>{e.abort(s)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new Ar(function(r){e=r}),cancel:e}}};function Rn(t){return function(e){return t.apply(null,e)}}function xn(t){return c.isObject(t)&&t.isAxiosError===!0}const nt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(nt).forEach(([t,e])=>{nt[e]=t});function Zt(t){const e=new te(t),r=pt(te.prototype.request,e);return c.extend(r,te.prototype,e,{allOwnKeys:!0}),c.extend(r,e,null,{allOwnKeys:!0}),r.create=function(s){return Zt(ee(t,s))},r}const A=Zt(be);A.Axios=te,A.CanceledError=_e,A.CancelToken=On,A.isCancel=Ut,A.VERSION=tt,A.toFormData=Ne,A.AxiosError=p,A.Cancel=A.CanceledError,A.all=function(t){return Promise.all(t)},A.spread=Rn,A.isAxiosError=xn,A.mergeConfig=ee,A.AxiosHeaders=T,A.formToJSON=t=>Lt(c.isHTMLForm(t)?new FormData(t):t),A.getAdapter=Qt.getAdapter,A.HttpStatusCode=nt,A.default=A;const{Axios:Ji,AxiosError:Wi,CanceledError:Hi,isCancel:Vi,CancelToken:Ki,VERSION:Xi,all:Qi,Cancel:Gi,isAxiosError:Yi,spread:Zi,toFormData:eo,AxiosHeaders:to,HttpStatusCode:ro,formToJSON:so,getAdapter:no,mergeConfig:io,create:oo}=A,it=A.create({baseURL:location.origin,timeout:6e4,params:{}});it.interceptors.response.use(t=>t,t=>{if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(s){s&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let e=`HTTP ${t.response.status} - `;t.response?.statusText&&(e+=`${t.response.statusText} `),t.response?.config?.data&&(e+=`${t.response.config.data} `),t.response?.data?.message?e+=`${t.response.data.message}`:t.response?.data?.exception?e+=`${t.response.data.exception}`:t.response?.data?.error?.message?(t.response.data.error.class&&(e+=`${t.response.data.error.class} `),e+=`${t.response.data.error.message}`):e+=`${t.response?.data}`;const{$cosmosNotify:r}=window;throw r&&r.serious({title:"Network error",body:e}),t}else throw t});const De=async function(t,e,{data:r,params:s={},headers:n,noAuth:o=!1,noScope:i=!1,onUploadProgress:a=!1}={}){if(!o){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}n.Authorization=localStorage.openc3Token}return n.manual=!0,!i&&!s.scope&&(s.scope=window.openc3Scope),it({method:t,url:e,data:r,params:s,headers:n,onUploadProgress:a})},ot={Accept:"application/json"},er={...ot,"Content-Type":"application/json"},ao=ze("c",{get:function(t,{params:e,headers:r=ot,noScope:s,noAuth:n,onUploadProgress:o}={}){return De("get",t,{params:e,headers:r,noScope:s,noAuth:n,onUploadProgress:o})},put:function(t,{data:e,params:r,headers:s=er,noScope:n,noAuth:o,onUploadProgress:i}={}){return De("put",t,{data:e,params:r,headers:s,noScope:n,noAuth:o,onUploadProgress:i})},post:function(t,{data:e,params:r,headers:s=er,noScope:n,noAuth:o,onUploadProgress:i}={}){return De("post",t,{data:e,params:r,headers:s,noScope:n,noAuth:o,onUploadProgress:i})},delete:function(t,{params:e,headers:r=ot,noScope:s,noAuth:n,onUploadProgress:o}={}){return De("delete",t,{params:e,headers:r,noScope:s,noAuth:n,onUploadProgress:o})}});let Fe=()=>({emit(t,...e){for(let r=this.events[t]||[],s=0,n=r.length;s<n;s++)r[s](...e)},events:{},on(t,e){return(this.events[t]||=[]).push(e),()=>{this.events[t]=this.events[t]?.filter(r=>e!==r)}}});class ye extends Error{constructor(e,r){e instanceof Error?(super(e.message),this.cause=e):super(e),this.reason=r,this.name="ReasonError"}}class at extends ye{constructor(e){super("Rejected",e),this.name="SubscriptionRejectedError"}}class An extends ye{constructor(e){super(e||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class M extends ye{constructor(e,r){r?super(e,r):super("Disconnected",e),this.name="DisconnectedError"}}class Cn extends M{constructor(e){super(e,"stale_connection"),this.name="StaleConnectionError"}}function tr(t){return t?`{${Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>{let r=JSON.stringify(t[e]);return`${JSON.stringify(e)}:${r}`}).join(",")}}`:""}class Pn{constructor(e){this.channel=e,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",e=>{if(e.type==="info"){this._state||(this._state=this.stateFromInfo(e));return}this._state&&(e.type==="join"?this._state[e.id]=e.info:e.type==="leave"&&delete this._state[e.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(e=>e()),this.listeners.length=0}async join(e,r){if(!this._info)return this._info={id:String(e),info:r},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let e=await this.channel.perform("$presence:leave");return delete this._info,e}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let e=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(e),this._state}finally{delete this._promise}}stateFromInfo(e){return e.records.reduce((r,{id:s,info:n})=>(r[s]=n,r),{})}}const re=Symbol("state");class rr{constructor(e={}){this.emitter=Fe(),this.params=Object.freeze(e),this.presence=new Pn(this),this.initialConnect=!0,this[re]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=tr({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[re]}attached(e){if(this.receiver){if(this.receiver!==e)throw Error("Already connected to a different receiver");return!1}return this.receiver=e,!0}connecting(){this[re]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[re]="connected";let e=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:e})):this.emit("connect",{reconnect:!0,restored:e})}restored(){if(this.state==="connected")throw Error("Already connected");this[re]="connected";let e=!0,r=!0;this.initialConnect=!1,this.emit("connect",{reconnect:r,restored:e})}disconnected(e){this.state==="disconnected"||this.state==="closed"||(this[re]="disconnected",this.presence.reset(),this.emit("disconnect",e))}closed(e){this.state!=="closed"&&(this[re]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",e))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(e,r){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,e,r)}async send(e){return this.perform(void 0,e)}async whisper(e){try{await this.perform("$whisper",e)}catch(r){let s=this.receiver?this.receiver.logger:null;s&&s.warn("whisper failed: ",r)}}receive(e,r){this.emit("message",e,r)}on(e,r){return this.emitter.on(e,r)}once(e,r){let s=this.emitter.on(e,(...n)=>{s(),r(...n)});return s}emit(e,...r){return this.emitter.emit(e,...r)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((e,r)=>{let s=[()=>delete this._pendingSubscribe];s.push(this.on("connect",()=>{s.forEach(n=>n()),e()})),s.push(this.on("close",n=>{s.forEach(o=>o()),r(n||new ye("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class Tn{constructor(e){this.id=e,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(e){this.channels.includes(e)||this.channels.push(e)}remove(e){let r=this.channels.indexOf(e);r>-1&&this.channels.splice(r,1)}notify(e,...r){this.state=e==="restored"?"connected":e,r.length===1?this.channels.forEach(s=>s[e](r[0])):this.channels.forEach(s=>s[e]())}pending(e){this._checkIntent(e);let r=this._pendings[0];return!r||r.intent!==e?Promise.resolve():r.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(e){this._checkIntent(e);let r,s={promise:new Promise(o=>{r=o}),intent:e,release:()=>{this._pendings.splice(this._pendings.indexOf(s),1),r(s)},canceled:!1,acquired:!1},n=this._pendingTop;return this._pendings.push(s),n&&await n.promise,this.gvl&&await this.gvl.acquire(s,e),s.acquired=!0,s}close(e){this.disposed=!0,this.intent=void 0,this.notify("closed",e)}_checkIntent(e){if(!(e==="unsubscribed"||e==="subscribed"))throw Error(`Unknown subscription intent: ${e}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(e){let r=this._pendingTop;return!r||r.acquired||r.intent!==e?!1:(this._pendings.pop(),r.canceled=!0,!0)}}class Nn{constructor(){this.queue=[]}async acquire(e,r){r==="subscribed"&&(this.queue.push(e.promise.then(()=>{this.queue.splice(this.queue.indexOf(e),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class kn{constructor(e){e.concurrentSubscribes===!1&&(this.glv=new Nn),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(e){return this._subscriptions[e]}create(e,{subscribe:r,unsubscribe:s}){let n=this._subscriptions[e]=new Tn(e);return n.remoteId=this._localToRemote[e],n.subscriber=r,n.unsubscriber=s,n.gvl=this.glv,n}remove(e){delete this._subscriptions[e],delete this._localToRemote[e]}storeRemoteId(e,r){this._localToRemote[e]=r;let s=this.get(e);s&&(s.remoteId=r)}}class jn{constructor(e={}){this.subscriptions=new kn(e),this._pendingMessages=[],this._remoteToLocal={}}subscribe(e,r){this._remoteToLocal[r]=e,this.subscriptions.storeRemoteId(e,r),this.flush(r)}unsubscribe(e){let r=this.subscriptions.get(e);if(!r)return;let s=r.remoteId;s&&delete this._remoteToLocal[s],this.subscriptions.remove(e)}transmit(e,r,s){let n=this._remoteToLocal[e];if(!n){this._pendingMessages.push([e,r,s]);return}let o=this.subscriptions.get(n);o&&o.channels.forEach(i=>{i.receive(r,s)})}notify(e,r,s){let n=this._remoteToLocal[e];if(!n)return;let o=this.subscriptions.get(n);o&&o.channels.forEach(i=>i.emit(r,s))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(e=>e.channels)}flush(e){let r=[];for(let s of this._pendingMessages)s[0]===e?this.transmit(s[0],s[1],s[2]):r.push(s);this._pendingMessages=r}}const sr={debug:0,info:1,warn:2,error:3};class nr{constructor(e){this.level=e||"warn"}log(e,r,s){sr[e]<sr[this.level]||this.writeLogEntry(e,r,s)}writeLogEntry(){throw Error("Not implemented")}debug(e,r){this.log("debug",e,r)}info(e,r){this.log("info",e,r)}warn(e,r){this.log("warn",e,r)}error(e,r){this.log("error",e,r)}}class we extends nr{writeLogEntry(){}}class In{encode(e){return JSON.stringify(e)}decode(e){try{return JSON.parse(e)}catch{}}}let Ln=0;class ir{constructor(e={}){let{logger:r}=e;this.logger=r||new we,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=e.subscribeCooldownInterval||250,this.subscribeRetryInterval=e.subscribeRetryInterval||5e3}attached(e){this.cable=e}subscribe(e,r){let s={channel:e};r&&Object.assign(s,r);let n=tr(s);if(this.pendingUnsubscriptions[n]){let i=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${i}`,n),new Promise(a=>{setTimeout(()=>{a(this.subscribe(e,r))},i)})}if(this.pendingSubscriptions[n])return this.logger.warn("subscription is already pending, skipping",n),Promise.reject(Error("Already subscribing"));let o=this.subscribeRetryInterval;return new Promise((i,a)=>{let l=++Ln;this.pendingSubscriptions[n]={resolve:i,reject:a,id:l},this.cable.send(this.buildSubscribeRequest(n)),this.maybeRetrySubscribe(l,n,o)})}buildSubscribeRequest(e){return{command:"subscribe",identifier:e}}maybeRetrySubscribe(e,r,s){setTimeout(()=>{let n=this.pendingSubscriptions[r];n&&n.id===e&&(this.logger.warn(`no subscription ack received in ${s}ms, retrying subscribe`,r),this.cable.send(this.buildSubscribeRequest(r)),this.maybeExpireSubscribe(e,r,s))},s)}maybeExpireSubscribe(e,r,s){setTimeout(()=>{let n=this.pendingSubscriptions[r];n&&n.id===e&&(delete this.pendingSubscriptions[r],n.reject(new An(`Haven't received subscription ack in ${s*2}ms for ${r}`)))},s)}unsubscribe(e){return this.cable.send({command:"unsubscribe",identifier:e}),this.pendingUnsubscriptions[e]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[e]},this.subscribeCooldownInterval),Promise.resolve()}perform(e,r,s){return r==="$whisper"?this.whisper(e,s):(s||(s={}),s.action||=r,this.cable.send({command:"message",identifier:e,data:JSON.stringify(s)}),Promise.resolve())}whisper(e,r){return this.cable.send({command:"whisper",identifier:e,data:r}),Promise.resolve()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:r,identifier:s,message:n,reason:o,reconnect:i}=e;if(r==="ping")return this.cable.keepalive(e.message);if(this.cable.keepalive(),r==="welcome"){let a=e.sid;return a&&this.cable.setSessionId(a),this.cable.connected()}if(r==="disconnect"){let a=new M(o);this.reset(a),i===!1?this.cable.closed(a):this.cable.disconnected(a);return}if(r==="confirm_subscription"){let a=this.pendingSubscriptions[s];if(!a){this.logger.error("subscription not found, unsubscribing",{type:r,identifier:s}),this.unsubscribe(s);return}return delete this.pendingSubscriptions[s],a.resolve(s)}if(r==="reject_subscription"){let a=this.pendingSubscriptions[s];return a?(delete this.pendingSubscriptions[s],a.reject(new at)):this.logger.error("subscription not found",{type:r,identifier:s})}if(n)return{identifier:s,message:n};this.logger.warn(`unknown message type: ${r}`,{message:e})}reset(e){for(let r in this.pendingSubscriptions)this.pendingSubscriptions[r].reject(e);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const or=()=>Date.now()/1e3|0;class Un extends ir{constructor(e={}){super(e),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=e.historyTimestamp,this.disableSessionRecovery=e.disableSessionRecovery,this.restoreSince===void 0&&(this.restoreSince=or()),this.sessionId=void 0,this.sendPongs=e.pongs}reset(e){for(let r in this.pendingPresence)this.pendingPresence[r].reject(e);return this.pendingPresence={},super.reset()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:r,identifier:s,message:n}=e;if(r==="disconnect")return delete this.sessionId,this.cable.setSessionId(""),super.receive(e);if(r==="reject_subscription")return super.receive(e);if(r==="confirm_subscription")return this.subscriptionStreams[s]||(this.subscriptionStreams[s]=new Set),super.receive(e);if(r==="ping")return this.restoreSince&&(this.restoreSince=or()),this.sendPongs&&this.sendPong(),this.cable.keepalive(e.message);if(this.cable.keepalive(),r==="confirm_history"){this.logger.debug("history result received",e),this.cable.notify("history_received",s);return}if(r==="reject_history"){this.logger.warn("failed to retrieve history",e),this.cable.notify("history_not_found",s);return}if(r==="welcome"){if(this.disableSessionRecovery||(this.sessionId=e.sid,this.sessionId&&this.cable.setSessionId(this.sessionId)),e.restored){let o=e.restored_ids||Object.keys(this.subscriptionStreams);for(let i of o)this.cable.send({identifier:i,command:"history",history:this.historyRequestFor(i)}),this.presenceInfo[i]&&this.cable.send({identifier:i,command:"join",presence:this.presenceInfo[i]});return this.cable.restored(o)}return this.cable.connected(this.sessionId)}if(r==="presence"){let o=n.type;if(o==="info"){let i=this.pendingPresence[s];i&&(delete this.pendingPresence[s],i.resolve(n))}else if(o==="error"){let i=this.pendingPresence[s];i&&(delete this.pendingPresence[s],i.reject(new Error("failed to retrieve presence")))}return{type:r,identifier:s,message:n}}if(n){let o=this.trackStreamPosition(s,e.stream_id,e.epoch,e.offset);return{identifier:s,message:n,meta:o}}this.logger.warn(`unknown message type: ${r}`,{message:e})}perform(e,r,s){switch(r){case"$presence:join":return this.join(e,s);case"$presence:leave":return this.leave(e,s);case"$presence:info":return this.presence(e,s)}return super.perform(e,r,s)}unsubscribe(e){return delete this.presenceInfo[e],super.unsubscribe(e)}buildSubscribeRequest(e){let r=super.buildSubscribeRequest(e),s=this.historyRequestFor(e);s&&(r.history=s,this.pendingHistory[e]=!0);let n=this.presenceInfo[e];return n&&(r.presence=n),r}recoverableClosure(){return!!this.sessionId}historyRequestFor(e){let r={},s=!1;if(this.subscriptionStreams[e])for(let n of this.subscriptionStreams[e]){let o=this.streamsPositions[n];o&&(s=!0,r[n]=o)}if(!(!s&&!this.restoreSince))return{since:this.restoreSince,streams:r}}trackStreamPosition(e,r,s,n){if(!(!r||!s))return this.subscriptionStreams[e]||(this.subscriptionStreams[e]=new Set),this.subscriptionStreams[e].add(r),this.streamsPositions[r]={epoch:s,offset:n},{stream:r,epoch:s,offset:n}}async sendPong(){await new Promise(e=>setTimeout(e,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(e,r){return this.presenceInfo[e]=r,this.cable.send({command:"join",identifier:e,presence:r}),Promise.resolve()}async leave(e,r){return delete this.presenceInfo[e],this.cable.send({command:"leave",identifier:e,presence:r}),Promise.resolve()}presence(e,r){return this.pendingPresence[e]?(this.logger.warn("presence is already pending, skipping",e),Promise.reject(Error("presence request is already pending"))):new Promise((s,n)=>{this.pendingPresence[e]={resolve:s,reject:n},this.cable.send({command:"presence",identifier:e,data:r})})}}class Dn extends ye{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class ar extends rr{static identifier="__ghost__";constructor(e,r){super(r),this.channelId=e}set channelId(e){this._channelId=e}get channelId(){return this._channelId}}const Fn="$pubsub";class cr extends rr{static identifier=Fn;async perform(e,r){if(e.startsWith("$"))return super.perform(e,r);throw Error("not implemented")}}const se=Symbol("state");let $n=class{constructor({transport:t,protocol:e,encoder:r,logger:s,lazy:n,hubOptions:o,performFailures:i,transportConfigurator:a}){this.emitter=Fe(),this.transport=t,this.encoder=r,this.logger=s||new we,this.protocol=e,this.performFailures=i||"throw",this.protocol.attached(this),this.hub=new jn(o||{}),this[se]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=a,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,n===!1&&this.connect().catch(()=>{})}get state(){return this[se]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let t=this.state==="idle";this[se]="connecting";let e=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:t}),await this.transport.open()}catch(r){this.handleClose(r)}return e}setSessionId(t){this.sessionId=t,this.transport.setParam("sid",t)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[se]="connected",this.recovering&&this.hub.subscriptions.all().forEach(e=>e.notify("disconnected",new M("recovery_failed"))),this.hub.subscriptions.all().forEach(e=>this._resubscribe(e));let t=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(t){this.logger.info("connection recovered",{remoteIds:t}),this[se]="connected",this.hub.subscriptions.all().forEach(s=>{t&&s.remoteId&&t.includes(s.remoteId)?s.notify("restored"):(s.notify("disconnected",new M("recovery_failed")),this._resubscribe(s))});let e=!this.initialConnect,r=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:r})}notify(t,e,r){e&&typeof e!="string"&&(r=e,e=void 0),e?this.hub.notify(e,"info",{type:t,data:r}):this.emit("info",{type:t,data:r})}handleClose(t){this.logger.debug("transport closed",{error:t}),this.disconnected(new M(t,"transport_closed"))}disconnected(t){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:t}),this[se]="disconnected",this.recovering=this.protocol.recoverableClosure(t),this.recovering?this.hub.subscriptions.all().forEach(e=>e.notify("connecting")):this.hub.subscriptions.all().forEach(e=>{e.notify("disconnected",t)}),this.protocol.reset(t),this.hub.close(),this.transport.close(),this.emit("disconnect",t))}closed(t){if(this.state==="closed"||this.state==="idle")return;let e;t&&(e=t instanceof M?t:new M(t,void 0)),this.logger.info("closed",{reason:t||"user"}),this[se]="closed";let r=e||new M("cable_closed");this.hub.subscriptions.all().forEach(s=>s.notify("disconnected",r)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",e)}disconnect(){this.closed()}handleIncoming(t){if(this.state==="closed"||this.state==="idle")return;let e=this.encoder.decode(t);if(e===void 0){this.logger.error("failed to decode message",{message:t});return}this.logger.debug("incoming data",e);let r=this.protocol.receive(e);if(r){this.logger.debug("processed incoming message",r);let{type:s,identifier:n,message:o,meta:i}=r;s?this.hub.notify(n,s,o):this.hub.transmit(n,o,i)}}send(t){if(this.state==="closed")throw Error("Cable is closed");let e=this.encoder.encode(t);if(e===void 0){this.logger.error("failed to encode message",{message:t});return}this.logger.debug("outgoing message",t),this.transport.send(e)}keepalive(t){this.emit("keepalive",t)}streamFrom(t){let e=new cr({stream_name:t});return this.subscribe(e)}streamFromSigned(t){let e=new cr({signed_stream_name:t});return this.subscribe(e)}subscribeTo(t,e){let r,s;return typeof t=="string"&&(s=t,t=ar),r=s?new t(s,e):new t(e),this.subscribe(r)}subscribe(t){if(!t.attached(this))return t;let e=t.identifier;t.connecting();let r=this.hub.subscriptions.get(e)||this.hub.subscriptions.create(e,{subscribe:s=>this._subscribe(s,t.channelId,t.params),unsubscribe:s=>this._unsubscribe(s)});return r.add(t),r.intent==="subscribed"&&r.state==="connected"&&t.connected(),r.ensureSubscribed(),t}async _resubscribe(t){t.intent!=="subscribed"||!t.channels[0]||(t.notify("connecting"),t.ensureResubscribed())}async _subscribe(t,e,r){let s=t.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:s});return}this.logger.debug("acquiring subscribe lock",{identifier:s});let n=await t.acquire("subscribed");if(n.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:s}),n.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:s}),t.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),n.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:s}),n.release();return}if(t.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:s}),t.notify("connected"),n.release();return}let o={identifier:e,params:r};this.logger.debug("subscribing",o);try{let i=await this.protocol.subscribe(e,r);this.hub.subscribe(s,i),this.logger.debug("subscribed",{...o,remoteId:i}),t.notify("connected")}catch(i){if(i){if(i instanceof at&&this.logger.warn("rejected",o),i instanceof M){this.logger.debug("disconnected during subscription; will retry on connect",o),n.release();return}this.logger.error("failed to subscribe",{error:i,...o})}t.close(i),this.hub.unsubscribe(s)}n.release()}unsubscribe(t){let e=t.identifier,r=this.hub.subscriptions.get(e);if(!r)throw Error(`Subscription not found: ${e}`);r.remove(t),t.closed(),r.maybeUnsubscribe()}async _unsubscribe(t){let e=t.id;this.logger.debug("acquiring unsubscribe lock",{identifier:e});let r=await t.acquire("unsubscribed");if(r.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:e}),r.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:e}),t.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:e,intent:t.intent}),r.release();return}if(t.state==="disconnected"||t.state==="closed"){this.logger.debug(`already ${t.state} connected, skip unsubscribe command`,{identifier:e}),r.release();return}let s=t.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:s}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:e}),t.close(),this.hub.unsubscribe(e),r.release();return}try{await this.protocol.unsubscribe(s),this.logger.debug("unsubscribed remotely",{id:e})}catch(n){n&&(n instanceof M?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:e,error:n}):this.logger.error("unsubscribe failed",{id:e,error:n}))}t.intent==="unsubscribed"?(t.close(),this.hub.unsubscribe(e)):t.state="closed",r.release()}async perform(t,e,r){if(this.performFailures==="throw")return this._perform(t,e,r);try{return await this._perform(t,e,r)}catch(s){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:s});return}}async _perform(t,e,r){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new Dn;let s=this.hub.subscriptions.get(t);if(!s)throw Error(`Subscription not found: ${t}`);if(await s.pending("subscribed"),s.intent!=="subscribed")throw Error(`Subscription is closed: ${t}`);let n=s.remoteId,o={id:n,action:e,payload:r};this.logger.debug("perform",o);try{let i=await this.protocol.perform(n,e,r);return i&&this.logger.debug("perform result",{message:i,request:o}),i}catch(i){throw this.logger.error("perform failed",{error:i,request:o}),i}}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...s)=>{r(),e(...s)});return r}emit(t,...e){return this.emitter.emit(t,...e)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((t,e)=>{let r=[()=>delete this._pendingConnect];r.push(this.on("connect",()=>{r.forEach(s=>s()),t()})),r.push(this.on("close",s=>{r.forEach(n=>n()),e(s)})),r.push(this.on("disconnect",s=>{r.forEach(n=>n()),e(s)}))}),this._pendingConnect)}};const qn={maxMissingPings:2,maxReconnectAttempts:1/0},he=()=>Date.now(),lr=(t,e)=>{e=e||{};let{backoffRate:r,jitterRatio:s,maxInterval:n}=e;return r=r||2,s===void 0&&(s=.5),o=>{let i=t*r**o,a=i*r,l=i+(a-i)*Math.random(),h=2*(Math.random()-.5)*s;return l=l*(1+h),n&&n<l&&(l=n),l}};let ur=class{constructor({pingInterval:t,...e}){if(this.pingInterval=t,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${t}`);if(e=Object.assign({},qn,e),this.strategy=e.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=e.maxMissingPings,this.maxReconnectAttempts=e.maxReconnectAttempts,this.logger=e.logger||new we,this.state="pending_connect",this.attempts=0,this.disconnectedAt=he()}watch(t){this.target=t,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(t=>{this.logger.info("Failed at reconnecting: "+t)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=he(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=he(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=he(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=he()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(t=>t()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let t=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},t)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let t=he()-this.pingedAt;t>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${t}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new Cn))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let t=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${t}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),t)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class Bn{constructor(e,r={}){this.transports=e,this.transport=null,this.emitter=Fe(),this.unbind=[],this.logger=r.logger||new we}displayName(){return"fallbacked transport"}async open(){for(let e=0;e<this.transports.length;e++){let r=this.transports[e];try{this.transport=r,this.resetListeners(),this.logger.debug(`Trying to connect via ${r.displayName()}`),await r.open(),this.logger.debug(`Connected via ${r.displayName()}`);return}catch(s){this.logger.debug(`Failed to connect via ${r.displayName()}: ${s.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(e){if(!this.transport)throw new Error("No transport is open");this.transport.send(e)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(e,r){this.transports.forEach(s=>{s.setParam(e,r)})}setToken(e,r){this.transports.forEach(s=>{s.setToken(e,r)})}on(e,r){return this.emitter.on(e,r)}once(e,r){let s=this.emitter.on(e,(...n)=>{s(),r(...n)});return s}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(e=>e()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",e=>{this.emitter.emit("data",e)}),this.transport.on("close",e=>{this.emitter.emit("close",e)}),this.transport.on("error",e=>{this.emitter.emit("error",e)}))}}class Mn{constructor(e,r={}){this.url=e;let s=r.websocketImplementation;if(s)this.Impl=s;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Fe();let{format:n,subprotocol:o,authStrategy:i}=r;this.format=n||"text",this.connectionOptions=r.websocketOptions,this.authStrategy=i||"param",this.authProtocol="",this.subprotocol=o}displayName(){return"WebSocket("+this.url+")"}open(){let e=this.subprotocol;return this.authStrategy==="sub-protocol"&&(e=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,e,this.connectionOptions):this.ws=new this.Impl(this.url,e),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((r,s)=>{let n=[];n.push(this.once("open",()=>{n.forEach(o=>o()),r()})),n.push(this.once("close",()=>{n.forEach(o=>o()),s(Error("WS connection closed"))}))})}setURL(e){this.url=e}setParam(e,r){let s=new URL(this.url);s.searchParams.set(e,r);let n=`${s.protocol}//${s.host}${s.pathname}?${s.searchParams}`;this.setURL(n)}setToken(e,r="jid"){if(this.authStrategy==="param")this.setParam(r,e);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let s=`x-${r}`.toLowerCase();s=Object.keys(this.connectionOptions.headers).find(n=>n.toLowerCase()===s)||s,this.connectionOptions.headers[s]=e}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${e}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(e){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(e)}close(){this.ws?this.onclose():this.connected=!1}on(e,r){return this.emitter.on(e,r)}once(e,r){let s=this.emitter.on(e,(...n)=>{s(),r(...n)});return s}initListeners(){this.ws.onerror=e=>{this.connected&&this.emitter.emit("error",e.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=e=>{let r=e.data;this.format==="binary"&&(r=new Uint8Array(r)),this.emitter.emit("data",r)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}class zn{constructor(e){this.channel=e}notify(e,...r){typeof this[e]=="function"&&this[e](...r)}perform(e,r={}){this.channel.perform(e,r)}send(e){this.channel.send(e)}whisper(e){return this.channel.whisper(e)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class Jn extends ar{constructor(e,r,s){super(e,r),this.subscription=new zn(this),Object.assign(this.subscription,s),this.on("connect",({reconnect:n})=>this.subscription.notify("connected",{reconnected:n})),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",n=>this.subscription.notify("received",n)),this.on("close",n=>{n&&n instanceof at?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class Wn{constructor(e){this.cable=e}create(e,r){let s,n;typeof e=="object"?(s=e.channel,delete e.channel,n=e):(s=e,n={});let o=new Jn(s,n,r);return o.subscription.notify("initialized"),this.cable.subscribe(o),o.subscription}findAll(e){return this.cable.hub.channels.filter(r=>r.identifier===e).map(r=>r.subscription)}}class Hn{constructor(e){this.cable=e,this.subscriptions=new Wn(e)}send(e){return this.cable.send(e)}connect(){return this.cable.connect()}disconnect(){return this.cable.disconnect()}ensureActiveConnection(){return this.cable.connect()}}const hr={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function Vn(t,e){if(typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),e=e||{},!t&&!e.transport)throw Error("URL or transport must be specified");e=Object.assign({},hr,e);let{protocol:r,websocketImplementation:s,websocketFormat:n,websocketOptions:o,websocketAuthStrategy:i,fallbacks:a,logLevel:l,logger:h,transport:u,encoder:d,lazy:m,monitor:b,pingInterval:v,reconnectStrategy:_,maxMissingPings:z,maxReconnectAttempts:f,subprotocol:g,tokenRefresher:w,historyTimestamp:S,protocolOptions:R,concurrentSubscribes:X,performFailures:ve,transportConfigurator:ne,auth:W}=e;if(h=h||new we(l),typeof r=="string"){g=g||r;let J=r.substring(0,r.lastIndexOf("-")),Q=r.substring(r.lastIndexOf("-")+1);if(R=R||{},J==="actioncable-v1")r=new ir({logger:h,...R});else if(J==="actioncable-v1-ext")r=new Un({logger:h,historyTimestamp:S,...R});else throw Error(`Protocol is not supported yet: ${r}`);if(Q==="json")d=d||new In,n=n||"text";else if(Q==="msgpack"){if(n="binary",!d)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(Q==="protobuf"){if(n=n||"binary",!d)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${r}`)}if(!r)throw Error("Protocol must be specified");u=u||new Mn(t,{websocketImplementation:s,websocketOptions:o,subprotocol:g,authStrategy:i,format:n}),a&&(u=new Bn([u,...a],{logger:h})),W&&W.token&&u.setToken(W.token,W.param||"jid"),_=_||lr(v),b!==!1&&(b=b||new ur({pingInterval:v,reconnectStrategy:_,maxMissingPings:z,maxReconnectAttempts:f,logger:h}));let F={concurrentSubscribes:X},k=new $n({protocol:r,transport:u,encoder:d,logger:h,lazy:m,hubOptions:F,performFailures:ve,transportConfigurator:ne});return b&&(b.watch(k),k.monitor=b),w&&Kn(k,async()=>{try{await w(u)}catch(J){return h.error("Failed to refresh authentication token: "+J),!1}return k.connect().catch(()=>{}),!0}),k}function Kn(t,e){let r=!1;t.on("connect",()=>r=!1),t.on("close",async s=>{if(s){if(r){t.logger.warn("Token auto-refresh is disabled",s);return}s.reason==="token_expired"&&(r=!0,await e())}})}class Xn extends nr{writeLogEntry(e,r,s){s?console[e](r,s):console[e](r)}}class Qn extends ur{watch(e){super.watch(e),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let e=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},r=n=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:n})},s=()=>this.disconnect(new M("page_frozen"));document.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",r,!1),window.addEventListener("online",r,!1),window.addEventListener("resume",r,!1),window.addEventListener("freeze",s,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",e,!1),window.removeEventListener("focus",r,!1),window.removeEventListener("online",r,!1),window.removeEventListener("resume",r,!1),window.removeEventListener("freeze",s,!1)})}}disconnect(e){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:e.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(e))}}const Gn=["cable","action-cable"],Yn="/cable",$e=(t,e)=>{for(let r of Gn){let s=t.head.querySelector(`meta[name='${r}-${e}']`);if(s)return s.getAttribute("content")}},dr=t=>t.match(/wss?:\/\//)?t:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${t}`:t,Zn=()=>{if(typeof document<"u"&&document.head){let t=$e(document,"url");if(t)return dr(t)}return dr(Yn)},ei=()=>{if(typeof document<"u"&&document.head){let t=$e(document,"history-timestamp");if(t)return t|0}},ti=()=>{if(typeof document<"u"&&document.head)return $e(document,"token")},ri=()=>{if(typeof document<"u"&&document.head)return $e(document,"token-param")};function si(t,e){typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),t=t||Zn(),e=e||{},e.historyTimestamp||=ei();let r=ti();if(r){let h=ri();e.auth=Object.assign({token:r,param:h},e.auth||{})}e=Object.assign({},hr,e);let{logLevel:s,logger:n,pingInterval:o,reconnectStrategy:i,maxMissingPings:a,maxReconnectAttempts:l}=e;return n=e.logger=e.logger||new Xn(s),i=e.reconnectStrategy=e.reconnectStrategy||lr(o),e.monitor!==!1&&(e.monitor=e.monitor||new Qn({pingInterval:o,reconnectStrategy:i,maxMissingPings:a,maxReconnectAttempts:l,logger:n})),Vn(t,e)}function ni(t,e){let r=si(t,e);return new Hn(r)}class ii{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(e,r,s={},n={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(o=>{if(o&&OpenC3Auth.setTokens(),this._cable==null){const i=new URL(this._url,document.baseURI);i.searchParams.set("scope",r),this._cable=ni(i.href)}return this._cable.subscriptions.create({channel:e,token:localStorage.openc3Token,...n},s)})}recordPing(){}}ze("u",ii);function Ee(t){return oi.test(t)}const oi=/^-?[0-9]+$/;function fr(t){return ai.test(t)}const ai=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function pr(t,e){if(Ee(t))return Number.isSafeInteger(Number.parseInt(t,10));const r=Number.parseFloat(t),s=String(r);if(t===s)return!0;const n=gr(t),o=gr(s);return!!(n===o||e?.approx===!0&&!Ee(t)&&o.length>=14&&n.startsWith(o.substring(0,14)))}let Se=(function(t){return t.underflow="underflow",t.overflow="overflow",t.truncate_integer="truncate_integer",t.truncate_float="truncate_float",t})({});function ci(t){if(pr(t,{approx:!1}))return;if(Ee(t))return Se.truncate_integer;const e=Number.parseFloat(t);return Number.isFinite(e)?e===0?Se.underflow:Se.truncate_float:Se.overflow}function gr(t){const{start:e,end:r}=li(t),s=t.substring(e,r),n=s.indexOf(".");return n===-1?s:s.substring(0,n)+s.substring(n+1)}function li(t){let e=0;for(t[0]==="-"&&e++;t[e]==="0"||t[e]===".";)e++;let r=t.lastIndexOf("e");for(r===-1&&(r=t.lastIndexOf("E")),r===-1&&(r=t.length);(t[r-1]==="0"||t[r-1]===".")&&r>e;)r--;return{start:e,end:r}}class ui{isLosslessNumber=!0;constructor(e){if(!fr(e))throw new Error(`Invalid number (value: "${e}")`);this.value=e}valueOf(){const e=ci(this.value);if(e===void 0||e===Se.truncate_float)return Number.parseFloat(this.value);if(Ee(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${e} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function hi(t){return t&&typeof t=="object"&&t.isLosslessNumber||!1}function di(t){return new ui(t)}function fi(t,e){return ct({"":t},"",t,e)}function ct(t,e,r,s){return Array.isArray(r)?s.call(t,e,gi(r,s)):r&&typeof r=="object"&&!hi(r)?s.call(t,e,pi(r,s)):s.call(t,e,r)}function pi(t,e){for(const r of Object.keys(t)){const s=ct(t,r,t[r],e);s!==void 0?t[r]=s:delete t[r]}return t}function gi(t,e){for(let r=0;r<t.length;r++)t[r]=ct(t,String(r),t[r],e);return t}function mi(t,e,r){const s=typeof r=="function"?{parseNumber:r}:r,n=s?.parseNumber??di,o=s?.onDuplicateKey??ve;let i=0;const a=u();return f(a),w(),e?fi(a,e):a;function l(){if(t.charCodeAt(i)===Si){i++,m();const y={};let C=!0;for(;i<t.length&&t.charCodeAt(i)!==br;){C?C=!1:(_(),m());const $=i,L=b();if(L===void 0){X();return}m(),z();const x=u();if(x===void 0){J();return}if(Object.prototype.hasOwnProperty.call(y,L)&&!lt(x,y[L])){const H=o({key:L,position:$+1,oldValue:y[L],newValue:x});H!==void 0&&(y[L]=H)}else y[L]=x}return t.charCodeAt(i)!==br&&ne(),i++,y}}function h(){if(t.charCodeAt(i)===vi){i++,m();const y=[];let C=!0;for(;i<t.length&&t.charCodeAt(i)!==_r;){C?C=!1:_();const $=u();g($),y.push($)}return t.charCodeAt(i)!==_r&&W(),i++,y}}function u(){m();const y=b()??v()??l()??h()??d("true",!0)??d("false",!1)??d("null",null);return m(),y}function d(y,C){if(t.slice(i,i+y.length)===y)return i+=y.length,C}function m(){for(;bi(t.charCodeAt(i));)i++}function b(){if(t.charCodeAt(i)===ut){i++;let y="";for(;i<t.length&&t.charCodeAt(i)!==ut;){if(t.charCodeAt(i)===Ei){const C=t[i+1],$=wi[C];$!==void 0?(y+=$,i++):C==="u"?qe(t.charCodeAt(i+2))&&qe(t.charCodeAt(i+3))&&qe(t.charCodeAt(i+4))&&qe(t.charCodeAt(i+5))?(y+=String.fromCharCode(Number.parseInt(t.slice(i+2,i+6),16)),i+=5):Q(i):k(i)}else yi(t.charCodeAt(i))?y+=t[i]:F(t[i]);i++}return R(),i++,y}}function v(){const y=i;if(t.charCodeAt(i)===yr&&(i++,S(y)),t.charCodeAt(i)===ht)i++;else if(_i(t.charCodeAt(i)))for(i++;Be(t.charCodeAt(i));)i++;if(t.charCodeAt(i)===Ni)for(i++,S(y);Be(t.charCodeAt(i));)i++;if(t.charCodeAt(i)===Ui||t.charCodeAt(i)===Li)for(i++,(t.charCodeAt(i)===yr||t.charCodeAt(i)===Ci)&&i++,S(y);Be(t.charCodeAt(i));)i++;if(i>y)return n(t.slice(y,i))}function _(){if(t.charCodeAt(i)!==Ti)throw new SyntaxError(`Comma ',' expected after value ${I()}`);i++}function z(){if(t.charCodeAt(i)!==ki)throw new SyntaxError(`Colon ':' expected after property name ${I()}`);i++}function f(y){if(y===void 0)throw new SyntaxError(`JSON value expected ${I()}`)}function g(y){if(y===void 0)throw new SyntaxError(`Array item expected ${I()}`)}function w(){if(i<t.length)throw new SyntaxError(`Expected end of input ${I()}`)}function S(y){if(!Be(t.charCodeAt(i))){const C=t.slice(y,i);throw new SyntaxError(`Invalid number '${C}', expecting a digit ${I()}`)}}function R(){if(t.charCodeAt(i)!==ut)throw new SyntaxError(`End of string '"' expected ${I()}`)}function X(){throw new SyntaxError(`Quoted object key expected ${I()}`)}function ve(y){let{key:C,position:$}=y;throw new SyntaxError(`Duplicate key '${C}' encountered at position ${$}`)}function ne(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${I()}`)}function W(){throw new SyntaxError(`Array item or end of array ']' expected ${I()}`)}function F(y){throw new SyntaxError(`Invalid character '${y}' ${j()}`)}function k(y){const C=t.slice(y,y+2);throw new SyntaxError(`Invalid escape character '${C}' ${j()}`)}function J(){throw new SyntaxError(`Object value expected after ':' ${j()}`)}function Q(y){const C=t.slice(y,y+6);throw new SyntaxError(`Invalid unicode character '${C}' ${j()}`)}function j(){return`at position ${i}`}function de(){return i<t.length?`but got '${t[i]}'`:"but reached end of input"}function I(){return`${de()} ${j()}`}}function bi(t){return t===Oi||t===Ri||t===xi||t===Ai}function qe(t){return t>=ht&&t<=dt||t>=ji&&t<=Di||t>=Ii&&t<=Fi}function Be(t){return t>=ht&&t<=dt}function _i(t){return t>=Pi&&t<=dt}function yi(t){return t>=32&&t<=1114111}function lt(t,e){return t===e?!0:Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((r,s)=>lt(r,e[s])):mr(t)&&mr(e)?[...new Set([...Object.keys(t),...Object.keys(e)])].every(r=>lt(t[r],e[r])):!1}function mr(t){return typeof t=="object"&&t!==null}const wi={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
10
|
+
`,r:"\r",t:" "},Ei=92,Si=123,br=125,vi=91,_r=93,Oi=32,Ri=10,xi=9,Ai=13,ut=34,Ci=43,yr=45,ht=48,Pi=49,dt=57,Ti=44,Ni=46,ki=58,ji=65,Ii=97,Li=69,Ui=101,Di=70,Fi=102;function wr(t,e,r,s){return n(t);function n(l,h){if(Array.isArray(s)){const u=s.find(d=>d.test(l));if(u){const d=u.stringify(l);if(typeof d!="string"||!fr(d))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${d})`);return d}}if(typeof l=="boolean"||typeof l=="number"||typeof l=="string"||l===null||l instanceof Date||l instanceof Boolean||l instanceof Number||l instanceof String)return JSON.stringify(l);if(l?.isLosslessNumber||typeof l=="bigint")return l.toString();if(Array.isArray(l))return o(l);if(l&&typeof l=="object")return i(l)}function o(l,h){if(l.length===0)return"[]";let u="[";for(let d=0;d<l.length;d++){const m=l[d];typeof m<"u"&&typeof m!="function"?u+=n(m):u+="null",d<l.length-1&&(u+=",")}return u+="]",u}function i(l,h){if(typeof l.toJSON=="function")return wr(l.toJSON(),e,r,void 0);const u=Array.isArray(e)?e.map(String):Object.keys(l);if(u.length===0)return"{}";let d=!0,m="{";for(const b of u){const v=l[b];if(a(b,v)){d?d=!1:m+=",";const _=JSON.stringify(b);m+=`${_}:`,m+=n(v)}}return m+="}",m}function a(l,h){return typeof h<"u"&&typeof h!="function"&&typeof h!="symbol"}}function $i(t){return Ee(t)&&!pr(t)?BigInt(t):parseFloat(t)}class qi{id=1;constructor(){}async exec(e,r,s={},n={},o=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return s.scope=window.openc3Scope,n.manual=!0,(await it.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:r,id:this.id,keyword_params:s},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...n},timeout:o,transformRequest:[(i,a)=>wr(i)],transformResponse:[i=>{try{return mi(i,void 0,$i)}catch{const a=typeof i=="string"?i.substring(0,200):String(i),l=new Error(`Server returned non-JSON response: ${a}`);throw l.name="ServerError",l}}]})).data.result}catch(i){let a=new Error;throw i.response?(a.name=i.response.data.error.data.class,a.message=i.response.data.error.data.message,a.object=i.response.data.error):i.request?(a.name="Request error",a.message="Request error, no response received"):a=i,a}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,r,s,n,o){return this.exec("map_target_to_interface",[e,r],{cmd_only:s,tlm_only:n,unmap_old:o})}unmap_target_from_interface(e,r,s,n){return this.exec("unmap_target_from_interface",[e,r],{cmd_only:s,tlm_only:n})}connect_interface(e,...r){return r.length>0?this.exec("connect_interface",[e,...r]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,r,...s){return this.exec("interface_cmd",[e,r,...s])}interface_target_enable(e,r,s=!1,n=!1){return this.exec("interface_target_enable",[e,r],{cmd_only:s,tlm_only:n})}interface_target_disable(e,r,s=!1,n=!1){return this.exec("interface_target_disable",[e,r],{cmd_only:s,tlm_only:n})}interface_details(e){return this.exec("interface_details",[e])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(e,r,s,n,o){return this.exec("map_target_to_router",[e,r],{cmd_only:s,tlm_only:n,unmap_old:o})}unmap_target_from_router(e,r,s,n){return this.exec("unmap_target_from_router",[e,r],{cmd_only:s,tlm_only:n})}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}router_target_enable(e,r,s=!1,n=!1){return this.exec("router_target_enable",[e,r],{cmd_only:s,tlm_only:n})}router_target_disable(e,r,s=!1,n=!1){return this.exec("router_target_disable",[e,r],{cmd_only:s,tlm_only:n})}router_details(e){return this.exec("router_details",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,r,s){return this.exec("get_item",[e,r,s])}get_param(e,r,s){return this.exec("get_param",[e,r,s])}get_parameter(e,r,s){return this.exec("get_param",[e,r,s])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}delete_limits_set(e){return this.exec("delete_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,r){return this.exec("get_tlm",[e,r])}get_telemetry(e,r){return this.exec("get_tlm",[e,r])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,r=!1){return this.exec("get_all_tlm_names",[e],{hidden:r})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}get_all_tlm_item_names(e){return this.exec("get_all_tlm_item_names",[e])}async get_tlm_packet(e,r,s,n=30){const o=await this.exec("get_tlm_packet",[e,r],{type:s,stale_time:n});if(o!=null){let i=o.length,a=null;for(let l=0;l<i;l++)a=this.decode_openc3_type(o[l][1]),a!==null&&(o[l][1]=a)}return o}get_packet_derived_items(e,r){return this.exec("get_packet_derived_items",[e,r])}get_tlm_buffer(e,r){return this.exec("get_tlm_buffer",[e,r])}get_tlm_available(e){return this.exec("get_tlm_available",[e])}async get_tlm_values(e,r=30,s=null,n=null,o=null){let i={stale_time:r};s!==null&&(i.cache_timeout=s),n!==null&&(i.start_time=n.toISOString()),o!==null&&(i.end_time=o.toISOString());const a=await this.exec("get_tlm_values",[e],i,{},1e4);if(a&&a.length>0){let l=a.length,h=null;for(let u=0;u<l;u++)h=this.decode_openc3_type(a[u][0]),h!==null&&(a[u][0]=h)}return a}get_limits(e,r,s){return this.exec("get_limits",[e,r,s])}async tlm(e,r,s,n="CONVERTED"){let o=null;if(r===void 0)o=await this.exec("tlm",[e]);else if(s===void 0)if(["RAW","CONVERTED","FORMATTED"].includes(r))o=await this.exec("tlm",[e],{type:r});else{let a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${r}. Valid options are RAW, CONVERTED or FORMATTED.`,a}else o=await this.exec("tlm",[e,r,s],{type:n});let i=this.decode_openc3_type(o);return i!==null&&(o=i),o}async inject_tlm(e,r,s=null,n="CONVERTED",o=!1){await this.exec("inject_tlm",[e,r,s],{type:n,stored:o})}set_tlm(e,r,s,n){return this.exec("set_tlm",[e,r,s],{type:n})}override_tlm(e,r,s,n){return this.exec("override_tlm",[e,r,s],{type:n})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,r,s,n){return this.exec("normalize_tlm",[e,r,s],{type:n})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,r=!1){return this.exec("get_all_cmd_names",[e],{hidden:r})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,r){return this.exec("get_cmd",[e,r])}get_command(e,r){return this.exec("get_cmd",[e,r])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,r,s,n="CONVERTED"){return this.exec("get_cmd_value",[e,r,s,n])}get_cmd_buffer(e,r){return this.exec("get_cmd_buffer",[e,r])}_cmd(e,r,s,n,o,i={}){let a=null;for(let l in n)Object.prototype.hasOwnProperty.call(n,l)&&(a=this.encode_openc3_type(n[l]),a!==null&&(n[l]=a));return this.exec(e,[r,s,n],i,o)}get_cmd_hazardous(e,r,s,n={}){return r===void 0?this.exec("get_cmd_hazardous",e,{},n):this._cmd("get_cmd_hazardous",e,r,s,n)}cmd(e,r,s,n={},o={}){return r===void 0?this.exec("cmd",e,o,n):this._cmd("cmd",e,r,s,n,o)}cmd_no_range_check(e,r,s,n={},o={}){return r===void 0?this.exec("cmd_no_range_check",e,o,n):this._cmd("cmd_no_range_check",e,r,s,n,o)}cmd_raw(e,r,s,n={},o={}){return r===void 0?this.exec("cmd_raw",e,o,n):this._cmd("cmd_raw",e,r,s,n,o)}cmd_raw_no_range_check(e,r,s,n={},o={}){return r===void 0?this.exec("cmd_raw_no_range_check",e,o,n):this._cmd("cmd_raw_no_range_check",e,r,s,n,o)}cmd_no_hazardous_check(e,r,s,n={},o={}){return r===void 0?this.exec("cmd_no_hazardous_check",e,o,n):this._cmd("cmd_no_hazardous_check",e,r,s,n,o)}cmd_no_checks(e,r,s,n={},o={}){return r===void 0?this.exec("cmd_no_checks",e,o,n):this._cmd("cmd_no_checks",e,r,s,n,o)}cmd_raw_no_hazardous_check(e,r,s,n={},o={}){return r===void 0?this.exec("cmd_raw_no_hazardous_check",e,o,n):this._cmd("cmd_raw_no_hazardous_check",e,r,s,n,o)}cmd_raw_no_checks(e,r,s,n={},o={}){return r===void 0?this.exec("cmd_raw_no_checks",e,o,n):this._cmd("cmd_raw_no_checks",e,r,s,n,o)}build_cmd(e,r,s,n={},o={}){return r===void 0?this.exec("build_cmd",e,o,n):this._cmd("build_cmd",e,r,s,n,o)}build_command(e,r,s,n={},o={}){return r===void 0?this.exec("build_cmd",e,o,n):this._cmd("build_cmd",e,r,s,n,o)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_names",[])}send_raw(e,r){return this.exec("send_raw",[e,r])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,r){return this.exec("load_config",[e,r])}save_config(e,r,s){return this.exec("save_config",[e,r,s])}delete_config(e,r){return this.exec("delete_config",[e,r])}enable_limits(e,r,s){return this.exec("enable_limits",[e,r,s])}disable_limits(e,r,s){return this.exec("disable_limits",[e,r,s])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e,r){return this.exec("get_setting",[e],r)}get_settings(e,r){return this.exec("get_settings",e,r)}set_setting(e,r){return this.exec("set_setting",[e,r])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}save_setting(e,r){return this.exec("set_setting",[e,r])}get_metrics(){return this.exec("get_metrics",[])}open_tab(e){window.open(e,"_blank")}async hashString(e){if(window.isSecureContext){const r=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",r),n=new Uint8Array(s);return Array.from(n).map(o=>o.toString(16).padStart(2,"0")).join("")}}}ze("h",qi)})}}));
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openc3-cosmos-tool-cmdtlmserver
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.2.
|
|
4
|
+
version: 7.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Melton
|
|
@@ -22,91 +22,91 @@ files:
|
|
|
22
22
|
- README.md
|
|
23
23
|
- Rakefile
|
|
24
24
|
- plugin.txt
|
|
25
|
-
- tools/cmdtlmserver/ArrayWidget-
|
|
26
|
-
- tools/cmdtlmserver/ArrayplotWidget-
|
|
27
|
-
- tools/cmdtlmserver/BarColumn-
|
|
28
|
-
- tools/cmdtlmserver/BlockWidget-
|
|
29
|
-
- tools/cmdtlmserver/ButtonWidget-
|
|
30
|
-
- tools/cmdtlmserver/CanvasWidget-
|
|
31
|
-
- tools/cmdtlmserver/CanvasdotWidget-
|
|
32
|
-
- tools/cmdtlmserver/CanvasimageWidget-
|
|
33
|
-
- tools/cmdtlmserver/CanvasimagevalueWidget-
|
|
34
|
-
- tools/cmdtlmserver/CanvaslabelWidget-
|
|
35
|
-
- tools/cmdtlmserver/CanvaslabelvalueWidget-
|
|
36
|
-
- tools/cmdtlmserver/CanvaslineWidget-
|
|
37
|
-
- tools/cmdtlmserver/CanvaslinevalueWidget-
|
|
38
|
-
- tools/cmdtlmserver/CheckbuttonWidget-
|
|
39
|
-
- tools/cmdtlmserver/CmdPacketsTab-
|
|
40
|
-
- tools/cmdtlmserver/CmdTlmServer-
|
|
41
|
-
- tools/cmdtlmserver/ComboboxWidget-
|
|
42
|
-
- tools/cmdtlmserver/DataFlowsTab-
|
|
43
|
-
- tools/cmdtlmserver/DateWidget-
|
|
44
|
-
- tools/cmdtlmserver/DetailsDialog-
|
|
45
|
-
- tools/cmdtlmserver/DynamicWidget-BuSbQVhf-
|
|
46
|
-
- tools/cmdtlmserver/FilechecksumWidget-
|
|
47
|
-
- tools/cmdtlmserver/FiledisplayWidget-
|
|
48
|
-
- tools/cmdtlmserver/FormatvalueWidget-
|
|
49
|
-
- tools/cmdtlmserver/Graph-
|
|
50
|
-
- tools/cmdtlmserver/GraphWidget-
|
|
51
|
-
- tools/cmdtlmserver/HorizontalWidget-
|
|
52
|
-
- tools/cmdtlmserver/HorizontalboxWidget-
|
|
53
|
-
- tools/cmdtlmserver/HorizontallineWidget-
|
|
54
|
-
- tools/cmdtlmserver/IframeWidget-
|
|
55
|
-
- tools/cmdtlmserver/ImageLoader-
|
|
56
|
-
- tools/cmdtlmserver/ImageviewerWidget-
|
|
57
|
-
- tools/cmdtlmserver/InterfaceFlowChart-
|
|
58
|
-
- tools/cmdtlmserver/InterfacesTab-
|
|
59
|
-
- tools/cmdtlmserver/LabelWidget-
|
|
60
|
-
- tools/cmdtlmserver/LabelledWidget-
|
|
61
|
-
- tools/cmdtlmserver/LabelprogressbarWidget-
|
|
62
|
-
- tools/cmdtlmserver/LabelsparklineWidget-
|
|
63
|
-
- tools/cmdtlmserver/LabelvalueWidget-
|
|
64
|
-
- tools/cmdtlmserver/LabelvaluedescWidget-
|
|
65
|
-
- tools/cmdtlmserver/LabelvaluelimitsbarWidget-
|
|
66
|
-
- tools/cmdtlmserver/LabelvaluelimitscolumnWidget-
|
|
67
|
-
- tools/cmdtlmserver/LabelvaluerangebarWidget-
|
|
68
|
-
- tools/cmdtlmserver/Layout-
|
|
69
|
-
- tools/cmdtlmserver/LedWidget-
|
|
70
|
-
- tools/cmdtlmserver/LimitsBar-
|
|
25
|
+
- tools/cmdtlmserver/ArrayWidget-DMSm_P6c-694a5d20f37aee56e971.js
|
|
26
|
+
- tools/cmdtlmserver/ArrayplotWidget-fdXLhGAl-ee49423a88f0830f3d10.js
|
|
27
|
+
- tools/cmdtlmserver/BarColumn-Bb305iCi-1d6370d3a5948e7070fb.js
|
|
28
|
+
- tools/cmdtlmserver/BlockWidget-Do3W6tZh-0465ab5ccbba95c9cd95.js
|
|
29
|
+
- tools/cmdtlmserver/ButtonWidget-DukCQt0F-73553c5eb8665f5a122c.js
|
|
30
|
+
- tools/cmdtlmserver/CanvasWidget-BRdVWln5-ecfd6c23ebdef1641cbe.js
|
|
31
|
+
- tools/cmdtlmserver/CanvasdotWidget-DV8PeDWz-9ea509837174f807accc.js
|
|
32
|
+
- tools/cmdtlmserver/CanvasimageWidget-Czbq1GuF-f6237d2815bb4fb67627.js
|
|
33
|
+
- tools/cmdtlmserver/CanvasimagevalueWidget-DKt5JgEt-4d4748409b4390fd9317.js
|
|
34
|
+
- tools/cmdtlmserver/CanvaslabelWidget-DW2I1ra1-21be90e9689988d7cc0b.js
|
|
35
|
+
- tools/cmdtlmserver/CanvaslabelvalueWidget-BhzvZVfD-98ba8f4d0b737ae50149.js
|
|
36
|
+
- tools/cmdtlmserver/CanvaslineWidget-DsjY37tp-333343a7e55e7ced336a.js
|
|
37
|
+
- tools/cmdtlmserver/CanvaslinevalueWidget-ihI97G8T-a999105fab2c48e7d5a3.js
|
|
38
|
+
- tools/cmdtlmserver/CheckbuttonWidget-B778Z-Zo-929c0f581f4e6fc8bb9b.js
|
|
39
|
+
- tools/cmdtlmserver/CmdPacketsTab-ab63982334bccb674566.js
|
|
40
|
+
- tools/cmdtlmserver/CmdTlmServer-dbb3257de023db2ad7db.js
|
|
41
|
+
- tools/cmdtlmserver/ComboboxWidget-CuuvOL9K-580e3a816c2a39c9dc31.js
|
|
42
|
+
- tools/cmdtlmserver/DataFlowsTab-651405c9f3cd11ec53ae.js
|
|
43
|
+
- tools/cmdtlmserver/DateWidget-COvQTAeo-8e7e5760cca1eca77fb7.js
|
|
44
|
+
- tools/cmdtlmserver/DetailsDialog-DE7lK17G-f251b58f150be03f9878.js
|
|
45
|
+
- tools/cmdtlmserver/DynamicWidget-BuSbQVhf-d28b4dd265895ced834e.js
|
|
46
|
+
- tools/cmdtlmserver/FilechecksumWidget-DRnOt_UE-e8bcb330e9f8161abcb5.js
|
|
47
|
+
- tools/cmdtlmserver/FiledisplayWidget-26R46EjS-50600e2205e679c6e7a3.js
|
|
48
|
+
- tools/cmdtlmserver/FormatvalueWidget-BxyscMJc-deb6fbbd21db3f9b9533.js
|
|
49
|
+
- tools/cmdtlmserver/Graph-BKw7xw1a-cafa3fdb6d474421c777.js
|
|
50
|
+
- tools/cmdtlmserver/GraphWidget-Cs9mvqUu-bb3bb075fd0ea3764beb.js
|
|
51
|
+
- tools/cmdtlmserver/HorizontalWidget-fWLFj7Kg-87dfe4a783ca9d8718a3.js
|
|
52
|
+
- tools/cmdtlmserver/HorizontalboxWidget-DEaXhKEz-3cc78a62e93fced5cc2d.js
|
|
53
|
+
- tools/cmdtlmserver/HorizontallineWidget-Bvu1QP3S-1c0a38d8daf4285046b0.js
|
|
54
|
+
- tools/cmdtlmserver/IframeWidget-B143k4lo-211336261edc12558ba4.js
|
|
55
|
+
- tools/cmdtlmserver/ImageLoader-BCpmQHIl-e1f186d47f7443384752.js
|
|
56
|
+
- tools/cmdtlmserver/ImageviewerWidget-CLrvr6dw-dbefc7bb490747b4d32b.js
|
|
57
|
+
- tools/cmdtlmserver/InterfaceFlowChart-87892813bbc3da7dd816.js
|
|
58
|
+
- tools/cmdtlmserver/InterfacesTab-c3d2cc4844087b3f946d.js
|
|
59
|
+
- tools/cmdtlmserver/LabelWidget-CA1bTX2B-2c9d603681176335c5dd.js
|
|
60
|
+
- tools/cmdtlmserver/LabelledWidget-BDhvr03J-fe41df86dd3cc7e1d625.js
|
|
61
|
+
- tools/cmdtlmserver/LabelprogressbarWidget-g7A5CE8S-17fe760704ac3e7697ad.js
|
|
62
|
+
- tools/cmdtlmserver/LabelsparklineWidget-B27xXxWg-960e3827bda04825c04a.js
|
|
63
|
+
- tools/cmdtlmserver/LabelvalueWidget-DFn8o6LC-382c91895aa50abef201.js
|
|
64
|
+
- tools/cmdtlmserver/LabelvaluedescWidget-BQpaxFaB-abcd49094e4d21057a3d.js
|
|
65
|
+
- tools/cmdtlmserver/LabelvaluelimitsbarWidget-C-z96q8z-1f5e8f4cf393ac65098f.js
|
|
66
|
+
- tools/cmdtlmserver/LabelvaluelimitscolumnWidget-D2TMEv9O-11b6844f84b58504c3aa.js
|
|
67
|
+
- tools/cmdtlmserver/LabelvaluerangebarWidget-D99dZCjz-2c72dd417308f8cf3b83.js
|
|
68
|
+
- tools/cmdtlmserver/Layout--_zNJWnw-9367ae190fb0e9bf1b84.js
|
|
69
|
+
- tools/cmdtlmserver/LedWidget-D2uxHxe3-22c8c1f89536f753f5e6.js
|
|
70
|
+
- tools/cmdtlmserver/LimitsBar-DN1s8-MS-d3248be80e3262273e82.js
|
|
71
71
|
- tools/cmdtlmserver/LimitsColor-CBcpB-la-3bd861951380f642016e.js
|
|
72
|
-
- tools/cmdtlmserver/LimitsbarWidget-
|
|
73
|
-
- tools/cmdtlmserver/LimitscolorWidget-
|
|
74
|
-
- tools/cmdtlmserver/LimitscolumnWidget-
|
|
75
|
-
- tools/cmdtlmserver/LinegraphWidget-
|
|
76
|
-
- tools/cmdtlmserver/MatrixbycolumnsWidget
|
|
77
|
-
- tools/cmdtlmserver/OpenC3TimePicker-
|
|
78
|
-
- tools/cmdtlmserver/ProgressbarWidget-
|
|
79
|
-
- tools/cmdtlmserver/RadiobuttonWidget-
|
|
80
|
-
- tools/cmdtlmserver/RadiogroupWidget-
|
|
81
|
-
- tools/cmdtlmserver/RangebarWidget-
|
|
82
|
-
- tools/cmdtlmserver/RawBuffer-
|
|
83
|
-
- tools/cmdtlmserver/RawDialog-
|
|
84
|
-
- tools/cmdtlmserver/RollupWidget-
|
|
85
|
-
- tools/cmdtlmserver/RoutersTab-
|
|
86
|
-
- tools/cmdtlmserver/ScrollwindowWidget-
|
|
87
|
-
- tools/cmdtlmserver/SignalWidget-
|
|
88
|
-
- tools/cmdtlmserver/SpacerWidget-
|
|
89
|
-
- tools/cmdtlmserver/SparklineWidget-
|
|
90
|
-
- tools/cmdtlmserver/StatusTab-
|
|
91
|
-
- tools/cmdtlmserver/TabbookWidget-
|
|
92
|
-
- tools/cmdtlmserver/TargetsTab-
|
|
93
|
-
- tools/cmdtlmserver/TextboxWidget-
|
|
94
|
-
- tools/cmdtlmserver/TextfieldWidget-
|
|
95
|
-
- tools/cmdtlmserver/TimeWidget-
|
|
96
|
-
- tools/cmdtlmserver/TitleWidget-
|
|
97
|
-
- tools/cmdtlmserver/TlmPacketsTab-
|
|
98
|
-
- tools/cmdtlmserver/Updater-
|
|
99
|
-
- tools/cmdtlmserver/VWidget-
|
|
100
|
-
- tools/cmdtlmserver/ValueWidget-
|
|
101
|
-
- tools/cmdtlmserver/ValuelimitsbarWidget-
|
|
102
|
-
- tools/cmdtlmserver/ValuelimitscolumnWidget-
|
|
103
|
-
- tools/cmdtlmserver/ValuerangebarWidget-
|
|
104
|
-
- tools/cmdtlmserver/VerticalWidget-
|
|
105
|
-
- tools/cmdtlmserver/VerticalboxWidget-
|
|
106
|
-
- tools/cmdtlmserver/Widget-
|
|
107
|
-
- tools/cmdtlmserver/main-
|
|
72
|
+
- tools/cmdtlmserver/LimitsbarWidget-Cqhh7LKU-7f40da6484ccbe5da287.js
|
|
73
|
+
- tools/cmdtlmserver/LimitscolorWidget-haGB4RbY-ddf6b0791eb1be4ac6c5.js
|
|
74
|
+
- tools/cmdtlmserver/LimitscolumnWidget-B1GdmlR_-86b9a2cc5c084b705674.js
|
|
75
|
+
- tools/cmdtlmserver/LinegraphWidget-COSOQ0uM-a5300046319a8e9bc2ac.js
|
|
76
|
+
- tools/cmdtlmserver/MatrixbycolumnsWidget-coHlLETG-e799eaa675cfbf970ed5.js
|
|
77
|
+
- tools/cmdtlmserver/OpenC3TimePicker-B8Vu9GBz-89d21b420245131e470d.js
|
|
78
|
+
- tools/cmdtlmserver/ProgressbarWidget-D_yFssIZ-2510755cf05a8167431f.js
|
|
79
|
+
- tools/cmdtlmserver/RadiobuttonWidget-DL0jVTcb-101358296cb6f3e5ac75.js
|
|
80
|
+
- tools/cmdtlmserver/RadiogroupWidget-2-td69IA-98144436c4729f2db047.js
|
|
81
|
+
- tools/cmdtlmserver/RangebarWidget-i2mlnxys-3ecd19c88b6a2f13fc7a.js
|
|
82
|
+
- tools/cmdtlmserver/RawBuffer-5a59e58e37f6021cf46c.js
|
|
83
|
+
- tools/cmdtlmserver/RawDialog-3a0c000973893535a456.js
|
|
84
|
+
- tools/cmdtlmserver/RollupWidget-BEJ2Icg1-416b8d9160f2a81fd538.js
|
|
85
|
+
- tools/cmdtlmserver/RoutersTab-7710ec67843901567d25.js
|
|
86
|
+
- tools/cmdtlmserver/ScrollwindowWidget-BU1cRpL8-d99f9e1c5467abc7ed03.js
|
|
87
|
+
- tools/cmdtlmserver/SignalWidget-hiTkeem9-9efe6cdd22515ebf8555.js
|
|
88
|
+
- tools/cmdtlmserver/SpacerWidget-CBmzzS_X-e8f51b2251bb08fed6b0.js
|
|
89
|
+
- tools/cmdtlmserver/SparklineWidget-CizRh6QR-92a3ebcc84a5687d3b93.js
|
|
90
|
+
- tools/cmdtlmserver/StatusTab-efcdd278c79f71b06e9b.js
|
|
91
|
+
- tools/cmdtlmserver/TabbookWidget-CvL3Ozmx-19c91b22633cf0927a1e.js
|
|
92
|
+
- tools/cmdtlmserver/TargetsTab-326711a03f6c9686634d.js
|
|
93
|
+
- tools/cmdtlmserver/TextboxWidget-BtEwXzDO-52792ac2b6593c85c776.js
|
|
94
|
+
- tools/cmdtlmserver/TextfieldWidget-BDbb57HP-7306fcc70fc27079b1d3.js
|
|
95
|
+
- tools/cmdtlmserver/TimeWidget-DzD8U8l8-db805689f0b8dbaab9f7.js
|
|
96
|
+
- tools/cmdtlmserver/TitleWidget-CL53vf14-c0987297e98b6c858650.js
|
|
97
|
+
- tools/cmdtlmserver/TlmPacketsTab-91250bba537c7eb02f7c.js
|
|
98
|
+
- tools/cmdtlmserver/Updater-af04370b0601580396d1.js
|
|
99
|
+
- tools/cmdtlmserver/VWidget-5qOYva88-5dc877752d53235d987d.js
|
|
100
|
+
- tools/cmdtlmserver/ValueWidget-CAkuc_w_-0721aa9556f274d056ba.js
|
|
101
|
+
- tools/cmdtlmserver/ValuelimitsbarWidget-Y8sO05E1-f729f6e347b2f5825407.js
|
|
102
|
+
- tools/cmdtlmserver/ValuelimitscolumnWidget-iOjB_fCj-ae174dd346919467bac7.js
|
|
103
|
+
- tools/cmdtlmserver/ValuerangebarWidget-DsCoeAm6-7804711bfe999dad21a6.js
|
|
104
|
+
- tools/cmdtlmserver/VerticalWidget-C6O0dhRU-a30bbb27eaa68c233c89.js
|
|
105
|
+
- tools/cmdtlmserver/VerticalboxWidget-B-CoqRJG-ba12b0177fbcd7fb76e1.js
|
|
106
|
+
- tools/cmdtlmserver/Widget-CtYQauzA-69fc956797d4c4719727.js
|
|
107
|
+
- tools/cmdtlmserver/main-78902a467d9f5f7771dd.js
|
|
108
108
|
- tools/cmdtlmserver/main.js
|
|
109
|
-
- tools/cmdtlmserver/services-
|
|
109
|
+
- tools/cmdtlmserver/services-fee3a04fec3ff6af8998.js
|
|
110
110
|
homepage: https://github.com/OpenC3/cosmos
|
|
111
111
|
licenses:
|
|
112
112
|
- OpenC3
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./Layout-CKmC50QZ-85f8ef7d9d4b778fc3f8.js","vue","./main-ae88870307d629b1ce0e.js","./Widget-D_HaosJK-e286c8e7e2106d81e87c.js","vue-router","pinia","single-spa","vuetify"],(function(p,f){"use strict";var i,n,s,a,l,c,u,o,g;return{setters:[e=>{i=e.r},e=>{n=e.openBlock,s=e.createElementBlock,a=e.Fragment,l=e.renderList,c=e.createBlock,u=e.resolveDynamicComponent,o=e.mergeProps},e=>{g=e.f},null,null,null,null,null],execute:(function(){const e={mixins:[i],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},h=["width","height"];function d(r,k,y,B,b,m){return n(),s("svg",{id:"canvas",width:m.width,height:m.height},[(n(!0),s(a,null,l(r.widgets,(t,v)=>(n(),c(u(t.type),o({ref_for:!0},r.listeners,{key:v,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],8,h)}const w=p("default",g(e,[["render",d],["__scopeId","data-v-50b8991f"]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./Widget-D_HaosJK-e286c8e7e2106d81e87c.js","vue","./main-ae88870307d629b1ce0e.js","vue-router","pinia","single-spa","vuetify"],(function(s,a){"use strict";var t,n,l,c;return{setters:[e=>{t=e.h},e=>{n=e.openBlock,l=e.createElementBlock},e=>{c=e.f},null,null,null,null],execute:(function(){const e={mixins:[t]},i=["cx","cy","r","fill"];function u(r,m,f,p,d,k){return n(),l("circle",{cx:r.parameters[0],cy:r.parameters[1],r:r.parameters[3],fill:r.parameters[2]},null,8,i)}const o=s("default",c(e,[["render",u]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./Widget-D_HaosJK-e286c8e7e2106d81e87c.js","vue","./main-ae88870307d629b1ce0e.js","vue-router","pinia","single-spa","vuetify"],(function(o,c){"use strict";var r,n,i,l,s;return{setters:[e=>{r=e.h},e=>{n=e.openBlock,i=e.createElementBlock,l=e.toDisplayString},e=>{s=e.f},null,null,null,null],execute:(function(){const e={mixins:[r],computed:{fontSize(){return this.parameters[3]?this.parameters[3]+"px":"12px"},fillColor(){return this.parameters[4]?this.parameters[4]:"black"}}},u=["x","y","font-size","fill"];function p(t,m,x,h,y,a){return n(),i("text",{x:t.parameters[0],y:t.parameters[1],"font-size":a.fontSize,fill:a.fillColor},l(t.parameters[2]),9,u)}const f=o("default",s(e,[["render",p]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./Widget-D_HaosJK-e286c8e7e2106d81e87c.js","vue","./main-ae88870307d629b1ce0e.js","vue-router","pinia","single-spa","vuetify"],(function(u,p){"use strict";var s,a,i,l,n;return{setters:[e=>{s=e.h},e=>{a=e.openBlock,i=e.createElementBlock,l=e.toDisplayString},e=>{n=e.f},null,null,null,null],execute:(function(){const e={mixins:[s],emits:["addItem","deleteItem"],data(){return{valueId:null}},computed:{_value(){return this.screenValues[this.valueId]?this.screenValues[this.valueId][0]:""},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let t="CONVERTED";this.parameters[7]&&(t=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},m=["x","y","font-size","fill"];function o(t,h,c,f,v,r){return a(),i("text",{x:t.parameters[3],y:t.parameters[4],"font-size":r.fontSize,fill:r.fillColor},l(r._value),9,m)}const d=u("default",n(e,[["render",o]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./Widget-D_HaosJK-e286c8e7e2106d81e87c.js","vue","./main-ae88870307d629b1ce0e.js","vue-router","pinia","single-spa","vuetify"],(function(i,p){"use strict";var t,a,n,s,o,r;return{setters:[e=>{t=e.h},e=>{a=e.resolveComponent,n=e.openBlock,s=e.createBlock,o=e.normalizeStyle},e=>{r=e.f},null,null,null,null],execute:(function(){const e={mixins:[t],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.label=this.parameters[0],this.parameters[1]&&(this.value=!0)},methods:{checked(){return this.value}}};function c(d,u,f,k,l,y){const m=a("v-checkbox");return n(),s(m,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=h=>l.value=h),"hide-details":"",density:"compact",label:l.label,style:o(d.computedStyle)},null,8,["modelValue","label","style"])}const v=i("default",r(e,[["render",c]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./Widget-D_HaosJK-e286c8e7e2106d81e87c.js","vue","./main-ae88870307d629b1ce0e.js","vue-router","pinia","single-spa","vuetify"],(function(u,p){"use strict";var l,n,s,a,i,r;return{setters:[e=>{l=e.h},e=>{n=e.resolveComponent,s=e.openBlock,a=e.createBlock,i=e.normalizeStyle},e=>{r=e.f},null,null,null,null],execute:(function(){const e={mixins:[l],data(){return{items:[],value:null}},created(){this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}};function c(m,o,y,f,t,k){const d=n("v-select");return s(),a(d,{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=v=>t.value=v),"hide-details":"",density:"compact",variant:"outlined",items:t.items,style:i(m.computedStyle)},null,8,["modelValue","items","style"])}const h=u("default",r(e,[["render",c]]))})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./Updater-d97ddec520bea4a73d3f.js","./InterfaceFlowChart-cfadd36d819b485a73ef.js","./services-a7fe7e9b036652e7b4b1.js","vue","./main-ae88870307d629b1ce0e.js","./RawBuffer-ebb6aadc11fa84048a7f.js","vue-router","pinia","single-spa","vuetify"],(function(h,m){"use strict";var a,l,o,c,u,p,f;return{setters:[e=>{a=e.U},e=>{l=e._},e=>{o=e.q},e=>{c=e.resolveComponent,u=e.openBlock,p=e.createBlock},e=>{f=e._},null,null,null,null,null],execute:(function(){const e={components:{InterfaceFlowChart:l},mixins:[a],data(){return{api:null,interfaceDetails:null,routerDetails:null}},created(){this.api=new o,this.update()},methods:{update(){this.api.get_interface_names().then(r=>{const i=[...r].map(t=>this.api.interface_details(t));Promise.all(i).then(t=>{this.interfaceDetails={};let s=0;r.forEach(n=>{this.interfaceDetails[n]=t[s],s+=1})})}),this.api.get_router_names().then(r=>{const i=[...r].map(t=>this.api.router_details(t));Promise.all(i).then(t=>{this.routerDetails={};let s=0;r.forEach(n=>{this.routerDetails[n]=t[s],s+=1})})})}}};function _(r,i,t,s,n,v){const d=c("InterfaceFlowChart");return u(),p(d,{"interface-details":n.interfaceDetails,"router-details":n.routerDetails,style:{height:"80vh"}},null,8,["interface-details","router-details"])}const D=h("default",f(e,[["render",_]]))})}}));
|