OpChan/dist/assets/index-COonna6N.js

2 lines
69 KiB
JavaScript
Raw Permalink Normal View History

2025-09-09 17:41:33 +05:30
import{aR as je,ah as mr,aS as Rr,aO as Z}from"./index-Cr5N_0pd.js";var Rt={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=je,a=r.Buffer;function o(h,u){for(var f in h)u[f]=h[f]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=c);function c(h,u,f){return a(h,u,f)}c.prototype=Object.create(a.prototype),o(a,c),c.from=function(h,u,f){if(typeof h=="number")throw new TypeError("Argument must not be a number");return a(h,u,f)},c.alloc=function(h,u,f){if(typeof h!="number")throw new TypeError("Argument must be a number");var d=a(h);return u!==void 0?typeof f=="string"?d.fill(u,f):d.fill(u):d.fill(0),d},c.allocUnsafe=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return a(h)},c.allocUnsafeSlow=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(h)}})(Rt,Rt.exports);var Q=Rt.exports,Tt={exports:{}};typeof Object.create=="function"?Tt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Tt.exports=function(t,r){if(r){t.super_=r;var a=function(){};a.prototype=r.prototype,t.prototype=new a,t.prototype.constructor=t}};var V=Tt.exports,Pt={exports:{}},Tr=mr.EventEmitter,ze,$t;function on(){if($t)return ze;$t=1;function e(A,x){var y=Object.keys(A);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(A);x&&(v=v.filter(function(E){return Object.getOwnPropertyDescriptor(A,E).enumerable})),y.push.apply(y,v)}return y}function t(A){for(var x=1;x<arguments.length;x++){var y=arguments[x]!=null?arguments[x]:{};x%2?e(Object(y),!0).forEach(function(v){r(A,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(y)):e(Object(y)).forEach(function(v){Object.defineProperty(A,v,Object.getOwnPropertyDescriptor(y,v))})}return A}function r(A,x,y){return x=h(x),x in A?Object.defineProperty(A,x,{value:y,enumerable:!0,configurable:!0,writable:!0}):A[x]=y,A}function a(A,x){if(!(A instanceof x))throw new TypeError("Cannot call a class as a function")}function o(A,x){for(var y=0;y<x.length;y++){var v=x[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(A,h(v.key),v)}}function c(A,x,y){return x&&o(A.prototype,x),Object.defineProperty(A,"prototype",{writable:!1}),A}function h(A){var x=u(A,"string");return typeof x=="symbol"?x:String(x)}function u(A,x){if(typeof A!="object"||A===null)return A;var y=A[Symbol.toPrimitive];if(y!==void 0){var v=y.call(A,x||"default");if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(A)}var f=je,d=f.Buffer,g=Rr,w=g.inspect,R=w&&w.custom||"inspect";function N(A,x,y){d.prototype.copy.call(A,x,y)}return ze=function(){function A(){a(this,A),this.head=null,this.tail=null,this.length=0}return c(A,[{key:"push",value:function(y){var v={data:y,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(y){var v={data:y,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(y){if(this.length===0)return"";for(var v=this.head,E=""+v.data;v=v.next;)E+=y+v.data;return E}},{key:"concat",value:function(y){if(this.length===0)return d.alloc(0);for(var v=d.allocUnsafe(y>>>0),E=this.head,b=0;E;)N(E.data,v,b),b+=E.data.length,E=E.next;return v}},{key:"consume",value:function(y,v){var E;return y<this.head.data.length?(E=this.head.data.slice(0,y),this.head.data=this.head.data.slice(y)):y===this.head.data.length?E=this.shift():E=v?this._getString(y):this._getBuffer(y),E}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(y){var v=