| 2888 | dd || (fb = ed); |
| 2889 | }; |
| 2890 | function fd() { |
| 2891 | function a() { |
| 2892 | if (!dd && ((dd = !0), (e.calledRun = !0), !Qa)) { |
| 2893 | e.noFSInit || |
| 2894 | Rc || |
| 2895 | ((Rc = !0), |
| 2896 | Qc(), |
| 2897 | (e.stdin = e.stdin), |
| 2898 | (e.stdout = e.stdout), |
| 2899 | (e.stderr = e.stderr), |
| 2900 | e.stdin ? Sc("stdin", e.stdin) : hc("/dev/tty", "/dev/stdin"), |
| 2901 | e.stdout |
| 2902 | ? Sc("stdout", null, e.stdout) |
| 2903 | : hc("/dev/tty", "/dev/stdout"), |
| 2904 | e.stderr |
| 2905 | ? Sc("stderr", null, e.stderr) |
| 2906 | : hc("/dev/tty1", "/dev/stderr"), |
| 2907 | A("/dev/stdin", 0), |
| 2908 | A("/dev/stdout", 1), |
| 2909 | A("/dev/stderr", 1)); |
| 2910 | Sb = !1; |
| 2911 | kb(ab); |
| 2912 | if (e.onRuntimeInitialized) e.onRuntimeInitialized(); |
| 2913 | if (e.postRun) |
| 2914 | for ( |
| 2915 | "function" == typeof e.postRun && (e.postRun = [e.postRun]); |
| 2916 | e.postRun.length; |
| 2917 | |
| 2918 | ) { |
| 2919 | var b = e.postRun.shift(); |
| 2920 | bb.unshift(b); |
| 2921 | } |
| 2922 | kb(bb); |
| 2923 | } |
| 2924 | } |
| 2925 | if (!(0 < db)) { |
| 2926 | if (e.preRun) |
| 2927 | for ( |
| 2928 | "function" == typeof e.preRun && (e.preRun = [e.preRun]); |
| 2929 | e.preRun.length; |
| 2930 | |
| 2931 | ) |
| 2932 | cb(); |
| 2933 | kb($a); |
| 2934 | 0 < db || |
| 2935 | (e.setStatus |
| 2936 | ? (e.setStatus("Running..."), |
| 2937 | setTimeout(function () { |
| 2938 | setTimeout(function () { |
| 2939 | e.setStatus(""); |
| 2940 | }, 1); |
| 2941 | a(); |
| 2942 | }, 1)) |
| 2943 | : a()); |
| 2944 | } |
| 2945 | } |
| 2946 | e.run = fd; |
| 2947 | if (e.preInit) |