homebridge-config-ui-x 5.0.0-beta.54 → 5.0.0-beta.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/CHANGELOG.md +7 -3
  2. package/dist/bin/platforms/darwin.js +2 -2
  3. package/dist/bin/platforms/darwin.js.map +1 -1
  4. package/dist/modules/accessories/accessories.service.js +6 -6
  5. package/dist/modules/accessories/accessories.service.js.map +1 -1
  6. package/dist/modules/backup/backup.service.d.ts +1 -0
  7. package/dist/modules/backup/backup.service.js +40 -12
  8. package/dist/modules/backup/backup.service.js.map +1 -1
  9. package/dist/modules/config-editor/config-editor.service.js +56 -58
  10. package/dist/modules/config-editor/config-editor.service.js.map +1 -1
  11. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.d.ts +1 -1
  12. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +6 -6
  13. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
  14. package/dist/modules/plugins/plugins.service.js +6 -0
  15. package/dist/modules/plugins/plugins.service.js.map +1 -1
  16. package/dist/modules/server/server.service.js +26 -6
  17. package/dist/modules/server/server.service.js.map +1 -1
  18. package/package.json +16 -11
  19. package/public/assets/hap-icons/co-sensor.svg +72 -0
  20. package/public/assets/hap-icons/co2-sensor.svg +72 -0
  21. package/public/{chunk-AKQE7OWM.js → chunk-2COJW6JZ.js} +1 -1
  22. package/public/chunk-2IW5LNPB.js +1 -0
  23. package/public/{chunk-KLDACGOZ.js → chunk-3BELKOOV.js} +1 -1
  24. package/public/chunk-4CHT7AT4.js +1 -0
  25. package/public/chunk-4M72X5OK.js +1 -0
  26. package/public/chunk-4RHFK7T7.js +1 -0
  27. package/public/chunk-5V2DC7MB.js +1 -0
  28. package/public/{chunk-OKJ2T4EM.js → chunk-66N6LPDX.js} +1 -1
  29. package/public/{chunk-M5YMSV5J.js → chunk-6ANUJDFI.js} +1 -1
  30. package/public/chunk-6JZDPQRU.js +7 -0
  31. package/public/chunk-6UJYW2BC.js +1 -0
  32. package/public/{chunk-TWFE7WAV.js → chunk-736OOU3Z.js} +1 -1
  33. package/public/{chunk-HQDY2QYB.js → chunk-773OTB2G.js} +1 -1
  34. package/public/{chunk-Q7NLVQF3.js → chunk-A6S2CSNA.js} +1 -1
  35. package/public/chunk-AK5KQMIG.js +1 -0
  36. package/public/chunk-AOTHIRMY.js +1 -0
  37. package/public/{chunk-TQSZOE62.js → chunk-AXQ3BC2K.js} +1 -1
  38. package/public/{chunk-GZMSZZVX.js → chunk-B2ERIJJG.js} +1 -1
  39. package/public/{chunk-F2WFV5GW.js → chunk-BBVFH2MI.js} +1 -1
  40. package/public/{chunk-W7CPCAPT.js → chunk-D3QNROQA.js} +1 -1
  41. package/public/{chunk-WNBSA3C7.js → chunk-DCC24Q4F.js} +1 -1
  42. package/public/{chunk-XCZREHWX.js → chunk-DVN556RD.js} +1 -1
  43. package/public/{chunk-D5WEMCFU.js → chunk-E3OYPTR2.js} +5 -5
  44. package/public/{chunk-KD5YLOUW.js → chunk-G75CPMPQ.js} +2 -2
  45. package/public/{chunk-DFISUNQT.js → chunk-HLM36W2F.js} +1 -1
  46. package/public/chunk-HNSNM4LP.js +1 -0
  47. package/public/{chunk-PVRKV6LM.js → chunk-IQBKWEOJ.js} +1 -1
  48. package/public/chunk-IYB7FT3D.js +1 -0
  49. package/public/{chunk-3JTVYTOV.js → chunk-IYWODW5F.js} +1 -1
  50. package/public/{chunk-NBOGF5S7.js → chunk-J3SOHF7U.js} +1 -1
  51. package/public/chunk-J6F5YEE7.js +1 -0
  52. package/public/{chunk-LRGJFKOV.js → chunk-JJGSWCQV.js} +1 -1
  53. package/public/chunk-JJNXRO4M.js +1 -0
  54. package/public/chunk-JO3D6NVS.js +1 -0
  55. package/public/chunk-KSS2AKKJ.js +1 -0
  56. package/public/chunk-KZVBUYFA.js +1 -0
  57. package/public/{chunk-NSDMDB7X.js → chunk-L4SPVWCZ.js} +1 -1
  58. package/public/{chunk-IRTFX6CU.js → chunk-LS2FIX2L.js} +1 -1
  59. package/public/chunk-LSEE2EJ5.js +1 -0
  60. package/public/{chunk-L4PJSJOC.js → chunk-LYECLRZK.js} +1 -1
  61. package/public/chunk-M7SOMZDC.js +1 -0
  62. package/public/{chunk-BEBVDUK5.js → chunk-N4Z4UGMV.js} +1 -1
  63. package/public/chunk-NGIHFGBF.js +1 -0
  64. package/public/{chunk-D6PHTILW.js → chunk-NKLCJU2S.js} +1 -1
  65. package/public/chunk-OARRUSU5.js +1 -0
  66. package/public/{chunk-YIYI7U2L.js → chunk-OPSX6NGT.js} +1 -1
  67. package/public/chunk-P3FBSUT6.js +1 -0
  68. package/public/{chunk-GDNT2HPK.js → chunk-P6AJ5TS2.js} +1 -1
  69. package/public/chunk-Q6TB7XJF.js +1 -0
  70. package/public/{chunk-GHPAEKNM.js → chunk-QAB7LTBA.js} +1 -1
  71. package/public/{chunk-P5BH5BCJ.js → chunk-QIWZD5HO.js} +1 -1
  72. package/public/{chunk-X2NTV4U7.js → chunk-QX4JJLN4.js} +1 -1
  73. package/public/{chunk-NG3SOGCM.js → chunk-R5QHD2MV.js} +1 -1
  74. package/public/{chunk-6MIOQ7Y5.js → chunk-REYVZJK4.js} +1 -1
  75. package/public/{chunk-RWT5SL6D.js → chunk-S7I53EZU.js} +1 -1
  76. package/public/chunk-SD6V7IFJ.js +1 -0
  77. package/public/{chunk-MJUBX7V2.js → chunk-SHPANMJF.js} +1 -1
  78. package/public/{chunk-QGC43YCF.js → chunk-SZTIHT5G.js} +1 -1
  79. package/public/{chunk-KJCIKCUI.js → chunk-T6O5C7ES.js} +1 -1
  80. package/public/{chunk-M5LTG544.js → chunk-TH7WF563.js} +1 -1
  81. package/public/chunk-THIDU5VO.js +1 -0
  82. package/public/{chunk-QGDGNYSY.js → chunk-TLHK2BEJ.js} +1 -1
  83. package/public/{chunk-KIPITWHI.js → chunk-TOSAT7VK.js} +1 -1
  84. package/public/{chunk-MS2EQS6S.js → chunk-U3XAGOD7.js} +1 -1
  85. package/public/{chunk-JE3LI7IZ.js → chunk-UE3HPVVJ.js} +1 -1
  86. package/public/{chunk-X7HV5PS7.js → chunk-UHIT6NQS.js} +1 -1
  87. package/public/{chunk-5NJQH2A3.js → chunk-UXBIRDFV.js} +1 -1
  88. package/public/chunk-UXGMJXWE.js +1 -0
  89. package/public/{chunk-V233CDAY.js → chunk-VZPOY7LH.js} +1 -1
  90. package/public/chunk-WROPKO5D.js +1 -0
  91. package/public/{chunk-R2MEYLU6.js → chunk-XJTWPBNY.js} +1 -1
  92. package/public/{chunk-7HGOM4YX.js → chunk-XK5P2LIO.js} +1 -1
  93. package/public/{chunk-LSEE5MJ5.js → chunk-XKZJKXVQ.js} +1 -1
  94. package/public/chunk-XSVWXIZ3.js +1 -0
  95. package/public/{chunk-W6CTMNAG.js → chunk-Y5BDWQTD.js} +1 -1
  96. package/public/{chunk-UQFNUGQM.js → chunk-Y7QARRGO.js} +1 -1
  97. package/public/{chunk-6GWRWBF2.js → chunk-YBF3LNSH.js} +1 -1
  98. package/public/{chunk-UXXGHFQU.js → chunk-YCHPFYO5.js} +1 -1
  99. package/public/{chunk-IEBQX6HS.js → chunk-YSSMQJIR.js} +1 -1
  100. package/public/chunk-YVLNDNOU.js +1 -0
  101. package/public/chunk-ZEDF3XZB.js +1 -0
  102. package/public/{chunk-5BZGZWPU.js → chunk-ZEGJJ2QZ.js} +1 -1
  103. package/public/chunk-ZUXRWBEO.js +1 -0
  104. package/public/index.html +2 -2
  105. package/public/{main-WAIZFTFV.js → main-KLOKN23N.js} +1 -1
  106. package/public/{polyfills-IVGADV35.js → polyfills-QPBMDKSH.js} +2 -2
  107. package/public/{styles-GAKWEL7A.css → styles-EYD3YW3P.css} +1 -1
  108. package/public/chunk-2DTLVEZT.js +0 -1
  109. package/public/chunk-2FUKJXA2.js +0 -1
  110. package/public/chunk-3R46QOCE.js +0 -1
  111. package/public/chunk-3TOJYAHV.js +0 -1
  112. package/public/chunk-4IP5DDXE.js +0 -1
  113. package/public/chunk-5CDZD4QO.js +0 -1
  114. package/public/chunk-6MX25OCF.js +0 -1
  115. package/public/chunk-7EVWOJST.js +0 -1
  116. package/public/chunk-CEHKV4IM.js +0 -1
  117. package/public/chunk-HMDNUXTY.js +0 -1
  118. package/public/chunk-JGMDXNMZ.js +0 -1
  119. package/public/chunk-KAI32HWM.js +0 -1
  120. package/public/chunk-KPIML2SI.js +0 -1
  121. package/public/chunk-LTRMT3PM.js +0 -1
  122. package/public/chunk-MKXFRTHP.js +0 -1
  123. package/public/chunk-NCJAIFQO.js +0 -1
  124. package/public/chunk-O7E5GSDU.js +0 -1
  125. package/public/chunk-OAUVJEII.js +0 -1
  126. package/public/chunk-OIAU3DDH.js +0 -1
  127. package/public/chunk-OZD3PKS7.js +0 -1
  128. package/public/chunk-PTKIJR4Y.js +0 -1
  129. package/public/chunk-QNQ6DXDY.js +0 -1
  130. package/public/chunk-R5HVCC65.js +0 -1
  131. package/public/chunk-SQV4HVMS.js +0 -1
  132. package/public/chunk-UIW5IZLL.js +0 -1
  133. package/public/chunk-V7KKBEKT.js +0 -7
  134. package/public/chunk-V7N6TZL2.js +0 -1
  135. package/public/chunk-W7IALUEC.js +0 -1
  136. package/public/chunk-YJ3F3IFM.js +0 -1
  137. package/public/chunk-ZSRQVLRE.js +0 -1
