diff --git a/app/srv/core/chunk-MAXH2HJU.js b/app/srv/core/chunk-MAXH2HJU.js new file mode 100644 index 00000000..043247fd --- /dev/null +++ b/app/srv/core/chunk-MAXH2HJU.js @@ -0,0 +1,7 @@ +var Jr=Object.create;var hr=Object.defineProperty;var Qr=Object.getOwnPropertyDescriptor;var Kr=Object.getOwnPropertyNames;var Zr=Object.getPrototypeOf,vr=Object.prototype.hasOwnProperty;var tr=(p,c)=>()=>(p&&(c=p(p=0)),c);var rt=(p,c)=>()=>(c||p((c={exports:{}}).exports,c),c.exports),st=(p,c)=>{for(var f in c)hr(p,f,{get:c[f],enumerable:!0})},tt=(p,c,f,T)=>{if(c&&typeof c=="object"||typeof c=="function")for(let w of Kr(c))!vr.call(p,w)&&w!==f&&hr(p,w,{get:()=>c[w],enumerable:!(T=Qr(c,w))||T.enumerable});return p};var et=(p,c,f)=>(f=p!=null?Jr(Zr(p)):{},tt(c||!p||!p.__esModule?hr(f,"default",{value:p,enumerable:!0}):f,p));var Q=tr(()=>{});function ot(){if(Ir)return K;Ir=!0,K.byteLength=S,K.toByteArray=P,K.fromByteArray=k;for(var p=[],c=[],f=typeof Uint8Array<"u"?Uint8Array:Array,T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w=0,B=T.length;w0)throw new Error("Invalid string. Length must be a multiple of 4");var d=s.indexOf("=");d===-1&&(d=a);var x=d===a?0:4-d%4;return[d,x]}function S(s){var a=o(s),d=a[0],x=a[1];return(d+x)*3/4-x}function L(s,a,d){return(a+d)*3/4-d}function P(s){var a,d=o(s),x=d[0],M=d[1],U=new f(L(s,x,M)),N=0,b=M>0?x-4:x,C;for(C=0;C>16&255,U[N++]=a>>8&255,U[N++]=a&255;return M===2&&(a=c[s.charCodeAt(C)]<<2|c[s.charCodeAt(C+1)]>>4,U[N++]=a&255),M===1&&(a=c[s.charCodeAt(C)]<<10|c[s.charCodeAt(C+1)]<<4|c[s.charCodeAt(C+2)]>>2,U[N++]=a>>8&255,U[N++]=a&255),U}function I(s){return p[s>>18&63]+p[s>>12&63]+p[s>>6&63]+p[s&63]}function _(s,a,d){for(var x,M=[],U=a;Ub?b:N+U));return x===1?(a=s[d-1],M.push(p[a>>2]+p[a<<4&63]+"==")):x===2&&(a=(s[d-2]<<8)+s[d-1],M.push(p[a>>10]+p[a>>4&63]+p[a<<2&63]+"=")),M.join("")}return K}function ut(){if(Ar)return er;Ar=!0;return er.read=function(p,c,f,T,w){var B,o,S=w*8-T-1,L=(1<>1,I=-7,_=f?w-1:0,k=f?-1:1,s=p[c+_];for(_+=k,B=s&(1<<-I)-1,s>>=-I,I+=S;I>0;B=B*256+p[c+_],_+=k,I-=8);for(o=B&(1<<-I)-1,B>>=-I,I+=T;I>0;o=o*256+p[c+_],_+=k,I-=8);if(B===0)B=1-P;else{if(B===L)return o?NaN:(s?-1:1)*(1/0);o=o+Math.pow(2,T),B=B-P}return(s?-1:1)*o*Math.pow(2,B-T)},er.write=function(p,c,f,T,w,B){var o,S,L,P=B*8-w-1,I=(1<>1,k=w===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=T?0:B-1,a=T?1:-1,d=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(S=isNaN(c)?1:0,o=I):(o=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-o))<1&&(o--,L*=2),o+_>=1?c+=k/L:c+=k*Math.pow(2,1-_),c*L>=2&&(o++,L/=2),o+_>=I?(S=0,o=I):o+_>=1?(S=(c*L-1)*Math.pow(2,w),o=o+_):(S=c*Math.pow(2,_-1)*Math.pow(2,w),o=0));w>=8;p[f+s]=S&255,s+=a,S/=256,w-=8);for(o=o<0;p[f+s]=o&255,s+=a,o/=256,P-=8);p[f+s-a]|=d*128},er}function ht(){if(Ur)return W;Ur=!0;let p=ot(),c=ut(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;W.Buffer=o,W.SlowBuffer=M,W.INSPECT_MAX_BYTES=50;let T=2147483647;W.kMaxLength=T,o.TYPED_ARRAY_SUPPORT=w(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function w(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function B(e){if(e>T)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,o.prototype),r}function o(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return I(e)}return S(e,r,t)}o.poolSize=8192;function S(e,r,t){if(typeof e=="string")return _(e,r);if(ArrayBuffer.isView(e))return s(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(F(e,SharedArrayBuffer)||e&&F(e.buffer,SharedArrayBuffer)))return a(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return o.from(n,r,t);let i=d(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return o.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}o.from=function(e,r,t){return S(e,r,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function L(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function P(e,r,t){return L(e),e<=0?B(e):r!==void 0?typeof t=="string"?B(e).fill(r,t):B(e).fill(r):B(e)}o.alloc=function(e,r,t){return P(e,r,t)};function I(e){return L(e),B(e<0?0:x(e)|0)}o.allocUnsafe=function(e){return I(e)},o.allocUnsafeSlow=function(e){return I(e)};function _(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=U(e,r)|0,n=B(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function k(e){let r=e.length<0?0:x(e.length)|0,t=B(r);for(let n=0;n=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return e|0}function M(e){return+e!=e&&(e=0),o.alloc(+e)}o.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==o.prototype},o.compare=function(r,t){if(F(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),F(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(r)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,i=t.length;for(let u=0,h=Math.min(n,i);ui.length?(o.isBuffer(h)||(h=o.from(h)),h.copy(i,u)):Uint8Array.prototype.set.call(i,h,u);else if(o.isBuffer(h))h.copy(i,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=h.length}return i};function U(e,r){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return or(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return gr(e).length;default:if(i)return n?-1:or(e).length;r=(""+r).toLowerCase(),i=!0}}o.byteLength=U;function N(e,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return Yr(this,r,t);case"utf8":case"utf-8":return lr(this,r,t);case"ascii":return Or(this,r,t);case"latin1":case"binary":return Dr(this,r,t);case"base64":return Pr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gr(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}o.prototype._isBuffer=!0;function b(e,r,t){let n=e[r];e[r]=e[t],e[t]=n}o.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""},f&&(o.prototype[f]=o.prototype.inspect),o.prototype.compare=function(r,t,n,i,u){if(F(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),u===void 0&&(u=this.length),t<0||n>r.length||i<0||u>this.length)throw new RangeError("out of range index");if(i>=u&&t>=n)return 0;if(i>=u)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,u>>>=0,this===r)return 0;let h=u-i,l=n-t,m=Math.min(h,l),E=this.slice(i,u),g=r.slice(t,n);for(let y=0;y2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ur(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=o.from(r,n)),o.isBuffer(r))return r.length===0?-1:sr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):sr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function sr(e,r,t,n,i){let u=1,h=e.length,l=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;u=2,h/=2,l/=2,t/=2}function m(g,y){return u===1?g[y]:g.readUInt16BE(y*u)}let E;if(i){let g=-1;for(E=t;Eh&&(t=h-l),E=t;E>=0;E--){let g=!0;for(let y=0;yi&&(n=i)):n=i;let u=r.length;n>u/2&&(n=u/2);let h;for(h=0;h>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let u=this.length-t;if((n===void 0||n>u)&&(n=u),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let h=!1;for(;;)switch(i){case"hex":return Mr(this,r,t,n);case"utf8":case"utf-8":return Nr(this,r,t,n);case"ascii":case"latin1":case"binary":return $r(this,r,t,n);case"base64":return br(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kr(this,r,t,n);default:if(h)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),h=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Pr(e,r,t){return r===0&&t===e.length?p.fromByteArray(e):p.fromByteArray(e.slice(r,t))}function lr(e,r,t){t=Math.min(e.length,t);let n=[],i=r;for(;i239?4:u>223?3:u>191?2:1;if(i+l<=t){let m,E,g,y;switch(l){case 1:u<128&&(h=u);break;case 2:m=e[i+1],(m&192)===128&&(y=(u&31)<<6|m&63,y>127&&(h=y));break;case 3:m=e[i+1],E=e[i+2],(m&192)===128&&(E&192)===128&&(y=(u&15)<<12|(m&63)<<6|E&63,y>2047&&(y<55296||y>57343)&&(h=y));break;case 4:m=e[i+1],E=e[i+2],g=e[i+3],(m&192)===128&&(E&192)===128&&(g&192)===128&&(y=(u&15)<<18|(m&63)<<12|(E&63)<<6|g&63,y>65535&&y<1114112&&(h=y))}}h===null?(h=65533,l=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|h&1023),n.push(h),i+=l}return Fr(n)}let ar=4096;function Fr(e){let r=e.length;if(r<=ar)return String.fromCharCode.apply(String,e);let t="",n=0;for(;nn)&&(t=n);let i="";for(let u=r;un&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tt)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||R(r,t,this.length);let i=this[r],u=1,h=0;for(;++h>>0,t=t>>>0,n||R(r,t,this.length);let i=this[r+--t],u=1;for(;t>0&&(u*=256);)i+=this[r+--t]*u;return i},o.prototype.readUint8=o.prototype.readUInt8=function(r,t){return r=r>>>0,t||R(r,1,this.length),this[r]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||R(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||R(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||R(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||R(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readBigUInt64LE=q(function(r){r=r>>>0,V(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&J(r,this.length-8);let i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,u=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(i)+(BigInt(u)<>>0,V(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&J(r,this.length-8);let i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],u=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return(BigInt(i)<>>0,t=t>>>0,n||R(r,t,this.length);let i=this[r],u=1,h=0;for(;++h=u&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||R(r,t,this.length);let i=t,u=1,h=this[r+--i];for(;i>0&&(u*=256);)h+=this[r+--i]*u;return u*=128,h>=u&&(h-=Math.pow(2,8*t)),h},o.prototype.readInt8=function(r,t){return r=r>>>0,t||R(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},o.prototype.readInt16LE=function(r,t){r=r>>>0,t||R(r,2,this.length);let n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(r,t){r=r>>>0,t||R(r,2,this.length);let n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(r,t){return r=r>>>0,t||R(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,t){return r=r>>>0,t||R(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readBigInt64LE=q(function(r){r=r>>>0,V(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&J(r,this.length-8);let i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return(BigInt(i)<>>0,V(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&J(r,this.length-8);let i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(i)<>>0,t||R(r,4,this.length),c.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,t){return r=r>>>0,t||R(r,4,this.length),c.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||R(r,8,this.length),c.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||R(r,8,this.length),c.read(this,r,!1,52,8)};function $(e,r,t,n,i,u){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||re.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let l=Math.pow(2,8*n)-1;$(this,r,t,n,l,0)}let u=1,h=0;for(this[t]=r&255;++h>>0,n=n>>>0,!i){let l=Math.pow(2,8*n)-1;$(this,r,t,n,l,0)}let u=n-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,255,0),this[t]=r&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function fr(e,r,t,n,i){mr(r,n,i,e,t,7);let u=Number(r&BigInt(4294967295));e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u;let h=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=h,h=h>>8,e[t++]=h,h=h>>8,e[t++]=h,h=h>>8,e[t++]=h,t}function yr(e,r,t,n,i){mr(r,n,i,e,t,7);let u=Number(r&BigInt(4294967295));e[t+7]=u,u=u>>8,e[t+6]=u,u=u>>8,e[t+5]=u,u=u>>8,e[t+4]=u;let h=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=h,h=h>>8,e[t+2]=h,h=h>>8,e[t+1]=h,h=h>>8,e[t]=h,t+8}o.prototype.writeBigUInt64LE=q(function(r,t=0){return fr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=q(function(r,t=0){return yr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let m=Math.pow(2,8*n-1);$(this,r,t,n,m-1,-m)}let u=0,h=1,l=0;for(this[t]=r&255;++u>0)-l&255;return t+n},o.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let m=Math.pow(2,8*n-1);$(this,r,t,n,m-1,-m)}let u=n-1,h=1,l=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&l===0&&this[t+u+1]!==0&&(l=1),this[t+u]=(r/h>>0)-l&255;return t+n},o.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},o.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},o.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},o.prototype.writeBigInt64LE=q(function(r,t=0){return fr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=q(function(r,t=0){return yr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function wr(e,r,t,n,i,u){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Br(e,r,t,n,i){return r=+r,t=t>>>0,i||wr(e,r,t,4),c.write(e,r,t,n,23,4),t+4}o.prototype.writeFloatLE=function(r,t,n){return Br(this,r,t,!0,n)},o.prototype.writeFloatBE=function(r,t,n){return Br(this,r,t,!1,n)};function dr(e,r,t,n,i){return r=+r,t=t>>>0,i||wr(e,r,t,8),c.write(e,r,t,n,52,8),t+8}o.prototype.writeDoubleLE=function(r,t,n){return dr(this,r,t,!0,n)},o.prototype.writeDoubleBE=function(r,t,n){return dr(this,r,t,!1,n)},o.prototype.copy=function(r,t,n,i){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let u;if(typeof r=="number")for(u=t;u2**32?i=Er(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=Er(i)),i+="n"),n+=` It must be ${r}. Received ${i}`,n},RangeError);function Er(e){let r="",t=e.length,n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function qr(e,r,t){V(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&J(r,e.length-(t+1))}function mr(e,r,t,n,i,u){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${h} and < 2${h} ** ${(u+1)*8}${h}`:l=`>= -(2${h} ** ${(u+1)*8-1}${h}) and < 2 ** ${(u+1)*8-1}${h}`:l=`>= ${r}${h} and <= ${t}${h}`,new H.ERR_OUT_OF_RANGE("value",l,e)}qr(n,i,u)}function V(e,r){if(typeof e!="number")throw new H.ERR_INVALID_ARG_TYPE(r,"number",e)}function J(e,r,t){throw Math.floor(e)!==e?(V(e,t),new H.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new H.ERR_BUFFER_OUT_OF_BOUNDS:new H.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}let Wr=/[^+/0-9A-Za-z-_]/g;function Xr(e){if(e=e.split("=")[0],e=e.trim().replace(Wr,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function or(e,r){r=r||1/0;let t,n=e.length,i=null,u=[];for(let h=0;h55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&u.push(239,191,189);continue}else if(h+1===n){(r-=3)>-1&&u.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&u.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&u.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;u.push(t)}else if(t<2048){if((r-=2)<0)break;u.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;u.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return u}function jr(e){let r=[];for(let t=0;t>8,i=t%256,u.push(i),u.push(n);return u}function gr(e){return p.toByteArray(Xr(e))}function rr(e,r,t,n){let i;for(i=0;i=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function F(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function ur(e){return e!==e}let Vr=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)r[n+i]=e[t]+e[i]}return r}();function q(e){return typeof BigInt>"u"?zr:e}function zr(){throw new Error("BigInt not supported")}return W}var K,Ir,er,Ar,W,Ur,X,Tr,yt,wt,xr=tr(()=>{Q();v();Z();K={},Ir=!1;er={},Ar=!1;W={},Ur=!1;X=ht();X.Buffer;X.SlowBuffer;X.INSPECT_MAX_BYTES;X.kMaxLength;Tr=X.Buffer,yt=X.INSPECT_MAX_BYTES,wt=X.kMaxLength});var v=tr(()=>{xr()});var Lr=rt((At,Cr)=>{Q();v();Z();var A=Cr.exports={},O,D;function cr(){throw new Error("setTimeout has not been defined")}function pr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?O=setTimeout:O=cr}catch{O=cr}try{typeof clearTimeout=="function"?D=clearTimeout:D=pr}catch{D=pr}})();function Rr(p){if(O===setTimeout)return setTimeout(p,0);if((O===cr||!O)&&setTimeout)return O=setTimeout,setTimeout(p,0);try{return O(p,0)}catch{try{return O.call(null,p,0)}catch{return O.call(this,p,0)}}}function ct(p){if(D===clearTimeout)return clearTimeout(p);if((D===pr||!D)&&clearTimeout)return D=clearTimeout,clearTimeout(p);try{return D(p)}catch{try{return D.call(null,p)}catch{return D.call(this,p)}}}var Y=[],z=!1,j,nr=-1;function pt(){!z||!j||(z=!1,j.length?Y=j.concat(Y):nr=-1,Y.length&&_r())}function _r(){if(!z){var p=Rr(pt);z=!0;for(var c=Y.length;c;){for(j=Y,Y=[];++nr1)for(var f=1;f{it=et(Lr(),1)});export{rt as a,st as b,et as c,Q as d,Z as e,Tr as f,v as g}; +/*! Bundled license information: + +@jspm/core/nodelibs/browser/buffer.js: + (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) +*/ +//# sourceMappingURL=chunk-MAXH2HJU.js.map diff --git a/app/srv/core/font-LBWDSK65.css b/app/srv/core/font-LBWDSK65.css new file mode 100644 index 00000000..7e2eb55a --- /dev/null +++ b/app/srv/core/font-LBWDSK65.css @@ -0,0 +1,2 @@ +@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-cyrillic-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-cyrillic-ext-400-normal.woff") format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-cyrillic-400-normal.woff2") format("woff2"),url("./source-sans-3-cyrillic-400-normal.woff") format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-greek-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-greek-ext-400-normal.woff") format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-greek-400-normal.woff2") format("woff2"),url("./source-sans-3-greek-400-normal.woff") format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-vietnamese-400-normal.woff2") format("woff2"),url("./source-sans-3-vietnamese-400-normal.woff") format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-latin-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-latin-ext-400-normal.woff") format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-latin-400-normal.woff2") format("woff2"),url("./source-sans-3-latin-400-normal.woff") format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD} +/*# sourceMappingURL=font-LBWDSK65.css.map */ diff --git a/app/srv/core/font-WINJX3PY.js b/app/srv/core/font-WINJX3PY.js new file mode 100644 index 00000000..3b8e56d6 --- /dev/null +++ b/app/srv/core/font-WINJX3PY.js @@ -0,0 +1,2 @@ +import{d as o,e as f,g as s}from"./chunk-MAXH2HJU.js";o();s();f(); +//# sourceMappingURL=font-WINJX3PY.js.map diff --git a/app/srv/core/main.css b/app/srv/core/main.css index 811cb5cf..f43fa0d4 100644 --- a/app/srv/core/main.css +++ b/app/srv/core/main.css @@ -1 +1,2 @@ @font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-cyrillic-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-cyrillic-ext-400-normal.woff") format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-cyrillic-400-normal.woff2") format("woff2"),url("./source-sans-3-cyrillic-400-normal.woff") format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-greek-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-greek-ext-400-normal.woff") format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-greek-400-normal.woff2") format("woff2"),url("./source-sans-3-greek-400-normal.woff") format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-vietnamese-400-normal.woff2") format("woff2"),url("./source-sans-3-vietnamese-400-normal.woff") format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-latin-ext-400-normal.woff2") format("woff2"),url("./source-sans-3-latin-ext-400-normal.woff") format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url("./source-sans-3-latin-400-normal.woff2") format("woff2"),url("./source-sans-3-latin-400-normal.woff") format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD} +/*# sourceMappingURL=main.css.map */ diff --git a/app/srv/core/main.js b/app/srv/core/main.js index 9efcf783..e5628a51 100644 --- a/app/srv/core/main.js +++ b/app/srv/core/main.js @@ -1,4 +1,4 @@ -import{a as Ne,b as lS,c as G,d as m,e as h,f as k,g}from"./chunk-ACJPWHEH.js";var Wm=Ne(ne=>{"use strict";m();g();h();var Ai=Symbol.for("react.element"),uS=Symbol.for("react.portal"),cS=Symbol.for("react.fragment"),fS=Symbol.for("react.strict_mode"),dS=Symbol.for("react.profiler"),pS=Symbol.for("react.provider"),mS=Symbol.for("react.context"),hS=Symbol.for("react.forward_ref"),gS=Symbol.for("react.suspense"),yS=Symbol.for("react.memo"),vS=Symbol.for("react.lazy"),Dm=Symbol.iterator;function wS(e){return e===null||typeof e!="object"?null:(e=Dm&&e[Dm]||e["@@iterator"],typeof e=="function"?e:null)}var Um={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fm=Object.assign,jm={};function bo(e,t,n){this.props=e,this.context=t,this.refs=jm,this.updater=n||Um}bo.prototype.isReactComponent={};bo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};bo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zm(){}zm.prototype=bo.prototype;function Xu(e,t,n){this.props=e,this.context=t,this.refs=jm,this.updater=n||Um}var Ju=Xu.prototype=new zm;Ju.constructor=Xu;Fm(Ju,bo.prototype);Ju.isPureReactComponent=!0;var Mm=Array.isArray,Bm=Object.prototype.hasOwnProperty,ec={current:null},$m={key:!0,ref:!0,__self:!0,__source:!0};function Hm(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Bm.call(t,r)&&!$m.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1{"use strict";m();g();h();Vm.exports=Wm()});var th=Ne(we=>{"use strict";m();g();h();function ic(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(0>>1;rSs(s,n))uSs(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[a]=n,r=a);else if(uSs(c,n))e[r]=c,e[u]=n,r=u;else break e}}return t}function Ss(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Ym=performance,we.unstable_now=function(){return Ym.now()}):(nc=Date,Gm=nc.now(),we.unstable_now=function(){return nc.now()-Gm});var Ym,nc,Gm,fn=[],Jn=[],bS=1,jt=null,rt=3,Es=!1,Fr=!1,Mi=!1,Qm=typeof setTimeout=="function"?setTimeout:null,Km=typeof clearTimeout=="function"?clearTimeout:null,Zm=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ac(e){for(var t=Xt(Jn);t!==null;){if(t.callback===null)bs(Jn);else if(t.startTime<=e)bs(Jn),t.sortIndex=t.expirationTime,ic(fn,t);else break;t=Xt(Jn)}}function sc(e){if(Mi=!1,ac(e),!Fr)if(Xt(fn)!==null)Fr=!0,uc(lc);else{var t=Xt(Jn);t!==null&&cc(sc,t.startTime-e)}}function lc(e,t){Fr=!1,Mi&&(Mi=!1,Km(Li),Li=-1),Es=!0;var n=rt;try{for(ac(t),jt=Xt(fn);jt!==null&&(!(jt.expirationTime>t)||e&&!eh());){var r=jt.callback;if(typeof r=="function"){jt.callback=null,rt=jt.priorityLevel;var o=r(jt.expirationTime<=t);t=we.unstable_now(),typeof o=="function"?jt.callback=o:jt===Xt(fn)&&bs(fn),ac(t)}else bs(fn);jt=Xt(fn)}if(jt!==null)var i=!0;else{var a=Xt(Jn);a!==null&&cc(sc,a.startTime-t),i=!1}return i}finally{jt=null,rt=n,Es=!1}}var Os=!1,ks=null,Li=-1,Xm=5,Jm=-1;function eh(){return!(we.unstable_now()-Jme||125r?(e.sortIndex=n,ic(Jn,e),Xt(fn)===null&&e===Xt(Jn)&&(Mi?(Km(Li),Li=-1):Mi=!0,cc(sc,n-r))):(e.sortIndex=o,ic(fn,e),Fr||Es||(Fr=!0,uc(lc))),e};we.unstable_shouldYield=eh;we.unstable_wrapCallback=function(e){var t=rt;return function(){var n=rt;rt=t;try{return e.apply(this,arguments)}finally{rt=n}}}});var rh=Ne((X3,nh)=>{"use strict";m();g();h();nh.exports=th()});var uy=Ne(At=>{"use strict";m();g();h();var c0=Qe(),Pt=rh();function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ac=Object.prototype.hasOwnProperty,ES=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,oh={},ih={};function OS(e){return Ac.call(ih,e)?!0:Ac.call(oh,e)?!1:ES.test(e)?ih[e]=!0:(oh[e]=!0,!1)}function CS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function TS(e,t,n,r){if(t===null||typeof t>"u"||CS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function pt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Je[e]=new pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Je[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Je[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Je[e]=new pt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Je[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Je[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Je[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Je[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Je[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Of=/[\-:]([a-z])/g;function Cf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Of,Cf);Je[t]=new pt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Of,Cf);Je[t]=new pt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Of,Cf);Je[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Je[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});Je.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Je[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Tf(e,t,n,r){var o=Je.hasOwnProperty(t)?Je[t]:null;(o!==null?o.type!==0:r||!(2{"use strict";m();g();h();var Ai=Symbol.for("react.element"),uS=Symbol.for("react.portal"),cS=Symbol.for("react.fragment"),fS=Symbol.for("react.strict_mode"),dS=Symbol.for("react.profiler"),pS=Symbol.for("react.provider"),mS=Symbol.for("react.context"),hS=Symbol.for("react.forward_ref"),gS=Symbol.for("react.suspense"),yS=Symbol.for("react.memo"),vS=Symbol.for("react.lazy"),Dm=Symbol.iterator;function wS(e){return e===null||typeof e!="object"?null:(e=Dm&&e[Dm]||e["@@iterator"],typeof e=="function"?e:null)}var Um={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fm=Object.assign,jm={};function bo(e,t,n){this.props=e,this.context=t,this.refs=jm,this.updater=n||Um}bo.prototype.isReactComponent={};bo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};bo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zm(){}zm.prototype=bo.prototype;function Xu(e,t,n){this.props=e,this.context=t,this.refs=jm,this.updater=n||Um}var Ju=Xu.prototype=new zm;Ju.constructor=Xu;Fm(Ju,bo.prototype);Ju.isPureReactComponent=!0;var Mm=Array.isArray,Bm=Object.prototype.hasOwnProperty,ec={current:null},$m={key:!0,ref:!0,__self:!0,__source:!0};function Hm(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Bm.call(t,r)&&!$m.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1{"use strict";m();g();h();Vm.exports=Wm()});var th=Ne(we=>{"use strict";m();g();h();function ic(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(0>>1;rSs(s,n))uSs(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[a]=n,r=a);else if(uSs(c,n))e[r]=c,e[u]=n,r=u;else break e}}return t}function Ss(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Ym=performance,we.unstable_now=function(){return Ym.now()}):(nc=Date,Gm=nc.now(),we.unstable_now=function(){return nc.now()-Gm});var Ym,nc,Gm,fn=[],Jn=[],bS=1,jt=null,rt=3,Es=!1,Fr=!1,Mi=!1,Qm=typeof setTimeout=="function"?setTimeout:null,Km=typeof clearTimeout=="function"?clearTimeout:null,Zm=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ac(e){for(var t=Xt(Jn);t!==null;){if(t.callback===null)bs(Jn);else if(t.startTime<=e)bs(Jn),t.sortIndex=t.expirationTime,ic(fn,t);else break;t=Xt(Jn)}}function sc(e){if(Mi=!1,ac(e),!Fr)if(Xt(fn)!==null)Fr=!0,uc(lc);else{var t=Xt(Jn);t!==null&&cc(sc,t.startTime-e)}}function lc(e,t){Fr=!1,Mi&&(Mi=!1,Km(Li),Li=-1),Es=!0;var n=rt;try{for(ac(t),jt=Xt(fn);jt!==null&&(!(jt.expirationTime>t)||e&&!eh());){var r=jt.callback;if(typeof r=="function"){jt.callback=null,rt=jt.priorityLevel;var o=r(jt.expirationTime<=t);t=we.unstable_now(),typeof o=="function"?jt.callback=o:jt===Xt(fn)&&bs(fn),ac(t)}else bs(fn);jt=Xt(fn)}if(jt!==null)var i=!0;else{var a=Xt(Jn);a!==null&&cc(sc,a.startTime-t),i=!1}return i}finally{jt=null,rt=n,Es=!1}}var Os=!1,ks=null,Li=-1,Xm=5,Jm=-1;function eh(){return!(we.unstable_now()-Jme||125r?(e.sortIndex=n,ic(Jn,e),Xt(fn)===null&&e===Xt(Jn)&&(Mi?(Km(Li),Li=-1):Mi=!0,cc(sc,n-r))):(e.sortIndex=o,ic(fn,e),Fr||Es||(Fr=!0,uc(lc))),e};we.unstable_shouldYield=eh;we.unstable_wrapCallback=function(e){var t=rt;return function(){var n=rt;rt=t;try{return e.apply(this,arguments)}finally{rt=n}}}});var rh=Ne((X3,nh)=>{"use strict";m();g();h();nh.exports=th()});var uy=Ne(At=>{"use strict";m();g();h();var c0=Qe(),Pt=rh();function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ac=Object.prototype.hasOwnProperty,ES=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,oh={},ih={};function OS(e){return Ac.call(ih,e)?!0:Ac.call(oh,e)?!1:ES.test(e)?ih[e]=!0:(oh[e]=!0,!1)}function CS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function TS(e,t,n,r){if(t===null||typeof t>"u"||CS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function pt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Je[e]=new pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Je[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Je[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Je[e]=new pt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Je[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Je[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Je[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Je[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Je[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Of=/[\-:]([a-z])/g;function Cf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Of,Cf);Je[t]=new pt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Of,Cf);Je[t]=new pt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Of,Cf);Je[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Je[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});Je.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Je[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Tf(e,t,n,r){var o=Je.hasOwnProperty(t)?Je[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var u=` @@ -151,7 +151,7 @@ return ${v.trim()} } `:"inset-0 overflow-auto",css` contain: content; - `),children:(0,Qn.jsx)(qx,{api_url:z.site.api_url,entry:Object.values(z.page.root.childs).filter(d=>d).map(d=>d.id),meta:z.page.meta,mode:z.mode,page_id:z.page.id,site_id:z.site.id,db:z.site.db,api:z.site.api,preloaded:d=>{let f=z.route.router?.lookup(d);return!!(f&&z.page.cache[f.id])},comp_load:async d=>{let f=z.comp;if(f.list[d])return f.list[d];try{let p=await(await fetch(z.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[d]})})).json();for(let[v,S]of Object.entries(p))delete f.pending[v],f.list[v]=S,await Kl(`comp-${v}`,S)}catch{}return f.list[d]},layout:z.layout.id&&z.layout.root&&z.layout.meta?{id:z.layout.id,meta:z.layout.meta,entry:Object.values(z.layout.root.childs).filter(d=>d).map(d=>d.id)}:void 0,script:{init_local_effect:z.init_local_effect},on_preload:async({urls:d,opt:f})=>{let p=[];if(z.cache.urls)for(let v of d)z.cache.urls.has(v)||(p.push(v),z.cache.urls.add(v));if(p.length>0){let v=await Kx(p);if(f?.on_load&&f.on_load(v,j3),Array.isArray(v))for(let S of v){let b={id:S.id,url:S.url,root:S.root,meta:{}};await Bn(S.root.childs),yo(b.meta,S.root),z.page.cache[b.id]=b}}}})})})})},j3=(e,t)=>{for(let n of e)for(let r of n.root.childs)Om(r,t)},Om=(e,t)=>{if(t(e),e.type!=="text"){if(e.type==="item"&&e.component?.props)for(let n of Object.values(e.component.props))n.content&&Om(n.content,t);for(let n of e.childs)Om(n,t)}};var oS=G(ge());(async()=>{import("./font-PYFUZD3A.js"),ex(),Iy();let e=document.getElementById("root");if(e){await Ry(!1);let t={root:(0,rS.createRoot)(e)};by(),Pe.navigateOverride=n=>(n&&n.startsWith("/")&&Cm()&&location.pathname.startsWith("/prod")&&!n.startsWith("/prod")&&(n=`/prod/${location.pathname.split("/")[2]}${n}`),n),t.root.render((0,oS.jsx)(nS,{})),document.body.classList.contains("opacity-0")&&document.body.classList.remove("opacity-0")}})(); + `),children:(0,Qn.jsx)(qx,{api_url:z.site.api_url,entry:Object.values(z.page.root.childs).filter(d=>d).map(d=>d.id),meta:z.page.meta,mode:z.mode,page_id:z.page.id,site_id:z.site.id,db:z.site.db,api:z.site.api,preloaded:d=>{let f=z.route.router?.lookup(d);return!!(f&&z.page.cache[f.id])},comp_load:async d=>{let f=z.comp;if(f.list[d])return f.list[d];try{let p=await(await fetch(z.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[d]})})).json();for(let[v,S]of Object.entries(p))delete f.pending[v],f.list[v]=S,await Kl(`comp-${v}`,S)}catch{}return f.list[d]},layout:z.layout.id&&z.layout.root&&z.layout.meta?{id:z.layout.id,meta:z.layout.meta,entry:Object.values(z.layout.root.childs).filter(d=>d).map(d=>d.id)}:void 0,script:{init_local_effect:z.init_local_effect},on_preload:async({urls:d,opt:f})=>{let p=[];if(z.cache.urls)for(let v of d)z.cache.urls.has(v)||(p.push(v),z.cache.urls.add(v));if(p.length>0){let v=await Kx(p);if(f?.on_load&&f.on_load(v,j3),Array.isArray(v))for(let S of v){let b={id:S.id,url:S.url,root:S.root,meta:{}};await Bn(S.root.childs),yo(b.meta,S.root),z.page.cache[b.id]=b}}}})})})})},j3=(e,t)=>{for(let n of e)for(let r of n.root.childs)Om(r,t)},Om=(e,t)=>{if(t(e),e.type!=="text"){if(e.type==="item"&&e.component?.props)for(let n of Object.values(e.component.props))n.content&&Om(n.content,t);for(let n of e.childs)Om(n,t)}};var oS=G(ge());(async()=>{import("./font-WINJX3PY.js"),ex(),Iy();let e=document.getElementById("root");if(e){await Ry(!1);let t={root:(0,rS.createRoot)(e)};by(),Pe.navigateOverride=n=>(n&&n.startsWith("/")&&Cm()&&location.pathname.startsWith("/prod")&&!n.startsWith("/prod")&&(n=`/prod/${location.pathname.split("/")[2]}${n}`),n),t.root.render((0,oS.jsx)(nS,{})),document.body.classList.contains("opacity-0")&&document.body.classList.remove("opacity-0")}})(); /*! Bundled license information: react/cjs/react.production.min.js: @@ -215,3 +215,4 @@ react/cjs/react-jsx-runtime.production.min.js: pako/dist/pako.esm.mjs: (*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) *) */ +//# sourceMappingURL=main.js.map diff --git a/app/srv/ws/sync/sync-handler.ts b/app/srv/ws/sync/sync-handler.ts index 95307e26..b5f2761c 100644 --- a/app/srv/ws/sync/sync-handler.ts +++ b/app/srv/ws/sync/sync-handler.ts @@ -39,62 +39,68 @@ export const syncHandler: WebSocketHandler = { } }, async message(ws, raw) { - const conn_id = wconns.get(ws); - if (conn_id) { - const conn = conns.get(conn_id); - if (conn) { - const msg = packr.unpack(Buffer.from(raw)); - if (msg.type === "preview") { - previewLiveReload(ws, msg); - } - if (msg.type === SyncType.UserID) { - const { user_id, page_id, site_id } = msg; - conn.user_id = user_id; - - conn.user = await _db.user.findFirst({ where: { id: user_id } }); - let conf = await user.conf.getOrCreate(user_id); - if (site_id) { - const newconf = await loadSitePage(user_id, site_id, page_id); - if (newconf) conf = newconf; - } else if (!conf.site_id) { - await loadDefaultSite(user_id); + try { + const conn_id = wconns.get(ws); + if (conn_id) { + const conn = conns.get(conn_id); + if (conn) { + const msg = packr.unpack(Buffer.from(raw)); + if (msg.type === "preview") { + previewLiveReload(ws, msg); } - conn.conf = new Proxy(conf, { - get(_, p) { - const conf = user.conf.get(user_id); - if (p === "toJSON") return () => conf; - if (conf) return conf[p as keyof typeof conf]; - }, - set(_, p, newValue) { - user.conf.set(user_id, p as keyof UserConf, newValue); - return true; - }, - }) as UserConf & { toJSON: () => UserConf }; - sendWS(ws, { - type: SyncType.Event, - event: "editor_start" as ClientEvent, - data: conn.conf.toJSON(), - }); - } - if (msg.type === SyncType.Action) { - const code = msg.code as keyof typeof SyncActionPaths; - const actionName = SyncActionPaths[code].replace(/\./gi, "_"); - if (actionName) { - const baseAction = (actions as any)[actionName]; - if (!baseAction) { - console.log(`app/srv/ws/sync/actions/${actionName}.ts not found`); + if (msg.type === SyncType.UserID) { + const { user_id, page_id, site_id } = msg; + conn.user_id = user_id; + + conn.user = await _db.user.findFirst({ where: { id: user_id } }); + let conf = await user.conf.getOrCreate(user_id); + if (site_id) { + const newconf = await loadSitePage(user_id, site_id, page_id); + if (newconf) conf = newconf; + } else if (!conf.site_id) { + await loadDefaultSite(user_id); } - if (baseAction) { - const action = baseAction.bind(conn); - sendWS(ws, { - type: SyncType.ActionResult, - argid: msg.argid, - val: await action(...msg.args), - }); + conn.conf = new Proxy(conf, { + get(_, p) { + const conf = user.conf.get(user_id); + if (p === "toJSON") return () => conf; + if (conf) return conf[p as keyof typeof conf]; + }, + set(_, p, newValue) { + user.conf.set(user_id, p as keyof UserConf, newValue); + return true; + }, + }) as UserConf & { toJSON: () => UserConf }; + sendWS(ws, { + type: SyncType.Event, + event: "editor_start" as ClientEvent, + data: conn.conf.toJSON(), + }); + } + if (msg.type === SyncType.Action) { + const code = msg.code as keyof typeof SyncActionPaths; + const actionName = SyncActionPaths[code].replace(/\./gi, "_"); + if (actionName) { + const baseAction = (actions as any)[actionName]; + if (!baseAction) { + console.log( + `app/srv/ws/sync/actions/${actionName}.ts not found` + ); + } + if (baseAction) { + const action = baseAction.bind(conn); + sendWS(ws, { + type: SyncType.ActionResult, + argid: msg.argid, + val: await action(...msg.args), + }); + } } } } } + } catch (e) { + console.error(e); } }, }; diff --git a/app/web/package.json b/app/web/package.json index 3c7fe73f..bdb6f6fa 100644 --- a/app/web/package.json +++ b/app/web/package.json @@ -1,7 +1,7 @@ { "name": "web", "@parcel/bundler-default": { - "minBundles": 1e7, + "minBundles": 10000000, "minBundleSize": 3000, "maxParallelRequests": 20 }, diff --git a/app/web/public-br/monaco/min/vs/base/browser/ui/codicons/codicon/codicon.ttf b/app/web/public-br/monaco/min/vs/base/browser/ui/codicons/codicon/codicon.ttf new file mode 100644 index 00000000..a8e8f1f2 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/base/browser/ui/codicons/codicon/codicon.ttf differ diff --git a/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.de.js b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.de.js new file mode 100644 index 00000000..96984a7f Binary files /dev/null and b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.de.js differ diff --git a/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.es.js b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.es.js new file mode 100644 index 00000000..36ce6318 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.es.js differ diff --git a/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.fr.js b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.fr.js new file mode 100644 index 00000000..ee3f4c62 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.fr.js differ diff --git a/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.it.js b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.it.js new file mode 100644 index 00000000..7cf7f056 --- /dev/null +++ b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.it.js @@ -0,0 +1,2 @@ +n bt-~^ٳb2ab/G~@vƜI?48a7.x'_?nsD~ҤΚ8=\cgRnkTUKbnEhvJbnD+%#fO{b@ĆP c +k295S"Ry#û؁7qgPSWzȜ0-w_}( D|/38G:z'!SfaX;k UVy[a*Up(aoX:I CUփLg+U>eAhXasc84q|2aV ykz,G6H8^?k! +*H6vj$ϓ(ҁ9 \ No newline at end of file diff --git a/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.ja.js b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.ja.js new file mode 100644 index 00000000..44103b1e Binary files /dev/null and b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.ja.js differ diff --git a/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.js b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.js new file mode 100644 index 00000000..cc2f5807 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.js differ diff --git a/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.ko.js b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.ko.js new file mode 100644 index 00000000..cf938eb4 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.ko.js differ diff --git a/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.ru.js b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.ru.js new file mode 100644 index 00000000..95de3c97 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.ru.js differ diff --git a/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.zh-cn.js b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.zh-cn.js new file mode 100644 index 00000000..c56cbd7c Binary files /dev/null and b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.zh-cn.js differ diff --git a/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.zh-tw.js b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.zh-tw.js new file mode 100644 index 00000000..8bb0a2b7 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/base/common/worker/simpleWorker.nls.zh-tw.js differ diff --git a/app/web/public-br/monaco/min/vs/base/worker/workerMain.js b/app/web/public-br/monaco/min/vs/base/worker/workerMain.js new file mode 100644 index 00000000..c53c908e Binary files /dev/null and b/app/web/public-br/monaco/min/vs/base/worker/workerMain.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/abap/abap.js b/app/web/public-br/monaco/min/vs/basic-languages/abap/abap.js new file mode 100644 index 00000000..7921e943 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/abap/abap.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/apex/apex.js b/app/web/public-br/monaco/min/vs/basic-languages/apex/apex.js new file mode 100644 index 00000000..136eb3e2 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/apex/apex.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/azcli/azcli.js b/app/web/public-br/monaco/min/vs/basic-languages/azcli/azcli.js new file mode 100644 index 00000000..072d65f9 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/azcli/azcli.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/bat/bat.js b/app/web/public-br/monaco/min/vs/basic-languages/bat/bat.js new file mode 100644 index 00000000..d906738f Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/bat/bat.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/bicep/bicep.js b/app/web/public-br/monaco/min/vs/basic-languages/bicep/bicep.js new file mode 100644 index 00000000..bb3891e2 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/bicep/bicep.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/cameligo/cameligo.js b/app/web/public-br/monaco/min/vs/basic-languages/cameligo/cameligo.js new file mode 100644 index 00000000..468c6a55 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/cameligo/cameligo.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/clojure/clojure.js b/app/web/public-br/monaco/min/vs/basic-languages/clojure/clojure.js new file mode 100644 index 00000000..eddc75d2 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/clojure/clojure.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/coffee/coffee.js b/app/web/public-br/monaco/min/vs/basic-languages/coffee/coffee.js new file mode 100644 index 00000000..402f8db6 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/coffee/coffee.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/cpp/cpp.js b/app/web/public-br/monaco/min/vs/basic-languages/cpp/cpp.js new file mode 100644 index 00000000..69824f8b Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/cpp/cpp.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/csharp/csharp.js b/app/web/public-br/monaco/min/vs/basic-languages/csharp/csharp.js new file mode 100644 index 00000000..0e03be65 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/csharp/csharp.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/csp/csp.js b/app/web/public-br/monaco/min/vs/basic-languages/csp/csp.js new file mode 100644 index 00000000..029b8dab Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/csp/csp.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/css/css.js b/app/web/public-br/monaco/min/vs/basic-languages/css/css.js new file mode 100644 index 00000000..5a4a1607 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/css/css.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/cypher/cypher.js b/app/web/public-br/monaco/min/vs/basic-languages/cypher/cypher.js new file mode 100644 index 00000000..1b7beaab Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/cypher/cypher.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/dart/dart.js b/app/web/public-br/monaco/min/vs/basic-languages/dart/dart.js new file mode 100644 index 00000000..ffb6a1a6 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/dart/dart.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/dockerfile/dockerfile.js b/app/web/public-br/monaco/min/vs/basic-languages/dockerfile/dockerfile.js new file mode 100644 index 00000000..c5f02e51 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/dockerfile/dockerfile.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/ecl/ecl.js b/app/web/public-br/monaco/min/vs/basic-languages/ecl/ecl.js new file mode 100644 index 00000000..c5a139e3 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/ecl/ecl.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/elixir/elixir.js b/app/web/public-br/monaco/min/vs/basic-languages/elixir/elixir.js new file mode 100644 index 00000000..b973525f Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/elixir/elixir.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/flow9/flow9.js b/app/web/public-br/monaco/min/vs/basic-languages/flow9/flow9.js new file mode 100644 index 00000000..a759a0e1 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/flow9/flow9.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/freemarker2/freemarker2.js b/app/web/public-br/monaco/min/vs/basic-languages/freemarker2/freemarker2.js new file mode 100644 index 00000000..ba49f3d7 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/freemarker2/freemarker2.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/fsharp/fsharp.js b/app/web/public-br/monaco/min/vs/basic-languages/fsharp/fsharp.js new file mode 100644 index 00000000..598f5794 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/fsharp/fsharp.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/go/go.js b/app/web/public-br/monaco/min/vs/basic-languages/go/go.js new file mode 100644 index 00000000..dd529dac Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/go/go.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/graphql/graphql.js b/app/web/public-br/monaco/min/vs/basic-languages/graphql/graphql.js new file mode 100644 index 00000000..a1403d51 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/graphql/graphql.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/handlebars/handlebars.js b/app/web/public-br/monaco/min/vs/basic-languages/handlebars/handlebars.js new file mode 100644 index 00000000..6f3dd5a2 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/handlebars/handlebars.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/hcl/hcl.js b/app/web/public-br/monaco/min/vs/basic-languages/hcl/hcl.js new file mode 100644 index 00000000..b69dce3a Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/hcl/hcl.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/html/html.js b/app/web/public-br/monaco/min/vs/basic-languages/html/html.js new file mode 100644 index 00000000..20e7621c Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/html/html.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/ini/ini.js b/app/web/public-br/monaco/min/vs/basic-languages/ini/ini.js new file mode 100644 index 00000000..34e1efe0 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/ini/ini.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/java/java.js b/app/web/public-br/monaco/min/vs/basic-languages/java/java.js new file mode 100644 index 00000000..67080eeb Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/java/java.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/javascript/javascript.js b/app/web/public-br/monaco/min/vs/basic-languages/javascript/javascript.js new file mode 100644 index 00000000..c77e4022 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/javascript/javascript.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/julia/julia.js b/app/web/public-br/monaco/min/vs/basic-languages/julia/julia.js new file mode 100644 index 00000000..b4d66f90 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/julia/julia.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/kotlin/kotlin.js b/app/web/public-br/monaco/min/vs/basic-languages/kotlin/kotlin.js new file mode 100644 index 00000000..a70e36ce Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/kotlin/kotlin.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/less/less.js b/app/web/public-br/monaco/min/vs/basic-languages/less/less.js new file mode 100644 index 00000000..0b09111b Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/less/less.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/lexon/lexon.js b/app/web/public-br/monaco/min/vs/basic-languages/lexon/lexon.js new file mode 100644 index 00000000..397c3fd4 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/lexon/lexon.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/liquid/liquid.js b/app/web/public-br/monaco/min/vs/basic-languages/liquid/liquid.js new file mode 100644 index 00000000..1eba7741 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/liquid/liquid.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/lua/lua.js b/app/web/public-br/monaco/min/vs/basic-languages/lua/lua.js new file mode 100644 index 00000000..e4c4820e Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/lua/lua.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/m3/m3.js b/app/web/public-br/monaco/min/vs/basic-languages/m3/m3.js new file mode 100644 index 00000000..9e5654ec Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/m3/m3.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/markdown/markdown.js b/app/web/public-br/monaco/min/vs/basic-languages/markdown/markdown.js new file mode 100644 index 00000000..532f4312 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/markdown/markdown.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/mdx/mdx.js b/app/web/public-br/monaco/min/vs/basic-languages/mdx/mdx.js new file mode 100644 index 00000000..49b03f0d Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/mdx/mdx.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/mips/mips.js b/app/web/public-br/monaco/min/vs/basic-languages/mips/mips.js new file mode 100644 index 00000000..8899658f Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/mips/mips.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/msdax/msdax.js b/app/web/public-br/monaco/min/vs/basic-languages/msdax/msdax.js new file mode 100644 index 00000000..55d2db0a Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/msdax/msdax.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/mysql/mysql.js b/app/web/public-br/monaco/min/vs/basic-languages/mysql/mysql.js new file mode 100644 index 00000000..e0d51d7d Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/mysql/mysql.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/objective-c/objective-c.js b/app/web/public-br/monaco/min/vs/basic-languages/objective-c/objective-c.js new file mode 100644 index 00000000..8a02b010 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/objective-c/objective-c.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/pascal/pascal.js b/app/web/public-br/monaco/min/vs/basic-languages/pascal/pascal.js new file mode 100644 index 00000000..a9128e3a Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/pascal/pascal.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/pascaligo/pascaligo.js b/app/web/public-br/monaco/min/vs/basic-languages/pascaligo/pascaligo.js new file mode 100644 index 00000000..034deea2 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/pascaligo/pascaligo.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/perl/perl.js b/app/web/public-br/monaco/min/vs/basic-languages/perl/perl.js new file mode 100644 index 00000000..cc54c129 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/perl/perl.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/pgsql/pgsql.js b/app/web/public-br/monaco/min/vs/basic-languages/pgsql/pgsql.js new file mode 100644 index 00000000..0d9a14a3 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/pgsql/pgsql.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/php/php.js b/app/web/public-br/monaco/min/vs/basic-languages/php/php.js new file mode 100644 index 00000000..38ee5424 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/php/php.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/pla/pla.js b/app/web/public-br/monaco/min/vs/basic-languages/pla/pla.js new file mode 100644 index 00000000..0e451f4c Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/pla/pla.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/postiats/postiats.js b/app/web/public-br/monaco/min/vs/basic-languages/postiats/postiats.js new file mode 100644 index 00000000..4c7811b9 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/postiats/postiats.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/powerquery/powerquery.js b/app/web/public-br/monaco/min/vs/basic-languages/powerquery/powerquery.js new file mode 100644 index 00000000..9064d347 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/powerquery/powerquery.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/powershell/powershell.js b/app/web/public-br/monaco/min/vs/basic-languages/powershell/powershell.js new file mode 100644 index 00000000..644acdf9 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/powershell/powershell.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/protobuf/protobuf.js b/app/web/public-br/monaco/min/vs/basic-languages/protobuf/protobuf.js new file mode 100644 index 00000000..0866592a Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/protobuf/protobuf.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/pug/pug.js b/app/web/public-br/monaco/min/vs/basic-languages/pug/pug.js new file mode 100644 index 00000000..0c9fb554 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/pug/pug.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/python/python.js b/app/web/public-br/monaco/min/vs/basic-languages/python/python.js new file mode 100644 index 00000000..c9c3186a Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/python/python.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/qsharp/qsharp.js b/app/web/public-br/monaco/min/vs/basic-languages/qsharp/qsharp.js new file mode 100644 index 00000000..e6a016a0 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/qsharp/qsharp.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/r/r.js b/app/web/public-br/monaco/min/vs/basic-languages/r/r.js new file mode 100644 index 00000000..86b1d839 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/r/r.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/razor/razor.js b/app/web/public-br/monaco/min/vs/basic-languages/razor/razor.js new file mode 100644 index 00000000..07341a33 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/razor/razor.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/redis/redis.js b/app/web/public-br/monaco/min/vs/basic-languages/redis/redis.js new file mode 100644 index 00000000..5f9f20a3 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/redis/redis.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/redshift/redshift.js b/app/web/public-br/monaco/min/vs/basic-languages/redshift/redshift.js new file mode 100644 index 00000000..de6998f0 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/redshift/redshift.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/restructuredtext/restructuredtext.js b/app/web/public-br/monaco/min/vs/basic-languages/restructuredtext/restructuredtext.js new file mode 100644 index 00000000..c357801d Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/restructuredtext/restructuredtext.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/ruby/ruby.js b/app/web/public-br/monaco/min/vs/basic-languages/ruby/ruby.js new file mode 100644 index 00000000..9b4dd74f Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/ruby/ruby.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/rust/rust.js b/app/web/public-br/monaco/min/vs/basic-languages/rust/rust.js new file mode 100644 index 00000000..08219256 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/rust/rust.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/sb/sb.js b/app/web/public-br/monaco/min/vs/basic-languages/sb/sb.js new file mode 100644 index 00000000..378b0853 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/sb/sb.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/scala/scala.js b/app/web/public-br/monaco/min/vs/basic-languages/scala/scala.js new file mode 100644 index 00000000..20d5c608 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/scala/scala.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/scheme/scheme.js b/app/web/public-br/monaco/min/vs/basic-languages/scheme/scheme.js new file mode 100644 index 00000000..38aed44e Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/scheme/scheme.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/scss/scss.js b/app/web/public-br/monaco/min/vs/basic-languages/scss/scss.js new file mode 100644 index 00000000..8f910166 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/scss/scss.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/shell/shell.js b/app/web/public-br/monaco/min/vs/basic-languages/shell/shell.js new file mode 100644 index 00000000..ee8a4fa4 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/shell/shell.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/solidity/solidity.js b/app/web/public-br/monaco/min/vs/basic-languages/solidity/solidity.js new file mode 100644 index 00000000..58d2d22b Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/solidity/solidity.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/sophia/sophia.js b/app/web/public-br/monaco/min/vs/basic-languages/sophia/sophia.js new file mode 100644 index 00000000..a9ab51a4 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/sophia/sophia.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/sparql/sparql.js b/app/web/public-br/monaco/min/vs/basic-languages/sparql/sparql.js new file mode 100644 index 00000000..ae17b72f Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/sparql/sparql.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/sql/sql.js b/app/web/public-br/monaco/min/vs/basic-languages/sql/sql.js new file mode 100644 index 00000000..9586f362 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/sql/sql.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/st/st.js b/app/web/public-br/monaco/min/vs/basic-languages/st/st.js new file mode 100644 index 00000000..2d5c8ec8 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/st/st.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/swift/swift.js b/app/web/public-br/monaco/min/vs/basic-languages/swift/swift.js new file mode 100644 index 00000000..eaf6e1c4 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/swift/swift.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/systemverilog/systemverilog.js b/app/web/public-br/monaco/min/vs/basic-languages/systemverilog/systemverilog.js new file mode 100644 index 00000000..1317d8ba Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/systemverilog/systemverilog.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/tcl/tcl.js b/app/web/public-br/monaco/min/vs/basic-languages/tcl/tcl.js new file mode 100644 index 00000000..5bc66fdf Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/tcl/tcl.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/twig/twig.js b/app/web/public-br/monaco/min/vs/basic-languages/twig/twig.js new file mode 100644 index 00000000..62c410b0 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/twig/twig.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/typescript/typescript.js b/app/web/public-br/monaco/min/vs/basic-languages/typescript/typescript.js new file mode 100644 index 00000000..7de0569a Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/typescript/typescript.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/typespec/typespec.js b/app/web/public-br/monaco/min/vs/basic-languages/typespec/typespec.js new file mode 100644 index 00000000..a27aea5c Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/typespec/typespec.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/vb/vb.js b/app/web/public-br/monaco/min/vs/basic-languages/vb/vb.js new file mode 100644 index 00000000..5dada6cd Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/vb/vb.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/wgsl/wgsl.js b/app/web/public-br/monaco/min/vs/basic-languages/wgsl/wgsl.js new file mode 100644 index 00000000..694ddeda Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/wgsl/wgsl.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/xml/xml.js b/app/web/public-br/monaco/min/vs/basic-languages/xml/xml.js new file mode 100644 index 00000000..9eb40f25 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/xml/xml.js differ diff --git a/app/web/public-br/monaco/min/vs/basic-languages/yaml/yaml.js b/app/web/public-br/monaco/min/vs/basic-languages/yaml/yaml.js new file mode 100644 index 00000000..961d6346 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/basic-languages/yaml/yaml.js differ diff --git a/app/web/public-br/monaco/min/vs/editor/editor.main.css b/app/web/public-br/monaco/min/vs/editor/editor.main.css new file mode 100644 index 00000000..f01fe974 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/editor/editor.main.css differ diff --git a/app/web/public-br/monaco/min/vs/editor/editor.main.js b/app/web/public-br/monaco/min/vs/editor/editor.main.js new file mode 100644 index 00000000..df29fe54 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/editor/editor.main.js differ diff --git a/app/web/public-br/monaco/min/vs/editor/editor.main.nls.de.js b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.de.js new file mode 100644 index 00000000..80e15a9e Binary files /dev/null and b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.de.js differ diff --git a/app/web/public-br/monaco/min/vs/editor/editor.main.nls.es.js b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.es.js new file mode 100644 index 00000000..91fbc8c8 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.es.js differ diff --git a/app/web/public-br/monaco/min/vs/editor/editor.main.nls.fr.js b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.fr.js new file mode 100644 index 00000000..d634fd6a Binary files /dev/null and b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.fr.js differ diff --git a/app/web/public-br/monaco/min/vs/editor/editor.main.nls.it.js b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.it.js new file mode 100644 index 00000000..b3def401 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.it.js differ diff --git a/app/web/public-br/monaco/min/vs/editor/editor.main.nls.ja.js b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.ja.js new file mode 100644 index 00000000..57a209e3 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.ja.js differ diff --git a/app/web/public-br/monaco/min/vs/editor/editor.main.nls.js b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.js new file mode 100644 index 00000000..42757a4b Binary files /dev/null and b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.js differ diff --git a/app/web/public-br/monaco/min/vs/editor/editor.main.nls.ko.js b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.ko.js new file mode 100644 index 00000000..4fc1d389 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.ko.js differ diff --git a/app/web/public-br/monaco/min/vs/editor/editor.main.nls.ru.js b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.ru.js new file mode 100644 index 00000000..8bca253a Binary files /dev/null and b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.ru.js differ diff --git a/app/web/public-br/monaco/min/vs/editor/editor.main.nls.zh-cn.js b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.zh-cn.js new file mode 100644 index 00000000..5439f633 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.zh-cn.js differ diff --git a/app/web/public-br/monaco/min/vs/editor/editor.main.nls.zh-tw.js b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.zh-tw.js new file mode 100644 index 00000000..f32b89fd Binary files /dev/null and b/app/web/public-br/monaco/min/vs/editor/editor.main.nls.zh-tw.js differ diff --git a/app/web/public-br/monaco/min/vs/language/css/cssMode.js b/app/web/public-br/monaco/min/vs/language/css/cssMode.js new file mode 100644 index 00000000..d664fc1e Binary files /dev/null and b/app/web/public-br/monaco/min/vs/language/css/cssMode.js differ diff --git a/app/web/public-br/monaco/min/vs/language/css/cssWorker.js b/app/web/public-br/monaco/min/vs/language/css/cssWorker.js new file mode 100644 index 00000000..88c6d9d4 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/language/css/cssWorker.js differ diff --git a/app/web/public-br/monaco/min/vs/language/html/htmlMode.js b/app/web/public-br/monaco/min/vs/language/html/htmlMode.js new file mode 100644 index 00000000..cca0a02c Binary files /dev/null and b/app/web/public-br/monaco/min/vs/language/html/htmlMode.js differ diff --git a/app/web/public-br/monaco/min/vs/language/html/htmlWorker.js b/app/web/public-br/monaco/min/vs/language/html/htmlWorker.js new file mode 100644 index 00000000..f3220e2b Binary files /dev/null and b/app/web/public-br/monaco/min/vs/language/html/htmlWorker.js differ diff --git a/app/web/public-br/monaco/min/vs/language/json/jsonMode.js b/app/web/public-br/monaco/min/vs/language/json/jsonMode.js new file mode 100644 index 00000000..338e0531 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/language/json/jsonMode.js differ diff --git a/app/web/public-br/monaco/min/vs/language/json/jsonWorker.js b/app/web/public-br/monaco/min/vs/language/json/jsonWorker.js new file mode 100644 index 00000000..d2ccaa0d Binary files /dev/null and b/app/web/public-br/monaco/min/vs/language/json/jsonWorker.js differ diff --git a/app/web/public-br/monaco/min/vs/language/typescript/tsMode.js b/app/web/public-br/monaco/min/vs/language/typescript/tsMode.js new file mode 100644 index 00000000..7db01d9e Binary files /dev/null and b/app/web/public-br/monaco/min/vs/language/typescript/tsMode.js differ diff --git a/app/web/public-br/monaco/min/vs/language/typescript/tsWorker.js b/app/web/public-br/monaco/min/vs/language/typescript/tsWorker.js new file mode 100644 index 00000000..d0b2fda0 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/language/typescript/tsWorker.js differ diff --git a/app/web/public-br/monaco/min/vs/loader.js b/app/web/public-br/monaco/min/vs/loader.js new file mode 100644 index 00000000..31110ba2 Binary files /dev/null and b/app/web/public-br/monaco/min/vs/loader.js differ diff --git a/app/web/src/utils/script/jscript.ts b/app/web/src/utils/script/jscript.tsx similarity index 100% rename from app/web/src/utils/script/jscript.ts rename to app/web/src/utils/script/jscript.tsx index 8bb76df0..494c93de 100644 --- a/app/web/src/utils/script/jscript.ts +++ b/app/web/src/utils/script/jscript.tsx @@ -43,12 +43,12 @@ export const jscript = { this.events.prettierLoaded(); const e = await import("@monaco-editor/react"); - jscript.editor = e.Editor; e.loader.config({ paths: { vs: "/monaco/min/vs", }, }); + jscript.editor = e.Editor; this.events.editorLoaded(); render(); }); diff --git a/pkgs/core/build.ts b/pkgs/core/build.ts index 7c1ed2d5..a2afd8c0 100644 --- a/pkgs/core/build.ts +++ b/pkgs/core/build.ts @@ -92,16 +92,6 @@ await build({ const build_all = process.argv[process.argv.length - 1] === "main" ? false : true; if (build_all) { - const glob = new Glob("**"); - const public_files = [] as string[]; - for await (const file of glob.scan(dir.path("app/web/public"))) { - public_files.push(file); - } - await Bun.write( - dir.path("app/web/public_files.ts"), - `export const files = ${JSON.stringify(public_files, null, 2)}` - ); - await removeAsync(dir.path("app/web/.parcel-cache")); await removeAsync(dir.path("app/static")); @@ -133,14 +123,16 @@ if (build_all) { await parcel.exited; const public_br = dir.path("app/web/public-br"); - if (!(await existsAsync(public_br))) { - const api = new fdir() - .withRelativePaths() - .crawl(dir.path("app/web/public")); - const files = api.sync(); - if (files) { + const api = new fdir().withRelativePaths().crawl(dir.path("app/web/public")); + await removeAsync(public_br); + const public_files = await listAsync(dir.path("app/static")); + if (public_files) { + const public_files = api.sync(); + if (public_files) { await Promise.all( - files.map(async (file) => { + public_files.map(async (file) => { + public_files.push(file); + const br = brotli.compress( new Uint8Array( await Bun.file(dir.path(`app/web/public/${file}`)).arrayBuffer() @@ -157,14 +149,18 @@ if (build_all) { }) ); } + await Bun.write( + dir.path("app/web/public_files.ts"), + `export const files = ${JSON.stringify(public_files, null, 2)}` + ); } const static_br = dir.path("app/static-br"); await removeAsync(static_br); - const files = await listAsync(dir.path("app/static")); - if (files) { + const static_files = await listAsync(dir.path("app/static")); + if (static_files) { await Promise.all( - files + static_files .filter((file) => statSync(dir.path(`app/static/${file}`)).isFile()) .map(async (file) => { if (!(await Bun.file(dir.path(`app/static-br/${file}`)).exists())) { @@ -184,19 +180,5 @@ if (build_all) { } }) ); - const pub = await listAsync(dir.path("app/web/public-br")); - if (pub) { - await Promise.all( - pub.map(async (file) => { - if (await existsAsync(`app/static-br/${file}`)) { - await removeAsync(`app/static-br/${file}`); - } - await copyAsync( - dir.path(`app/web/public-br/${file}`), - dir.path(`app/static-br/${file}`) - ); - }) - ); - } } } diff --git a/pkgs/core/server/serve-static.ts b/pkgs/core/server/serve-static.ts index b6200ba6..2499e5d4 100644 --- a/pkgs/core/server/serve-static.ts +++ b/pkgs/core/server/serve-static.ts @@ -1,23 +1,10 @@ import { dir } from "dir"; -import { exists, inspectTreeAsync } from "fs-jetpack"; -import { InspectTreeResult } from "fs-jetpack/types"; -import { join } from "path"; import { watch } from "fs"; -import { CORS_HEADERS } from "./serve-api"; import mime from "mime"; +import { join } from "path"; import { g } from "utils/global"; - -const web = { - brExists: null as null | boolean, - get path() { - if (g.mode === "dev") return "static"; - if (this.brExists === null) { - this.brExists = !!exists(dir.path("app/static-br")); - } - if (this.brExists) return "static-br"; - else return "static"; - }, -}; +import { CORS_HEADERS } from "./serve-api"; +import { existsAsync } from "fs-jetpack"; if (!g.static_cache) { g.static_cache = {}; @@ -37,51 +24,57 @@ export const serveStatic = { delete cache.static[k]; } } - await this.walk(); + await Promise.all([this.load("app/static"), this.load("app/web/public")]); if (g.mode === "dev") { - watch(dir.path(`app/static`), async (_, filename) => { - if (filename) { - const path = join("static", filename); - try { - const file = Bun.file(dir.path(`app/${path}`)); - if (await file.exists()) { - cache.static[`/${filename}`] = { - type: mime.getType(path) || "application/octet-stream", - compression: g.mode === "prod" ? "br" : "", - content: await file.arrayBuffer(), - }; + ["app/static", "app/web/public"].forEach((base_path) => { + watch(dir.path(`app/static`), async (_, filename) => { + if (filename) { + try { + const file = Bun.file(dir.path(`${base_path}/${filename}`)); + if (await file.exists()) { + cache.static[`/${filename}`] = { + type: mime.getType(filename) || "application/octet-stream", + compression: "", + content: await file.arrayBuffer(), + }; + } + } catch (e: any) { + cache.static = {}; } - } catch (e: any) { - cache.static = {}; } - } + }); }); } }, - walk: async () => { - const list = await inspectTreeAsync(dir.path(`app/${web.path}`)); - const walk = async ( - list: InspectTreeResult, - parent?: InspectTreeResult[] - ) => { - if (list.type === "dir") { - for (const item of list.children) { - await walk(item, [...(parent || []), list]); + async load(base_path: string) { + try { + const glob = new Bun.Glob("**"); + + for await (const file_path of glob.scan(dir.path(base_path))) { + const r_path = dir.path(`${base_path}/${file_path}`); + const br_path = dir.path(`${base_path}-br/${file_path}`); + + let final_path = r_path; + let br = false; + if (await existsAsync(br_path)) { + final_path = br_path; + br = true; } - } else { - const path = join(...(parent || []).map((e) => e.name), list.name); - const file = Bun.file(dir.path(`app/${path}`)); - if (await file.exists()) { - cache.static[path.substring(web.path.length)] = { - type: mime.getType(path) || "application/octet-stream", - compression: g.mode === "prod" ? "br" : "", - content: await file.arrayBuffer(), + + try { + cache.static[`/${file_path}`] = { + type: mime.getType(file_path) || "application/octet-stream", + compression: br ? "br" : "", + content: await Bun.file(final_path).arrayBuffer(), }; + } catch (e: any) { + console.error(`Failed to load static file: ${final_path}`); + console.error(` ${e.message}`); } } - }; - if (list) { - await walk(list); + } catch (e: any) { + console.error(`Failed to load static dir: ${base_path}`); + console.error(` ${e.message}`); } }, exists: (url: URL) => { @@ -100,24 +93,21 @@ export const serveStatic = { } if (url.pathname.endsWith(".js")) { - if (g.mode === "dev") { - await this.walk(); - } else { - return new Response( - ` + return new Response( + ` +// ${url.pathname} not found, just reload the page navigator.serviceWorker.getRegistration().then(function(reg) { if (reg) { - reg.unregister().then(function() { window.location.reload(true); }); + reg.unregister().then(function() { window.location.reload(); }); } else { - window.location.reload(true); + window.location.reload(); } }); `, - { - headers: { "content-type": "text/javascript" }, - } - ); - } + { + headers: { "content-type": "text/javascript" }, + } + ); } file = cache.static["/index.html"]; @@ -130,5 +120,6 @@ navigator.serviceWorker.getRegistration().then(function(reg) { }, }); } + return new Response(`Not Found: ${url.pathname}`, { status: 404 }); }, };