13 lines
922 KiB
JavaScript
13 lines
922 KiB
JavaScript
|
/**
|
||
|
* copy-cat: Copyright SquidDev 2023
|
||
|
*
|
||
|
* - @squid-dev/cc-web-term: Copyright SquidDev (BSD-3-Clause)
|
||
|
* - jszip: Copyright Stuart Knightley ((MIT OR GPL-3.0-or-later))
|
||
|
* - preact: Copyright (MIT)
|
||
|
* - setimmediate: Copyright YuzuJS (MIT)
|
||
|
* - style-inject: Copyright EGOIST (MIT)
|
||
|
* - tslib: Copyright Microsoft Corp. (0BSD)
|
||
|
*
|
||
|
* @license
|
||
|
*/define(["exports"],function(n){"use strict";var a,e,t,r,u,i,l,c,o,f,s,b,h,d,v,k,w,g,m,A,y,L,p,Z,C,E,D,I,S,F,M,B,G,j,N,T,P,O,K=window,R=2463534242;function H(){var n=R;return n^=n<<13,n^=n>>>17,n^=n<<5,R=n,n}function z(n,a){var e=new K.Array(a);return e.fill(null),new nlM(n,e)}function U(n,a){return new nlM(n,a)}function Y(n,a){return new nlM(n,a)}function x(n){return Y(ne(),new K.Uint16Array(n))}function q(n){return Y(nr(),new K.Int8Array(n))}function $(n){return Y(ni(),new K.Int16Array(n))}function J(n){return Y(nc(),new K.Int32Array(n))}function _(n){return Y(nn(),new K.Int8Array(n))}function Q(n){return Y(nd(),new K.Float64Array(n))}function W(n){var a=n.$array;if(null===a){var e={},t="["+n.$meta.binaryName;e.$meta={item:n,supertypes:[n9],primitive:!1,superclass:n9,name:t,binaryName:t,enum:!1,simpleName:null,declaringClass:null,enclosingClass:null},e.classObject=null,e.$array=null,a=e,n.$array=e}return a}function V(n,a){var e={$array:null,classObject:null,$meta:{supertypes:[],superclass:null}};return e.$meta.primitive=!0,e.$meta.name=n,e.$meta.binaryName=a,e.$meta.enum=!1,e.$meta.item=null,e.$meta.simpleName=null,e.$meta.declaringClass=null,e.$meta.enclosingClass=null,e}K.Array.prototype.fill=K.Array.prototype.fill||function(n,a,e){var t=this.length;if(!t)return this;var r=(a|=0)<0?K.Math.max(t+a,0):K.Math.min(a,t);for(e=(e=e===K.undefined?t:0|e)<0?K.Math.max(t+e,0):K.Math.min(e,t);r<e;r++)this[r]=n;return this},"function"!=typeof K.BigInt64Array?(t=function(n){var a=new K.Array(n),e=new nlM(nf(),a);return a.fill(o),e},r=function(n){return new nlM(nf(),n)}):(t=function(n){return Y(nf(),new K.BigInt64Array(n))},r=function(n){var a=new K.BigInt64Array(n.length);return a.set(n),Y(nf(),a)});var X=null;function nn(){return null===X&&(X=V("boolean","Z")),X}var na=null;function ne(){return null===na&&(na=V("char","C")),na}var nt=null;function nr(){return null===nt&&(nt=V("byte","B")),nt}var nu=null;function ni(){return null===nu&&(nu=V("short","S")),nu}var nl=null;function nc(){return null===nl&&(nl=V("int","I")),nl}var no=null;function nf(){return null===no&&(no=V("long","J")),no}var ns=null;function nb(){return null===ns&&(ns=V("float","F")),ns}var nh=null;function nd(){return null===nh&&(nh=V("double","D")),nh}var nv=null;function nk(n){throw function(n){var a=n.$jsException;if(!a){var e=aN(n),t=null!==e?e.$jsException:K.undefined,r="object"==typeof t?{cause:t}:K.undefined;a=new c("Java exception thrown",r),"function"==typeof K.Error.captureStackTrace&&K.Error.captureStackTrace(a),a[nw]=n,n.$jsException=a,ng(a)}return a}(n)}var nw=K.Symbol("javaException");function ng(n,a){if("function"==typeof $rt_decodeStack&&n.stack)for(var e=$rt_decodeStack(n.stack),t=(z(jz,e.length),0);t<e.length;++t){var r,u,i,l,c=e[t];nj(c.className),nj(c.methodName),nj(c.fileName),c.lineNumber;break}}function nm(n,a){for(var e=0,t=a.length-1;t>=0;t=t-1|0)if(0===a[t]){e=t;break}if(e>0){for(t=0;t<e;t=t+1|0)n=W(n);if(e===a.length-1)return z(n,a[e])}var r=new K.Array(nA(a,e)),u=0|a[e];for(t=0;t<r.length;t=t+1|0)r[t]=z(n,u);return ny(n,r,a,e)}function nA(n,a){for(var e=0|n[a+1],t=a+2;t<n.length&&0!=(e=e*(0|n[t])|0);t=t+1|0);return e}function ny(n,a,e,t){for(var r=a.length,u=t+1|0;u<e.length;u=u+1|0){n=W(n);for(var i=e[u],l=0,c=0;l<r;){for(var o=new nlM(n,new K.Array(i)),f=0;f<i;f=f+1|0)o.data[f]=a[l],l=l+1|0;a[c]=o,c=c+1|0}r=c}return a[0]}function nL(n){var a="",e=0,t=0;function r(e){if(10===e)n(a),a="";else if(e<65536)a+=K.String.fromCharCode(e);else{var t=((e=e-65536|0)>>10)+55296,r=(1023&e)+56320;a+=K.String.fromCharCode(t,r)}}return function(n){(128&n)==0?r(n):(192&n)==128?e>0&&(t<<=6,t|=63&n,0==--e&&r(t)):(224&n)==192?(t=31&n,e=1):(240&n)==224?(t=15&n,e=2):(248&n)==240&&(t=7&n,e=3)}}"function"==typeof $rt_putStdoutCustom?$rt_putStdoutCustom:"object"==typeof K.console&&nL(function(n){K.console.info(n)});var np="function"==typeof $rt_putStderrCustom?$rt_putStderrCustom:"object"==typeof K.console?nL(function(n){K.console.error(n)}):function(){},nZ=null;function nC(n){for(var a=nZ,e=0;e<n.length;){var t=n[e++];t.$meta={};var r=t.$meta,u=n[e++];if(
|