@@ -1 +1 @@
1
- import{c as pe}from"./chunk-5NJQH2A3.js";import{j as le}from"./chunk-NCJAIFQO.js";import{f as We,ga as fe,k as he,ma as ue,n as X}from"./chunk-V7KKBEKT.js";var d=Object.create(null);d.open="0";d.close="1";d.ping="2";d.pong="3";d.message="4";d.upgrade="5";d.noop="6";var S=Object.create(null);Object.keys(d).forEach(r=>{S[d[r]]=r});var O={type:"error",data:"parser error"};var ye=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ge=typeof ArrayBuffer=="function",_e=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer,B=({type:r,data:e},t,s)=>ye&&e instanceof Blob?t?s(e):de(e,s):ge&&(e instanceof ArrayBuffer||_e(e))?t?s(e):de(new Blob([e]),s):s(d[r]+(e||"")),de=(r,e)=>{let t=new FileReader;return t.onload=function(){let s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(r)};function me(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}var $;function be(r,e){if(ye&&r.data instanceof Blob)return r.data.arrayBuffer().then(me).then(e);if(ge&&(r.data instanceof ArrayBuffer||_e(r.data)))return e(me(r.data));B(r,!1,t=>{$||($=new TextEncoder),e($.encode(t))})}var we="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let r=0;r<we.length;r++)N[we.charCodeAt(r)]=r;var ke=r=>{let e=r.length*.75,t=r.length,s,i=0,n,o,c,a;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);let m=new ArrayBuffer(e),p=new Uint8Array(m);for(s=0;s<t;s+=4)n=N[r.charCodeAt(s)],o=N[r.charCodeAt(s+1)],c=N[r.charCodeAt(s+2)],a=N[r.charCodeAt(s+3)],p[i++]=n<<2|o>>4,p[i++]=(o&15)<<4|c>>2,p[i++]=(c&3)<<6|a&63;return m};var Ke=typeof ArrayBuffer=="function",L=(r,e)=>{if(typeof r!="string")return{type:"message",data:Ee(r,e)};let t=r.charAt(0);return t==="b"?{type:"message",data:Ye(r.substring(1),e)}:S[t]?r.length>1?{type:S[t],data:r.substring(1)}:{type:S[t]}:O},Ye=(r,e)=>{if(Ke){let t=ke(r);return Ee(t,e)}else return{base64:!0,data:r}},Ee=(r,e)=>{switch(e){case"blob":return r instanceof Blob?r:new Blob([r]);case"arraybuffer":default:return r instanceof ArrayBuffer?r:r.buffer}};var ve="",xe=(r,e)=>{let t=r.length,s=new Array(t),i=0;r.forEach((n,o)=>{B(n,!1,c=>{s[o]=c,++i===t&&e(s.join(ve))})})},Te=(r,e)=>{let t=r.split(ve),s=[];for(let i=0;i<t.length;i++){let n=L(t[i],e);if(s.push(n),n.type==="error")break}return s};function Ae(){return new TransformStream({transform(r,e){be(r,t=>{let s=t.length,i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);let n=new DataView(i.buffer);n.setUint8(0,126),n.setUint16(1,s)}else{i=new Uint8Array(9);let n=new DataView(i.buffer);n.setUint8(0,127),n.setBigUint64(1,BigInt(s))}r.data&&typeof r.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}var Q;function U(r){return r.reduce((e,t)=>e+t.length,0)}function V(r,e){if(r[0].length===e)return r.shift();let t=new Uint8Array(e),s=0;for(let i=0;i<e;i++)t[i]=r[0][s++],s===r[0].length&&(r.shift(),s=0);return r.length&&s<r[0].length&&(r[0]=r[0].slice(s)),t}function Re(r,e){Q||(Q=new TextDecoder);let t=[],s=0,i=-1,n=!1;return new TransformStream({transform(o,c){for(t.push(o);;){if(s===0){if(U(t)<1)break;let a=V(t,1);n=(a[0]&128)===128,i=a[0]&127,i<126?s=3:i===126?s=1:s=2}else if(s===1){if(U(t)<2)break;let a=V(t,2);i=new DataView(a.buffer,a.byteOffset,a.length).getUint16(0),s=3}else if(s===2){if(U(t)<8)break;let a=V(t,8),m=new DataView(a.buffer,a.byteOffset,a.length),p=m.getUint32(0);if(p>Math.pow(2,21)-1){c.enqueue(O);break}i=p*Math.pow(2,32)+m.getUint32(4),s=3}else{if(U(t)<i)break;let a=V(t,i);c.enqueue(L(n?a:Q.decode(a),e)),s=0}if(i===0||i>r){c.enqueue(O);break}}}})}var j=4;function f(r){if(r)return Je(r)}function Je(r){for(var e in f.prototype)r[e]=f.prototype[e];return r}f.prototype.on=f.prototype.addEventListener=function(r,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(e),this};f.prototype.once=function(r,e){function t(){this.off(r,t),e.apply(this,arguments)}return t.fn=e,this.on(r,t),this};f.prototype.off=f.prototype.removeListener=f.prototype.removeAllListeners=f.prototype.removeEventListener=function(r,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+r];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var s,i=0;i<t.length;i++)if(s=t[i],s===e||s.fn===e){t.splice(i,1);break}return t.length===0&&delete this._callbacks["$"+r],this};f.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+r],s=1;s<arguments.length;s++)e[s-1]=arguments[s];if(t){t=t.slice(0);for(var s=0,i=t.length;s<i;++s)t[s].apply(this,e)}return this};f.prototype.emitReserved=f.prototype.emit;f.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]};f.prototype.hasListeners=function(r){return!!this.listeners(r).length};var y=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),u=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Ce="arraybuffer";function M(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}var ze=u.setTimeout,Xe=u.clearTimeout;function g(r,e){e.useNativeTimers?(r.setTimeoutFn=ze.bind(u),r.clearTimeoutFn=Xe.bind(u)):(r.setTimeoutFn=u.setTimeout.bind(u),r.clearTimeoutFn=u.clearTimeout.bind(u))}var $e=1.33;function Se(r){return typeof r=="string"?Qe(r):Math.ceil((r.byteLength||r.size)*$e)}function Qe(r){let e=0,t=0;for(let s=0,i=r.length;s<i;s++)e=r.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function H(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Oe(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function Be(r){let e={},t=r.split("&");for(let s=0,i=t.length;s<i;s++){let n=t[s].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return e}var W=class extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}},_=class extends f{constructor(e){super(),this.writable=!1,g(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new W(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=L(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let t=Oe(e);return t.length?"?"+t:""}};var P=class extends _{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Te(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,xe(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=H()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}};var Ne=!1;try{Ne=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Le=Ne;function je(){}var G=class extends P{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){let s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,n)=>{this.onError("xhr post error",i,n)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}},K=(()=>{class r extends f{constructor(t,s,i){super(),this.createRequest=t,g(this,i),this._opts=i,this._method=i.method||"GET",this._uri=s,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var t;let s=M(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this._opts.xd;let i=this._xhr=this.createRequest(s);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&i.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var n;i.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},0);return}typeof document<"u"&&(this._index=r.requestsCount++,r.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=je,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete r.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}return r.requestsCount=0,r.requests={},r})();if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Pe);else if(typeof addEventListener=="function"){let r="onpagehide"in u?"pagehide":"unload";addEventListener(r,Pe,!1)}}function Pe(){for(let r in K.requests)K.requests.hasOwnProperty(r)&&K.requests[r].abort()}var Ge=function(){let r=qe({xdomain:!1});return r&&r.responseType!==null}(),w=class extends G{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=Ge&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new K(qe,this.uri(),e)}};function qe(r){let e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Le))return new XMLHttpRequest}catch{}if(!e)try{return new u[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var De=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",ee=class extends _{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,s=De?{}:M(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let s=e[t],i=t===e.length-1;B(s,this.supportsBinary,n=>{try{this.doWrite(s,n)}catch{}i&&y(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=H()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},Z=u.WebSocket||u.MozWebSocket,k=class extends ee{createSocket(e,t,s){return De?new Z(e,t,s):t?new Z(e,t):new Z(e)}doWrite(e,t){this.ws.send(t)}};var v=class extends _{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=Re(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=Ae();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();let n=()=>{s.read().then(({done:c,value:a})=>{c||(this.onPacket(a),n())}).catch(c=>{})};n();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&y(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var te={websocket:k,webtransport:v,polling:w};var Ze=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,et=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function x(r){if(r.length>8e3)throw"URI too long";let e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=Ze.exec(r||""),n={},o=14;for(;o--;)n[et[o]]=i[o]||"";return t!=-1&&s!=-1&&(n.source=e,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=tt(n,n.path),n.queryKey=st(n,n.query),n}function tt(r,e){let t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function st(r,e){let t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,n){i&&(t[i]=n)}),t}var se=typeof addEventListener=="function"&&typeof removeEventListener=="function",Y=[];se&&addEventListener("offline",()=>{Y.forEach(r=>r())},!1);var J=(()=>{class r extends f{constructor(t,s){if(super(),this.binaryType=Ce,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(s=t,t=null),t){let i=x(t);s.hostname=i.host,s.secure=i.protocol==="https"||i.protocol==="wss",s.port=i.port,i.query&&(s.query=i.query)}else s.host&&(s.hostname=x(s.host).host);g(this,s),this.secure=s.secure!=null?s.secure:typeof location<"u"&&location.protocol==="https:",s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=s.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},s.transports.forEach(i=>{let n=i.prototype.name;this.transports.push(n),this._transportsByName[n]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Be(this.opts.query)),se&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Y.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let s=Object.assign({},this.opts.query);s.EIO=j,s.transport=t,this.id&&(s.sid=this.id);let i=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&r.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let s=this.createTransport(t);s.open(),this.setTransport(s)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",s=>this._onClose("transport close",s))}onOpen(){this.readyState="open",r.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let s=new Error("server error");s.code=t.data,this._onError(s);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let s=1;for(let i=0;i<this.writeBuffer.length;i++){let n=this.writeBuffer[i].data;if(n&&(s+=Se(n)),i>0&&s>this._maxPayload)return this.writeBuffer.slice(0,i);s+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,y(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,s,i){return this._sendPacket("message",t,s,i),this}send(t,s,i){return this._sendPacket("message",t,s,i),this}_sendPacket(t,s,i,n){if(typeof s=="function"&&(n=s,s=void 0),typeof i=="function"&&(n=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;let o={type:t,data:s,options:i};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),t()},i=()=>{this.once("upgrade",s),this.once("upgradeError",s)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}_onError(t){if(r.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,s){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),se&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let i=Y.indexOf(this._offlineEventListener);i!==-1&&Y.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,s),this.writeBuffer=[],this._prevBufferLen=0}}}return r.protocol=j,r})(),z=class extends J{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;J.priorWebsocketSuccess=!1;let i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",b=>{if(!s)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;J.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(p(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let C=new Error("probe error");C.transport=t.name,this.emitReserved("upgradeError",C)}}))};function n(){s||(s=!0,p(),t.close(),t=null)}let o=b=>{let C=new Error("probe error: "+b);C.transport=t.name,n(),this.emitReserved("upgradeError",C)};function c(){o("transport closed")}function a(){o("socket closed")}function m(b){t&&b.name!==t.name&&n()}let p=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",c),this.off("close",a),this.off("upgrading",m)};t.once("open",i),t.once("error",o),t.once("close",c),this.once("close",a),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}},T=class extends z{constructor(e,t={}){let s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>te[i]).filter(i=>!!i)),super(e,s)}};var ds=T.protocol;function Fe(r,e="",t){let s=r;t=t||typeof location<"u"&&location,r==null&&(r=t.protocol+"//"+t.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=t.protocol+r:r=t.host+r),/^(https?|wss?):\/\//.test(r)||(typeof t<"u"?r=t.protocol+"//"+r:r="https://"+r),s=x(r)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";let n=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+n+":"+s.port+e,s.href=s.protocol+"://"+n+(t&&t.port===s.port?"":":"+s.port),s}var ae={};We(ae,{Decoder:()=>oe,Encoder:()=>ne,PacketType:()=>h,protocol:()=>He});var it=typeof ArrayBuffer=="function",nt=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r.buffer instanceof ArrayBuffer,Ie=Object.prototype.toString,ot=typeof Blob=="function"||typeof Blob<"u"&&Ie.call(Blob)==="[object BlobConstructor]",ct=typeof File=="function"||typeof File<"u"&&Ie.call(File)==="[object FileConstructor]";function D(r){return it&&(r instanceof ArrayBuffer||nt(r))||ot&&r instanceof Blob||ct&&r instanceof File}function q(r,e){if(!r||typeof r!="object")return!1;if(Array.isArray(r)){for(let t=0,s=r.length;t<s;t++)if(q(r[t]))return!0;return!1}if(D(r))return!0;if(r.toJSON&&typeof r.toJSON=="function"&&arguments.length===1)return q(r.toJSON(),!0);for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&q(r[t]))return!0;return!1}function Ue(r){let e=[],t=r.data,s=r;return s.data=re(t,e),s.attachments=e.length,{packet:s,buffers:e}}function re(r,e){if(!r)return r;if(D(r)){let t={_placeholder:!0,num:e.length};return e.push(r),t}else if(Array.isArray(r)){let t=new Array(r.length);for(let s=0;s<r.length;s++)t[s]=re(r[s],e);return t}else if(typeof r=="object"&&!(r instanceof Date)){let t={};for(let s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=re(r[s],e));return t}return r}function Ve(r,e){return r.data=ie(r.data,e),delete r.attachments,r}function ie(r,e){if(!r)return r;if(r&&r._placeholder===!0){if(typeof r.num=="number"&&r.num>=0&&r.num<e.length)return e[r.num];throw new Error("illegal attachments")}else if(Array.isArray(r))for(let t=0;t<r.length;t++)r[t]=ie(r[t],e);else if(typeof r=="object")for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(r[t]=ie(r[t],e));return r}var at=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],He=5,h=function(r){return r[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK",r}(h||{}),ne=class{constructor(e){this.replacer=e}encode(e){return(e.type===h.EVENT||e.type===h.ACK)&&q(e)?this.encodeAsBinary({type:e.type===h.EVENT?h.BINARY_EVENT:h.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===h.BINARY_EVENT||e.type===h.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=Ue(e),s=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(s),i}};function Me(r){return Object.prototype.toString.call(r)==="[object Object]"}var oe=class r extends f{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);let s=t.type===h.BINARY_EVENT;s||t.type===h.BINARY_ACK?(t.type=s?h.EVENT:h.ACK,this.reconstructor=new ce(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(D(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0,s={type:Number(e.charAt(0))};if(h[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===h.BINARY_EVENT||s.type===h.BINARY_ACK){let n=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);let o=e.substring(n,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");s.attachments=Number(o)}if(e.charAt(t+1)==="/"){let n=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););s.nsp=e.substring(n,t)}else s.nsp="/";let i=e.charAt(t+1);if(i!==""&&Number(i)==i){let n=t+1;for(;++t;){let o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}s.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(r.isPayloadValid(s.type,n))s.data=n;else throw new Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case h.CONNECT:return Me(t);case h.DISCONNECT:return t===void 0;case h.CONNECT_ERROR:return typeof t=="string"||Me(t);case h.EVENT:case h.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&at.indexOf(t[0])===-1);case h.ACK:case h.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},ce=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=Ve(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function l(r,e,t){return r.on(e,t),function(){r.off(e,t)}}var ht=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),A=class extends f{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[l(e,"open",this.onopen.bind(this)),l(e,"packet",this.onpacket.bind(this)),l(e,"error",this.onerror.bind(this)),l(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var s,i,n;if(ht.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let o={type:h.EVENT,data:t};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let p=this.ids++,b=t.pop();this._registerAckCallback(p,b),o.id=p}let c=(i=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||i===void 0?void 0:i.writable,a=this.connected&&!(!((n=this.io.engine)===null||n===void 0)&&n._hasPingExpired());return this.flags.volatile&&!c||(a?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var s;let i=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(i===void 0){this.acks[e]=t;return}let n=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===e&&this.sendBuffer.splice(c,1);t.call(this,new Error("operation has timed out"))},i),o=(...c)=>{this.io.clearTimeoutFn(n),t.apply(this,c)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((s,i)=>{let n=(o,c)=>o?i(o):s(c);n.withError=!0,t.push(n),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...n)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...n)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:h.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){let s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case h.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case h.EVENT:case h.BINARY_EVENT:this.onevent(e);break;case h.ACK:case h.BINARY_ACK:this.onack(e);break;case h.DISCONNECT:this.ondisconnect();break;case h.CONNECT_ERROR:this.destroy();let s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,s=!1;return function(...i){s||(s=!0,t.packet({type:h.ACK,id:e,data:i}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:h.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let s of t)s.apply(this,e.data)}}};function E(r){r=r||{},this.ms=r.min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}E.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*r);r=(Math.floor(e*10)&1)==0?r-t:r+t}return Math.min(r,this.max)|0};E.prototype.reset=function(){this.attempts=0};E.prototype.setMin=function(r){this.ms=r};E.prototype.setMax=function(r){this.max=r};E.prototype.setJitter=function(r){this.jitter=r};var R=class extends f{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,g(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new E({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let i=t.parser||ae;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new T(this.uri,this.opts);let t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;let i=l(t,"open",function(){s.onopen(),e&&e()}),n=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),e?e(c):this.maybeReconnectOnOpen()},o=l(t,"error",n);if(this._timeout!==!1){let c=this._timeout,a=this.setTimeoutFn(()=>{i(),n(new Error("timeout")),t.close()},c);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(l(e,"ping",this.onping.bind(this)),l(e,"data",this.ondata.bind(this)),l(e,"error",this.onerror.bind(this)),l(e,"close",this.onclose.bind(this)),l(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){y(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new A(this,e,t),this.nsps[e]=s),s}_destroy(e){let t=Object.keys(this.nsps);for(let s of t)if(this.nsps[s].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let s=0;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var F={};function I(r,e){typeof r=="object"&&(e=r,r=void 0),e=e||{};let t=Fe(r,e.path||"/socket.io"),s=t.source,i=t.id,n=t.path,o=F[i]&&n in F[i].nsps,c=e.forceNew||e["force new connection"]||e.multiplex===!1||o,a;return c?a=new R(s,e):(F[i]||(F[i]=new R(s,e)),a=F[i]),t.query&&!e.query&&(e.query=t.queryKey),a.socket(t.path,e)}Object.assign(I,{Manager:R,Socket:A,io:I,connect:I});var cr=(()=>{class r{$auth=ue(pe);namespaceConnectionCache={};constructor(){}connectToNamespace(t){if(this.namespaceConnectionCache[t]){let s=this.namespaceConnectionCache[t];return s.connected=new X,setTimeout(()=>{s.socket.connected&&s.connected.next(void 0)}),s.socket.on("connect",()=>{s.connected.next(void 0)}),s.end=()=>{s.socket.emit("end"),s.socket.removeAllListeners(),s.connected.complete()},this.namespaceConnectionCache[t]}else{let s=this.establishConnectionToNamespace(t);return s.connected=new X,s.socket.on("connect",()=>{s.connected.next(void 0)}),s.end=()=>{s.socket.emit("end"),s.socket.removeAllListeners(),s.connected.complete()},this.namespaceConnectionCache[t]=s,s}}getExistingNamespace(t){return this.namespaceConnectionCache[t]}establishConnectionToNamespace(t){let s=I(`${le.api.socket}/${t}`,{query:{token:this.$auth.token}});return{socket:s,request:(n,o)=>new he(c=>{s.emit(n,o,a=>{typeof a=="object"&&a.error?c.error(a):c.next(a),c.complete()})})}}static \u0275fac=function(s){return new(s||r)};static \u0275prov=fe({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{cr as a};
1
+ import{c as pe}from"./chunk-UXBIRDFV.js";import{j as le}from"./chunk-4M72X5OK.js";import{f as We,ga as fe,k as he,ma as ue,n as X}from"./chunk-6JZDPQRU.js";var d=Object.create(null);d.open="0";d.close="1";d.ping="2";d.pong="3";d.message="4";d.upgrade="5";d.noop="6";var S=Object.create(null);Object.keys(d).forEach(r=>{S[d[r]]=r});var O={type:"error",data:"parser error"};var ye=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ge=typeof ArrayBuffer=="function",_e=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer,B=({type:r,data:e},t,s)=>ye&&e instanceof Blob?t?s(e):de(e,s):ge&&(e instanceof ArrayBuffer||_e(e))?t?s(e):de(new Blob([e]),s):s(d[r]+(e||"")),de=(r,e)=>{let t=new FileReader;return t.onload=function(){let s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(r)};function me(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}var $;function be(r,e){if(ye&&r.data instanceof Blob)return r.data.arrayBuffer().then(me).then(e);if(ge&&(r.data instanceof ArrayBuffer||_e(r.data)))return e(me(r.data));B(r,!1,t=>{$||($=new TextEncoder),e($.encode(t))})}var we="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let r=0;r<we.length;r++)N[we.charCodeAt(r)]=r;var ke=r=>{let e=r.length*.75,t=r.length,s,i=0,n,o,c,a;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);let m=new ArrayBuffer(e),p=new Uint8Array(m);for(s=0;s<t;s+=4)n=N[r.charCodeAt(s)],o=N[r.charCodeAt(s+1)],c=N[r.charCodeAt(s+2)],a=N[r.charCodeAt(s+3)],p[i++]=n<<2|o>>4,p[i++]=(o&15)<<4|c>>2,p[i++]=(c&3)<<6|a&63;return m};var Ke=typeof ArrayBuffer=="function",L=(r,e)=>{if(typeof r!="string")return{type:"message",data:Ee(r,e)};let t=r.charAt(0);return t==="b"?{type:"message",data:Ye(r.substring(1),e)}:S[t]?r.length>1?{type:S[t],data:r.substring(1)}:{type:S[t]}:O},Ye=(r,e)=>{if(Ke){let t=ke(r);return Ee(t,e)}else return{base64:!0,data:r}},Ee=(r,e)=>{switch(e){case"blob":return r instanceof Blob?r:new Blob([r]);case"arraybuffer":default:return r instanceof ArrayBuffer?r:r.buffer}};var ve="",xe=(r,e)=>{let t=r.length,s=new Array(t),i=0;r.forEach((n,o)=>{B(n,!1,c=>{s[o]=c,++i===t&&e(s.join(ve))})})},Te=(r,e)=>{let t=r.split(ve),s=[];for(let i=0;i<t.length;i++){let n=L(t[i],e);if(s.push(n),n.type==="error")break}return s};function Ae(){return new TransformStream({transform(r,e){be(r,t=>{let s=t.length,i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);let n=new DataView(i.buffer);n.setUint8(0,126),n.setUint16(1,s)}else{i=new Uint8Array(9);let n=new DataView(i.buffer);n.setUint8(0,127),n.setBigUint64(1,BigInt(s))}r.data&&typeof r.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}var Q;function U(r){return r.reduce((e,t)=>e+t.length,0)}function V(r,e){if(r[0].length===e)return r.shift();let t=new Uint8Array(e),s=0;for(let i=0;i<e;i++)t[i]=r[0][s++],s===r[0].length&&(r.shift(),s=0);return r.length&&s<r[0].length&&(r[0]=r[0].slice(s)),t}function Re(r,e){Q||(Q=new TextDecoder);let t=[],s=0,i=-1,n=!1;return new TransformStream({transform(o,c){for(t.push(o);;){if(s===0){if(U(t)<1)break;let a=V(t,1);n=(a[0]&128)===128,i=a[0]&127,i<126?s=3:i===126?s=1:s=2}else if(s===1){if(U(t)<2)break;let a=V(t,2);i=new DataView(a.buffer,a.byteOffset,a.length).getUint16(0),s=3}else if(s===2){if(U(t)<8)break;let a=V(t,8),m=new DataView(a.buffer,a.byteOffset,a.length),p=m.getUint32(0);if(p>Math.pow(2,21)-1){c.enqueue(O);break}i=p*Math.pow(2,32)+m.getUint32(4),s=3}else{if(U(t)<i)break;let a=V(t,i);c.enqueue(L(n?a:Q.decode(a),e)),s=0}if(i===0||i>r){c.enqueue(O);break}}}})}var j=4;function f(r){if(r)return Je(r)}function Je(r){for(var e in f.prototype)r[e]=f.prototype[e];return r}f.prototype.on=f.prototype.addEventListener=function(r,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(e),this};f.prototype.once=function(r,e){function t(){this.off(r,t),e.apply(this,arguments)}return t.fn=e,this.on(r,t),this};f.prototype.off=f.prototype.removeListener=f.prototype.removeAllListeners=f.prototype.removeEventListener=function(r,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+r];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var s,i=0;i<t.length;i++)if(s=t[i],s===e||s.fn===e){t.splice(i,1);break}return t.length===0&&delete this._callbacks["$"+r],this};f.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+r],s=1;s<arguments.length;s++)e[s-1]=arguments[s];if(t){t=t.slice(0);for(var s=0,i=t.length;s<i;++s)t[s].apply(this,e)}return this};f.prototype.emitReserved=f.prototype.emit;f.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]};f.prototype.hasListeners=function(r){return!!this.listeners(r).length};var y=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),u=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Ce="arraybuffer";function M(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}var ze=u.setTimeout,Xe=u.clearTimeout;function g(r,e){e.useNativeTimers?(r.setTimeoutFn=ze.bind(u),r.clearTimeoutFn=Xe.bind(u)):(r.setTimeoutFn=u.setTimeout.bind(u),r.clearTimeoutFn=u.clearTimeout.bind(u))}var $e=1.33;function Se(r){return typeof r=="string"?Qe(r):Math.ceil((r.byteLength||r.size)*$e)}function Qe(r){let e=0,t=0;for(let s=0,i=r.length;s<i;s++)e=r.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function H(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Oe(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function Be(r){let e={},t=r.split("&");for(let s=0,i=t.length;s<i;s++){let n=t[s].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return e}var W=class extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}},_=class extends f{constructor(e){super(),this.writable=!1,g(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new W(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=L(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let t=Oe(e);return t.length?"?"+t:""}};var P=class extends _{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Te(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,xe(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=H()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}};var Ne=!1;try{Ne=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Le=Ne;function je(){}var G=class extends P{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){let s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,n)=>{this.onError("xhr post error",i,n)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}},K=(()=>{class r extends f{constructor(t,s,i){super(),this.createRequest=t,g(this,i),this._opts=i,this._method=i.method||"GET",this._uri=s,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var t;let s=M(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this._opts.xd;let i=this._xhr=this.createRequest(s);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&i.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var n;i.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},0);return}typeof document<"u"&&(this._index=r.requestsCount++,r.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=je,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete r.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}return r.requestsCount=0,r.requests={},r})();if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Pe);else if(typeof addEventListener=="function"){let r="onpagehide"in u?"pagehide":"unload";addEventListener(r,Pe,!1)}}function Pe(){for(let r in K.requests)K.requests.hasOwnProperty(r)&&K.requests[r].abort()}var Ge=function(){let r=qe({xdomain:!1});return r&&r.responseType!==null}(),w=class extends G{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=Ge&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new K(qe,this.uri(),e)}};function qe(r){let e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Le))return new XMLHttpRequest}catch{}if(!e)try{return new u[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var De=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",ee=class extends _{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,s=De?{}:M(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let s=e[t],i=t===e.length-1;B(s,this.supportsBinary,n=>{try{this.doWrite(s,n)}catch{}i&&y(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=H()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},Z=u.WebSocket||u.MozWebSocket,k=class extends ee{createSocket(e,t,s){return De?new Z(e,t,s):t?new Z(e,t):new Z(e)}doWrite(e,t){this.ws.send(t)}};var v=class extends _{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=Re(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=Ae();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();let n=()=>{s.read().then(({done:c,value:a})=>{c||(this.onPacket(a),n())}).catch(c=>{})};n();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&y(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var te={websocket:k,webtransport:v,polling:w};var Ze=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,et=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function x(r){if(r.length>8e3)throw"URI too long";let e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=Ze.exec(r||""),n={},o=14;for(;o--;)n[et[o]]=i[o]||"";return t!=-1&&s!=-1&&(n.source=e,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=tt(n,n.path),n.queryKey=st(n,n.query),n}function tt(r,e){let t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function st(r,e){let t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,n){i&&(t[i]=n)}),t}var se=typeof addEventListener=="function"&&typeof removeEventListener=="function",Y=[];se&&addEventListener("offline",()=>{Y.forEach(r=>r())},!1);var J=(()=>{class r extends f{constructor(t,s){if(super(),this.binaryType=Ce,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(s=t,t=null),t){let i=x(t);s.hostname=i.host,s.secure=i.protocol==="https"||i.protocol==="wss",s.port=i.port,i.query&&(s.query=i.query)}else s.host&&(s.hostname=x(s.host).host);g(this,s),this.secure=s.secure!=null?s.secure:typeof location<"u"&&location.protocol==="https:",s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=s.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},s.transports.forEach(i=>{let n=i.prototype.name;this.transports.push(n),this._transportsByName[n]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Be(this.opts.query)),se&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Y.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let s=Object.assign({},this.opts.query);s.EIO=j,s.transport=t,this.id&&(s.sid=this.id);let i=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&r.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let s=this.createTransport(t);s.open(),this.setTransport(s)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",s=>this._onClose("transport close",s))}onOpen(){this.readyState="open",r.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let s=new Error("server error");s.code=t.data,this._onError(s);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let s=1;for(let i=0;i<this.writeBuffer.length;i++){let n=this.writeBuffer[i].data;if(n&&(s+=Se(n)),i>0&&s>this._maxPayload)return this.writeBuffer.slice(0,i);s+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,y(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,s,i){return this._sendPacket("message",t,s,i),this}send(t,s,i){return this._sendPacket("message",t,s,i),this}_sendPacket(t,s,i,n){if(typeof s=="function"&&(n=s,s=void 0),typeof i=="function"&&(n=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;let o={type:t,data:s,options:i};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),t()},i=()=>{this.once("upgrade",s),this.once("upgradeError",s)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}_onError(t){if(r.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,s){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),se&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let i=Y.indexOf(this._offlineEventListener);i!==-1&&Y.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,s),this.writeBuffer=[],this._prevBufferLen=0}}}return r.protocol=j,r})(),z=class extends J{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;J.priorWebsocketSuccess=!1;let i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",b=>{if(!s)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;J.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(p(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let C=new Error("probe error");C.transport=t.name,this.emitReserved("upgradeError",C)}}))};function n(){s||(s=!0,p(),t.close(),t=null)}let o=b=>{let C=new Error("probe error: "+b);C.transport=t.name,n(),this.emitReserved("upgradeError",C)};function c(){o("transport closed")}function a(){o("socket closed")}function m(b){t&&b.name!==t.name&&n()}let p=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",c),this.off("close",a),this.off("upgrading",m)};t.once("open",i),t.once("error",o),t.once("close",c),this.once("close",a),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}},T=class extends z{constructor(e,t={}){let s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>te[i]).filter(i=>!!i)),super(e,s)}};var ds=T.protocol;function Fe(r,e="",t){let s=r;t=t||typeof location<"u"&&location,r==null&&(r=t.protocol+"//"+t.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=t.protocol+r:r=t.host+r),/^(https?|wss?):\/\//.test(r)||(typeof t<"u"?r=t.protocol+"//"+r:r="https://"+r),s=x(r)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";let n=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+n+":"+s.port+e,s.href=s.protocol+"://"+n+(t&&t.port===s.port?"":":"+s.port),s}var ae={};We(ae,{Decoder:()=>oe,Encoder:()=>ne,PacketType:()=>h,protocol:()=>He});var it=typeof ArrayBuffer=="function",nt=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r.buffer instanceof ArrayBuffer,Ie=Object.prototype.toString,ot=typeof Blob=="function"||typeof Blob<"u"&&Ie.call(Blob)==="[object BlobConstructor]",ct=typeof File=="function"||typeof File<"u"&&Ie.call(File)==="[object FileConstructor]";function D(r){return it&&(r instanceof ArrayBuffer||nt(r))||ot&&r instanceof Blob||ct&&r instanceof File}function q(r,e){if(!r||typeof r!="object")return!1;if(Array.isArray(r)){for(let t=0,s=r.length;t<s;t++)if(q(r[t]))return!0;return!1}if(D(r))return!0;if(r.toJSON&&typeof r.toJSON=="function"&&arguments.length===1)return q(r.toJSON(),!0);for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&q(r[t]))return!0;return!1}function Ue(r){let e=[],t=r.data,s=r;return s.data=re(t,e),s.attachments=e.length,{packet:s,buffers:e}}function re(r,e){if(!r)return r;if(D(r)){let t={_placeholder:!0,num:e.length};return e.push(r),t}else if(Array.isArray(r)){let t=new Array(r.length);for(let s=0;s<r.length;s++)t[s]=re(r[s],e);return t}else if(typeof r=="object"&&!(r instanceof Date)){let t={};for(let s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=re(r[s],e));return t}return r}function Ve(r,e){return r.data=ie(r.data,e),delete r.attachments,r}function ie(r,e){if(!r)return r;if(r&&r._placeholder===!0){if(typeof r.num=="number"&&r.num>=0&&r.num<e.length)return e[r.num];throw new Error("illegal attachments")}else if(Array.isArray(r))for(let t=0;t<r.length;t++)r[t]=ie(r[t],e);else if(typeof r=="object")for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(r[t]=ie(r[t],e));return r}var at=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],He=5,h=function(r){return r[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK",r}(h||{}),ne=class{constructor(e){this.replacer=e}encode(e){return(e.type===h.EVENT||e.type===h.ACK)&&q(e)?this.encodeAsBinary({type:e.type===h.EVENT?h.BINARY_EVENT:h.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===h.BINARY_EVENT||e.type===h.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=Ue(e),s=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(s),i}};function Me(r){return Object.prototype.toString.call(r)==="[object Object]"}var oe=class r extends f{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);let s=t.type===h.BINARY_EVENT;s||t.type===h.BINARY_ACK?(t.type=s?h.EVENT:h.ACK,this.reconstructor=new ce(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(D(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0,s={type:Number(e.charAt(0))};if(h[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===h.BINARY_EVENT||s.type===h.BINARY_ACK){let n=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);let o=e.substring(n,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");s.attachments=Number(o)}if(e.charAt(t+1)==="/"){let n=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););s.nsp=e.substring(n,t)}else s.nsp="/";let i=e.charAt(t+1);if(i!==""&&Number(i)==i){let n=t+1;for(;++t;){let o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}s.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(r.isPayloadValid(s.type,n))s.data=n;else throw new Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case h.CONNECT:return Me(t);case h.DISCONNECT:return t===void 0;case h.CONNECT_ERROR:return typeof t=="string"||Me(t);case h.EVENT:case h.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&at.indexOf(t[0])===-1);case h.ACK:case h.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},ce=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=Ve(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function l(r,e,t){return r.on(e,t),function(){r.off(e,t)}}var ht=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),A=class extends f{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[l(e,"open",this.onopen.bind(this)),l(e,"packet",this.onpacket.bind(this)),l(e,"error",this.onerror.bind(this)),l(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var s,i,n;if(ht.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let o={type:h.EVENT,data:t};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let p=this.ids++,b=t.pop();this._registerAckCallback(p,b),o.id=p}let c=(i=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||i===void 0?void 0:i.writable,a=this.connected&&!(!((n=this.io.engine)===null||n===void 0)&&n._hasPingExpired());return this.flags.volatile&&!c||(a?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var s;let i=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(i===void 0){this.acks[e]=t;return}let n=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===e&&this.sendBuffer.splice(c,1);t.call(this,new Error("operation has timed out"))},i),o=(...c)=>{this.io.clearTimeoutFn(n),t.apply(this,c)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((s,i)=>{let n=(o,c)=>o?i(o):s(c);n.withError=!0,t.push(n),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...n)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...n)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:h.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){let s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case h.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case h.EVENT:case h.BINARY_EVENT:this.onevent(e);break;case h.ACK:case h.BINARY_ACK:this.onack(e);break;case h.DISCONNECT:this.ondisconnect();break;case h.CONNECT_ERROR:this.destroy();let s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,s=!1;return function(...i){s||(s=!0,t.packet({type:h.ACK,id:e,data:i}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:h.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let s of t)s.apply(this,e.data)}}};function E(r){r=r||{},this.ms=r.min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}E.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*r);r=(Math.floor(e*10)&1)==0?r-t:r+t}return Math.min(r,this.max)|0};E.prototype.reset=function(){this.attempts=0};E.prototype.setMin=function(r){this.ms=r};E.prototype.setMax=function(r){this.max=r};E.prototype.setJitter=function(r){this.jitter=r};var R=class extends f{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,g(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new E({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let i=t.parser||ae;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new T(this.uri,this.opts);let t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;let i=l(t,"open",function(){s.onopen(),e&&e()}),n=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),e?e(c):this.maybeReconnectOnOpen()},o=l(t,"error",n);if(this._timeout!==!1){let c=this._timeout,a=this.setTimeoutFn(()=>{i(),n(new Error("timeout")),t.close()},c);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(l(e,"ping",this.onping.bind(this)),l(e,"data",this.ondata.bind(this)),l(e,"error",this.onerror.bind(this)),l(e,"close",this.onclose.bind(this)),l(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){y(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new A(this,e,t),this.nsps[e]=s),s}_destroy(e){let t=Object.keys(this.nsps);for(let s of t)if(this.nsps[s].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let s=0;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var F={};function I(r,e){typeof r=="object"&&(e=r,r=void 0),e=e||{};let t=Fe(r,e.path||"/socket.io"),s=t.source,i=t.id,n=t.path,o=F[i]&&n in F[i].nsps,c=e.forceNew||e["force new connection"]||e.multiplex===!1||o,a;return c?a=new R(s,e):(F[i]||(F[i]=new R(s,e)),a=F[i]),t.query&&!e.query&&(e.query=t.queryKey),a.socket(t.path,e)}Object.assign(I,{Manager:R,Socket:A,io:I,connect:I});var cr=(()=>{class r{$auth=ue(pe);namespaceConnectionCache={};constructor(){}connectToNamespace(t){if(this.namespaceConnectionCache[t]){let s=this.namespaceConnectionCache[t];return s.connected=new X,setTimeout(()=>{s.socket.connected&&s.connected.next(void 0)}),s.socket.on("connect",()=>{s.connected.next(void 0)}),s.end=()=>{s.socket.emit("end"),s.socket.removeAllListeners(),s.connected.complete()},this.namespaceConnectionCache[t]}else{let s=this.establishConnectionToNamespace(t);return s.connected=new X,s.socket.on("connect",()=>{s.connected.next(void 0)}),s.end=()=>{s.socket.emit("end"),s.socket.removeAllListeners(),s.connected.complete()},this.namespaceConnectionCache[t]=s,s}}getExistingNamespace(t){return this.namespaceConnectionCache[t]}establishConnectionToNamespace(t){let s=I(`${le.api.socket}/${t}`,{query:{token:this.$auth.token}});return{socket:s,request:(n,o)=>new he(c=>{s.emit(n,o,a=>{typeof a=="object"&&a.error?c.error(a):c.next(a),c.complete()})})}}static \u0275fac=function(s){return new(s||r)};static \u0275prov=fe({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{cr as a};
@@ -1 +1 @@
1
- import{g as i}from"./chunk-5CDZD4QO.js";import"./chunk-KD5YLOUW.js";import{gd as l,ha as t,ub as e}from"./chunk-V7KKBEKT.js";var d=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"docker",loadChildren:()=>import("./chunk-IRTFX6CU.js").then(o=>o.DockerModule)},{path:"linux",loadChildren:()=>import("./chunk-YJ3F3IFM.js").then(o=>o.LinuxModule)},{path:"terminal",loadChildren:()=>import("./chunk-KAI32HWM.js").then(o=>o.TerminalModule)}],n=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[i.forChild(d),i]})}return o})();var s=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[l,n]})}return o})();export{s as PlatformToolsModule};
1
+ import{g as i}from"./chunk-2IW5LNPB.js";import"./chunk-G75CPMPQ.js";import{gd as l,ha as t,ub as e}from"./chunk-6JZDPQRU.js";var d=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"docker",loadChildren:()=>import("./chunk-LS2FIX2L.js").then(o=>o.DockerModule)},{path:"linux",loadChildren:()=>import("./chunk-LSEE2EJ5.js").then(o=>o.LinuxModule)},{path:"terminal",loadChildren:()=>import("./chunk-UXGMJXWE.js").then(o=>o.TerminalModule)}],n=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[i.forChild(d),i]})}return o})();var s=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[l,n]})}return o})();export{s as PlatformToolsModule};
@@ -1,4 +1,4 @@
1
- import{a as St,b as jC}from"./chunk-M5LTG544.js";import{a as Rs}from"./chunk-W6CTMNAG.js";import{a as Di,b as si}from"./chunk-F2WFV5GW.js";import{a as Ws}from"./chunk-W7CPCAPT.js";import{a as Ks}from"./chunk-KIPITWHI.js";import{a as Gs}from"./chunk-5BZGZWPU.js";import{a as on}from"./chunk-QGC43YCF.js";import{a as zs,b as Us}from"./chunk-NSDMDB7X.js";import{a as no}from"./chunk-GZMSZZVX.js";import{a as Hs}from"./chunk-PVRKV6LM.js";import{a as sf,b as lf,c as df,d as cf,e as pf,f as mf,g as ri,m as Ce,n as Ue,o as oi}from"./chunk-MS2EQS6S.js";import{a as Ps,b as ui,c as ii,e as ot,f as Os,h as Ms,i as js,k as Ns,l as Du,m as qs,o as ni,r as fi,s as Ou,t as Mu,x as Vs,y as At,z as io}from"./chunk-XCZREHWX.js";import{a as ai}from"./chunk-X2NTV4U7.js";import{d as qt}from"./chunk-5CDZD4QO.js";import{a as Ls}from"./chunk-5NJQH2A3.js";import{b as $e}from"./chunk-MJUBX7V2.js";import{h as pe,j as su,k as se}from"./chunk-NCJAIFQO.js";import{e as Ts}from"./chunk-KD5YLOUW.js";import{a as ce,b as he}from"./chunk-P5BH5BCJ.js";import{$c as nt,Ac as _,Bc as B,Cc as qe,D as hs,Da as _s,Fa as it,Ga as R,Gc as ks,Ha as Yu,Ia as of,Jb as G,Kb as h,Lb as wt,M as ff,Mb as ei,Nb as Z,Ob as xs,Pb as x,Rb as He,Sb as We,Tb as Ge,Ub as d,Vb as c,Wb as I,Xb as ws,Yb as Is,Z as to,Zc as ht,_b as z,_c as Pu,a as Q,aa as rn,b as Ee,bc as P,cb as oe,cc as C,cd as $s,e as F,fa as gs,fb as ys,g as Oe,ga as xt,gb as s,gd as Df,h as W,ha as rf,jc as ru,k as ps,kc as ou,la as Es,lb as vs,ma as w,mb as uo,mc as b,n as pt,nc as L,ob as $u,oc as q,pb as fu,pc as Wt,q as ms,qc as As,rc as Be,sc as xe,ta as Xu,tb as J,tc as we,ua as j,ub as af,uc as Ss,v as Fs,va as N,vb as Tu,vc as Ne,w as ne,wb as Bs,wc as It,x as Cs,xa as bs,xc as au,yc as Gt,zb as k,zc as ti}from"./chunk-V7KKBEKT.js";var Zs=F((dV,Js)=>{function qC(){this.__data__=[],this.size=0}Js.exports=qC});var Ff=F((cV,Qs)=>{function VC(e,u){return e===u||e!==e&&u!==u}Qs.exports=VC});var an=F((pV,Xs)=>{var RC=Ff();function LC(e,u){for(var t=e.length;t--;)if(RC(e[t][0],u))return t;return-1}Xs.exports=LC});var e0=F((mV,Ys)=>{var zC=an(),UC=Array.prototype,HC=UC.splice;function WC(e){var u=this.__data__,t=zC(u,e);if(t<0)return!1;var i=u.length-1;return t==i?u.pop():HC.call(u,t,1),--this.size,!0}Ys.exports=WC});var u0=F((FV,t0)=>{var GC=an();function KC(e){var u=this.__data__,t=GC(u,e);return t<0?void 0:u[t][1]}t0.exports=KC});var n0=F((CV,i0)=>{var JC=an();function ZC(e){return JC(this.__data__,e)>-1}i0.exports=ZC});var r0=F((hV,f0)=>{var QC=an();function XC(e,u){var t=this.__data__,i=QC(t,e);return i<0?(++this.size,t.push([e,u])):t[i][1]=u,this}f0.exports=XC});var Dn=F((gV,o0)=>{var YC=Zs(),e4=e0(),t4=u0(),u4=n0(),i4=r0();function di(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}di.prototype.clear=YC;di.prototype.delete=e4;di.prototype.get=t4;di.prototype.has=u4;di.prototype.set=i4;o0.exports=di});var D0=F((EV,a0)=>{var n4=Dn();function f4(){this.__data__=new n4,this.size=0}a0.exports=f4});var l0=F((bV,s0)=>{function r4(e){var u=this.__data__,t=u.delete(e);return this.size=u.size,t}s0.exports=r4});var c0=F((_V,d0)=>{function o4(e){return this.__data__.get(e)}d0.exports=o4});var m0=F((yV,p0)=>{function a4(e){return this.__data__.has(e)}p0.exports=a4});var fo=F((vV,F0)=>{var D4=typeof global=="object"&&global&&global.Object===Object&&global;F0.exports=D4});var kt=F((BV,C0)=>{var s4=fo(),l4=typeof self=="object"&&self&&self.Object===Object&&self,d4=s4||l4||Function("return this")();C0.exports=d4});var ci=F((xV,h0)=>{var c4=kt(),p4=c4.Symbol;h0.exports=p4});var _0=F((wV,b0)=>{var g0=ci(),E0=Object.prototype,m4=E0.hasOwnProperty,F4=E0.toString,sn=g0?g0.toStringTag:void 0;function C4(e){var u=m4.call(e,sn),t=e[sn];try{e[sn]=void 0;var i=!0}catch{}var n=F4.call(e);return i&&(u?e[sn]=t:delete e[sn]),n}b0.exports=C4});var v0=F((IV,y0)=>{var h4=Object.prototype,g4=h4.toString;function E4(e){return g4.call(e)}y0.exports=E4});var ju=F((AV,w0)=>{var B0=ci(),b4=_0(),_4=v0(),y4="[object Null]",v4="[object Undefined]",x0=B0?B0.toStringTag:void 0;function B4(e){return e==null?e===void 0?v4:y4:x0&&x0 in Object(e)?b4(e):_4(e)}w0.exports=B4});var Nu=F((SV,I0)=>{function x4(e){var u=typeof e;return e!=null&&(u=="object"||u=="function")}I0.exports=x4});var ro=F((kV,A0)=>{var w4=ju(),I4=Nu(),A4="[object AsyncFunction]",S4="[object Function]",k4="[object GeneratorFunction]",$4="[object Proxy]";function T4(e){if(!I4(e))return!1;var u=w4(e);return u==S4||u==k4||u==A4||u==$4}A0.exports=T4});var k0=F(($V,S0)=>{var P4=kt(),O4=P4["__core-js_shared__"];S0.exports=O4});var P0=F((TV,T0)=>{var oo=k0(),$0=function(){var e=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function M4(e){return!!$0&&$0 in e}T0.exports=M4});var ao=F((PV,O0)=>{var j4=Function.prototype,N4=j4.toString;function q4(e){if(e!=null){try{return N4.call(e)}catch{}try{return e+""}catch{}}return""}O0.exports=q4});var j0=F((OV,M0)=>{var V4=ro(),R4=P0(),L4=Nu(),z4=ao(),U4=/[\\^$.*+?()[\]{}|]/g,H4=/^\[object .+?Constructor\]$/,W4=Function.prototype,G4=Object.prototype,K4=W4.toString,J4=G4.hasOwnProperty,Z4=RegExp("^"+K4.call(J4).replace(U4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Q4(e){if(!L4(e)||R4(e))return!1;var u=V4(e)?Z4:H4;return u.test(z4(e))}M0.exports=Q4});var q0=F((MV,N0)=>{function X4(e,u){return e==null?void 0:e[u]}N0.exports=X4});var lu=F((jV,V0)=>{var Y4=j0(),e5=q0();function t5(e,u){var t=e5(e,u);return Y4(t)?t:void 0}V0.exports=t5});var Cf=F((NV,R0)=>{var u5=lu(),i5=kt(),n5=u5(i5,"Map");R0.exports=n5});var ln=F((qV,L0)=>{var f5=lu(),r5=f5(Object,"create");L0.exports=r5});var H0=F((VV,U0)=>{var z0=ln();function o5(){this.__data__=z0?z0(null):{},this.size=0}U0.exports=o5});var G0=F((RV,W0)=>{function a5(e){var u=this.has(e)&&delete this.__data__[e];return this.size-=u?1:0,u}W0.exports=a5});var J0=F((LV,K0)=>{var D5=ln(),s5="__lodash_hash_undefined__",l5=Object.prototype,d5=l5.hasOwnProperty;function c5(e){var u=this.__data__;if(D5){var t=u[e];return t===s5?void 0:t}return d5.call(u,e)?u[e]:void 0}K0.exports=c5});var Q0=F((zV,Z0)=>{var p5=ln(),m5=Object.prototype,F5=m5.hasOwnProperty;function C5(e){var u=this.__data__;return p5?u[e]!==void 0:F5.call(u,e)}Z0.exports=C5});var Y0=F((UV,X0)=>{var h5=ln(),g5="__lodash_hash_undefined__";function E5(e,u){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=h5&&u===void 0?g5:u,this}X0.exports=E5});var t1=F((HV,e1)=>{var b5=H0(),_5=G0(),y5=J0(),v5=Q0(),B5=Y0();function pi(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}pi.prototype.clear=b5;pi.prototype.delete=_5;pi.prototype.get=y5;pi.prototype.has=v5;pi.prototype.set=B5;e1.exports=pi});var n1=F((WV,i1)=>{var u1=t1(),x5=Dn(),w5=Cf();function I5(){this.size=0,this.__data__={hash:new u1,map:new(w5||x5),string:new u1}}i1.exports=I5});var r1=F((GV,f1)=>{function A5(e){var u=typeof e;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?e!=="__proto__":e===null}f1.exports=A5});var dn=F((KV,o1)=>{var S5=r1();function k5(e,u){var t=e.__data__;return S5(u)?t[typeof u=="string"?"string":"hash"]:t.map}o1.exports=k5});var D1=F((JV,a1)=>{var $5=dn();function T5(e){var u=$5(this,e).delete(e);return this.size-=u?1:0,u}a1.exports=T5});var l1=F((ZV,s1)=>{var P5=dn();function O5(e){return P5(this,e).get(e)}s1.exports=O5});var c1=F((QV,d1)=>{var M5=dn();function j5(e){return M5(this,e).has(e)}d1.exports=j5});var m1=F((XV,p1)=>{var N5=dn();function q5(e,u){var t=N5(this,e),i=t.size;return t.set(e,u),this.size+=t.size==i?0:1,this}p1.exports=q5});var hf=F((YV,F1)=>{var V5=n1(),R5=D1(),L5=l1(),z5=c1(),U5=m1();function mi(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}mi.prototype.clear=V5;mi.prototype.delete=R5;mi.prototype.get=L5;mi.prototype.has=z5;mi.prototype.set=U5;F1.exports=mi});var h1=F((eR,C1)=>{var H5=Dn(),W5=Cf(),G5=hf(),K5=200;function J5(e,u){var t=this.__data__;if(t instanceof H5){var i=t.__data__;if(!W5||i.length<K5-1)return i.push([e,u]),this.size=++t.size,this;t=this.__data__=new G5(i)}return t.set(e,u),this.size=t.size,this}C1.exports=J5});var gf=F((tR,g1)=>{var Z5=Dn(),Q5=D0(),X5=l0(),Y5=c0(),eh=m0(),th=h1();function Fi(e){var u=this.__data__=new Z5(e);this.size=u.size}Fi.prototype.clear=Q5;Fi.prototype.delete=X5;Fi.prototype.get=Y5;Fi.prototype.has=eh;Fi.prototype.set=th;g1.exports=Fi});var b1=F((uR,E1)=>{function uh(e,u){for(var t=-1,i=e==null?0:e.length;++t<i&&u(e[t],t,e)!==!1;);return e}E1.exports=uh});var y1=F((iR,_1)=>{var ih=lu(),nh=function(){try{var e=ih(Object,"defineProperty");return e({},"",{}),e}catch{}}();_1.exports=nh});var Do=F((nR,B1)=>{var v1=y1();function fh(e,u,t){u=="__proto__"&&v1?v1(e,u,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[u]=t}B1.exports=fh});var so=F((fR,x1)=>{var rh=Do(),oh=Ff(),ah=Object.prototype,Dh=ah.hasOwnProperty;function sh(e,u,t){var i=e[u];(!(Dh.call(e,u)&&oh(i,t))||t===void 0&&!(u in e))&&rh(e,u,t)}x1.exports=sh});var cn=F((rR,w1)=>{var lh=so(),dh=Do();function ch(e,u,t,i){var n=!t;t||(t={});for(var f=-1,r=u.length;++f<r;){var o=u[f],a=i?i(t[o],e[o],o,t,e):void 0;a===void 0&&(a=e[o]),n?dh(t,o,a):lh(t,o,a)}return t}w1.exports=ch});var A1=F((oR,I1)=>{function ph(e,u){for(var t=-1,i=Array(e);++t<e;)i[t]=u(t);return i}I1.exports=ph});var Kt=F((aR,S1)=>{function mh(e){return e!=null&&typeof e=="object"}S1.exports=mh});var $1=F((DR,k1)=>{var Fh=ju(),Ch=Kt(),hh="[object Arguments]";function gh(e){return Ch(e)&&Fh(e)==hh}k1.exports=gh});var lo=F((sR,O1)=>{var T1=$1(),Eh=Kt(),P1=Object.prototype,bh=P1.hasOwnProperty,_h=P1.propertyIsEnumerable,yh=T1(function(){return arguments}())?T1:function(e){return Eh(e)&&bh.call(e,"callee")&&!_h.call(e,"callee")};O1.exports=yh});var mt=F((lR,M1)=>{var vh=Array.isArray;M1.exports=vh});var N1=F((dR,j1)=>{function Bh(){return!1}j1.exports=Bh});var Ef=F((pn,Ci)=>{var xh=kt(),wh=N1(),R1=typeof pn=="object"&&pn&&!pn.nodeType&&pn,q1=R1&&typeof Ci=="object"&&Ci&&!Ci.nodeType&&Ci,Ih=q1&&q1.exports===R1,V1=Ih?xh.Buffer:void 0,Ah=V1?V1.isBuffer:void 0,Sh=Ah||wh;Ci.exports=Sh});var co=F((cR,L1)=>{var kh=9007199254740991,$h=/^(?:0|[1-9]\d*)$/;function Th(e,u){var t=typeof e;return u=u==null?kh:u,!!u&&(t=="number"||t!="symbol"&&$h.test(e))&&e>-1&&e%1==0&&e<u}L1.exports=Th});var bf=F((pR,z1)=>{var Ph=9007199254740991;function Oh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ph}z1.exports=Oh});var H1=F((mR,U1)=>{var Mh=ju(),jh=bf(),Nh=Kt(),qh="[object Arguments]",Vh="[object Array]",Rh="[object Boolean]",Lh="[object Date]",zh="[object Error]",Uh="[object Function]",Hh="[object Map]",Wh="[object Number]",Gh="[object Object]",Kh="[object RegExp]",Jh="[object Set]",Zh="[object String]",Qh="[object WeakMap]",Xh="[object ArrayBuffer]",Yh="[object DataView]",eg="[object Float32Array]",tg="[object Float64Array]",ug="[object Int8Array]",ig="[object Int16Array]",ng="[object Int32Array]",fg="[object Uint8Array]",rg="[object Uint8ClampedArray]",og="[object Uint16Array]",ag="[object Uint32Array]",Ie={};Ie[eg]=Ie[tg]=Ie[ug]=Ie[ig]=Ie[ng]=Ie[fg]=Ie[rg]=Ie[og]=Ie[ag]=!0;Ie[qh]=Ie[Vh]=Ie[Xh]=Ie[Rh]=Ie[Yh]=Ie[Lh]=Ie[zh]=Ie[Uh]=Ie[Hh]=Ie[Wh]=Ie[Gh]=Ie[Kh]=Ie[Jh]=Ie[Zh]=Ie[Qh]=!1;function Dg(e){return Nh(e)&&jh(e.length)&&!!Ie[Mh(e)]}U1.exports=Dg});var _f=F((FR,W1)=>{function sg(e){return function(u){return e(u)}}W1.exports=sg});var yf=F((mn,hi)=>{var lg=fo(),G1=typeof mn=="object"&&mn&&!mn.nodeType&&mn,Fn=G1&&typeof hi=="object"&&hi&&!hi.nodeType&&hi,dg=Fn&&Fn.exports===G1,po=dg&&lg.process,cg=function(){try{var e=Fn&&Fn.require&&Fn.require("util").types;return e||po&&po.binding&&po.binding("util")}catch{}}();hi.exports=cg});var mo=F((CR,Z1)=>{var pg=H1(),mg=_f(),K1=yf(),J1=K1&&K1.isTypedArray,Fg=J1?mg(J1):pg;Z1.exports=Fg});var Fo=F((hR,Q1)=>{var Cg=A1(),hg=lo(),gg=mt(),Eg=Ef(),bg=co(),_g=mo(),yg=Object.prototype,vg=yg.hasOwnProperty;function Bg(e,u){var t=gg(e),i=!t&&hg(e),n=!t&&!i&&Eg(e),f=!t&&!i&&!n&&_g(e),r=t||i||n||f,o=r?Cg(e.length,String):[],a=o.length;for(var D in e)(u||vg.call(e,D))&&!(r&&(D=="length"||n&&(D=="offset"||D=="parent")||f&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||bg(D,a)))&&o.push(D);return o}Q1.exports=Bg});var vf=F((gR,X1)=>{var xg=Object.prototype;function wg(e){var u=e&&e.constructor,t=typeof u=="function"&&u.prototype||xg;return e===t}X1.exports=wg});var Co=F((ER,Y1)=>{function Ig(e,u){return function(t){return e(u(t))}}Y1.exports=Ig});var tl=F((bR,el)=>{var Ag=Co(),Sg=Ag(Object.keys,Object);el.exports=Sg});var il=F((_R,ul)=>{var kg=vf(),$g=tl(),Tg=Object.prototype,Pg=Tg.hasOwnProperty;function Og(e){if(!kg(e))return $g(e);var u=[];for(var t in Object(e))Pg.call(e,t)&&t!="constructor"&&u.push(t);return u}ul.exports=Og});var Cn=F((yR,nl)=>{var Mg=ro(),jg=bf();function Ng(e){return e!=null&&jg(e.length)&&!Mg(e)}nl.exports=Ng});var gi=F((vR,fl)=>{var qg=Fo(),Vg=il(),Rg=Cn();function Lg(e){return Rg(e)?qg(e):Vg(e)}fl.exports=Lg});var ol=F((BR,rl)=>{var zg=cn(),Ug=gi();function Hg(e,u){return e&&zg(u,Ug(u),e)}rl.exports=Hg});var Dl=F((xR,al)=>{function Wg(e){var u=[];if(e!=null)for(var t in Object(e))u.push(t);return u}al.exports=Wg});var ll=F((wR,sl)=>{var Gg=Nu(),Kg=vf(),Jg=Dl(),Zg=Object.prototype,Qg=Zg.hasOwnProperty;function Xg(e){if(!Gg(e))return Jg(e);var u=Kg(e),t=[];for(var i in e)i=="constructor"&&(u||!Qg.call(e,i))||t.push(i);return t}sl.exports=Xg});var Bf=F((IR,dl)=>{var Yg=Fo(),e6=ll(),t6=Cn();function u6(e){return t6(e)?Yg(e,!0):e6(e)}dl.exports=u6});var pl=F((AR,cl)=>{var i6=cn(),n6=Bf();function f6(e,u){return e&&i6(u,n6(u),e)}cl.exports=f6});var gl=F((hn,Ei)=>{var r6=kt(),hl=typeof hn=="object"&&hn&&!hn.nodeType&&hn,ml=hl&&typeof Ei=="object"&&Ei&&!Ei.nodeType&&Ei,o6=ml&&ml.exports===hl,Fl=o6?r6.Buffer:void 0,Cl=Fl?Fl.allocUnsafe:void 0;function a6(e,u){if(u)return e.slice();var t=e.length,i=Cl?Cl(t):new e.constructor(t);return e.copy(i),i}Ei.exports=a6});var bl=F((SR,El)=>{function D6(e,u){var t=-1,i=e.length;for(u||(u=Array(i));++t<i;)u[t]=e[t];return u}El.exports=D6});var ho=F((kR,_l)=>{function s6(e,u){for(var t=-1,i=e==null?0:e.length,n=0,f=[];++t<i;){var r=e[t];u(r,t,e)&&(f[n++]=r)}return f}_l.exports=s6});var go=F(($R,yl)=>{function l6(){return[]}yl.exports=l6});var xf=F((TR,Bl)=>{var d6=ho(),c6=go(),p6=Object.prototype,m6=p6.propertyIsEnumerable,vl=Object.getOwnPropertySymbols,F6=vl?function(e){return e==null?[]:(e=Object(e),d6(vl(e),function(u){return m6.call(e,u)}))}:c6;Bl.exports=F6});var wl=F((PR,xl)=>{var C6=cn(),h6=xf();function g6(e,u){return C6(e,h6(e),u)}xl.exports=g6});var Eo=F((OR,Il)=>{function E6(e,u){for(var t=-1,i=u.length,n=e.length;++t<i;)e[n+t]=u[t];return e}Il.exports=E6});var wf=F((MR,Al)=>{var b6=Co(),_6=b6(Object.getPrototypeOf,Object);Al.exports=_6});var bo=F((jR,Sl)=>{var y6=Eo(),v6=wf(),B6=xf(),x6=go(),w6=Object.getOwnPropertySymbols,I6=w6?function(e){for(var u=[];e;)y6(u,B6(e)),e=v6(e);return u}:x6;Sl.exports=I6});var $l=F((NR,kl)=>{var A6=cn(),S6=bo();function k6(e,u){return A6(e,S6(e),u)}kl.exports=k6});var _o=F((qR,Tl)=>{var $6=Eo(),T6=mt();function P6(e,u,t){var i=u(e);return T6(e)?i:$6(i,t(e))}Tl.exports=P6});var yo=F((VR,Pl)=>{var O6=_o(),M6=xf(),j6=gi();function N6(e){return O6(e,j6,M6)}Pl.exports=N6});var Ml=F((RR,Ol)=>{var q6=_o(),V6=bo(),R6=Bf();function L6(e){return q6(e,R6,V6)}Ol.exports=L6});var Nl=F((LR,jl)=>{var z6=lu(),U6=kt(),H6=z6(U6,"DataView");jl.exports=H6});var Vl=F((zR,ql)=>{var W6=lu(),G6=kt(),K6=W6(G6,"Promise");ql.exports=K6});var Ll=F((UR,Rl)=>{var J6=lu(),Z6=kt(),Q6=J6(Z6,"Set");Rl.exports=Q6});var Ul=F((HR,zl)=>{var X6=lu(),Y6=kt(),eE=X6(Y6,"WeakMap");zl.exports=eE});var gn=F((WR,Ql)=>{var vo=Nl(),Bo=Cf(),xo=Vl(),wo=Ll(),Io=Ul(),Zl=ju(),bi=ao(),Hl="[object Map]",tE="[object Object]",Wl="[object Promise]",Gl="[object Set]",Kl="[object WeakMap]",Jl="[object DataView]",uE=bi(vo),iE=bi(Bo),nE=bi(xo),fE=bi(wo),rE=bi(Io),qu=Zl;(vo&&qu(new vo(new ArrayBuffer(1)))!=Jl||Bo&&qu(new Bo)!=Hl||xo&&qu(xo.resolve())!=Wl||wo&&qu(new wo)!=Gl||Io&&qu(new Io)!=Kl)&&(qu=function(e){var u=Zl(e),t=u==tE?e.constructor:void 0,i=t?bi(t):"";if(i)switch(i){case uE:return Jl;case iE:return Hl;case nE:return Wl;case fE:return Gl;case rE:return Kl}return u});Ql.exports=qu});var Yl=F((GR,Xl)=>{var oE=Object.prototype,aE=oE.hasOwnProperty;function DE(e){var u=e.length,t=new e.constructor(u);return u&&typeof e[0]=="string"&&aE.call(e,"index")&&(t.index=e.index,t.input=e.input),t}Xl.exports=DE});var Ao=F((KR,ed)=>{var sE=kt(),lE=sE.Uint8Array;ed.exports=lE});var If=F((JR,ud)=>{var td=Ao();function dE(e){var u=new e.constructor(e.byteLength);return new td(u).set(new td(e)),u}ud.exports=dE});var nd=F((ZR,id)=>{var cE=If();function pE(e,u){var t=u?cE(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}id.exports=pE});var rd=F((QR,fd)=>{var mE=/\w*$/;function FE(e){var u=new e.constructor(e.source,mE.exec(e));return u.lastIndex=e.lastIndex,u}fd.exports=FE});var ld=F((XR,sd)=>{var od=ci(),ad=od?od.prototype:void 0,Dd=ad?ad.valueOf:void 0;function CE(e){return Dd?Object(Dd.call(e)):{}}sd.exports=CE});var cd=F((YR,dd)=>{var hE=If();function gE(e,u){var t=u?hE(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}dd.exports=gE});var md=F((eL,pd)=>{var EE=If(),bE=nd(),_E=rd(),yE=ld(),vE=cd(),BE="[object Boolean]",xE="[object Date]",wE="[object Map]",IE="[object Number]",AE="[object RegExp]",SE="[object Set]",kE="[object String]",$E="[object Symbol]",TE="[object ArrayBuffer]",PE="[object DataView]",OE="[object Float32Array]",ME="[object Float64Array]",jE="[object Int8Array]",NE="[object Int16Array]",qE="[object Int32Array]",VE="[object Uint8Array]",RE="[object Uint8ClampedArray]",LE="[object Uint16Array]",zE="[object Uint32Array]";function UE(e,u,t){var i=e.constructor;switch(u){case TE:return EE(e);case BE:case xE:return new i(+e);case PE:return bE(e,t);case OE:case ME:case jE:case NE:case qE:case VE:case RE:case LE:case zE:return vE(e,t);case wE:return new i;case IE:case kE:return new i(e);case AE:return _E(e);case SE:return new i;case $E:return yE(e)}}pd.exports=UE});var hd=F((tL,Cd)=>{var HE=Nu(),Fd=Object.create,WE=function(){function e(){}return function(u){if(!HE(u))return{};if(Fd)return Fd(u);e.prototype=u;var t=new e;return e.prototype=void 0,t}}();Cd.exports=WE});var Ed=F((uL,gd)=>{var GE=hd(),KE=wf(),JE=vf();function ZE(e){return typeof e.constructor=="function"&&!JE(e)?GE(KE(e)):{}}gd.exports=ZE});var _d=F((iL,bd)=>{var QE=gn(),XE=Kt(),YE="[object Map]";function eb(e){return XE(e)&&QE(e)==YE}bd.exports=eb});var xd=F((nL,Bd)=>{var tb=_d(),ub=_f(),yd=yf(),vd=yd&&yd.isMap,ib=vd?ub(vd):tb;Bd.exports=ib});var Id=F((fL,wd)=>{var nb=gn(),fb=Kt(),rb="[object Set]";function ob(e){return fb(e)&&nb(e)==rb}wd.exports=ob});var $d=F((rL,kd)=>{var ab=Id(),Db=_f(),Ad=yf(),Sd=Ad&&Ad.isSet,sb=Sd?Db(Sd):ab;kd.exports=sb});var jd=F((oL,Md)=>{var lb=gf(),db=b1(),cb=so(),pb=ol(),mb=pl(),Fb=gl(),Cb=bl(),hb=wl(),gb=$l(),Eb=yo(),bb=Ml(),_b=gn(),yb=Yl(),vb=md(),Bb=Ed(),xb=mt(),wb=Ef(),Ib=xd(),Ab=Nu(),Sb=$d(),kb=gi(),$b=Bf(),Tb=1,Pb=2,Ob=4,Td="[object Arguments]",Mb="[object Array]",jb="[object Boolean]",Nb="[object Date]",qb="[object Error]",Pd="[object Function]",Vb="[object GeneratorFunction]",Rb="[object Map]",Lb="[object Number]",Od="[object Object]",zb="[object RegExp]",Ub="[object Set]",Hb="[object String]",Wb="[object Symbol]",Gb="[object WeakMap]",Kb="[object ArrayBuffer]",Jb="[object DataView]",Zb="[object Float32Array]",Qb="[object Float64Array]",Xb="[object Int8Array]",Yb="[object Int16Array]",e_="[object Int32Array]",t_="[object Uint8Array]",u_="[object Uint8ClampedArray]",i_="[object Uint16Array]",n_="[object Uint32Array]",ye={};ye[Td]=ye[Mb]=ye[Kb]=ye[Jb]=ye[jb]=ye[Nb]=ye[Zb]=ye[Qb]=ye[Xb]=ye[Yb]=ye[e_]=ye[Rb]=ye[Lb]=ye[Od]=ye[zb]=ye[Ub]=ye[Hb]=ye[Wb]=ye[t_]=ye[u_]=ye[i_]=ye[n_]=!0;ye[qb]=ye[Pd]=ye[Gb]=!1;function Af(e,u,t,i,n,f){var r,o=u&Tb,a=u&Pb,D=u&Ob;if(t&&(r=n?t(e,i,n,f):t(e)),r!==void 0)return r;if(!Ab(e))return e;var l=xb(e);if(l){if(r=yb(e),!o)return Cb(e,r)}else{var p=_b(e),m=p==Pd||p==Vb;if(wb(e))return Fb(e,o);if(p==Od||p==Td||m&&!n){if(r=a||m?{}:Bb(e),!o)return a?gb(e,mb(r,e)):hb(e,pb(r,e))}else{if(!ye[p])return n?e:{};r=vb(e,p,o)}}f||(f=new lb);var E=f.get(e);if(E)return E;f.set(e,r),Sb(e)?e.forEach(function(v){r.add(Af(v,u,t,v,e,f))}):Ib(e)&&e.forEach(function(v,S){r.set(S,Af(v,u,t,S,e,f))});var g=D?a?bb:Eb:a?$b:kb,y=l?void 0:g(e);return db(y||e,function(v,S){y&&(S=v,v=e[S]),cb(r,S,Af(v,u,t,S,e,f))}),r}Md.exports=Af});var qd=F((aL,Nd)=>{var f_=jd(),r_=1,o_=4;function a_(e){return f_(e,r_|o_)}Nd.exports=a_});var Rd=F((DL,Vd)=>{var D_="__lodash_hash_undefined__";function s_(e){return this.__data__.set(e,D_),this}Vd.exports=s_});var zd=F((sL,Ld)=>{function l_(e){return this.__data__.has(e)}Ld.exports=l_});var Hd=F((lL,Ud)=>{var d_=hf(),c_=Rd(),p_=zd();function Sf(e){var u=-1,t=e==null?0:e.length;for(this.__data__=new d_;++u<t;)this.add(e[u])}Sf.prototype.add=Sf.prototype.push=c_;Sf.prototype.has=p_;Ud.exports=Sf});var Gd=F((dL,Wd)=>{function m_(e,u){for(var t=-1,i=e==null?0:e.length;++t<i;)if(u(e[t],t,e))return!0;return!1}Wd.exports=m_});var Jd=F((cL,Kd)=>{function F_(e,u){return e.has(u)}Kd.exports=F_});var So=F((pL,Zd)=>{var C_=Hd(),h_=Gd(),g_=Jd(),E_=1,b_=2;function __(e,u,t,i,n,f){var r=t&E_,o=e.length,a=u.length;if(o!=a&&!(r&&a>o))return!1;var D=f.get(e),l=f.get(u);if(D&&l)return D==u&&l==e;var p=-1,m=!0,E=t&b_?new C_:void 0;for(f.set(e,u),f.set(u,e);++p<o;){var g=e[p],y=u[p];if(i)var v=r?i(y,g,p,u,e,f):i(g,y,p,e,u,f);if(v!==void 0){if(v)continue;m=!1;break}if(E){if(!h_(u,function(S,O){if(!g_(E,O)&&(g===S||n(g,S,t,i,f)))return E.push(O)})){m=!1;break}}else if(!(g===y||n(g,y,t,i,f))){m=!1;break}}return f.delete(e),f.delete(u),m}Zd.exports=__});var Xd=F((mL,Qd)=>{function y_(e){var u=-1,t=Array(e.size);return e.forEach(function(i,n){t[++u]=[n,i]}),t}Qd.exports=y_});var e3=F((FL,Yd)=>{function v_(e){var u=-1,t=Array(e.size);return e.forEach(function(i){t[++u]=i}),t}Yd.exports=v_});var f3=F((CL,n3)=>{var t3=ci(),u3=Ao(),B_=Ff(),x_=So(),w_=Xd(),I_=e3(),A_=1,S_=2,k_="[object Boolean]",$_="[object Date]",T_="[object Error]",P_="[object Map]",O_="[object Number]",M_="[object RegExp]",j_="[object Set]",N_="[object String]",q_="[object Symbol]",V_="[object ArrayBuffer]",R_="[object DataView]",i3=t3?t3.prototype:void 0,ko=i3?i3.valueOf:void 0;function L_(e,u,t,i,n,f,r){switch(t){case R_:if(e.byteLength!=u.byteLength||e.byteOffset!=u.byteOffset)return!1;e=e.buffer,u=u.buffer;case V_:return!(e.byteLength!=u.byteLength||!f(new u3(e),new u3(u)));case k_:case $_:case O_:return B_(+e,+u);case T_:return e.name==u.name&&e.message==u.message;case M_:case N_:return e==u+"";case P_:var o=w_;case j_:var a=i&A_;if(o||(o=I_),e.size!=u.size&&!a)return!1;var D=r.get(e);if(D)return D==u;i|=S_,r.set(e,u);var l=x_(o(e),o(u),i,n,f,r);return r.delete(e),l;case q_:if(ko)return ko.call(e)==ko.call(u)}return!1}n3.exports=L_});var a3=F((hL,o3)=>{var r3=yo(),z_=1,U_=Object.prototype,H_=U_.hasOwnProperty;function W_(e,u,t,i,n,f){var r=t&z_,o=r3(e),a=o.length,D=r3(u),l=D.length;if(a!=l&&!r)return!1;for(var p=a;p--;){var m=o[p];if(!(r?m in u:H_.call(u,m)))return!1}var E=f.get(e),g=f.get(u);if(E&&g)return E==u&&g==e;var y=!0;f.set(e,u),f.set(u,e);for(var v=r;++p<a;){m=o[p];var S=e[m],O=u[m];if(i)var U=r?i(O,S,m,u,e,f):i(S,O,m,e,u,f);if(!(U===void 0?S===O||n(S,O,t,i,f):U)){y=!1;break}v||(v=m=="constructor")}if(y&&!v){var H=e.constructor,M=u.constructor;H!=M&&"constructor"in e&&"constructor"in u&&!(typeof H=="function"&&H instanceof H&&typeof M=="function"&&M instanceof M)&&(y=!1)}return f.delete(e),f.delete(u),y}o3.exports=W_});var F3=F((gL,m3)=>{var $o=gf(),G_=So(),K_=f3(),J_=a3(),D3=gn(),s3=mt(),l3=Ef(),Z_=mo(),Q_=1,d3="[object Arguments]",c3="[object Array]",kf="[object Object]",X_=Object.prototype,p3=X_.hasOwnProperty;function Y_(e,u,t,i,n,f){var r=s3(e),o=s3(u),a=r?c3:D3(e),D=o?c3:D3(u);a=a==d3?kf:a,D=D==d3?kf:D;var l=a==kf,p=D==kf,m=a==D;if(m&&l3(e)){if(!l3(u))return!1;r=!0,l=!1}if(m&&!l)return f||(f=new $o),r||Z_(e)?G_(e,u,t,i,n,f):K_(e,u,a,t,i,n,f);if(!(t&Q_)){var E=l&&p3.call(e,"__wrapped__"),g=p&&p3.call(u,"__wrapped__");if(E||g){var y=E?e.value():e,v=g?u.value():u;return f||(f=new $o),n(y,v,t,i,f)}}return m?(f||(f=new $o),J_(e,u,t,i,n,f)):!1}m3.exports=Y_});var $f=F((EL,g3)=>{var e9=F3(),C3=Kt();function h3(e,u,t,i,n){return e===u?!0:e==null||u==null||!C3(e)&&!C3(u)?e!==e&&u!==u:e9(e,u,t,i,h3,n)}g3.exports=h3});var b3=F((bL,E3)=>{var t9=$f();function u9(e,u){return t9(e,u)}E3.exports=u9});var _n=F(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.regexpCode=de.getEsmExportName=de.getProperty=de.safeStringify=de.stringify=de.strConcat=de.addCodeArg=de.str=de._=de.nil=de._Code=de.Name=de.IDENTIFIER=de._CodeOrName=void 0;var En=class{};de._CodeOrName=En;de.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Vu=class extends En{constructor(u){if(super(),!de.IDENTIFIER.test(u))throw new Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};de.Name=Vu;var gt=class extends En{constructor(u){super(),this._items=typeof u=="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((t,i)=>`${t}${i}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((t,i)=>(i instanceof Vu&&(t[i.str]=(t[i.str]||0)+1),t),{})}};de._Code=gt;de.nil=new gt("");function _3(e,...u){let t=[e[0]],i=0;for(;i<u.length;)Po(t,u[i]),t.push(e[++i]);return new gt(t)}de._=_3;var To=new gt("+");function y3(e,...u){let t=[bn(e[0])],i=0;for(;i<u.length;)t.push(To),Po(t,u[i]),t.push(To,bn(e[++i]));return i9(t),new gt(t)}de.str=y3;function Po(e,u){u instanceof gt?e.push(...u._items):u instanceof Vu?e.push(u):e.push(r9(u))}de.addCodeArg=Po;function i9(e){let u=1;for(;u<e.length-1;){if(e[u]===To){let t=n9(e[u-1],e[u+1]);if(t!==void 0){e.splice(u-1,3,t);continue}e[u++]="+"}u++}}function n9(e,u){if(u==='""')return e;if(e==='""')return u;if(typeof e=="string")return u instanceof Vu||e[e.length-1]!=='"'?void 0:typeof u!="string"?`${e.slice(0,-1)}${u}"`:u[0]==='"'?e.slice(0,-1)+u.slice(1):void 0;if(typeof u=="string"&&u[0]==='"'&&!(e instanceof Vu))return`"${e}${u.slice(1)}`}function f9(e,u){return u.emptyStr()?e:e.emptyStr()?u:y3`${e}${u}`}de.strConcat=f9;function r9(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:bn(Array.isArray(e)?e.join(","):e)}function o9(e){return new gt(bn(e))}de.stringify=o9;function bn(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}de.safeStringify=bn;function a9(e){return typeof e=="string"&&de.IDENTIFIER.test(e)?new gt(`.${e}`):_3`[${e}]`}de.getProperty=a9;function D9(e){if(typeof e=="string"&&de.IDENTIFIER.test(e))return new gt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}de.getEsmExportName=D9;function s9(e){return new gt(e.toString())}de.regexpCode=s9});var jo=F(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.ValueScope=Dt.ValueScopeName=Dt.Scope=Dt.varKinds=Dt.UsedValueState=void 0;var at=_n(),Oo=class extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}},Tf=function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e}(Tf||(Dt.UsedValueState=Tf={}));Dt.varKinds={const:new at.Name("const"),let:new at.Name("let"),var:new at.Name("var")};var Pf=class{constructor({prefixes:u,parent:t}={}){this._names={},this._prefixes=u,this._parent=t}toName(u){return u instanceof at.Name?u:this.name(u)}name(u){return new at.Name(this._newName(u))}_newName(u){let t=this._names[u]||this._nameGroup(u);return`${u}${t.index++}`}_nameGroup(u){var t,i;if(!((i=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||i===void 0)&&i.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}};Dt.Scope=Pf;var Of=class extends at.Name{constructor(u,t){super(t),this.prefix=u}setValue(u,{property:t,itemIndex:i}){this.value=u,this.scopePath=(0,at._)`.${new at.Name(t)}[${i}]`}};Dt.ValueScopeName=Of;var l9=(0,at._)`\n`,Mo=class extends Pf{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=Ee(Q({},u),{_n:u.lines?l9:at.nil})}get(){return this._scope}name(u){return new Of(u,this._newName(u))}value(u,t){var i;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(u),{prefix:f}=n,r=(i=t.key)!==null&&i!==void 0?i:t.ref,o=this._values[f];if(o){let l=o.get(r);if(l)return l}else o=this._values[f]=new Map;o.set(r,n);let a=this._scope[f]||(this._scope[f]=[]),D=a.length;return a[D]=t.ref,n.setValue(t,{property:f,itemIndex:D}),n}getValue(u,t){let i=this._values[u];if(i)return i.get(t)}scopeRefs(u,t=this._values){return this._reduceValues(t,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,at._)`${u}${i.scopePath}`})}scopeCode(u=this._values,t,i){return this._reduceValues(u,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},t,i)}_reduceValues(u,t,i={},n){let f=at.nil;for(let r in u){let o=u[r];if(!o)continue;let a=i[r]=i[r]||new Map;o.forEach(D=>{if(a.has(D))return;a.set(D,Tf.Started);let l=t(D);if(l){let p=this.opts.es5?Dt.varKinds.var:Dt.varKinds.const;f=(0,at._)`${f}${p} ${D} = ${l};${this.opts._n}`}else if(l=n==null?void 0:n(D))f=(0,at._)`${f}${l}${this.opts._n}`;else throw new Oo(D);a.set(D,Tf.Completed)})}return f}};Dt.ValueScope=Mo});var te=F(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.or=ie.and=ie.not=ie.CodeGen=ie.operators=ie.varKinds=ie.ValueScopeName=ie.ValueScope=ie.Scope=ie.Name=ie.regexpCode=ie.stringify=ie.getProperty=ie.nil=ie.strConcat=ie.str=ie._=void 0;var De=_n(),$t=jo(),du=_n();Object.defineProperty(ie,"_",{enumerable:!0,get:function(){return du._}});Object.defineProperty(ie,"str",{enumerable:!0,get:function(){return du.str}});Object.defineProperty(ie,"strConcat",{enumerable:!0,get:function(){return du.strConcat}});Object.defineProperty(ie,"nil",{enumerable:!0,get:function(){return du.nil}});Object.defineProperty(ie,"getProperty",{enumerable:!0,get:function(){return du.getProperty}});Object.defineProperty(ie,"stringify",{enumerable:!0,get:function(){return du.stringify}});Object.defineProperty(ie,"regexpCode",{enumerable:!0,get:function(){return du.regexpCode}});Object.defineProperty(ie,"Name",{enumerable:!0,get:function(){return du.Name}});var Vf=jo();Object.defineProperty(ie,"Scope",{enumerable:!0,get:function(){return Vf.Scope}});Object.defineProperty(ie,"ValueScope",{enumerable:!0,get:function(){return Vf.ValueScope}});Object.defineProperty(ie,"ValueScopeName",{enumerable:!0,get:function(){return Vf.ValueScopeName}});Object.defineProperty(ie,"varKinds",{enumerable:!0,get:function(){return Vf.varKinds}});ie.operators={GT:new De._Code(">"),GTE:new De._Code(">="),LT:new De._Code("<"),LTE:new De._Code("<="),EQ:new De._Code("==="),NEQ:new De._Code("!=="),NOT:new De._Code("!"),OR:new De._Code("||"),AND:new De._Code("&&"),ADD:new De._Code("+")};var Jt=class{optimizeNodes(){return this}optimizeNames(u,t){return this}},No=class extends Jt{constructor(u,t,i){super(),this.varKind=u,this.name=t,this.rhs=i}render({es5:u,_n:t}){let i=u?$t.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+t}optimizeNames(u,t){if(u[this.name.str])return this.rhs&&(this.rhs=_i(this.rhs,u,t)),this}get names(){return this.rhs instanceof De._CodeOrName?this.rhs.names:{}}},jf=class extends Jt{constructor(u,t,i){super(),this.lhs=u,this.rhs=t,this.sideEffects=i}render({_n:u}){return`${this.lhs} = ${this.rhs};`+u}optimizeNames(u,t){if(!(this.lhs instanceof De.Name&&!u[this.lhs.str]&&!this.sideEffects))return this.rhs=_i(this.rhs,u,t),this}get names(){let u=this.lhs instanceof De.Name?{}:Q({},this.lhs.names);return qf(u,this.rhs)}},qo=class extends jf{constructor(u,t,i,n){super(u,i,n),this.op=t}render({_n:u}){return`${this.lhs} ${this.op}= ${this.rhs};`+u}},Vo=class extends Jt{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`${this.label}:`+u}},Ro=class extends Jt{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`break${this.label?` ${this.label}`:""};`+u}},Lo=class extends Jt{constructor(u){super(),this.error=u}render({_n:u}){return`throw ${this.error};`+u}get names(){return this.error.names}},zo=class extends Jt{constructor(u){super(),this.code=u}render({_n:u}){return`${this.code};`+u}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(u,t){return this.code=_i(this.code,u,t),this}get names(){return this.code instanceof De._CodeOrName?this.code.names:{}}},yn=class extends Jt{constructor(u=[]){super(),this.nodes=u}render(u){return this.nodes.reduce((t,i)=>t+i.render(u),"")}optimizeNodes(){let{nodes:u}=this,t=u.length;for(;t--;){let i=u[t].optimizeNodes();Array.isArray(i)?u.splice(t,1,...i):i?u[t]=i:u.splice(t,1)}return u.length>0?this:void 0}optimizeNames(u,t){let{nodes:i}=this,n=i.length;for(;n--;){let f=i[n];f.optimizeNames(u,t)||(d9(u,f.names),i.splice(n,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((u,t)=>Ru(u,t.names),{})}},Zt=class extends yn{render(u){return"{"+u._n+super.render(u)+"}"+u._n}},Uo=class extends yn{},Ho=(()=>{class e extends Zt{}return e.kind="else",e})(),Mf=(()=>{class e extends Zt{constructor(t,i){super(i),this.condition=t}render(t){let i=`if(${this.condition})`+super.render(t);return this.else&&(i+="else "+this.else.render(t)),i}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let i=this.else;if(i){let n=i.optimizeNodes();i=this.else=Array.isArray(n)?new Ho(n):n}if(i)return t===!1?i instanceof e?i:i.nodes:this.nodes.length?this:new e(I3(t),i instanceof e?[i]:i.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,i){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,i),!!(super.optimizeNames(t,i)||this.else))return this.condition=_i(this.condition,t,i),this}get names(){let t=super.names;return qf(t,this.condition),this.else&&Ru(t,this.else.names),t}}return e.kind="if",e})(),Rf=(()=>{class e extends Zt{}return e.kind="for",e})(),Wo=class extends Rf{constructor(u){super(),this.iteration=u}render(u){return`for(${this.iteration})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iteration=_i(this.iteration,u,t),this}get names(){return Ru(super.names,this.iteration.names)}},Go=class extends Rf{constructor(u,t,i,n){super(),this.varKind=u,this.name=t,this.from=i,this.to=n}render(u){let t=u.es5?$t.varKinds.var:this.varKind,{name:i,from:n,to:f}=this;return`for(${t} ${i}=${n}; ${i}<${f}; ${i}++)`+super.render(u)}get names(){let u=qf(super.names,this.from);return qf(u,this.to)}},Nf=class extends Rf{constructor(u,t,i,n){super(),this.loop=u,this.varKind=t,this.name=i,this.iterable=n}render(u){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iterable=_i(this.iterable,u,t),this}get names(){return Ru(super.names,this.iterable.names)}},v3=(()=>{class e extends Zt{constructor(t,i,n){super(),this.name=t,this.args=i,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),B3=(()=>{class e extends yn{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Ko=class extends Zt{render(u){let t="try"+super.render(u);return this.catch&&(t+=this.catch.render(u)),this.finally&&(t+=this.finally.render(u)),t}optimizeNodes(){var u,t;return super.optimizeNodes(),(u=this.catch)===null||u===void 0||u.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(u,t){var i,n;return super.optimizeNames(u,t),(i=this.catch)===null||i===void 0||i.optimizeNames(u,t),(n=this.finally)===null||n===void 0||n.optimizeNames(u,t),this}get names(){let u=super.names;return this.catch&&Ru(u,this.catch.names),this.finally&&Ru(u,this.finally.names),u}},x3=(()=>{class e extends Zt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),w3=(()=>{class e extends Zt{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Jo=class{constructor(u,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Ee(Q({},t),{_n:t.lines?`
1
+ import{a as St,b as jC}from"./chunk-TH7WF563.js";import{a as Rs}from"./chunk-Y5BDWQTD.js";import{a as Di,b as si}from"./chunk-BBVFH2MI.js";import{a as Ws}from"./chunk-D3QNROQA.js";import{a as Ks}from"./chunk-TOSAT7VK.js";import{a as Gs}from"./chunk-ZEGJJ2QZ.js";import{a as on}from"./chunk-SZTIHT5G.js";import{a as zs,b as Us}from"./chunk-L4SPVWCZ.js";import{a as no}from"./chunk-B2ERIJJG.js";import{a as Hs}from"./chunk-IQBKWEOJ.js";import{a as sf,b as lf,c as df,d as cf,e as pf,f as mf,g as ri,m as Ce,n as Ue,o as oi}from"./chunk-U3XAGOD7.js";import{a as Ps,b as ui,c as ii,e as ot,f as Os,h as Ms,i as js,k as Ns,l as Du,m as qs,o as ni,r as fi,s as Ou,t as Mu,x as Vs,y as At,z as io}from"./chunk-DVN556RD.js";import{a as ai}from"./chunk-QX4JJLN4.js";import{d as qt}from"./chunk-2IW5LNPB.js";import{a as Ls}from"./chunk-UXBIRDFV.js";import{b as $e}from"./chunk-SHPANMJF.js";import{h as pe,j as su,k as se}from"./chunk-4M72X5OK.js";import{e as Ts}from"./chunk-G75CPMPQ.js";import{a as ce,b as he}from"./chunk-QIWZD5HO.js";import{$c as nt,Ac as _,Bc as B,Cc as qe,D as hs,Da as _s,Fa as it,Ga as R,Gc as ks,Ha as Yu,Ia as of,Jb as G,Kb as h,Lb as wt,M as ff,Mb as ei,Nb as Z,Ob as xs,Pb as x,Rb as He,Sb as We,Tb as Ge,Ub as d,Vb as c,Wb as I,Xb as ws,Yb as Is,Z as to,Zc as ht,_b as z,_c as Pu,a as Q,aa as rn,b as Ee,bc as P,cb as oe,cc as C,cd as $s,e as F,fa as gs,fb as ys,g as Oe,ga as xt,gb as s,gd as Df,h as W,ha as rf,jc as ru,k as ps,kc as ou,la as Es,lb as vs,ma as w,mb as uo,mc as b,n as pt,nc as L,ob as $u,oc as q,pb as fu,pc as Wt,q as ms,qc as As,rc as Be,sc as xe,ta as Xu,tb as J,tc as we,ua as j,ub as af,uc as Ss,v as Fs,va as N,vb as Tu,vc as Ne,w as ne,wb as Bs,wc as It,x as Cs,xa as bs,xc as au,yc as Gt,zb as k,zc as ti}from"./chunk-6JZDPQRU.js";var Zs=F((dV,Js)=>{function qC(){this.__data__=[],this.size=0}Js.exports=qC});var Ff=F((cV,Qs)=>{function VC(e,u){return e===u||e!==e&&u!==u}Qs.exports=VC});var an=F((pV,Xs)=>{var RC=Ff();function LC(e,u){for(var t=e.length;t--;)if(RC(e[t][0],u))return t;return-1}Xs.exports=LC});var e0=F((mV,Ys)=>{var zC=an(),UC=Array.prototype,HC=UC.splice;function WC(e){var u=this.__data__,t=zC(u,e);if(t<0)return!1;var i=u.length-1;return t==i?u.pop():HC.call(u,t,1),--this.size,!0}Ys.exports=WC});var u0=F((FV,t0)=>{var GC=an();function KC(e){var u=this.__data__,t=GC(u,e);return t<0?void 0:u[t][1]}t0.exports=KC});var n0=F((CV,i0)=>{var JC=an();function ZC(e){return JC(this.__data__,e)>-1}i0.exports=ZC});var r0=F((hV,f0)=>{var QC=an();function XC(e,u){var t=this.__data__,i=QC(t,e);return i<0?(++this.size,t.push([e,u])):t[i][1]=u,this}f0.exports=XC});var Dn=F((gV,o0)=>{var YC=Zs(),e4=e0(),t4=u0(),u4=n0(),i4=r0();function di(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}di.prototype.clear=YC;di.prototype.delete=e4;di.prototype.get=t4;di.prototype.has=u4;di.prototype.set=i4;o0.exports=di});var D0=F((EV,a0)=>{var n4=Dn();function f4(){this.__data__=new n4,this.size=0}a0.exports=f4});var l0=F((bV,s0)=>{function r4(e){var u=this.__data__,t=u.delete(e);return this.size=u.size,t}s0.exports=r4});var c0=F((_V,d0)=>{function o4(e){return this.__data__.get(e)}d0.exports=o4});var m0=F((yV,p0)=>{function a4(e){return this.__data__.has(e)}p0.exports=a4});var fo=F((vV,F0)=>{var D4=typeof global=="object"&&global&&global.Object===Object&&global;F0.exports=D4});var kt=F((BV,C0)=>{var s4=fo(),l4=typeof self=="object"&&self&&self.Object===Object&&self,d4=s4||l4||Function("return this")();C0.exports=d4});var ci=F((xV,h0)=>{var c4=kt(),p4=c4.Symbol;h0.exports=p4});var _0=F((wV,b0)=>{var g0=ci(),E0=Object.prototype,m4=E0.hasOwnProperty,F4=E0.toString,sn=g0?g0.toStringTag:void 0;function C4(e){var u=m4.call(e,sn),t=e[sn];try{e[sn]=void 0;var i=!0}catch{}var n=F4.call(e);return i&&(u?e[sn]=t:delete e[sn]),n}b0.exports=C4});var v0=F((IV,y0)=>{var h4=Object.prototype,g4=h4.toString;function E4(e){return g4.call(e)}y0.exports=E4});var ju=F((AV,w0)=>{var B0=ci(),b4=_0(),_4=v0(),y4="[object Null]",v4="[object Undefined]",x0=B0?B0.toStringTag:void 0;function B4(e){return e==null?e===void 0?v4:y4:x0&&x0 in Object(e)?b4(e):_4(e)}w0.exports=B4});var Nu=F((SV,I0)=>{function x4(e){var u=typeof e;return e!=null&&(u=="object"||u=="function")}I0.exports=x4});var ro=F((kV,A0)=>{var w4=ju(),I4=Nu(),A4="[object AsyncFunction]",S4="[object Function]",k4="[object GeneratorFunction]",$4="[object Proxy]";function T4(e){if(!I4(e))return!1;var u=w4(e);return u==S4||u==k4||u==A4||u==$4}A0.exports=T4});var k0=F(($V,S0)=>{var P4=kt(),O4=P4["__core-js_shared__"];S0.exports=O4});var P0=F((TV,T0)=>{var oo=k0(),$0=function(){var e=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function M4(e){return!!$0&&$0 in e}T0.exports=M4});var ao=F((PV,O0)=>{var j4=Function.prototype,N4=j4.toString;function q4(e){if(e!=null){try{return N4.call(e)}catch{}try{return e+""}catch{}}return""}O0.exports=q4});var j0=F((OV,M0)=>{var V4=ro(),R4=P0(),L4=Nu(),z4=ao(),U4=/[\\^$.*+?()[\]{}|]/g,H4=/^\[object .+?Constructor\]$/,W4=Function.prototype,G4=Object.prototype,K4=W4.toString,J4=G4.hasOwnProperty,Z4=RegExp("^"+K4.call(J4).replace(U4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Q4(e){if(!L4(e)||R4(e))return!1;var u=V4(e)?Z4:H4;return u.test(z4(e))}M0.exports=Q4});var q0=F((MV,N0)=>{function X4(e,u){return e==null?void 0:e[u]}N0.exports=X4});var lu=F((jV,V0)=>{var Y4=j0(),e5=q0();function t5(e,u){var t=e5(e,u);return Y4(t)?t:void 0}V0.exports=t5});var Cf=F((NV,R0)=>{var u5=lu(),i5=kt(),n5=u5(i5,"Map");R0.exports=n5});var ln=F((qV,L0)=>{var f5=lu(),r5=f5(Object,"create");L0.exports=r5});var H0=F((VV,U0)=>{var z0=ln();function o5(){this.__data__=z0?z0(null):{},this.size=0}U0.exports=o5});var G0=F((RV,W0)=>{function a5(e){var u=this.has(e)&&delete this.__data__[e];return this.size-=u?1:0,u}W0.exports=a5});var J0=F((LV,K0)=>{var D5=ln(),s5="__lodash_hash_undefined__",l5=Object.prototype,d5=l5.hasOwnProperty;function c5(e){var u=this.__data__;if(D5){var t=u[e];return t===s5?void 0:t}return d5.call(u,e)?u[e]:void 0}K0.exports=c5});var Q0=F((zV,Z0)=>{var p5=ln(),m5=Object.prototype,F5=m5.hasOwnProperty;function C5(e){var u=this.__data__;return p5?u[e]!==void 0:F5.call(u,e)}Z0.exports=C5});var Y0=F((UV,X0)=>{var h5=ln(),g5="__lodash_hash_undefined__";function E5(e,u){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=h5&&u===void 0?g5:u,this}X0.exports=E5});var t1=F((HV,e1)=>{var b5=H0(),_5=G0(),y5=J0(),v5=Q0(),B5=Y0();function pi(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}pi.prototype.clear=b5;pi.prototype.delete=_5;pi.prototype.get=y5;pi.prototype.has=v5;pi.prototype.set=B5;e1.exports=pi});var n1=F((WV,i1)=>{var u1=t1(),x5=Dn(),w5=Cf();function I5(){this.size=0,this.__data__={hash:new u1,map:new(w5||x5),string:new u1}}i1.exports=I5});var r1=F((GV,f1)=>{function A5(e){var u=typeof e;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?e!=="__proto__":e===null}f1.exports=A5});var dn=F((KV,o1)=>{var S5=r1();function k5(e,u){var t=e.__data__;return S5(u)?t[typeof u=="string"?"string":"hash"]:t.map}o1.exports=k5});var D1=F((JV,a1)=>{var $5=dn();function T5(e){var u=$5(this,e).delete(e);return this.size-=u?1:0,u}a1.exports=T5});var l1=F((ZV,s1)=>{var P5=dn();function O5(e){return P5(this,e).get(e)}s1.exports=O5});var c1=F((QV,d1)=>{var M5=dn();function j5(e){return M5(this,e).has(e)}d1.exports=j5});var m1=F((XV,p1)=>{var N5=dn();function q5(e,u){var t=N5(this,e),i=t.size;return t.set(e,u),this.size+=t.size==i?0:1,this}p1.exports=q5});var hf=F((YV,F1)=>{var V5=n1(),R5=D1(),L5=l1(),z5=c1(),U5=m1();function mi(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}mi.prototype.clear=V5;mi.prototype.delete=R5;mi.prototype.get=L5;mi.prototype.has=z5;mi.prototype.set=U5;F1.exports=mi});var h1=F((eR,C1)=>{var H5=Dn(),W5=Cf(),G5=hf(),K5=200;function J5(e,u){var t=this.__data__;if(t instanceof H5){var i=t.__data__;if(!W5||i.length<K5-1)return i.push([e,u]),this.size=++t.size,this;t=this.__data__=new G5(i)}return t.set(e,u),this.size=t.size,this}C1.exports=J5});var gf=F((tR,g1)=>{var Z5=Dn(),Q5=D0(),X5=l0(),Y5=c0(),eh=m0(),th=h1();function Fi(e){var u=this.__data__=new Z5(e);this.size=u.size}Fi.prototype.clear=Q5;Fi.prototype.delete=X5;Fi.prototype.get=Y5;Fi.prototype.has=eh;Fi.prototype.set=th;g1.exports=Fi});var b1=F((uR,E1)=>{function uh(e,u){for(var t=-1,i=e==null?0:e.length;++t<i&&u(e[t],t,e)!==!1;);return e}E1.exports=uh});var y1=F((iR,_1)=>{var ih=lu(),nh=function(){try{var e=ih(Object,"defineProperty");return e({},"",{}),e}catch{}}();_1.exports=nh});var Do=F((nR,B1)=>{var v1=y1();function fh(e,u,t){u=="__proto__"&&v1?v1(e,u,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[u]=t}B1.exports=fh});var so=F((fR,x1)=>{var rh=Do(),oh=Ff(),ah=Object.prototype,Dh=ah.hasOwnProperty;function sh(e,u,t){var i=e[u];(!(Dh.call(e,u)&&oh(i,t))||t===void 0&&!(u in e))&&rh(e,u,t)}x1.exports=sh});var cn=F((rR,w1)=>{var lh=so(),dh=Do();function ch(e,u,t,i){var n=!t;t||(t={});for(var f=-1,r=u.length;++f<r;){var o=u[f],a=i?i(t[o],e[o],o,t,e):void 0;a===void 0&&(a=e[o]),n?dh(t,o,a):lh(t,o,a)}return t}w1.exports=ch});var A1=F((oR,I1)=>{function ph(e,u){for(var t=-1,i=Array(e);++t<e;)i[t]=u(t);return i}I1.exports=ph});var Kt=F((aR,S1)=>{function mh(e){return e!=null&&typeof e=="object"}S1.exports=mh});var $1=F((DR,k1)=>{var Fh=ju(),Ch=Kt(),hh="[object Arguments]";function gh(e){return Ch(e)&&Fh(e)==hh}k1.exports=gh});var lo=F((sR,O1)=>{var T1=$1(),Eh=Kt(),P1=Object.prototype,bh=P1.hasOwnProperty,_h=P1.propertyIsEnumerable,yh=T1(function(){return arguments}())?T1:function(e){return Eh(e)&&bh.call(e,"callee")&&!_h.call(e,"callee")};O1.exports=yh});var mt=F((lR,M1)=>{var vh=Array.isArray;M1.exports=vh});var N1=F((dR,j1)=>{function Bh(){return!1}j1.exports=Bh});var Ef=F((pn,Ci)=>{var xh=kt(),wh=N1(),R1=typeof pn=="object"&&pn&&!pn.nodeType&&pn,q1=R1&&typeof Ci=="object"&&Ci&&!Ci.nodeType&&Ci,Ih=q1&&q1.exports===R1,V1=Ih?xh.Buffer:void 0,Ah=V1?V1.isBuffer:void 0,Sh=Ah||wh;Ci.exports=Sh});var co=F((cR,L1)=>{var kh=9007199254740991,$h=/^(?:0|[1-9]\d*)$/;function Th(e,u){var t=typeof e;return u=u==null?kh:u,!!u&&(t=="number"||t!="symbol"&&$h.test(e))&&e>-1&&e%1==0&&e<u}L1.exports=Th});var bf=F((pR,z1)=>{var Ph=9007199254740991;function Oh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ph}z1.exports=Oh});var H1=F((mR,U1)=>{var Mh=ju(),jh=bf(),Nh=Kt(),qh="[object Arguments]",Vh="[object Array]",Rh="[object Boolean]",Lh="[object Date]",zh="[object Error]",Uh="[object Function]",Hh="[object Map]",Wh="[object Number]",Gh="[object Object]",Kh="[object RegExp]",Jh="[object Set]",Zh="[object String]",Qh="[object WeakMap]",Xh="[object ArrayBuffer]",Yh="[object DataView]",eg="[object Float32Array]",tg="[object Float64Array]",ug="[object Int8Array]",ig="[object Int16Array]",ng="[object Int32Array]",fg="[object Uint8Array]",rg="[object Uint8ClampedArray]",og="[object Uint16Array]",ag="[object Uint32Array]",Ie={};Ie[eg]=Ie[tg]=Ie[ug]=Ie[ig]=Ie[ng]=Ie[fg]=Ie[rg]=Ie[og]=Ie[ag]=!0;Ie[qh]=Ie[Vh]=Ie[Xh]=Ie[Rh]=Ie[Yh]=Ie[Lh]=Ie[zh]=Ie[Uh]=Ie[Hh]=Ie[Wh]=Ie[Gh]=Ie[Kh]=Ie[Jh]=Ie[Zh]=Ie[Qh]=!1;function Dg(e){return Nh(e)&&jh(e.length)&&!!Ie[Mh(e)]}U1.exports=Dg});var _f=F((FR,W1)=>{function sg(e){return function(u){return e(u)}}W1.exports=sg});var yf=F((mn,hi)=>{var lg=fo(),G1=typeof mn=="object"&&mn&&!mn.nodeType&&mn,Fn=G1&&typeof hi=="object"&&hi&&!hi.nodeType&&hi,dg=Fn&&Fn.exports===G1,po=dg&&lg.process,cg=function(){try{var e=Fn&&Fn.require&&Fn.require("util").types;return e||po&&po.binding&&po.binding("util")}catch{}}();hi.exports=cg});var mo=F((CR,Z1)=>{var pg=H1(),mg=_f(),K1=yf(),J1=K1&&K1.isTypedArray,Fg=J1?mg(J1):pg;Z1.exports=Fg});var Fo=F((hR,Q1)=>{var Cg=A1(),hg=lo(),gg=mt(),Eg=Ef(),bg=co(),_g=mo(),yg=Object.prototype,vg=yg.hasOwnProperty;function Bg(e,u){var t=gg(e),i=!t&&hg(e),n=!t&&!i&&Eg(e),f=!t&&!i&&!n&&_g(e),r=t||i||n||f,o=r?Cg(e.length,String):[],a=o.length;for(var D in e)(u||vg.call(e,D))&&!(r&&(D=="length"||n&&(D=="offset"||D=="parent")||f&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||bg(D,a)))&&o.push(D);return o}Q1.exports=Bg});var vf=F((gR,X1)=>{var xg=Object.prototype;function wg(e){var u=e&&e.constructor,t=typeof u=="function"&&u.prototype||xg;return e===t}X1.exports=wg});var Co=F((ER,Y1)=>{function Ig(e,u){return function(t){return e(u(t))}}Y1.exports=Ig});var tl=F((bR,el)=>{var Ag=Co(),Sg=Ag(Object.keys,Object);el.exports=Sg});var il=F((_R,ul)=>{var kg=vf(),$g=tl(),Tg=Object.prototype,Pg=Tg.hasOwnProperty;function Og(e){if(!kg(e))return $g(e);var u=[];for(var t in Object(e))Pg.call(e,t)&&t!="constructor"&&u.push(t);return u}ul.exports=Og});var Cn=F((yR,nl)=>{var Mg=ro(),jg=bf();function Ng(e){return e!=null&&jg(e.length)&&!Mg(e)}nl.exports=Ng});var gi=F((vR,fl)=>{var qg=Fo(),Vg=il(),Rg=Cn();function Lg(e){return Rg(e)?qg(e):Vg(e)}fl.exports=Lg});var ol=F((BR,rl)=>{var zg=cn(),Ug=gi();function Hg(e,u){return e&&zg(u,Ug(u),e)}rl.exports=Hg});var Dl=F((xR,al)=>{function Wg(e){var u=[];if(e!=null)for(var t in Object(e))u.push(t);return u}al.exports=Wg});var ll=F((wR,sl)=>{var Gg=Nu(),Kg=vf(),Jg=Dl(),Zg=Object.prototype,Qg=Zg.hasOwnProperty;function Xg(e){if(!Gg(e))return Jg(e);var u=Kg(e),t=[];for(var i in e)i=="constructor"&&(u||!Qg.call(e,i))||t.push(i);return t}sl.exports=Xg});var Bf=F((IR,dl)=>{var Yg=Fo(),e6=ll(),t6=Cn();function u6(e){return t6(e)?Yg(e,!0):e6(e)}dl.exports=u6});var pl=F((AR,cl)=>{var i6=cn(),n6=Bf();function f6(e,u){return e&&i6(u,n6(u),e)}cl.exports=f6});var gl=F((hn,Ei)=>{var r6=kt(),hl=typeof hn=="object"&&hn&&!hn.nodeType&&hn,ml=hl&&typeof Ei=="object"&&Ei&&!Ei.nodeType&&Ei,o6=ml&&ml.exports===hl,Fl=o6?r6.Buffer:void 0,Cl=Fl?Fl.allocUnsafe:void 0;function a6(e,u){if(u)return e.slice();var t=e.length,i=Cl?Cl(t):new e.constructor(t);return e.copy(i),i}Ei.exports=a6});var bl=F((SR,El)=>{function D6(e,u){var t=-1,i=e.length;for(u||(u=Array(i));++t<i;)u[t]=e[t];return u}El.exports=D6});var ho=F((kR,_l)=>{function s6(e,u){for(var t=-1,i=e==null?0:e.length,n=0,f=[];++t<i;){var r=e[t];u(r,t,e)&&(f[n++]=r)}return f}_l.exports=s6});var go=F(($R,yl)=>{function l6(){return[]}yl.exports=l6});var xf=F((TR,Bl)=>{var d6=ho(),c6=go(),p6=Object.prototype,m6=p6.propertyIsEnumerable,vl=Object.getOwnPropertySymbols,F6=vl?function(e){return e==null?[]:(e=Object(e),d6(vl(e),function(u){return m6.call(e,u)}))}:c6;Bl.exports=F6});var wl=F((PR,xl)=>{var C6=cn(),h6=xf();function g6(e,u){return C6(e,h6(e),u)}xl.exports=g6});var Eo=F((OR,Il)=>{function E6(e,u){for(var t=-1,i=u.length,n=e.length;++t<i;)e[n+t]=u[t];return e}Il.exports=E6});var wf=F((MR,Al)=>{var b6=Co(),_6=b6(Object.getPrototypeOf,Object);Al.exports=_6});var bo=F((jR,Sl)=>{var y6=Eo(),v6=wf(),B6=xf(),x6=go(),w6=Object.getOwnPropertySymbols,I6=w6?function(e){for(var u=[];e;)y6(u,B6(e)),e=v6(e);return u}:x6;Sl.exports=I6});var $l=F((NR,kl)=>{var A6=cn(),S6=bo();function k6(e,u){return A6(e,S6(e),u)}kl.exports=k6});var _o=F((qR,Tl)=>{var $6=Eo(),T6=mt();function P6(e,u,t){var i=u(e);return T6(e)?i:$6(i,t(e))}Tl.exports=P6});var yo=F((VR,Pl)=>{var O6=_o(),M6=xf(),j6=gi();function N6(e){return O6(e,j6,M6)}Pl.exports=N6});var Ml=F((RR,Ol)=>{var q6=_o(),V6=bo(),R6=Bf();function L6(e){return q6(e,R6,V6)}Ol.exports=L6});var Nl=F((LR,jl)=>{var z6=lu(),U6=kt(),H6=z6(U6,"DataView");jl.exports=H6});var Vl=F((zR,ql)=>{var W6=lu(),G6=kt(),K6=W6(G6,"Promise");ql.exports=K6});var Ll=F((UR,Rl)=>{var J6=lu(),Z6=kt(),Q6=J6(Z6,"Set");Rl.exports=Q6});var Ul=F((HR,zl)=>{var X6=lu(),Y6=kt(),eE=X6(Y6,"WeakMap");zl.exports=eE});var gn=F((WR,Ql)=>{var vo=Nl(),Bo=Cf(),xo=Vl(),wo=Ll(),Io=Ul(),Zl=ju(),bi=ao(),Hl="[object Map]",tE="[object Object]",Wl="[object Promise]",Gl="[object Set]",Kl="[object WeakMap]",Jl="[object DataView]",uE=bi(vo),iE=bi(Bo),nE=bi(xo),fE=bi(wo),rE=bi(Io),qu=Zl;(vo&&qu(new vo(new ArrayBuffer(1)))!=Jl||Bo&&qu(new Bo)!=Hl||xo&&qu(xo.resolve())!=Wl||wo&&qu(new wo)!=Gl||Io&&qu(new Io)!=Kl)&&(qu=function(e){var u=Zl(e),t=u==tE?e.constructor:void 0,i=t?bi(t):"";if(i)switch(i){case uE:return Jl;case iE:return Hl;case nE:return Wl;case fE:return Gl;case rE:return Kl}return u});Ql.exports=qu});var Yl=F((GR,Xl)=>{var oE=Object.prototype,aE=oE.hasOwnProperty;function DE(e){var u=e.length,t=new e.constructor(u);return u&&typeof e[0]=="string"&&aE.call(e,"index")&&(t.index=e.index,t.input=e.input),t}Xl.exports=DE});var Ao=F((KR,ed)=>{var sE=kt(),lE=sE.Uint8Array;ed.exports=lE});var If=F((JR,ud)=>{var td=Ao();function dE(e){var u=new e.constructor(e.byteLength);return new td(u).set(new td(e)),u}ud.exports=dE});var nd=F((ZR,id)=>{var cE=If();function pE(e,u){var t=u?cE(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}id.exports=pE});var rd=F((QR,fd)=>{var mE=/\w*$/;function FE(e){var u=new e.constructor(e.source,mE.exec(e));return u.lastIndex=e.lastIndex,u}fd.exports=FE});var ld=F((XR,sd)=>{var od=ci(),ad=od?od.prototype:void 0,Dd=ad?ad.valueOf:void 0;function CE(e){return Dd?Object(Dd.call(e)):{}}sd.exports=CE});var cd=F((YR,dd)=>{var hE=If();function gE(e,u){var t=u?hE(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}dd.exports=gE});var md=F((eL,pd)=>{var EE=If(),bE=nd(),_E=rd(),yE=ld(),vE=cd(),BE="[object Boolean]",xE="[object Date]",wE="[object Map]",IE="[object Number]",AE="[object RegExp]",SE="[object Set]",kE="[object String]",$E="[object Symbol]",TE="[object ArrayBuffer]",PE="[object DataView]",OE="[object Float32Array]",ME="[object Float64Array]",jE="[object Int8Array]",NE="[object Int16Array]",qE="[object Int32Array]",VE="[object Uint8Array]",RE="[object Uint8ClampedArray]",LE="[object Uint16Array]",zE="[object Uint32Array]";function UE(e,u,t){var i=e.constructor;switch(u){case TE:return EE(e);case BE:case xE:return new i(+e);case PE:return bE(e,t);case OE:case ME:case jE:case NE:case qE:case VE:case RE:case LE:case zE:return vE(e,t);case wE:return new i;case IE:case kE:return new i(e);case AE:return _E(e);case SE:return new i;case $E:return yE(e)}}pd.exports=UE});var hd=F((tL,Cd)=>{var HE=Nu(),Fd=Object.create,WE=function(){function e(){}return function(u){if(!HE(u))return{};if(Fd)return Fd(u);e.prototype=u;var t=new e;return e.prototype=void 0,t}}();Cd.exports=WE});var Ed=F((uL,gd)=>{var GE=hd(),KE=wf(),JE=vf();function ZE(e){return typeof e.constructor=="function"&&!JE(e)?GE(KE(e)):{}}gd.exports=ZE});var _d=F((iL,bd)=>{var QE=gn(),XE=Kt(),YE="[object Map]";function eb(e){return XE(e)&&QE(e)==YE}bd.exports=eb});var xd=F((nL,Bd)=>{var tb=_d(),ub=_f(),yd=yf(),vd=yd&&yd.isMap,ib=vd?ub(vd):tb;Bd.exports=ib});var Id=F((fL,wd)=>{var nb=gn(),fb=Kt(),rb="[object Set]";function ob(e){return fb(e)&&nb(e)==rb}wd.exports=ob});var $d=F((rL,kd)=>{var ab=Id(),Db=_f(),Ad=yf(),Sd=Ad&&Ad.isSet,sb=Sd?Db(Sd):ab;kd.exports=sb});var jd=F((oL,Md)=>{var lb=gf(),db=b1(),cb=so(),pb=ol(),mb=pl(),Fb=gl(),Cb=bl(),hb=wl(),gb=$l(),Eb=yo(),bb=Ml(),_b=gn(),yb=Yl(),vb=md(),Bb=Ed(),xb=mt(),wb=Ef(),Ib=xd(),Ab=Nu(),Sb=$d(),kb=gi(),$b=Bf(),Tb=1,Pb=2,Ob=4,Td="[object Arguments]",Mb="[object Array]",jb="[object Boolean]",Nb="[object Date]",qb="[object Error]",Pd="[object Function]",Vb="[object GeneratorFunction]",Rb="[object Map]",Lb="[object Number]",Od="[object Object]",zb="[object RegExp]",Ub="[object Set]",Hb="[object String]",Wb="[object Symbol]",Gb="[object WeakMap]",Kb="[object ArrayBuffer]",Jb="[object DataView]",Zb="[object Float32Array]",Qb="[object Float64Array]",Xb="[object Int8Array]",Yb="[object Int16Array]",e_="[object Int32Array]",t_="[object Uint8Array]",u_="[object Uint8ClampedArray]",i_="[object Uint16Array]",n_="[object Uint32Array]",ye={};ye[Td]=ye[Mb]=ye[Kb]=ye[Jb]=ye[jb]=ye[Nb]=ye[Zb]=ye[Qb]=ye[Xb]=ye[Yb]=ye[e_]=ye[Rb]=ye[Lb]=ye[Od]=ye[zb]=ye[Ub]=ye[Hb]=ye[Wb]=ye[t_]=ye[u_]=ye[i_]=ye[n_]=!0;ye[qb]=ye[Pd]=ye[Gb]=!1;function Af(e,u,t,i,n,f){var r,o=u&Tb,a=u&Pb,D=u&Ob;if(t&&(r=n?t(e,i,n,f):t(e)),r!==void 0)return r;if(!Ab(e))return e;var l=xb(e);if(l){if(r=yb(e),!o)return Cb(e,r)}else{var p=_b(e),m=p==Pd||p==Vb;if(wb(e))return Fb(e,o);if(p==Od||p==Td||m&&!n){if(r=a||m?{}:Bb(e),!o)return a?gb(e,mb(r,e)):hb(e,pb(r,e))}else{if(!ye[p])return n?e:{};r=vb(e,p,o)}}f||(f=new lb);var E=f.get(e);if(E)return E;f.set(e,r),Sb(e)?e.forEach(function(v){r.add(Af(v,u,t,v,e,f))}):Ib(e)&&e.forEach(function(v,S){r.set(S,Af(v,u,t,S,e,f))});var g=D?a?bb:Eb:a?$b:kb,y=l?void 0:g(e);return db(y||e,function(v,S){y&&(S=v,v=e[S]),cb(r,S,Af(v,u,t,S,e,f))}),r}Md.exports=Af});var qd=F((aL,Nd)=>{var f_=jd(),r_=1,o_=4;function a_(e){return f_(e,r_|o_)}Nd.exports=a_});var Rd=F((DL,Vd)=>{var D_="__lodash_hash_undefined__";function s_(e){return this.__data__.set(e,D_),this}Vd.exports=s_});var zd=F((sL,Ld)=>{function l_(e){return this.__data__.has(e)}Ld.exports=l_});var Hd=F((lL,Ud)=>{var d_=hf(),c_=Rd(),p_=zd();function Sf(e){var u=-1,t=e==null?0:e.length;for(this.__data__=new d_;++u<t;)this.add(e[u])}Sf.prototype.add=Sf.prototype.push=c_;Sf.prototype.has=p_;Ud.exports=Sf});var Gd=F((dL,Wd)=>{function m_(e,u){for(var t=-1,i=e==null?0:e.length;++t<i;)if(u(e[t],t,e))return!0;return!1}Wd.exports=m_});var Jd=F((cL,Kd)=>{function F_(e,u){return e.has(u)}Kd.exports=F_});var So=F((pL,Zd)=>{var C_=Hd(),h_=Gd(),g_=Jd(),E_=1,b_=2;function __(e,u,t,i,n,f){var r=t&E_,o=e.length,a=u.length;if(o!=a&&!(r&&a>o))return!1;var D=f.get(e),l=f.get(u);if(D&&l)return D==u&&l==e;var p=-1,m=!0,E=t&b_?new C_:void 0;for(f.set(e,u),f.set(u,e);++p<o;){var g=e[p],y=u[p];if(i)var v=r?i(y,g,p,u,e,f):i(g,y,p,e,u,f);if(v!==void 0){if(v)continue;m=!1;break}if(E){if(!h_(u,function(S,O){if(!g_(E,O)&&(g===S||n(g,S,t,i,f)))return E.push(O)})){m=!1;break}}else if(!(g===y||n(g,y,t,i,f))){m=!1;break}}return f.delete(e),f.delete(u),m}Zd.exports=__});var Xd=F((mL,Qd)=>{function y_(e){var u=-1,t=Array(e.size);return e.forEach(function(i,n){t[++u]=[n,i]}),t}Qd.exports=y_});var e3=F((FL,Yd)=>{function v_(e){var u=-1,t=Array(e.size);return e.forEach(function(i){t[++u]=i}),t}Yd.exports=v_});var f3=F((CL,n3)=>{var t3=ci(),u3=Ao(),B_=Ff(),x_=So(),w_=Xd(),I_=e3(),A_=1,S_=2,k_="[object Boolean]",$_="[object Date]",T_="[object Error]",P_="[object Map]",O_="[object Number]",M_="[object RegExp]",j_="[object Set]",N_="[object String]",q_="[object Symbol]",V_="[object ArrayBuffer]",R_="[object DataView]",i3=t3?t3.prototype:void 0,ko=i3?i3.valueOf:void 0;function L_(e,u,t,i,n,f,r){switch(t){case R_:if(e.byteLength!=u.byteLength||e.byteOffset!=u.byteOffset)return!1;e=e.buffer,u=u.buffer;case V_:return!(e.byteLength!=u.byteLength||!f(new u3(e),new u3(u)));case k_:case $_:case O_:return B_(+e,+u);case T_:return e.name==u.name&&e.message==u.message;case M_:case N_:return e==u+"";case P_:var o=w_;case j_:var a=i&A_;if(o||(o=I_),e.size!=u.size&&!a)return!1;var D=r.get(e);if(D)return D==u;i|=S_,r.set(e,u);var l=x_(o(e),o(u),i,n,f,r);return r.delete(e),l;case q_:if(ko)return ko.call(e)==ko.call(u)}return!1}n3.exports=L_});var a3=F((hL,o3)=>{var r3=yo(),z_=1,U_=Object.prototype,H_=U_.hasOwnProperty;function W_(e,u,t,i,n,f){var r=t&z_,o=r3(e),a=o.length,D=r3(u),l=D.length;if(a!=l&&!r)return!1;for(var p=a;p--;){var m=o[p];if(!(r?m in u:H_.call(u,m)))return!1}var E=f.get(e),g=f.get(u);if(E&&g)return E==u&&g==e;var y=!0;f.set(e,u),f.set(u,e);for(var v=r;++p<a;){m=o[p];var S=e[m],O=u[m];if(i)var U=r?i(O,S,m,u,e,f):i(S,O,m,e,u,f);if(!(U===void 0?S===O||n(S,O,t,i,f):U)){y=!1;break}v||(v=m=="constructor")}if(y&&!v){var H=e.constructor,M=u.constructor;H!=M&&"constructor"in e&&"constructor"in u&&!(typeof H=="function"&&H instanceof H&&typeof M=="function"&&M instanceof M)&&(y=!1)}return f.delete(e),f.delete(u),y}o3.exports=W_});var F3=F((gL,m3)=>{var $o=gf(),G_=So(),K_=f3(),J_=a3(),D3=gn(),s3=mt(),l3=Ef(),Z_=mo(),Q_=1,d3="[object Arguments]",c3="[object Array]",kf="[object Object]",X_=Object.prototype,p3=X_.hasOwnProperty;function Y_(e,u,t,i,n,f){var r=s3(e),o=s3(u),a=r?c3:D3(e),D=o?c3:D3(u);a=a==d3?kf:a,D=D==d3?kf:D;var l=a==kf,p=D==kf,m=a==D;if(m&&l3(e)){if(!l3(u))return!1;r=!0,l=!1}if(m&&!l)return f||(f=new $o),r||Z_(e)?G_(e,u,t,i,n,f):K_(e,u,a,t,i,n,f);if(!(t&Q_)){var E=l&&p3.call(e,"__wrapped__"),g=p&&p3.call(u,"__wrapped__");if(E||g){var y=E?e.value():e,v=g?u.value():u;return f||(f=new $o),n(y,v,t,i,f)}}return m?(f||(f=new $o),J_(e,u,t,i,n,f)):!1}m3.exports=Y_});var $f=F((EL,g3)=>{var e9=F3(),C3=Kt();function h3(e,u,t,i,n){return e===u?!0:e==null||u==null||!C3(e)&&!C3(u)?e!==e&&u!==u:e9(e,u,t,i,h3,n)}g3.exports=h3});var b3=F((bL,E3)=>{var t9=$f();function u9(e,u){return t9(e,u)}E3.exports=u9});var _n=F(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.regexpCode=de.getEsmExportName=de.getProperty=de.safeStringify=de.stringify=de.strConcat=de.addCodeArg=de.str=de._=de.nil=de._Code=de.Name=de.IDENTIFIER=de._CodeOrName=void 0;var En=class{};de._CodeOrName=En;de.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Vu=class extends En{constructor(u){if(super(),!de.IDENTIFIER.test(u))throw new Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};de.Name=Vu;var gt=class extends En{constructor(u){super(),this._items=typeof u=="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((t,i)=>`${t}${i}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((t,i)=>(i instanceof Vu&&(t[i.str]=(t[i.str]||0)+1),t),{})}};de._Code=gt;de.nil=new gt("");function _3(e,...u){let t=[e[0]],i=0;for(;i<u.length;)Po(t,u[i]),t.push(e[++i]);return new gt(t)}de._=_3;var To=new gt("+");function y3(e,...u){let t=[bn(e[0])],i=0;for(;i<u.length;)t.push(To),Po(t,u[i]),t.push(To,bn(e[++i]));return i9(t),new gt(t)}de.str=y3;function Po(e,u){u instanceof gt?e.push(...u._items):u instanceof Vu?e.push(u):e.push(r9(u))}de.addCodeArg=Po;function i9(e){let u=1;for(;u<e.length-1;){if(e[u]===To){let t=n9(e[u-1],e[u+1]);if(t!==void 0){e.splice(u-1,3,t);continue}e[u++]="+"}u++}}function n9(e,u){if(u==='""')return e;if(e==='""')return u;if(typeof e=="string")return u instanceof Vu||e[e.length-1]!=='"'?void 0:typeof u!="string"?`${e.slice(0,-1)}${u}"`:u[0]==='"'?e.slice(0,-1)+u.slice(1):void 0;if(typeof u=="string"&&u[0]==='"'&&!(e instanceof Vu))return`"${e}${u.slice(1)}`}function f9(e,u){return u.emptyStr()?e:e.emptyStr()?u:y3`${e}${u}`}de.strConcat=f9;function r9(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:bn(Array.isArray(e)?e.join(","):e)}function o9(e){return new gt(bn(e))}de.stringify=o9;function bn(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}de.safeStringify=bn;function a9(e){return typeof e=="string"&&de.IDENTIFIER.test(e)?new gt(`.${e}`):_3`[${e}]`}de.getProperty=a9;function D9(e){if(typeof e=="string"&&de.IDENTIFIER.test(e))return new gt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}de.getEsmExportName=D9;function s9(e){return new gt(e.toString())}de.regexpCode=s9});var jo=F(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.ValueScope=Dt.ValueScopeName=Dt.Scope=Dt.varKinds=Dt.UsedValueState=void 0;var at=_n(),Oo=class extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}},Tf=function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e}(Tf||(Dt.UsedValueState=Tf={}));Dt.varKinds={const:new at.Name("const"),let:new at.Name("let"),var:new at.Name("var")};var Pf=class{constructor({prefixes:u,parent:t}={}){this._names={},this._prefixes=u,this._parent=t}toName(u){return u instanceof at.Name?u:this.name(u)}name(u){return new at.Name(this._newName(u))}_newName(u){let t=this._names[u]||this._nameGroup(u);return`${u}${t.index++}`}_nameGroup(u){var t,i;if(!((i=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||i===void 0)&&i.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}};Dt.Scope=Pf;var Of=class extends at.Name{constructor(u,t){super(t),this.prefix=u}setValue(u,{property:t,itemIndex:i}){this.value=u,this.scopePath=(0,at._)`.${new at.Name(t)}[${i}]`}};Dt.ValueScopeName=Of;var l9=(0,at._)`\n`,Mo=class extends Pf{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=Ee(Q({},u),{_n:u.lines?l9:at.nil})}get(){return this._scope}name(u){return new Of(u,this._newName(u))}value(u,t){var i;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(u),{prefix:f}=n,r=(i=t.key)!==null&&i!==void 0?i:t.ref,o=this._values[f];if(o){let l=o.get(r);if(l)return l}else o=this._values[f]=new Map;o.set(r,n);let a=this._scope[f]||(this._scope[f]=[]),D=a.length;return a[D]=t.ref,n.setValue(t,{property:f,itemIndex:D}),n}getValue(u,t){let i=this._values[u];if(i)return i.get(t)}scopeRefs(u,t=this._values){return this._reduceValues(t,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,at._)`${u}${i.scopePath}`})}scopeCode(u=this._values,t,i){return this._reduceValues(u,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},t,i)}_reduceValues(u,t,i={},n){let f=at.nil;for(let r in u){let o=u[r];if(!o)continue;let a=i[r]=i[r]||new Map;o.forEach(D=>{if(a.has(D))return;a.set(D,Tf.Started);let l=t(D);if(l){let p=this.opts.es5?Dt.varKinds.var:Dt.varKinds.const;f=(0,at._)`${f}${p} ${D} = ${l};${this.opts._n}`}else if(l=n==null?void 0:n(D))f=(0,at._)`${f}${l}${this.opts._n}`;else throw new Oo(D);a.set(D,Tf.Completed)})}return f}};Dt.ValueScope=Mo});var te=F(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.or=ie.and=ie.not=ie.CodeGen=ie.operators=ie.varKinds=ie.ValueScopeName=ie.ValueScope=ie.Scope=ie.Name=ie.regexpCode=ie.stringify=ie.getProperty=ie.nil=ie.strConcat=ie.str=ie._=void 0;var De=_n(),$t=jo(),du=_n();Object.defineProperty(ie,"_",{enumerable:!0,get:function(){return du._}});Object.defineProperty(ie,"str",{enumerable:!0,get:function(){return du.str}});Object.defineProperty(ie,"strConcat",{enumerable:!0,get:function(){return du.strConcat}});Object.defineProperty(ie,"nil",{enumerable:!0,get:function(){return du.nil}});Object.defineProperty(ie,"getProperty",{enumerable:!0,get:function(){return du.getProperty}});Object.defineProperty(ie,"stringify",{enumerable:!0,get:function(){return du.stringify}});Object.defineProperty(ie,"regexpCode",{enumerable:!0,get:function(){return du.regexpCode}});Object.defineProperty(ie,"Name",{enumerable:!0,get:function(){return du.Name}});var Vf=jo();Object.defineProperty(ie,"Scope",{enumerable:!0,get:function(){return Vf.Scope}});Object.defineProperty(ie,"ValueScope",{enumerable:!0,get:function(){return Vf.ValueScope}});Object.defineProperty(ie,"ValueScopeName",{enumerable:!0,get:function(){return Vf.ValueScopeName}});Object.defineProperty(ie,"varKinds",{enumerable:!0,get:function(){return Vf.varKinds}});ie.operators={GT:new De._Code(">"),GTE:new De._Code(">="),LT:new De._Code("<"),LTE:new De._Code("<="),EQ:new De._Code("==="),NEQ:new De._Code("!=="),NOT:new De._Code("!"),OR:new De._Code("||"),AND:new De._Code("&&"),ADD:new De._Code("+")};var Jt=class{optimizeNodes(){return this}optimizeNames(u,t){return this}},No=class extends Jt{constructor(u,t,i){super(),this.varKind=u,this.name=t,this.rhs=i}render({es5:u,_n:t}){let i=u?$t.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+t}optimizeNames(u,t){if(u[this.name.str])return this.rhs&&(this.rhs=_i(this.rhs,u,t)),this}get names(){return this.rhs instanceof De._CodeOrName?this.rhs.names:{}}},jf=class extends Jt{constructor(u,t,i){super(),this.lhs=u,this.rhs=t,this.sideEffects=i}render({_n:u}){return`${this.lhs} = ${this.rhs};`+u}optimizeNames(u,t){if(!(this.lhs instanceof De.Name&&!u[this.lhs.str]&&!this.sideEffects))return this.rhs=_i(this.rhs,u,t),this}get names(){let u=this.lhs instanceof De.Name?{}:Q({},this.lhs.names);return qf(u,this.rhs)}},qo=class extends jf{constructor(u,t,i,n){super(u,i,n),this.op=t}render({_n:u}){return`${this.lhs} ${this.op}= ${this.rhs};`+u}},Vo=class extends Jt{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`${this.label}:`+u}},Ro=class extends Jt{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`break${this.label?` ${this.label}`:""};`+u}},Lo=class extends Jt{constructor(u){super(),this.error=u}render({_n:u}){return`throw ${this.error};`+u}get names(){return this.error.names}},zo=class extends Jt{constructor(u){super(),this.code=u}render({_n:u}){return`${this.code};`+u}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(u,t){return this.code=_i(this.code,u,t),this}get names(){return this.code instanceof De._CodeOrName?this.code.names:{}}},yn=class extends Jt{constructor(u=[]){super(),this.nodes=u}render(u){return this.nodes.reduce((t,i)=>t+i.render(u),"")}optimizeNodes(){let{nodes:u}=this,t=u.length;for(;t--;){let i=u[t].optimizeNodes();Array.isArray(i)?u.splice(t,1,...i):i?u[t]=i:u.splice(t,1)}return u.length>0?this:void 0}optimizeNames(u,t){let{nodes:i}=this,n=i.length;for(;n--;){let f=i[n];f.optimizeNames(u,t)||(d9(u,f.names),i.splice(n,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((u,t)=>Ru(u,t.names),{})}},Zt=class extends yn{render(u){return"{"+u._n+super.render(u)+"}"+u._n}},Uo=class extends yn{},Ho=(()=>{class e extends Zt{}return e.kind="else",e})(),Mf=(()=>{class e extends Zt{constructor(t,i){super(i),this.condition=t}render(t){let i=`if(${this.condition})`+super.render(t);return this.else&&(i+="else "+this.else.render(t)),i}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let i=this.else;if(i){let n=i.optimizeNodes();i=this.else=Array.isArray(n)?new Ho(n):n}if(i)return t===!1?i instanceof e?i:i.nodes:this.nodes.length?this:new e(I3(t),i instanceof e?[i]:i.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,i){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,i),!!(super.optimizeNames(t,i)||this.else))return this.condition=_i(this.condition,t,i),this}get names(){let t=super.names;return qf(t,this.condition),this.else&&Ru(t,this.else.names),t}}return e.kind="if",e})(),Rf=(()=>{class e extends Zt{}return e.kind="for",e})(),Wo=class extends Rf{constructor(u){super(),this.iteration=u}render(u){return`for(${this.iteration})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iteration=_i(this.iteration,u,t),this}get names(){return Ru(super.names,this.iteration.names)}},Go=class extends Rf{constructor(u,t,i,n){super(),this.varKind=u,this.name=t,this.from=i,this.to=n}render(u){let t=u.es5?$t.varKinds.var:this.varKind,{name:i,from:n,to:f}=this;return`for(${t} ${i}=${n}; ${i}<${f}; ${i}++)`+super.render(u)}get names(){let u=qf(super.names,this.from);return qf(u,this.to)}},Nf=class extends Rf{constructor(u,t,i,n){super(),this.loop=u,this.varKind=t,this.name=i,this.iterable=n}render(u){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iterable=_i(this.iterable,u,t),this}get names(){return Ru(super.names,this.iterable.names)}},v3=(()=>{class e extends Zt{constructor(t,i,n){super(),this.name=t,this.args=i,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),B3=(()=>{class e extends yn{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Ko=class extends Zt{render(u){let t="try"+super.render(u);return this.catch&&(t+=this.catch.render(u)),this.finally&&(t+=this.finally.render(u)),t}optimizeNodes(){var u,t;return super.optimizeNodes(),(u=this.catch)===null||u===void 0||u.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(u,t){var i,n;return super.optimizeNames(u,t),(i=this.catch)===null||i===void 0||i.optimizeNames(u,t),(n=this.finally)===null||n===void 0||n.optimizeNames(u,t),this}get names(){let u=super.names;return this.catch&&Ru(u,this.catch.names),this.finally&&Ru(u,this.finally.names),u}},x3=(()=>{class e extends Zt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),w3=(()=>{class e extends Zt{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Jo=class{constructor(u,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Ee(Q({},t),{_n:t.lines?`
2
2
  `:""}),this._extScope=u,this._scope=new $t.Scope({parent:u}),this._nodes=[new Uo]}toString(){return this._root.render(this.opts)}name(u){return this._scope.name(u)}scopeName(u){return this._extScope.name(u)}scopeValue(u,t){let i=this._extScope.value(u,t);return(this._values[i.prefix]||(this._values[i.prefix]=new Set)).add(i),i}getScopeValue(u,t){return this._extScope.getValue(u,t)}scopeRefs(u){return this._extScope.scopeRefs(u,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(u,t,i,n){let f=this._scope.toName(t);return i!==void 0&&n&&(this._constants[f.str]=i),this._leafNode(new No(u,f,i)),f}const(u,t,i){return this._def($t.varKinds.const,u,t,i)}let(u,t,i){return this._def($t.varKinds.let,u,t,i)}var(u,t,i){return this._def($t.varKinds.var,u,t,i)}assign(u,t,i){return this._leafNode(new jf(u,t,i))}add(u,t){return this._leafNode(new qo(u,ie.operators.ADD,t))}code(u){return typeof u=="function"?u():u!==De.nil&&this._leafNode(new zo(u)),this}object(...u){let t=["{"];for(let[i,n]of u)t.length>1&&t.push(","),t.push(i),(i!==n||this.opts.es5)&&(t.push(":"),(0,De.addCodeArg)(t,n));return t.push("}"),new De._Code(t)}if(u,t,i){if(this._blockNode(new Mf(u)),t&&i)this.code(t).else().code(i).endIf();else if(t)this.code(t).endIf();else if(i)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(u){return this._elseNode(new Mf(u))}else(){return this._elseNode(new Ho)}endIf(){return this._endBlockNode(Mf,Ho)}_for(u,t){return this._blockNode(u),t&&this.code(t).endFor(),this}for(u,t){return this._for(new Wo(u),t)}forRange(u,t,i,n,f=this.opts.es5?$t.varKinds.var:$t.varKinds.let){let r=this._scope.toName(u);return this._for(new Go(f,r,t,i),()=>n(r))}forOf(u,t,i,n=$t.varKinds.const){let f=this._scope.toName(u);if(this.opts.es5){let r=t instanceof De.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,De._)`${r}.length`,o=>{this.var(f,(0,De._)`${r}[${o}]`),i(f)})}return this._for(new Nf("of",n,f,t),()=>i(f))}forIn(u,t,i,n=this.opts.es5?$t.varKinds.var:$t.varKinds.const){if(this.opts.ownProperties)return this.forOf(u,(0,De._)`Object.keys(${t})`,i);let f=this._scope.toName(u);return this._for(new Nf("in",n,f,t),()=>i(f))}endFor(){return this._endBlockNode(Rf)}label(u){return this._leafNode(new Vo(u))}break(u){return this._leafNode(new Ro(u))}return(u){let t=new B3;if(this._blockNode(t),this.code(u),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(B3)}try(u,t,i){if(!t&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new Ko;if(this._blockNode(n),this.code(u),t){let f=this.name("e");this._currNode=n.catch=new x3(f),t(f)}return i&&(this._currNode=n.finally=new w3,this.code(i)),this._endBlockNode(x3,w3)}throw(u){return this._leafNode(new Lo(u))}block(u,t){return this._blockStarts.push(this._nodes.length),u&&this.code(u).endBlock(t),this}endBlock(u){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let i=this._nodes.length-t;if(i<0||u!==void 0&&i!==u)throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${u} expected`);return this._nodes.length=t,this}func(u,t=De.nil,i,n){return this._blockNode(new v3(u,t,i)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(v3)}optimize(u=1){for(;u-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(u){return this._currNode.nodes.push(u),this}_blockNode(u){this._currNode.nodes.push(u),this._nodes.push(u)}_endBlockNode(u,t){let i=this._currNode;if(i instanceof u||t&&i instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${u.kind}/${t.kind}`:u.kind}"`)}_elseNode(u){let t=this._currNode;if(!(t instanceof Mf))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=u,this}get _root(){return this._nodes[0]}get _currNode(){let u=this._nodes;return u[u.length-1]}set _currNode(u){let t=this._nodes;t[t.length-1]=u}};ie.CodeGen=Jo;function Ru(e,u){for(let t in u)e[t]=(e[t]||0)+(u[t]||0);return e}function qf(e,u){return u instanceof De._CodeOrName?Ru(e,u.names):e}function _i(e,u,t){if(e instanceof De.Name)return i(e);if(!n(e))return e;return new De._Code(e._items.reduce((f,r)=>(r instanceof De.Name&&(r=i(r)),r instanceof De._Code?f.push(...r._items):f.push(r),f),[]));function i(f){let r=t[f.str];return r===void 0||u[f.str]!==1?f:(delete u[f.str],r)}function n(f){return f instanceof De._Code&&f._items.some(r=>r instanceof De.Name&&u[r.str]===1&&t[r.str]!==void 0)}}function d9(e,u){for(let t in u)e[t]=(e[t]||0)-(u[t]||0)}function I3(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,De._)`!${Zo(e)}`}ie.not=I3;var c9=A3(ie.operators.AND);function p9(...e){return e.reduce(c9)}ie.and=p9;var m9=A3(ie.operators.OR);function F9(...e){return e.reduce(m9)}ie.or=F9;function A3(e){return(u,t)=>u===De.nil?t:t===De.nil?u:(0,De._)`${Zo(u)} ${e} ${Zo(t)}`}function Zo(e){return e instanceof De.Name?e:(0,De._)`(${e})`}});var re=F(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.checkStrictMode=fe.getErrorPath=fe.Type=fe.useFunc=fe.setEvaluated=fe.evaluatedPropsToName=fe.mergeEvaluated=fe.eachItem=fe.unescapeJsonPointer=fe.escapeJsonPointer=fe.escapeFragment=fe.unescapeFragment=fe.schemaRefOrVal=fe.schemaHasRulesButRef=fe.schemaHasRules=fe.checkUnknownRules=fe.alwaysValidSchema=fe.toHash=void 0;var be=te(),C9=_n();function h9(e){let u={};for(let t of e)u[t]=!0;return u}fe.toHash=h9;function g9(e,u){return typeof u=="boolean"?u:Object.keys(u).length===0?!0:($3(e,u),!T3(u,e.self.RULES.all))}fe.alwaysValidSchema=g9;function $3(e,u=e.schema){let{opts:t,self:i}=e;if(!t.strictSchema||typeof u=="boolean")return;let n=i.RULES.keywords;for(let f in u)n[f]||M3(e,`unknown keyword: "${f}"`)}fe.checkUnknownRules=$3;function T3(e,u){if(typeof e=="boolean")return!e;for(let t in e)if(u[t])return!0;return!1}fe.schemaHasRules=T3;function E9(e,u){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&u.all[t])return!0;return!1}fe.schemaHasRulesButRef=E9;function b9({topSchemaRef:e,schemaPath:u},t,i,n){if(!n){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,be._)`${t}`}return(0,be._)`${e}${u}${(0,be.getProperty)(i)}`}fe.schemaRefOrVal=b9;function _9(e){return P3(decodeURIComponent(e))}fe.unescapeFragment=_9;function y9(e){return encodeURIComponent(Xo(e))}fe.escapeFragment=y9;function Xo(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}fe.escapeJsonPointer=Xo;function P3(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}fe.unescapeJsonPointer=P3;function v9(e,u){if(Array.isArray(e))for(let t of e)u(t);else u(e)}fe.eachItem=v9;function S3({mergeNames:e,mergeToName:u,mergeValues:t,resultToName:i}){return(n,f,r,o)=>{let a=r===void 0?f:r instanceof be.Name?(f instanceof be.Name?e(n,f,r):u(n,f,r),r):f instanceof be.Name?(u(n,r,f),f):t(f,r);return o===be.Name&&!(a instanceof be.Name)?i(n,a):a}}fe.mergeEvaluated={props:S3({mergeNames:(e,u,t)=>e.if((0,be._)`${t} !== true && ${u} !== undefined`,()=>{e.if((0,be._)`${u} === true`,()=>e.assign(t,!0),()=>e.assign(t,(0,be._)`${t} || {}`).code((0,be._)`Object.assign(${t}, ${u})`))}),mergeToName:(e,u,t)=>e.if((0,be._)`${t} !== true`,()=>{u===!0?e.assign(t,!0):(e.assign(t,(0,be._)`${t} || {}`),Yo(e,t,u))}),mergeValues:(e,u)=>e===!0?!0:Q(Q({},e),u),resultToName:O3}),items:S3({mergeNames:(e,u,t)=>e.if((0,be._)`${t} !== true && ${u} !== undefined`,()=>e.assign(t,(0,be._)`${u} === true ? true : ${t} > ${u} ? ${t} : ${u}`)),mergeToName:(e,u,t)=>e.if((0,be._)`${t} !== true`,()=>e.assign(t,u===!0?!0:(0,be._)`${t} > ${u} ? ${t} : ${u}`)),mergeValues:(e,u)=>e===!0?!0:Math.max(e,u),resultToName:(e,u)=>e.var("items",u)})};function O3(e,u){if(u===!0)return e.var("props",!0);let t=e.var("props",(0,be._)`{}`);return u!==void 0&&Yo(e,t,u),t}fe.evaluatedPropsToName=O3;function Yo(e,u,t){Object.keys(t).forEach(i=>e.assign((0,be._)`${u}${(0,be.getProperty)(i)}`,!0))}fe.setEvaluated=Yo;var k3={};function B9(e,u){return e.scopeValue("func",{ref:u,code:k3[u.code]||(k3[u.code]=new C9._Code(u.code))})}fe.useFunc=B9;var Qo=function(e){return e[e.Num=0]="Num",e[e.Str=1]="Str",e}(Qo||(fe.Type=Qo={}));function x9(e,u,t){if(e instanceof be.Name){let i=u===Qo.Num;return t?i?(0,be._)`"[" + ${e} + "]"`:(0,be._)`"['" + ${e} + "']"`:i?(0,be._)`"/" + ${e}`:(0,be._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,be.getProperty)(e).toString():"/"+Xo(e)}fe.getErrorPath=x9;function M3(e,u,t=e.opts.strictSchema){if(t){if(u=`strict mode: ${u}`,t===!0)throw new Error(u);e.self.logger.warn(u)}}fe.checkStrictMode=M3});var Et=F(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});var Qe=te(),w9={data:new Qe.Name("data"),valCxt:new Qe.Name("valCxt"),instancePath:new Qe.Name("instancePath"),parentData:new Qe.Name("parentData"),parentDataProperty:new Qe.Name("parentDataProperty"),rootData:new Qe.Name("rootData"),dynamicAnchors:new Qe.Name("dynamicAnchors"),vErrors:new Qe.Name("vErrors"),errors:new Qe.Name("errors"),this:new Qe.Name("this"),self:new Qe.Name("self"),scope:new Qe.Name("scope"),json:new Qe.Name("json"),jsonPos:new Qe.Name("jsonPos"),jsonLen:new Qe.Name("jsonLen"),jsonPart:new Qe.Name("jsonPart")};ea.default=w9});var vn=F(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.extendErrors=Xe.resetErrorsCount=Xe.reportExtraError=Xe.reportError=Xe.keyword$DataError=Xe.keywordError=void 0;var le=te(),Lf=re(),ft=Et();Xe.keywordError={message:({keyword:e})=>(0,le.str)`must pass "${e}" keyword validation`};Xe.keyword$DataError={message:({keyword:e,schemaType:u})=>u?(0,le.str)`"${e}" keyword must be ${u} ($data)`:(0,le.str)`"${e}" keyword is invalid ($data)`};function I9(e,u=Xe.keywordError,t,i){let{it:n}=e,{gen:f,compositeRule:r,allErrors:o}=n,a=q3(e,u,t);(i!=null?i:r||o)?j3(f,a):N3(n,(0,le._)`[${a}]`)}Xe.reportError=I9;function A9(e,u=Xe.keywordError,t){let{it:i}=e,{gen:n,compositeRule:f,allErrors:r}=i,o=q3(e,u,t);j3(n,o),f||r||N3(i,ft.default.vErrors)}Xe.reportExtraError=A9;function S9(e,u){e.assign(ft.default.errors,u),e.if((0,le._)`${ft.default.vErrors} !== null`,()=>e.if(u,()=>e.assign((0,le._)`${ft.default.vErrors}.length`,u),()=>e.assign(ft.default.vErrors,null)))}Xe.resetErrorsCount=S9;function k9({gen:e,keyword:u,schemaValue:t,data:i,errsCount:n,it:f}){if(n===void 0)throw new Error("ajv implementation error");let r=e.name("err");e.forRange("i",n,ft.default.errors,o=>{e.const(r,(0,le._)`${ft.default.vErrors}[${o}]`),e.if((0,le._)`${r}.instancePath === undefined`,()=>e.assign((0,le._)`${r}.instancePath`,(0,le.strConcat)(ft.default.instancePath,f.errorPath))),e.assign((0,le._)`${r}.schemaPath`,(0,le.str)`${f.errSchemaPath}/${u}`),f.opts.verbose&&(e.assign((0,le._)`${r}.schema`,t),e.assign((0,le._)`${r}.data`,i))})}Xe.extendErrors=k9;function j3(e,u){let t=e.const("err",u);e.if((0,le._)`${ft.default.vErrors} === null`,()=>e.assign(ft.default.vErrors,(0,le._)`[${t}]`),(0,le._)`${ft.default.vErrors}.push(${t})`),e.code((0,le._)`${ft.default.errors}++`)}function N3(e,u){let{gen:t,validateName:i,schemaEnv:n}=e;n.$async?t.throw((0,le._)`new ${e.ValidationError}(${u})`):(t.assign((0,le._)`${i}.errors`,u),t.return(!1))}var Lu={keyword:new le.Name("keyword"),schemaPath:new le.Name("schemaPath"),params:new le.Name("params"),propertyName:new le.Name("propertyName"),message:new le.Name("message"),schema:new le.Name("schema"),parentSchema:new le.Name("parentSchema")};function q3(e,u,t){let{createErrors:i}=e.it;return i===!1?(0,le._)`{}`:$9(e,u,t)}function $9(e,u,t={}){let{gen:i,it:n}=e,f=[T9(n,t),P9(e,t)];return O9(e,u,f),i.object(...f)}function T9({errorPath:e},{instancePath:u}){let t=u?(0,le.str)`${e}${(0,Lf.getErrorPath)(u,Lf.Type.Str)}`:e;return[ft.default.instancePath,(0,le.strConcat)(ft.default.instancePath,t)]}function P9({keyword:e,it:{errSchemaPath:u}},{schemaPath:t,parentSchema:i}){let n=i?u:(0,le.str)`${u}/${e}`;return t&&(n=(0,le.str)`${n}${(0,Lf.getErrorPath)(t,Lf.Type.Str)}`),[Lu.schemaPath,n]}function O9(e,{params:u,message:t},i){let{keyword:n,data:f,schemaValue:r,it:o}=e,{opts:a,propertyName:D,topSchemaRef:l,schemaPath:p}=o;i.push([Lu.keyword,n],[Lu.params,typeof u=="function"?u(e):u||(0,le._)`{}`]),a.messages&&i.push([Lu.message,typeof t=="function"?t(e):t]),a.verbose&&i.push([Lu.schema,r],[Lu.parentSchema,(0,le._)`${l}${p}`],[ft.default.data,f]),D&&i.push([Lu.propertyName,D])}});var R3=F(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.boolOrEmptySchema=yi.topBoolOrEmptySchema=void 0;var M9=vn(),j9=te(),N9=Et(),q9={message:"boolean schema is false"};function V9(e){let{gen:u,schema:t,validateName:i}=e;t===!1?V3(e,!1):typeof t=="object"&&t.$async===!0?u.return(N9.default.data):(u.assign((0,j9._)`${i}.errors`,null),u.return(!0))}yi.topBoolOrEmptySchema=V9;function R9(e,u){let{gen:t,schema:i}=e;i===!1?(t.var(u,!1),V3(e)):t.var(u,!0)}yi.boolOrEmptySchema=R9;function V3(e,u){let{gen:t,data:i}=e,n={gen:t,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,M9.reportError)(n,q9,void 0,u)}});var ta=F(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.getRules=vi.isJSONType=void 0;var L9=["string","number","integer","boolean","null","object","array"],z9=new Set(L9);function U9(e){return typeof e=="string"&&z9.has(e)}vi.isJSONType=U9;function H9(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Ee(Q({},e),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}vi.getRules=H9});var ua=F(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.shouldUseRule=cu.shouldUseGroup=cu.schemaHasRulesForType=void 0;function W9({schema:e,self:u},t){let i=u.RULES.types[t];return i&&i!==!0&&L3(e,i)}cu.schemaHasRulesForType=W9;function L3(e,u){return u.rules.some(t=>z3(e,t))}cu.shouldUseGroup=L3;function z3(e,u){var t;return e[u.keyword]!==void 0||((t=u.definition.implements)===null||t===void 0?void 0:t.some(i=>e[i]!==void 0))}cu.shouldUseRule=z3});var Bn=F(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.reportTypeError=Ye.checkDataTypes=Ye.checkDataType=Ye.coerceAndCheckDataType=Ye.getJSONTypes=Ye.getSchemaTypes=Ye.DataType=void 0;var G9=ta(),K9=ua(),J9=vn(),ue=te(),U3=re(),Bi=function(e){return e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong",e}(Bi||(Ye.DataType=Bi={}));function Z9(e){let u=H3(e.type);if(u.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!u.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&u.push("null")}return u}Ye.getSchemaTypes=Z9;function H3(e){let u=Array.isArray(e)?e:e?[e]:[];if(u.every(G9.isJSONType))return u;throw new Error("type must be JSONType or JSONType[]: "+u.join(","))}Ye.getJSONTypes=H3;function Q9(e,u){let{gen:t,data:i,opts:n}=e,f=X9(u,n.coerceTypes),r=u.length>0&&!(f.length===0&&u.length===1&&(0,K9.schemaHasRulesForType)(e,u[0]));if(r){let o=na(u,i,n.strictNumbers,Bi.Wrong);t.if(o,()=>{f.length?Y9(e,u,f):fa(e)})}return r}Ye.coerceAndCheckDataType=Q9;var W3=new Set(["string","number","integer","boolean","null"]);function X9(e,u){return u?e.filter(t=>W3.has(t)||u==="array"&&t==="array"):[]}function Y9(e,u,t){let{gen:i,data:n,opts:f}=e,r=i.let("dataType",(0,ue._)`typeof ${n}`),o=i.let("coerced",(0,ue._)`undefined`);f.coerceTypes==="array"&&i.if((0,ue._)`${r} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>i.assign(n,(0,ue._)`${n}[0]`).assign(r,(0,ue._)`typeof ${n}`).if(na(u,n,f.strictNumbers),()=>i.assign(o,n))),i.if((0,ue._)`${o} !== undefined`);for(let D of t)(W3.has(D)||D==="array"&&f.coerceTypes==="array")&&a(D);i.else(),fa(e),i.endIf(),i.if((0,ue._)`${o} !== undefined`,()=>{i.assign(n,o),ey(e,o)});function a(D){switch(D){case"string":i.elseIf((0,ue._)`${r} == "number" || ${r} == "boolean"`).assign(o,(0,ue._)`"" + ${n}`).elseIf((0,ue._)`${n} === null`).assign(o,(0,ue._)`""`);return;case"number":i.elseIf((0,ue._)`${r} == "boolean" || ${n} === null
3
3
  || (${r} == "string" && ${n} && ${n} == +${n})`).assign(o,(0,ue._)`+${n}`);return;case"integer":i.elseIf((0,ue._)`${r} === "boolean" || ${n} === null
4
4
  || (${r} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(o,(0,ue._)`+${n}`);return;case"boolean":i.elseIf((0,ue._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(o,!1).elseIf((0,ue._)`${n} === "true" || ${n} === 1`).assign(o,!0);return;case"null":i.elseIf((0,ue._)`${n} === "" || ${n} === 0 || ${n} === false`),i.assign(o,null);return;case"array":i.elseIf((0,ue._)`${r} === "string" || ${r} === "number"