@falsejs/falsejs 1.1.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,1725 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * FalseJS <https://10xEngineersQualityProgramming.github.io/falsejs.html>
5
+ * Copyright 10x'ly Made and other contributors <https://10xEngineersQualityProgramming.github.io>
6
+ * Released under MIT license <https://opensource.org/license/mit>
7
+ * made with HEAVY BLACK HEART U+2764
8
+ * Thanks to biome for being a good formatter + linter
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ const statement = `I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
12
+
13
+ Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.
14
+
15
+ There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux" distributions are really distributions of GNU/Linux.`;
16
+ const isComputerOnFire = require("is-computer-on-fire").isComputerOnFire;
17
+ if (isComputerOnFire() && ((1 & (3 << 2)) > 4 || !statement || Math.PI === 3.14159265358979)) {
18
+ /** An exaggeration of an error that is thrown if the computer is on fire. This NPM package is NOT pointless, and it's NOT a joke. */
19
+ throw new Error("OH MY GOSH YOUR COMPUTER IS ON FIRE WHY ARE YOU WASTING TIME USING A JOKE POINTLESS NPM PACKAGE GET YOUR FIRE EXTINGUISHER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
20
+ }
21
+ else {
22
+ require("none")();
23
+ require("-");
24
+ /** Whatev is a very useful package, that can be used to get the value of true. */
25
+ const whatev = require("whatev");
26
+ const whatevTrueValue = (whatev.fn() === whatev.string) === whatev.object.whatev;
27
+ require("get-member")();
28
+ require("array-get-member")();
29
+ // @ts-ignore
30
+ global.jQuery = require("jquery");
31
+ require("jquery-basic-arithmetic-plugin");
32
+ require("console.dog");
33
+ require("user")();
34
+ let COMPATIBILITY_MODE;
35
+ (function (COMPATIBILITY_MODE) {
36
+ COMPATIBILITY_MODE["NONE"] = "none";
37
+ COMPATIBILITY_MODE["IE5"] = "ie5";
38
+ COMPATIBILITY_MODE["NETSCAPE"] = "netscape";
39
+ COMPATIBILITY_MODE["OPERA_PRESTO"] = "opera_presto";
40
+ })(COMPATIBILITY_MODE || (COMPATIBILITY_MODE = {}));
41
+ (function (factory) {
42
+ /** Export everything. */
43
+ module.exports.default = factory(jQuery);
44
+ })(function ($) {
45
+ // biome-ignore lint/suspicious/noRedundantUseStrict: We need double strict mode because we wanna be SUPER strict.
46
+ "use strict";
47
+ const jQuery = $;
48
+ const variableHolder = {};
49
+ const GetIntrinsic = require("get-intrinsic"); // cache our intrinsics
50
+ const _ = require("lodash"); // every project needs lodash
51
+ const underscore = require("underscore"); // underscore.js. the predecessor of lodash.
52
+ const React = require("react"); // the hype framework everyone uses for some reason
53
+ const ReactDOMServer = require("react-dom/server"); // part of react
54
+ const cheerio = require("cheerio"); // cheerio!
55
+ const { JSDOM } = require("jsdom"); // a fake dom
56
+ const striptags = require("striptags"); // strip tags!
57
+ const chalk = require("chalk"); // color is the best!*/
58
+ var clc = require("cli-color"); // another color module
59
+ const colors = require("@colors/colors/safe"); // colors
60
+ const chalkbox = require("chalkbox"); // with a box
61
+ const c = require("ansi-colors"); // nothing wrong with even more colors
62
+ const pc = require("picocolors"); // maybe even more colors libraries
63
+ const axios = require("axios"); // so we can send requests
64
+ const { generatePhoneNumber } = require("phone-number-generator-js"); // generate some phone numbers
65
+ const emptyString = require("empty-string"); // an empty string
66
+ const n0p3 = require("n0p3"); // a noop
67
+ const noop2 = require("noop2"); // nothing wrong with another noop
68
+ const noop3 = require("noop3"); // nothing wrong with yet another noop
69
+ const noop4 = require("noop4"); // noop factory
70
+ const noop6 = require("noop6"); // again, nothing wrong with more noops
71
+ const noop7 = require("noop7"); // i think you see where i'm going
72
+ const noop8 = require("noop8"); //another...
73
+ const noop9 = require("noop9"); // the ninth
74
+ const noop10 = require("noop10"); // 10x with noops lezz go
75
+ const { noop, doop } = require("yanoop"); // yanoop.
76
+ const asyncUtilNoop = require("async.util.noop"); // i think you see where i'm going
77
+ const blankSpaceFullObject = require("blank-space"); // this exports two noops
78
+ const blankSpaceNoop = blankSpaceFullObject.noop; // noop one
79
+ const blankSpace = blankSpaceFullObject._; // and noop two
80
+ const noopGenerator = require("co-noop"); // a noop generator!
81
+ const fjNoop = require("fj-noop").FUNC; // fj noop
82
+ const lodashNoop = require("lodash.noop"); // lodash noop
83
+ const lodash_Noop = require("lodash._noop"); // another lodash noop!
84
+ const noOp = require("no-op"); // noop with a dash
85
+ const nodeNoop = require("node-noop").noop; // a noop
86
+ const noopUtility = require("@stdlib/utils-noop"); // the most practical
87
+ const trueNoop = require("true-noop"); // one of few true noops.
88
+ const noopFn = require("noop-fn"); // it ends with a fn
89
+ const noopaam = require("noopaam"); // noopaaaaaaaaaaaaaaaaaaaaaaaaaammmmmmmmmmmmm
90
+ const nop = require("nop"); // just nop. what a funny name
91
+ const es2015Noop = require("es2015-noop"); // the future is here
92
+ const kgryteNoop = require("@kgryte/noop"); // how do you pronounce this guy's name
93
+ const blackHole = require("a-black-hole"); // OH NO WE ARE GOING IN TO THE BLACK HOLE
94
+ const infinoop = require("infinoop"); // noop. for ever. for. ev. er. FOR. EV. ER
95
+ const mNoop = require("m.noop").noop; // the only other true noop i could find besides true-noop itself
96
+ const ahsmNoop = require("@ahsm/noop"); // ahsm noop
97
+ const { noop: qcCoreNoop, nullFn: Null } = require("qc-core"); // the qc core
98
+ const nooop = require("nooop"); // someone put too many o's
99
+ const ryotahNoop = require("@ryotah/noop"); // ryotah made a noop
100
+ const zodashNoop = require("@zodash/noop").noop; // zodash made a noop
101
+ const jacobZuma = require("jacob-zuma"); // south african flavored noop
102
+ const onceNoopFactory = require("once-noop/factory"); // make a noop which can only be called once
103
+ const noopTS = require("noop-ts").default; // noop ts
104
+ const voidFn = require("voidfn"); // void fn
105
+ const noopExec = require("noop-exec"); // exec
106
+ const attempt = require("attempt-statement"); // has more features than trycatch statement
107
+ const assert = require("assert-fn"); // more simple and elegant than built in node:assert
108
+ const hasSelfEquality = require("has-self-equality"); // most things have self equality but lets make sure
109
+ const hasNoSelfEquality = require("has-no-self-equality"); // again self equality
110
+ const isNumberOddOrEven = require("is-number-odd-or-even"); // this function isn't made to return a certain value if it's even, or a certain value if it's odd, this function returns if a value is odd or even like (isOdd || isEven) in an illustration not isOdd ? "odd" : "even"
111
+ const isOne = require("is-one"); // the base is- function
112
+ const isTen = require("is-ten"); // 10x the is-one
113
+ const isHundred = require("is-hundred"); // 10x the is-ten
114
+ const isThousand = require("is-thousand").default;
115
+ const isTenThousand = require("is-ten-thousand"); // 100x the is-hundred
116
+ const isEqTenThousand = require("is-eq-ten-thousand"); // is-eq-ten-thousand
117
+ const isTwo = require("is-two").isTwo; // the successor of one
118
+ const isThree = require("is-three"); // the successor of two
119
+ const isNegativeZero = require("is-negative-zero"); // isNegativeZero
120
+ const isNegativeZero2 = require("negative-zero"); // can't hurt to have another negative zero checker
121
+ const isPositiveZero = require("positive-zero"); // positive zero
122
+ const isTrue = require("is-true"); // true
123
+ const isPreciselyTrue = require("is-precisely-true"); // real true
124
+ const is = require("is-thirteen"); // comparison-against-twelve-free environment
125
+ const isThreeHundred = require("is-three-hundred"); // is-three-hundred
126
+ const isNumber = require("is-number"); // jonschlinkert
127
+ const isActualNumber = require("is-actual-number"); // my is-number
128
+ const isIsOdd = require("is-is-odd"); // isIsOdd
129
+ const isOdd = require("is-odd"); // why does everyone think this is the dumbest package ever. its not
130
+ const isOd = require("is-od"); // forget a d
131
+ const isOddAndrew = require("is-odd-andrew"); // isOddAndrew
132
+ const isOddNum = require("is-odd-num"); // another odd checker
133
+ const isIntegerOdd = require("is-integer-odd"); // another!!!!
134
+ const noteven = require("not-even"); // not even
135
+ const isUneven = require("is-uneven"); // whysomany
136
+ const numberKind = require("number-kind"); // this exports two fns!
137
+ const isOddFaster = require("is-odd-faster").isOdd; // is Odd but faster
138
+ const gabrielBrotasIsOdd = require("gabriel-brotas-is-odd"); // gabriel made an is odd
139
+ const returnIfOddNumber = require("return-if-odd-number"); // if odd number
140
+ const numberIsOdd = require("number-is-odd"); // check if a number is odd
141
+ const isNumOdd = require("is-num-odd"); // check if a num is odd
142
+ const isOddNumber = require("is-odd-number"); // check if a od is number
143
+ const isNumberOdd = require("is_number_odd"); // check if a number is odd
144
+ const isThisNumberOdd = require("is-this-number-odd"); // check if a this is number odd
145
+ const isRealBoolean = require("is-real-boolean"); // BOOLEANS
146
+ const add = require("examplebyraji"); // a package
147
+ const cowsay = require("cowsay"); // let's say stuff
148
+ const lolcatjs = require("lolcatjs"); // the rainbow i tastes it
149
+ const owoifyx = require("owoifyx").default; // UwU
150
+ const Uwuifier = require("uwuifier").default; // UwU (x2)
151
+ const amogus = require("amogusify"); // amogusify our amogus
152
+ const luaParser = require("luaparse"); // parse lua
153
+ const luaInterpreter = require("lua-interpreter"); // interpret lua
154
+ const exit = require("exit"); // 10x better than process.exit
155
+ const appendType = require("append-type"); // PUT THE TYPE NEXT TO A VALUE!!
156
+ const concatenater = require("concatenater"); // CONCATENATE STUFF!!!
157
+ const generalConcat = require("general-concat"); // GENERALLY CONCATENATE STUFF!!!
158
+ const lowercase = require("convert-to-lower-case"); // CONVERT TO LOWER CASE
159
+ const construct = require("construct-new"); // better than the new keyword
160
+ const $Promise = require("bluebird");
161
+ const $Array = GetIntrinsic("%Array%");
162
+ const $Boolean = GetIntrinsic("%Boolean%");
163
+ const $Date = GetIntrinsic("%Date%");
164
+ const $String = GetIntrinsic("%String%");
165
+ const MathRandom = GetIntrinsic("%Math.random%");
166
+ const MathFloor = GetIntrinsic("%Math.floor%");
167
+ const MathRound = GetIntrinsic("%Math.round%");
168
+ const PI = GetIntrinsic("%Math.PI%");
169
+ const MathAbs = GetIntrinsic("%Math.abs%");
170
+ const MathSqrt = GetIntrinsic("%Math.sqrt%");
171
+ const MathSin = GetIntrinsic("%Math.sin%");
172
+ const MathCos = GetIntrinsic("%Math.cos%");
173
+ const StringCharAt = GetIntrinsic("%String.prototype.charAt%");
174
+ const _calculateFalseAprilFools = require("../aprilFoolsCalculateFalse"); // april fools
175
+ const couldThisCouldItBeTrue = require("@falsejs/is-true-helper"); // check if a value is true
176
+ const { returnFalse, isFalse: isPreciselyEqualToFalse } = require("@falsejs/core-ish"); // some core ish functions
177
+ const isJanuary = require("is-january"); // month 1
178
+ const isFebruary = require("is-february"); // month 2
179
+ const isMarch = require("is-march"); // month 3
180
+ const isApril = require("is-april"); // month 4
181
+ const isMay = require("is-may"); // month 5
182
+ const isJune = require("is-june"); // month 6
183
+ const isJuly = require("is-july"); // month 7
184
+ const isAugust = require("is-august"); // month 8
185
+ const isSeptember = require("is-september"); // month 9
186
+ const isOctober = require("is-october"); // month 10
187
+ const isNovember = require("is-november"); // month 11
188
+ const isDecember = require("is-december"); // month 12
189
+ const isMonday = require("is-monday"); // day of the week 1 according to international standard, day of the week 2 according to the us
190
+ const isTuesday = require("is-tuesday"); // day of the week 2 according to international standard, day of the week 3 according to the us
191
+ const isWednesday = () => require("is-wednesday")(new $Date()); // day of the week 3 according to the international standard, day of the week 4 according to the us
192
+ // now we gotta sing rebecca black's song
193
+ const isThursday = require("is-thursday"); /// Yesterday was thursdayyyy
194
+ const isFriday = require("is-friday"); // tooo-ddadayy is friday! we so ecited
195
+ const isSaturday = require("is-saturday"); // tomorrow will be saturday
196
+ const isSunday = require("is-sunday"); // and sunday comes after
197
+ const isWeekend = require("is-weekend"); // looking forward to the weeeeekeend
198
+ const zr0 = require("integer-value-positive-zero"); // get the number zero, less 10x
199
+ const { returnZero: returnZero_, ZeroCalculationMethod, isZero: zerosurgeIsZero } = require("zerosurge"); // get the number zero, but 10x'er
200
+ // @ts-ignore
201
+ const returnZero = returnZero_;
202
+ /** LETS GET SOME NUMBERS */
203
+ const one = require("the-number-one").default; // get the number one
204
+ const Two = require("two"); // get number 2
205
+ const three = require("numeric-constant-three"); // get number 3
206
+ const four = require("always-four"); // number 4
207
+ const five = require("five"); // num5
208
+ const six = require("number-six"); // n6
209
+ const seven = require("se7en"); // 7
210
+ const eightToolkit = require("eight-toolkit"); // it's 8, in a toolkit!
211
+ const ninev9 = require("value-nine"); // it's v9 of 9, when there was only v1 of 9 first, so it's 9x better (but 10x engineered)
212
+ const ten = require("the-number-ten"); // 10
213
+ const eleven = require("eleven"); // 11
214
+ const twelve = require("tw12ve"); // 12
215
+ const thirteenResolver = require("always-thirteen"); // 13
216
+ const fourteen = require("fourteen"); // 14
217
+ const fifteen = require("number-fifteen"); //15
218
+ const fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn = require("fifteen-point-eight-three-five-two-six-six-eight-two-and-so-on"); //-this-can-be-rounded-to-sixteen
219
+ const sixteen = require("sixteen-constant"); //thisisthenumbersixteenomg161616
220
+ const integer17 = require("seventeen-integer"); //17
221
+ const Eighteen = require("eighteen-positive-number-interactions"); // Interact positively with eighteen
222
+ const nineteenify = require("nineteenify"); // Hey there what our you doing? *nineteenifies*
223
+ const numbertwenty = require("numbertwenty"); // 20
224
+ const always21 = require("always-21"); // 21
225
+ const twentytwo = require("twentytwo")(); // 22
226
+ const { TWENTY_THREE } = require("twenty-three-tools"); // 23 tools
227
+ const hundred = require("number-one-hundred"); // 100!
228
+ const numberOneHundred = hundred; // alias!
229
+ const theNumberSeven = require("@onesneakymofo/the-number-seven").default; // this is actually a string for some reason
230
+ const inf = require("infinities"); // INFINITE
231
+ const bool = require("true-bool"); // booleans
232
+ const successor = require("successor"); // successor
233
+ const tru = require("tru"); // if statements arent verbose enough
234
+ const If = require("if"); // always good to have another if statement!
235
+ const not = require("@not-js/not"); // safer negation with not
236
+ const { functions, _return } = require("returndotjs/safe"); // better returning
237
+ const vretriever = require("vretriever"); // a constant function
238
+ const immo = require("@_immo/return"); // also a constant function
239
+ const isEqualTo = require("is-equal-to"); // cant hurt to have a better way to check if something is equal
240
+ const isEqual = require("is-equal"); // more complex ways too.
241
+ const strictlyEqual = require("are-strictly-equal"); // and strict equality.
242
+ const getTypeOf = require("get-ecmascript-type-of"); // better typeof
243
+ const extremejs = require("@extremejs/utils"); // TO THE EXTREME
244
+ var trueValue = require("true-value"); // the sister of falsejs
245
+ var t = () => whatevTrueValue; // returns true.
246
+ var tVal = trueValue; // tVal sounds cool so i put it here too
247
+ const { mGenbaneko } = require("genbaneko"); // i like cats
248
+ const leftPad = require("left-pad"); //every project needs leftpad.
249
+ const rightPad = require("right-pad"); //to the right, to the right.
250
+ const zeropad = require("zeropad"); //every project could use a third pad.
251
+ const pad = require("pad"); //this is the pad to end all pads.
252
+ const leftpad = require("leftpad"); // every project could use another leftpad.
253
+ const rightpad = require("rightpad"); // another right pad too.
254
+ const WestPad = require("west-pad").default; // better than any other pad (except pad itself)
255
+ const tacoWrap = require("@sir_wernich/taco-wrap").default; // pad our strings in tacos.
256
+ const isWindwos = require("is-windows"); // did i misspell the variable name? of course not
257
+ const isWindows = isWindwos; // i totally didnt misspell the above variable and this line doesnt exist
258
+ const isLinux = require("is-linux"); // linux the os
259
+ const isOSX = require("is-osx"); // more like is darwin
260
+ // TODO: Implement is Windows 12
261
+ const isFreeBSD = require("is-freebsd").isFreeBSD; // i've never even heard of this operating system until now.
262
+ const thirteen = require("thirteen"); // multiply by thirteen
263
+ const os = require("node:os"); // maybe node js itself can help us calculate more operating systems
264
+ const crypto = require("node:crypto"); // mine me some crypto
265
+ const fs = require("node:fs"); // write our files
266
+ const uuid = require("uuid"); // generate some uuids
267
+ const getStringLength = require("utf8-byte-length"); // get string length
268
+ const emoji100 = require("emoji-100"); // 100 emoji
269
+ const randomHappyEmoji = require("random-happy-emoji"); // HAPPY
270
+ const randomAngryEmoji = require("random-angry-emoji"); // ANGRY
271
+ const randomFoodEmoji = require("random-food-emoji"); // FOOD
272
+ const dolphinFact = require("dolphin-fact"); // DOLPHIN FACT
273
+ const logOne = require("useless-one-log"); // log the number one
274
+ const Bro = require("brototype"); // Bro
275
+ const literally = require("literally"); // better than literally
276
+ const constant = require("const"); // can't even name this variable after the actual library
277
+ const lodashdotconstant = require("lodash.constant"); // lodash's version
278
+ const WeirdInstanceof = require("weird-instanceof"); // drunk programming only
279
+ const { log: ltc, setLogFuntion } = require("logtoconsole"); // best logger
280
+ const weirdLtc = WeirdInstanceof(ltc); // weird
281
+ const yesNo = require("yes-no"); // YES NO YES NO YES NO
282
+ // biome-ignore lint: We need to override undefined for the 10x'ness
283
+ const { undefined } = require("undefined-is-a-function"); // UNDEFINED IS A FUNCTON
284
+ const isNull = require("@is-(unknown)/is-null"); // IS null
285
+ const isUndefined = require("@is-(unknown)/is-undefined"); // IS undefined
286
+ const isNil = require("@is-(unknown)/is-nil"); // IS null OR undefined :O
287
+ const isUnnull = require("is-unnull"); // IS UNNULL
288
+ // biome-ignore lint: We need to override isNaN for the 10x'ness
289
+ const isNaN = require("is-nan"); // IS NAN
290
+ const isNegativeInfinity = require("negative-infinity").check; // IS NEGATIVE INFINITY
291
+ const is1 = require("is-eq-one"); // is 1
292
+ const is0 = require("is-eq-zero"); // is 0
293
+ const is0_2 = require("is-zero"); // is 0 (x2)
294
+ const isFour = require("is-equal-four"); // is 4
295
+ const isFive = require("is-eq-five"); // is 5
296
+ const isSix = require("is-eq-six"); // is 6
297
+ const isSeven = require("is-eq-seven"); // is 7
298
+ const useGarbage = require("garbage"); // trash.
299
+ const isuseless = require("is-useless").isuseless; // super useless
300
+ const isAprilFools = require("is-april-fools"); // Is it april fools
301
+ const meow = require("meow.js"); // library for meowing
302
+ const { ErrorType: ERROR, immediateError } = require("immediate-error"); // throw errors
303
+ const throwError = require("throw-error"); // throw errors
304
+ const hello = require("hello-vga-function").default; // hello vga function
305
+ const greet = require("hell0-world"); // greet our guys
306
+ // A useful function to get a DHTML string.
307
+ function getDHTMLString() {
308
+ return "netscape_layer_id_" + thirteenResolver() * thirteenResolver() * thirteenResolver();
309
+ }
310
+ const NumberFormatter = Intl.NumberFormat;
311
+ const numberFormatter = construct({ target: NumberFormatter });
312
+ // Create .falsejs folder if it doesn't already exist.
313
+ tru(not(fs.existsSync)(".falsejs"))
314
+ .then(() => {
315
+ fs.mkdirSync(".falsejs");
316
+ })
317
+ .end();
318
+ variableHolder._lilmessage = colors.red(`[falsejs] This error should never be shown. If you are seeing this error in the console, please file an issue on the github repo. Thank you.`);
319
+ const STARTING_SUCCESSOR_HELPER_STACK = zr0();
320
+ const FALSE = !whatevTrueValue;
321
+ const _f = constant(FALSE);
322
+ const ERROR_THAT_WILL_NEVER_BE_SHOWN = variableHolder._lilmessage;
323
+ const TEN_THOUSAND = 10e3;
324
+ const LEFT_PAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
325
+ const RIGHT_PAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
326
+ const PAD_INPUT = five();
327
+ const LEFTPAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
328
+ const RIGHTPAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
329
+ const WEST_PAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
330
+ const ZEROPAD_INPUT = jQuery.subtract(five(), jQuery.divide(five(), five()));
331
+ const WEST_PAD_DEVICE_DIRECTION = "N";
332
+ const SPACE = " ";
333
+ const STARTING_VVALUE_USER_MINUS = zr0();
334
+ const STARTING_VVALUE_USER_PLUS = zr0();
335
+ const STARTING_VVALUE_USER_PAD = zr0();
336
+ const NO = getNo();
337
+ const YES = "yes";
338
+ const TODAY = construct({
339
+ target: $Date
340
+ });
341
+ const Today = TODAY;
342
+ const USERNAME = (function () {
343
+ var username = undefined();
344
+ attempt(() => {
345
+ username = os.userInfo().username;
346
+ })
347
+ .rescue(() => {
348
+ username = "user";
349
+ })
350
+ .else(nodeNoop)
351
+ .ensure(nop)
352
+ .end();
353
+ return username;
354
+ })();
355
+ const username = USERNAME;
356
+ const COMPATIBILITY_MODES = COMPATIBILITY_MODE;
357
+ class Logger {
358
+ enableLogging;
359
+ constructor(enableLogging) {
360
+ this.enableLogging = enableLogging; // ENABLE THE LOGGING
361
+ }
362
+ log(log) {
363
+ if (isEqualTo(this.enableLogging, t())) {
364
+ ;
365
+ log instanceof weirdLtc; // SO WERID
366
+ }
367
+ }
368
+ }
369
+ const FalseJSValidationFailedToPassError = class extends Error {
370
+ constructor(...stuff) {
371
+ super(...stuff);
372
+ }
373
+ };
374
+ const SuccessorHelper = class {
375
+ s(value) {
376
+ const result = add(value, one); // add one to it
377
+ return result;
378
+ }
379
+ };
380
+ const TernaryCompare = class {
381
+ condition;
382
+ ifTrue;
383
+ ifFalse;
384
+ constructor(condition, ifTrue, ifFalse) {
385
+ this.condition = condition;
386
+ this.ifTrue = ifTrue;
387
+ this.ifFalse = ifFalse;
388
+ }
389
+ compare() {
390
+ return this.condition ? this.ifTrue : this.ifFalse;
391
+ }
392
+ };
393
+ const ObjectOrFunctionParemeterName = class {
394
+ name;
395
+ constructor(name) {
396
+ this.name = name;
397
+ }
398
+ getName() {
399
+ const name = this.name; // use a static variable for performance
400
+ const compare = construct({
401
+ target: TernaryCompare,
402
+ args: [not(() => isNil(name))(), name, Null()]
403
+ });
404
+ return compare.compare();
405
+ }
406
+ };
407
+ const CLIColorInstance = class {
408
+ instance;
409
+ constructor(booleanValue) {
410
+ tru(isTrue({ booleanValue }, construct({
411
+ target: ObjectOrFunctionParemeterName,
412
+ args: ["booleanValue"]
413
+ }).getName()))
414
+ .then(n0p3)
415
+ .otherwise(n0p3)
416
+ .end();
417
+ this.instance = require("cli-color");
418
+ }
419
+ getInstance() {
420
+ return this.instance;
421
+ }
422
+ };
423
+ const trueComparison = construct({
424
+ target: TernaryCompare,
425
+ args: [tVal, tVal, not(() => tVal)()]
426
+ });
427
+ const { s } = construct({ target: SuccessorHelper });
428
+ const clc_ = construct({
429
+ target: CLIColorInstance,
430
+ args: [useGarbage()]
431
+ }).getInstance(); // colors are the best! chalk chalk chalk
432
+ clc = clc_; // setit
433
+ const uwuifier = construct({ target: Uwuifier });
434
+ const westPad = construct({ target: WestPad, args: ["N"] });
435
+ var True_Logger = construct({ target: Logger, args: [t()] });
436
+ // lets make sure jquery-basic-arithmetic-plugin works
437
+ if (not(() => Bro($).doYouEven("add"))()) {
438
+ // uh oh... jquery basic arithmetic plugin didn't work
439
+ True_Logger.log(colors.red("[falsejs] jquery-basic-arithmetic-plugin is not working")); // inform our users even if they disabled logging
440
+ require("jquery-basic-arithmetic-plugin");
441
+ require("jquery-basic-arithmetic-plugin");
442
+ require("jquery-basic-arithmetic-plugin");
443
+ require("jquery-basic-arithmetic-plugin");
444
+ require("jquery-basic-arithmetic-plugin");
445
+ require("jquery-basic-arithmetic-plugin");
446
+ require("jquery-basic-arithmetic-plugin"); // now it should work
447
+ if (not(() => Bro($).doYouEven("add"))()) {
448
+ True_Logger.log(colors.red("[falsejs] jquery-basic-arithmetic-plugin is still not working")); // inform our users even if they disabled logging
449
+ $.add = (...nums) => {
450
+ var total = zr0();
451
+ // let's use underscore instead of forEach
452
+ underscore.each(nums, (num) => {
453
+ total += num; // we have to use the operators because we are redefining the functions :(
454
+ });
455
+ return total;
456
+ };
457
+ $.subtract = (...nums) => {
458
+ var total = zr0();
459
+ // this time we'll use lodash
460
+ _.each(nums, (num) => {
461
+ total -= num;
462
+ });
463
+ return total;
464
+ };
465
+ $.equals = (v1, v2) => {
466
+ if (not(() => isActualNumber(v1) && !isActualNumber(v2))()) {
467
+ immediateError(concatenater("Both parameters must be numbers! Instead what was passed in was ")
468
+ .append(appendType(v1))
469
+ .toString()
470
+ .concat(concatenater(" or ").append(appendType(v2)).toString())); // not the same message as the original but i dont know what it is and am too lazy to look into the source code
471
+ return exit(one); // just in case it doesn't exit
472
+ }
473
+ return isEqualTo(v1, v2); /// not usnig $.equals because we are literally redefining that
474
+ };
475
+ if (not(() => Bro($).doYouEven("add"))()) {
476
+ True_Logger.log(colors.red(`[falsejs] Either your Node.js is broken, or jQuery is immutable. Something went wrong.`));
477
+ }
478
+ else {
479
+ True_Logger.log(pc.green(`[falsejs] jquery-basic-arithmetic-plugin is not working so falsejs defined the functions that are injected into jquery by itself`));
480
+ }
481
+ }
482
+ else {
483
+ True_Logger.log(pc.green(`[falsejs] jquery-basic-arithmetic-plugin is now working`));
484
+ }
485
+ }
486
+ const surpriseArray = []; // define empty array
487
+ setLogFuntion(() => {
488
+ // create an ending random number for our users eventually
489
+ surpriseArray.push(construct({
490
+ target: TernaryCompare,
491
+ args: [isEqualTo(randomBoolean(jQuery.multiply(five(), jQuery.divide(one, ten)), new Logger(FALSE)), t()), jQuery.multiply(MathRandom(), TEN_THOUSAND), jQuery.multiply(MathRandom(), MathFloor(jQuery.divide(jQuery.multiply(TEN_THOUSAND, MathRandom()), ten)))]
492
+ }).compare());
493
+ });
494
+ async function doSomethingAsync(logger) {
495
+ logger.log(clc.cyan(`[falsejs] Doing something async`));
496
+ return construct({
497
+ target: $Promise,
498
+ args: [(resolve) => setTimeout(() => resolve(logger), $.multiply(numberOneHundred, Two()))]
499
+ });
500
+ }
501
+ function resultOfDoingSomethingAsync(logger) {
502
+ logger.log(pc.green(`[falsejs] Did something async`));
503
+ }
504
+ function predecessor(n) {
505
+ return jQuery.subtract(n, one);
506
+ }
507
+ function vValue(num) {
508
+ if (not(strictlyEqual)(getTypeOf(num), extremejs.TYPE.NUMBER)) {
509
+ return num;
510
+ }
511
+ const rand = MathRandom();
512
+ const rand2 = MathRandom();
513
+ const useMinus = rand < 0.3333333333333333 ? trueComparison.compare() : FALSE;
514
+ const usePlus = rand > 0.3333333333333333 && rand < 0.6666666666666666 ? trueComparison.compare() : FALSE;
515
+ const usePad = rand > 0.6666666666666666 ? trueComparison.compare() : FALSE;
516
+ const useLeftPad = rand2 < 0.5;
517
+ const useRightPad = !useLeftPad;
518
+ if (useMinus)
519
+ return $.subtract(num, STARTING_VVALUE_USER_MINUS);
520
+ if (usePlus)
521
+ return $.add(num, STARTING_VVALUE_USER_PLUS);
522
+ if (usePad) {
523
+ if (useLeftPad)
524
+ return parseInt(leftPad(num.toString(), STARTING_VVALUE_USER_PAD).trim(), 10);
525
+ if (useRightPad)
526
+ return parseInt(rightPad(num.toString(), STARTING_VVALUE_USER_PAD).trim(), 10);
527
+ }
528
+ return num;
529
+ }
530
+ function sayIt(message) {
531
+ lolcatjs.fromString(cowsay.say({ text: message, r: bool([one, Two()]) }));
532
+ }
533
+ function isTenThousandTenThousand(shouldDoSomethingAsync = FALSE, logger) {
534
+ const TEN_THOUSAND1 = TEN_THOUSAND;
535
+ const TEN_THOUSAND2 = $.subtract($.add(TEN_THOUSAND, one), one);
536
+ const TEN_THOUSAND3 = predecessor(successor(TEN_THOUSAND));
537
+ const TEN_THOUSAND4 = TEN_THOUSAND.valueOf();
538
+ const TEN_THOUSAND5 = $.subtract(TEN_THOUSAND, STARTING_SUCCESSOR_HELPER_STACK);
539
+ const TEN_THOUSAND6 = $.add(TEN_THOUSAND, STARTING_SUCCESSOR_HELPER_STACK);
540
+ const TEN_THOUSAND7 = vValue(TEN_THOUSAND);
541
+ attempt(() => {
542
+ assert(isTenThousand(TEN_THOUSAND1, shouldDoSomethingAsync), "10,000 is not 10,000");
543
+ assert(isTenThousand(TEN_THOUSAND2, shouldDoSomethingAsync), "10,000 + 1 - 1 is not 10,000");
544
+ assert(isTenThousand(TEN_THOUSAND3, shouldDoSomethingAsync), "successor(10,000) - 1 is not 10,000");
545
+ assert(isTenThousand(TEN_THOUSAND4, shouldDoSomethingAsync), "(10000).valueOf() is not 10,000");
546
+ assert(isTenThousand(TEN_THOUSAND5, shouldDoSomethingAsync), "10,000 - 0 is not 10,000");
547
+ assert(isTenThousand(TEN_THOUSAND6, shouldDoSomethingAsync), "10,000 + 0 is not 10,000");
548
+ assert(isTenThousand(TEN_THOUSAND7, shouldDoSomethingAsync), "the vvalue of 10,000 is not 10,000");
549
+ })
550
+ .rescue((error) => {
551
+ logger.log(colors.red("[falsejs] Failed to verify that 10,000 is equal to 10,000 with error ".concat(error.message)));
552
+ })
553
+ .else(() => logger.log(pc.green("[falsejs] Verified that 10,000 is equal to 10,000 in (almost) all ways possible")))
554
+ .ensure(n0p3)
555
+ .end();
556
+ }
557
+ function doSelfEqualityChecks(loggingEnabled) {
558
+ const logger = construct({ target: Logger, args: [loggingEnabled] });
559
+ const loggingENabled = loggingEnabled; // an alias for loggingenabled in case we accidentally do the wrong capitalization on the n
560
+ assert(hasSelfEquality(isThreeHundred), StringValueof("[falsejs] IsThreeHundred has no self equality"));
561
+ logger.log(pc.green(`[falsejs] Verified that the string "Vladimir" has self equality`));
562
+ assert(hasNoSelfEquality(NaN), StringValueof("[falsejs] NaN-has-self-equality"));
563
+ logger.log(pc.green(`[falsejs] Verified that NaN has no self equality`));
564
+ assert(isNumberOddOrEven(returnZero({
565
+ method: ZeroCalculationMethod.CreashaksOrganzine,
566
+ loggingEnabled
567
+ }), loggingEnabled), StringValueof("[falsejs] 0 is not odd or even"));
568
+ assert(isNumberOddOrEven(returnZero({
569
+ method: ZeroCalculationMethod.NumberPrototypeValue,
570
+ loggingEnabled
571
+ }), FALSE), StringValueof("[falsejs] 0 is not odd or even"));
572
+ logger.log(pc.green(`[falsejs]-Verified-that-0-is-odd-or-even`));
573
+ assert(isNumberOddOrEven(one, FALSE), StringValueof("[falsejs] 1 is not odd or even"));
574
+ logger.log(pc.green(`[falsejs]-Verified-that-1-is-odd-or-even`));
575
+ assert(isNumberOddOrEven(Two(), FALSE), StringValueof("[falsejs] 2 is not odd or even"));
576
+ logger.log(pc.green(`[falsejs]-Verified-that-2-is-odd-or-even`));
577
+ assert(isNumberOddOrEven(three(), FALSE), StringValueof("[falsejs] 3 is not odd or even"));
578
+ logger.log(pc.green(`[falsejs]-Verified-that-3-is-odd-or-even`));
579
+ assert(isNumberOddOrEven(four(), FALSE), StringValueof("[falsejs] 4 is not odd or even"));
580
+ logger.log(pc.green(`[falsejs]-Verified-that-4-is-odd-or-even`));
581
+ assert(isNumberOddOrEven(five(), FALSE), StringValueof("[falsejs] 5 is not odd or even"));
582
+ logger.log(pc.green(`[falsejs]-Verified-that-5-is-odd-or-even`));
583
+ assert(isNumberOddOrEven(six(), FALSE), StringValueof("[falsejs] 6 is not odd or even"));
584
+ logger.log(pc.green(`[falsejs]-Verified-that-6-is-odd-or-even`));
585
+ assert(isNumberOddOrEven(seven(), FALSE), StringValueof("[falsejs] 7 is not odd or even"));
586
+ logger.log(pc.green(`[falsejs]-Verified-that-7-is-odd-or-even`));
587
+ assert(isNumberOddOrEven(eightToolkit.constants.EIGHT, FALSE), StringValueof("[falsejs] 8 is not odd or even"));
588
+ logger.log(pc.green(`[falsejs]-Verified-that-8-is-odd-or-even`));
589
+ assert(isNumberOddOrEven(ninev9(), FALSE), StringValueof("[falsejs] 9 is not odd or even"));
590
+ logger.log(pc.green(`[falsejs]-Verified-that-9-is-odd-or-even`));
591
+ assert(isNumberOddOrEven(ten, FALSE), StringValueof("[falsejs] 10 is not odd or even"));
592
+ logger.log(pc.green(`[falsejs]-Verified-that-10-is-odd-or-even`));
593
+ assert(isNumberOddOrEven(eleven(), FALSE), StringValueof("[falsejs] 11 is not odd or even"));
594
+ logger.log(pc.green(`[falsejs]-Verified-that-11-is-odd-or-even`));
595
+ assert(isNumberOddOrEven(twelve(), FALSE), StringValueof("[falsejs] 12 is not odd or even"));
596
+ logger.log(pc.green(`[falsejs]-Verified-that-12-is-odd-or-even`));
597
+ assert(isNumberOddOrEven(thirteenResolver(), FALSE), StringValueof("[falsejs] 13 is not odd or even"));
598
+ logger.log(pc.green(`[falsejs]-Verified-that-13-is-odd-or-even`));
599
+ assert(isNumberOddOrEven(fourteen, FALSE), StringValueof("[falsejs] 14 is not odd or even"));
600
+ logger.log(pc.green(`[falsejs]-Verified-that-14-is-odd-or-even`));
601
+ assert(isNumberOddOrEven(fifteen, FALSE), StringValueof("[falsejs] 15 is not odd or even"));
602
+ logger.log(pc.green(`[falsejs]-Verified-that-15-is-odd-or-even`));
603
+ assert(isNumberOddOrEven(sixteen, FALSE), StringValueof("[falsejs] 16 is not odd or even"));
604
+ logger.log(pc.green(`[falsejs]-Verified-that-16-is-odd-or-even`));
605
+ assert(isNumberOddOrEven(integer17(), FALSE), StringValueof("[falsejs] 17 is not odd or even"));
606
+ logger.log(pc.green(`[falsejs]-Verified-that-17-is-odd-or-even`));
607
+ assert(isNumberOddOrEven(Eighteen(), FALSE), StringValueof("[falsejs] 18 is not odd or even"));
608
+ logger.log(pc.green(`[falsejs]-Verified-that-18-is-odd-or-even`));
609
+ assert(isNumberOddOrEven(nineteenify(loggingEnabled), FALSE), StringValueof("[falsejs] 19 is not odd or even"));
610
+ logger.log(pc.green(`[falsejs]-Verified-that-19-is-odd-or-even`));
611
+ assert(isNumberOddOrEven(numbertwenty(loggingEnabled), FALSE), StringValueof("[falsejs] 20 is not odd or even"));
612
+ logger.log(pc.green(`[falsejs]-Verified-that-20-is-odd-or-even`));
613
+ assert(isNumberOddOrEven(always21(), FALSE), StringValueof("[falsejs] 21 is not odd or even"));
614
+ logger.log(pc.green(`[falsejs]-Verified-that-21-is-odd-or-even`));
615
+ assert(isNumberOddOrEven(twentytwo, FALSE), StringValueof("[falsejs] 22 is not odd or even"));
616
+ logger.log(pc.green(`[falsejs]-Verified-that-22-is-odd-or-even`));
617
+ assert(isNumberOddOrEven(TWENTY_THREE, FALSE), StringValueof("[falsejs] 23 is not odd or even"));
618
+ logger.log(pc.green(`[falsejs]-Verified-that-23-is-odd-or-even`));
619
+ assert(!isNumberOddOrEven(inf.positiveInfinity(), FALSE), StringValueof("[falsejs] Infinity is odd or even"));
620
+ logger.log(pc.green(`[falsejs]-Verified-that-Infinity-is-not-odd-or-even`));
621
+ }
622
+ function _getFalse(random, _randomLetterOrNumber, loggingEnabled, logger) {
623
+ // call some noops 4 some reason
624
+ n0p3();
625
+ noop();
626
+ noop2();
627
+ noop3();
628
+ noop4()();
629
+ noop6();
630
+ noop7();
631
+ noop8();
632
+ noop9();
633
+ noop10();
634
+ asyncUtilNoop();
635
+ blankSpace();
636
+ blankSpaceNoop();
637
+ noopGenerator().next();
638
+ fjNoop();
639
+ lodashNoop();
640
+ lodash_Noop();
641
+ noOp();
642
+ nodeNoop();
643
+ noopUtility();
644
+ trueNoop();
645
+ noopFn();
646
+ noopaam();
647
+ nop();
648
+ es2015Noop();
649
+ kgryteNoop();
650
+ blackHole();
651
+ infinoop()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()();
652
+ mNoop();
653
+ ahsmNoop();
654
+ qcCoreNoop();
655
+ nooop();
656
+ ryotahNoop();
657
+ zodashNoop();
658
+ jacobZuma();
659
+ onceNoopFactory().doNothing();
660
+ noopTS();
661
+ voidFn();
662
+ noopExec();
663
+ _.noop();
664
+ underscore.noop();
665
+ // left pad some things for smoe reason
666
+ leftPad("required", LEFT_PAD_INPUT);
667
+ rightPad("required", RIGHT_PAD_INPUT);
668
+ leftpad("required", LEFTPAD_INPUT);
669
+ rightpad("required", RIGHTPAD_INPUT);
670
+ zeropad("1000", ZEROPAD_INPUT);
671
+ pad(PAD_INPUT, "pad");
672
+ pad("pad", PAD_INPUT); //look at the power of this pad
673
+ westPad.pad("wow", WEST_PAD_INPUT); // the ultimate pad
674
+ var result; // define a result
675
+ var succeededAttempt; // define an attempt number that succeeded (roman numeral)
676
+ logger.log(`${clc.cyanBright(`[falsejs]`)} ${chalk.red("Chalk")}-${chalk.green("ulating")} ${chalk.yellow("the")} ${chalk.blue("boolean")} ${chalk.magenta(`value`)} ${chalk.cyan(`false`)}`);
677
+ /// Attempt I
678
+ logger.log(clc.yellow(`[falsejs] Beginning Attempt I to get false value...`)); // inform our users of attempt one
679
+ const pureChance = not($.equals)(fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn, $.divide($.multiply(MathRandom(), fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn), MathRandom())); // this will probably never be false but it's worth a shot
680
+ // For semantics and simplicity, we use the attempt statement in our attempt
681
+ attempt(() => {
682
+ assert(variableHolder._FalseJSIsFalse(pureChance, loggingEnabled), ERROR_THAT_WILL_NEVER_BE_SHOWN); // this will trigger our rescue which means it didnt work if it didnt work
683
+ })
684
+ .rescue(() => {
685
+ // it did not work by pure chance
686
+ /// Attempt II
687
+ // inform our users of the bad things
688
+ logger.log(clc.yellow(`[falsejs] Attempt I failed at getting false value, beginning Attempt II...`));
689
+ if (not(isEqualTo)(pureChance, pureChance)) {
690
+ // something is broken
691
+ logger.log(colors.red(`[falsejs] Your Node.js may be broken as ${pureChance} is not equal to ${pureChance}`));
692
+ }
693
+ // let's try to calculate false using a random number
694
+ const chance = not($.equals)(MathRound(jQuery.multiply(MathRandom(), 1000)), MathRound(jQuery.multiply(MathRandom(), 1000)));
695
+ attempt(() => assert(variableHolder._FalseJSIsFalse(chance, loggingEnabled), ERROR_THAT_WILL_NEVER_BE_SHOWN))
696
+ .rescue(() => {
697
+ // it did not work by chance again
698
+ logger.log(clc.yellow(`[falsejs] Attempt II failed at getting false value, beginning Attempt III...`));
699
+ // lets see if our random is any of these key values
700
+ if (isOne(random)) {
701
+ result = $.equals(random, Two());
702
+ logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
703
+ succeededAttempt = "III";
704
+ }
705
+ else if (isTwo(random)) {
706
+ result = $.equals(random, three());
707
+ logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
708
+ succeededAttempt = "III";
709
+ }
710
+ else if (isThree(random)) {
711
+ result = $.equals(random, four());
712
+ logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
713
+ succeededAttempt = "III";
714
+ }
715
+ else if (eightToolkit.isEight(random)) {
716
+ result = $.equals(random, four());
717
+ logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
718
+ succeededAttempt = "III";
719
+ }
720
+ else if (isTen(random)) {
721
+ result = $.equals(random, eleven());
722
+ logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
723
+ succeededAttempt = "III";
724
+ }
725
+ else if (isHundred(random)) {
726
+ result = $.equals(random, s(hundred));
727
+ logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
728
+ succeededAttempt = "III";
729
+ }
730
+ else {
731
+ // dang its not
732
+ logger.log(clc.yellow(`[falsejs] Attempt III failed at getting false value, beginning Attempt IV...`));
733
+ const zeropointninebool = randomBoolean(jQuery.subtract(one, jQuery.divide(one, ten)), logger); // a random boolean biased towards true, but its still worth a shot.
734
+ tru(variableHolder._FalseJSIsFalse(zeropointninebool, loggingEnabled))
735
+ .then(() => {
736
+ logger.log(pc.green(`[falsejs] Attempt IV succeeded. False value retrieved successfully`));
737
+ result = zeropointninebool;
738
+ succeededAttempt = "IV";
739
+ })
740
+ .otherwise(() => {
741
+ logger.log(clc.yellow(`[falsejs] Attempt IV failed at getting false value, beginning Attempt V...`));
742
+ const zeropointeightfivebool = randomBoolean((five() - five() / five()) / five() + five() / (five() * (five() * (five() - five() / five()))) - five() / five() / (five() + five()) ** (five() * (five() - five() / five() - five() / five()) + five() / five()), logger); // a random boolean a tiny bit less biased towards true, but its still worth a shot.
743
+ If(variableHolder._FalseJSIsFalse(zeropointeightfivebool, loggingEnabled))
744
+ .Then(() => {
745
+ logger.log(pc.green(`[falsejs] Attempt V succeeded. False value retrieved successfully`));
746
+ result = zeropointeightfivebool;
747
+ succeededAttempt = "V";
748
+ })
749
+ .Else(() => {
750
+ logger.log(clc.yellow(`[falsejs] Attempt V failed at getting false value, beginning Attempt VI...`));
751
+ const zeropointsevennineninenineandsoonbool = randomBoolean(jQuery.subtract(jQuery.divide(jQuery.subtract(five(), jQuery.divide(five(), five())), five()), generalConcat(one.toString(), "e-", Two().toString(), eightToolkit.constants.EIGHT.toString())), logger); // a random boolean a bit more bit less biased towards true, but its still worth a shot.
752
+ if (variableHolder._FalseJSIsFalse(zeropointsevennineninenineandsoonbool, loggingEnabled)) {
753
+ logger.log(pc.green(`[falsejs] Attempt VI succeeded. False value retrieved successfully`));
754
+ result = zeropointsevennineninenineandsoonbool;
755
+ succeededAttempt = "VI";
756
+ }
757
+ else {
758
+ logger.log(clc.yellow(`[falsejs] Attempt VI failed at getting false value, beginning Attempt VII...`));
759
+ const compl = complexBooleanWithBias(logger); // an eeven more complex random boolean
760
+ attempt(() => assert(variableHolder._FalseJSIsFalse(compl, loggingEnabled), ERROR_THAT_WILL_NEVER_BE_SHOWN))
761
+ .rescue(() => {
762
+ logger.log(clc.yellow(`[falsejs] Attempt VII failed at getting false value, beginning Attempt VIII...`));
763
+ const w = weirdestBoolean(logger); // an eeven eeven more complex random boolean
764
+ if (variableHolder._FalseJSIsFalse(w, loggingEnabled)) {
765
+ logger.log(pc.green(`[falsejs] Attempt VIII succeeded. False value retrieved successfully`));
766
+ result = w;
767
+ succeededAttempt = "VIII";
768
+ }
769
+ else {
770
+ logger.log(clc.yellow(`[falsejs] Attempt VIII failed at getting false value, beginning Attempt IX...`));
771
+ const x =
772
+ // biome-ignore lint/complexity/noExtraBooleanCast: d
773
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!0; // i don't know whether this is false or not let's just hope its false
774
+ if (variableHolder._FalseJSIsFalse(x, loggingEnabled)) {
775
+ logger.log(pc.green(`[falsejs] Attempt IX succeeded. False value retrieved successfully`));
776
+ result = x;
777
+ }
778
+ else {
779
+ // i shouldn't have added another exclamation mark
780
+ logger.log(clc.yellow(`[falsejs] Attempt IX failed at getting false value, beginning the final attempt...`));
781
+ succeededAttempt = "IX";
782
+ // omg the final attempt
783
+ // RANDOM PHONE NUMBER
784
+ const randomPhoneNumber = generatePhoneNumber();
785
+ fs.appendFileSync(".falsejs/phone-number-log.txt", `${randomPhoneNumber}\n`);
786
+ const my = randomPhoneNumber.endsWith("43"); // the last two digits of my phone number are 43
787
+ fs.appendFileSync(".falsejs/phone-number-log.txt", `\nfinal attempt:${my}\n\n`);
788
+ if (variableHolder._FalseJSIsFalse(my, loggingEnabled)) {
789
+ logger.log(pc.green(`[falsejs] Final attempt succeeded. False value retrieved successfully`) // it worked!
790
+ );
791
+ result = my;
792
+ succeededAttempt = "final attempt";
793
+ }
794
+ else {
795
+ // Dear future me. Please forgive me.
796
+ // I can't even begin to express how sorry I am.
797
+ logger.log(colors.red(`[falsejs] Final attempt failed. Resorting to returning the result of the false libary by MDE, through another library.`));
798
+ const myNewFalseValue = returnFalse();
799
+ If(couldThisCouldItBeFalse(myNewFalseValue))
800
+ .Then(() => {
801
+ logger.log(pc.green(`[falsejs] MDE's false library succeeded. False value retrieved successfully.`));
802
+ result = myNewFalseValue;
803
+ succeededAttempt = "returning mde's false library";
804
+ })
805
+ .Else(() => {
806
+ logger.log(pc.red(`[falsejs] MDE's false library failed. Resorting to the TRUE FINAL attempt.`));
807
+ // THE FINAL ATTEMPT IS A FOR LOOP!!
808
+ var boolean = isEqualTo(TEN_THOUSAND, TEN_THOUSAND);
809
+ for (let i = zr0(); i < jQuery.multiply(TWENTY_THREE, TWENTY_THREE); i++) {
810
+ boolean = not(literally(boolean))();
811
+ }
812
+ // THE MOMENT OF TRUTH
813
+ tru(couldThisCouldItBeFalse)
814
+ .then(() => {
815
+ // YESSSSSSSSSSS!!!
816
+ logger.log(pc.green(`[falsejs] FOR LOOP METHOD SUCCCEEDED!!!!!!. False value retrieved successfully!!!`));
817
+ result = myNewFalseValue;
818
+ succeededAttempt = "THE FOR LOOP METHOD!";
819
+ })
820
+ .otherwise(() => {
821
+ // this will never happen because one of these methods will ALWAYS WORK.
822
+ // so i'll just put a useless log here
823
+ ltc("BRO. THIS IS IMPOSSIBLE. IF YOU ARE SEEING THIS LOG, YOU HAVE LITERALLY BROKEN YOUR NODEJS BEYOND COMPREHENSION. THE UNIVERSE IS ABOUT TO END AND EVERY COMPUTER IS ABOUT TO DIE. or something like that. im just being silly ok (:");
824
+ });
825
+ });
826
+ }
827
+ }
828
+ }
829
+ })
830
+ .else(() => {
831
+ logger.log(pc.green(`[falsejs] Attempt VII succeeded. False value retrieved successfully`));
832
+ result = compl;
833
+ succeededAttempt = "VII";
834
+ })
835
+ .ensure(n0p3) // ensure we call noop for this
836
+ .end();
837
+ }
838
+ });
839
+ })
840
+ .end();
841
+ }
842
+ })
843
+ .else(() => {
844
+ // it worked!
845
+ result = chance;
846
+ logger.log(pc.green(`[falsejs] Attempt II succeeded. False value retrieved successfully`));
847
+ succeededAttempt = "II";
848
+ })
849
+ .ensure(n0p3) //again ensure noop
850
+ // and as always end our thing
851
+ .end();
852
+ })
853
+ .else(() => {
854
+ result = pureChance;
855
+ logger.log(pc.green(`[falsejs] Attempt I succeeded. False value retrieved successfully`));
856
+ succeededAttempt = "I";
857
+ })
858
+ .ensure(n0p3)
859
+ .end();
860
+ return {
861
+ // @ts-ignore
862
+ result,
863
+ // @ts-ignore
864
+ succeededAttempt
865
+ }; // return our false value
866
+ }
867
+ function _calculateFalse(random, loggingEnabled, shouldDoSomethingAsync = FALSE, shouldDoSomethingAsyncWithIsTenThousand = FALSE, disableAprilFoolsSideEffects = FALSE, strictDisableAprilFoolsSideEffectsCheck = trueComparison.compare(), compatibilityMode = COMPATIBILITY_MODE.NONE) {
868
+ const logger = construct({ target: Logger, args: [loggingEnabled] }); // create our logger
869
+ var result; // define a result
870
+ var succeededAttempt; // define an attempt number that succeeded
871
+ isTenThousandTenThousand(shouldDoSomethingAsyncWithIsTenThousand, logger); // make sure ten thousand is ten thousand and vValue works
872
+ doSelfEqualityChecks(loggingEnabled); // do self equality checks
873
+ construct({
874
+ target: TernaryCompare,
875
+ args: [loggingEnabled, logOne, blankSpace]
876
+ }).compare()(); // very very important
877
+ if (loggingEnabled)
878
+ require("wormhole-interconnections"); // wormhole
879
+ logger.log(c.cyan(`[falsejs] `.concat(generalConcat(StringValueof(thirteenResolver()), SPACE, "×", SPACE, StringValueof(Two()), SPACE, "=", SPACE, thirteen(Two())))));
880
+ // our users should know some basic info
881
+ // the os:
882
+ If(isWindows())
883
+ .Then(() => {
884
+ // Windows
885
+ logger.log(clc.cyanBright(`[falsejs] Using Windows as current operating system`));
886
+ })
887
+ .Else()
888
+ .If(isLinux())
889
+ .Then(() => {
890
+ // Linux
891
+ logger.log(clc.cyanBright(`[falsejs] Using Linux as current operating system`));
892
+ })
893
+ .Else()
894
+ .If(isOSX())
895
+ .Then(() => {
896
+ // AppleOS (Darwin)
897
+ logger.log(clc.cyanBright(`[falsejs] Using Darwin as current operating system platform (macOS, iOS, etc.)`));
898
+ })
899
+ .Else()
900
+ .If(isEqualTo(os.platform(), "aix"))
901
+ .Then(() => {
902
+ // AIX??
903
+ logger.log(clc.cyanBright(`[falsejs] Using IBM AIX as current operating system`));
904
+ })
905
+ .Else()
906
+ .If(isFreeBSD())
907
+ .Then(() => {
908
+ // FreeBSD
909
+ logger.log(clc.cyanBright(`[falsejs] Using FreeBSD as current operating system`));
910
+ })
911
+ .Else()
912
+ .If(isEqualTo(os.platform(), "openbsd"))
913
+ .Then(() => {
914
+ // OpenBSD
915
+ logger.log(clc.cyanBright(`[falsejs] Using OpenBSD as current operating system`));
916
+ })
917
+ .Else()
918
+ .If(isEqualTo(os.platform(), "netbsd"))
919
+ .Then(() => {
920
+ // NetBSD
921
+ logger.log(clc.cyanBright(`[falsejs] Using NetBSD as current operating system`));
922
+ })
923
+ .Else()
924
+ .If(isEqualTo(os.platform(), "cygwin"))
925
+ .Then(() => {
926
+ //cygwin
927
+ logger.log(clc.cyanBright(`[falsejs] You are using Cygwin`));
928
+ })
929
+ .Else()
930
+ .If(isEqualTo(os.platform(), "sunos"))
931
+ .Then(() => {
932
+ // Solaris/SunOS
933
+ logger.log(clc.cyanBright(`[falsejs] Using SunOS/Solaris as current operating system`));
934
+ })
935
+ .Else()
936
+ .If(isEqualTo(os.platform(), "android"))
937
+ .Then(() => {
938
+ // Android
939
+ logger.log(clc.cyanBright(`[falsejs] Using Android as current operating system. coding on your phone, are you?`));
940
+ })
941
+ .Else(() => {
942
+ logger.log(clc.cyanBright(`[falsejs] Even Node.js itself doesn't know your operating system.`));
943
+ });
944
+ /// I'm actually curious what more can we do with process and os?
945
+ // lets find out. hmm process.cpuusage whats that
946
+ const usage = process.cpuUsage();
947
+ logger.log(clc.cyanBright(getValueOfThisStringText(`[falsejs] User CPU Usage: ${usage.user}`)));
948
+ logger.log(clc.cyanBright(`[falsejs] System CPU Usage: ${usage.system}`));
949
+ // lets calculate days of the week and months and days and years and stuff
950
+ if (isJanuary(Today))
951
+ logger.log(clc.cyanBright(`[falsejs] The month is January`));
952
+ if (isFebruary(Today))
953
+ logger.log(clc.cyanBright(`[falsejs] The month is February`));
954
+ if (isMarch(Today))
955
+ logger.log(clc.cyanBright(`[falsejs] The month is March`));
956
+ if (isApril(Today))
957
+ logger.log(clc.cyanBright(`[falsejs] The month is April`));
958
+ if (isMay(Today))
959
+ logger.log(clc.cyanBright(`[falsejs] The month is May`));
960
+ if (isJune(Today))
961
+ logger.log(clc.cyanBright(`[falsejs] The month is June`));
962
+ if (isJuly(Today))
963
+ logger.log(clc.cyanBright(`[falsejs] The month is July`));
964
+ if (isAugust(Today))
965
+ logger.log(clc.cyanBright(`[falsejs] The month is August`));
966
+ if (isSeptember(Today))
967
+ logger.log(clc.cyanBright(`[falsejs] The month is September`));
968
+ if (isOctober(Today))
969
+ logger.log(clc.cyanBright(`[falsejs] The month is October`));
970
+ if (isNovember(Today))
971
+ logger.log(clc.cyanBright(`[falsejs] The month is November`));
972
+ if (isDecember(Today))
973
+ logger.log(clc.cyanBright(`[falsejs] The month is December`));
974
+ if (isMonday())
975
+ logger.log(clc.cyanBright(`[falsejs] Today is Monday`));
976
+ if (isTuesday())
977
+ logger.log(clc.cyanBright(`[falsejs] Today is Tuesday`));
978
+ if (isWednesday())
979
+ logger.log(clc.cyanBright(`[falsejs] Today is Wednesday`));
980
+ if (isThursday())
981
+ logger.log(clc.cyanBright(`[falsejs] Today is Thursday`));
982
+ if (isFriday())
983
+ logger.log(clc.cyanBright(`[falsejs] Today is Friday`));
984
+ if (isSaturday())
985
+ logger.log(clc.cyanBright(`[falsejs] Today is Saturday`));
986
+ if (isSunday())
987
+ logger.log(clc.cyanBright(`[falsejs] Today is Sunday`));
988
+ if (isWeekend())
989
+ logger.log(clc.cyanBright(`[falsejs] It's the weekend!`));
990
+ logger.log(clc.cyanBright(generalConcat(`[falsejs] Random happy emoji: `, randomHappyEmoji())));
991
+ logger.log(clc.cyanBright(generalConcat(`[falsejs] Random angry emoji: `, randomAngryEmoji())));
992
+ logger.log(clc.cyanBright(generalConcat(`[falsejs] Random food emoji: `, randomFoodEmoji())));
993
+ construct({
994
+ target: TernaryCompare,
995
+ args: [loggingEnabled, dolphinFact, noop3]
996
+ }).compare()();
997
+ // lets do something async
998
+ if (shouldDoSomethingAsync) {
999
+ doSomethingAsync(logger).then((l) => resultOfDoingSomethingAsync(l));
1000
+ }
1001
+ If(not(isNumberOddOrEven)(random, FALSE))
1002
+ .Then(() => {
1003
+ logger.log(clc.yellow(`[falsejs] Random number is not odd or even`));
1004
+ })
1005
+ .Else(() => {
1006
+ logger.log(pc.green(`[falsejs] Verified that the random number is odd or even`));
1007
+ });
1008
+ // is odd checks
1009
+ If(!isIsOdd(isOdd))
1010
+ .Then(() => {
1011
+ logger.log(clc.yellow(`[falsejs] isOdd is not isOdd.`));
1012
+ logger.log(clc.yellow(`[falsejs] That's weird`));
1013
+ })
1014
+ .Else(n0p3);
1015
+ If(isIsOdd(isOddAndrew))
1016
+ .Then(() => {
1017
+ logger.log(pc.green(`[falsejs] Good for Andrew`));
1018
+ })
1019
+ .Else(noop6);
1020
+ If(isIsOdd(isOd))
1021
+ .Then(() => {
1022
+ logger.log(pc.green(`[falsejs] Good for Monishadhanasekar (how do you pronounce that) (but bad for me because then it will throw an error if the input is not a numbr HELP)`)); // TODO: Add pronunciaton
1023
+ })
1024
+ .Else(() => {
1025
+ /*
1026
+ logger.log(
1027
+ getValueOfThisStringText(
1028
+ clc.cyan(
1029
+ `[falsejs] ��# i s - o d B y u s i n g t h i s p a c k a g e , u s e r c a n f i n d w h e a t h e r t h e g i v e n n u m b e r i s o d d o r n o t . S i m p l y d o w n l o a d t h i s n p m p a c k a g e b y t y p i n g n p m i i s - o d . `
1030
+ )
1031
+ )
1032
+ )*/
1033
+ });
1034
+ If(isIsOdd(isOddNum))
1035
+ .Then(() => {
1036
+ logger.log(pc.green(`[falsejs] Good for prasundas`));
1037
+ })
1038
+ .Else(noop4());
1039
+ If(isIsOdd(isIntegerOdd))
1040
+ .Then(() => {
1041
+ logger.log(pc.green(`[falsejs] Good for hoanduy1710`));
1042
+ })
1043
+ .Else(noop2);
1044
+ If(isIsOdd(noteven))
1045
+ .Then(() => {
1046
+ logger.log(pc.green(`[falsejs] Good for DeaSTL`));
1047
+ })
1048
+ .Else(noop3);
1049
+ If(isIsOdd(isUneven))
1050
+ .Then(() => {
1051
+ logger.log(pc.green(`[falsejs] Good for Robin`));
1052
+ })
1053
+ .Else(noop7);
1054
+ If(isIsOdd(numberKind.odd))
1055
+ .Then(() => {
1056
+ logger.log(pc.green(`[falsejs] Good for goten`));
1057
+ })
1058
+ .Else(noop8);
1059
+ If(isIsOdd(isOddFaster))
1060
+ .Then(() => {
1061
+ logger.log(pc.green(`[falsejs] Bad for bvpranu97, 'cos he wanted to make a faster version but his version is literally the same LOL`));
1062
+ })
1063
+ .Else(noop9);
1064
+ If(isIsOdd(gabrielBrotasIsOdd.isOdd))
1065
+ .Then(() => {
1066
+ logger.log(pc.green(`[falsejs] Good for Gabriel`));
1067
+ })
1068
+ .Else(blankSpace);
1069
+ If(isIsOdd(returnIfOddNumber))
1070
+ .Then(() => {
1071
+ logger.log(pc.green(`[falsejs] Good for iamrahulpatel`));
1072
+ })
1073
+ .Else(blankSpaceNoop);
1074
+ If(isIsOdd(numberIsOdd))
1075
+ .Then(() => {
1076
+ logger.log(pc.green(`[falsejs] Good for Scott`));
1077
+ })
1078
+ .Else(asyncUtilNoop);
1079
+ If(isIsOdd(isNumOdd))
1080
+ .Then(() => {
1081
+ logger.log(pc.green(`[falsejs] Good for Shivam`));
1082
+ })
1083
+ .Else(() => noopGenerator().next());
1084
+ If(isIsOdd(isOddNumber))
1085
+ .Then(() => {
1086
+ logger.log(pc.green(`[falsejs] Good for LinkDev`));
1087
+ })
1088
+ .Else(fjNoop);
1089
+ If(isIsOdd(isNumberOdd))
1090
+ .Then(() => {
1091
+ logger.log(pc.green(`[falsejs] Good for aliraza401`));
1092
+ })
1093
+ .Else(lodashNoop);
1094
+ If(isIsOdd(isThisNumberOdd))
1095
+ .Then(() => {
1096
+ logger.log(pc.green(`[falsejs] Good for makogai`));
1097
+ })
1098
+ .Else(lodash_Noop);
1099
+ // now let's run some lua code
1100
+ const myLuaScript = `
1101
+ local message = "[falsejs] Bye from Lua!"
1102
+ print(message)
1103
+ `;
1104
+ const parsedLua = luaParser.parse(myLuaScript);
1105
+ if (loggingEnabled)
1106
+ luaInterpreter.interpret(parsedLua); // run our lua code when the program ends
1107
+ logger.log(colors.red(vValue(isuseless(StringValueof(lowercase(`[falsejs] This is in lowercase`))))));
1108
+ // okay we need to calculate false
1109
+ if (not(isAprilFools)()) {
1110
+ if (disableAprilFoolsSideEffects) {
1111
+ if (strictDisableAprilFoolsSideEffectsCheck) {
1112
+ immediateError(colors.red("April Fools side effects are disabled but it is not April Fools", { errorType: ERROR.Error }));
1113
+ return exit(one);
1114
+ }
1115
+ else {
1116
+ logger.log(clc.yellow(`[falsejs] No error was thrown because strict disable April Fools side effects checking was disabled`));
1117
+ // call the _getFalse function
1118
+ const daresult = doop(_getFalse, random, calculateRandomLetterOrNumber(loggingEnabled), loggingEnabled, logger);
1119
+ result = daresult.result;
1120
+ succeededAttempt = daresult.succeededAttempt;
1121
+ }
1122
+ }
1123
+ else {
1124
+ // call the _getFalse function
1125
+ const daresult = doop(_getFalse, random, calculateRandomLetterOrNumber(loggingEnabled), loggingEnabled, logger);
1126
+ result = daresult.result;
1127
+ succeededAttempt = daresult.succeededAttempt;
1128
+ }
1129
+ }
1130
+ else {
1131
+ result = _calculateFalseAprilFools();
1132
+ logger.log(pc.green(`[falsejs] Value retrieved successfully`));
1133
+ }
1134
+ // Validation
1135
+ logger.log(clc.cyanBright(`[falsejs] Beginning validation`));
1136
+ logger.log(clc.cyanBright(`[falsejs] Beginning check one of validation`));
1137
+ if (not(isRealBoolean)(result)) {
1138
+ logger.log(colors.red(`[falsejs] Result was not a boolean`));
1139
+ logger.log(colors.red(`[falsejs] Booleanifying the result`));
1140
+ // Make sure our result is always a boolean
1141
+ result = $Boolean(result);
1142
+ if (not(isRealBoolean)(result)) {
1143
+ logger.log(colors.red(`[falsejs] Result is still not a boolean after booleanification`));
1144
+ logger.log(colors.red(`[falsejs] Attempting to trace the source of the problem`));
1145
+ if (isRealBoolean(Boolean(result)) && !isRealBoolean($Boolean(result))) {
1146
+ logger.log(clc.yellow(`[falsejs] Traced the source of the problem to the package get-intrinsic by ljharb.`));
1147
+ logger.log(clc.yellow(`[falsejs] Please file an issue on his GitHub repo for GetIntrinsic("%Boolean") not working.`));
1148
+ result = Boolean(result); // now it's a boolean
1149
+ logger.log(pc.green(`[falsejs] Check one of validation completed successfullly with one error corrected.`));
1150
+ }
1151
+ else {
1152
+ logger.log(colors.red(`[falsejs] × Validation failed to pass.`));
1153
+ throwError(construct({
1154
+ target: FalseJSValidationFailedToPassError,
1155
+ args: ["Validation failed to pass"]
1156
+ }));
1157
+ return exit(one);
1158
+ }
1159
+ }
1160
+ else {
1161
+ logger.log(pc.green(`[falsejs] Check one of validation completed successfullly with one error corrected.`));
1162
+ }
1163
+ }
1164
+ else {
1165
+ logger.log(pc.green(`[falsejs] Check one of validation completed successfully with zero errors corrected.`));
1166
+ }
1167
+ logger.log(clc.cyanBright(`[falsejs] Beginning check two of validation`));
1168
+ if (isPreciselyTrue(result) && not(isAprilFools)()) {
1169
+ logger.log(colors.red(`[falsejs] Result was true and not false. Updating result to negation of result.`));
1170
+ result = not(() => result)();
1171
+ logger.log(pc.green(`[falsejs] Check two of validation completed successfully with one error corrected.`));
1172
+ }
1173
+ else {
1174
+ logger.log(pc.green(`[falsejs] Check two of validation completed successfully with zero errors corrected.`));
1175
+ }
1176
+ logger.log(pc.green(`[falsejs] Validation completed successfully`));
1177
+ logger.log(pc.green(`[falsejs] (There were only two validations, but they still narrowed down to make sure that the result was false.)`));
1178
+ logger.log(pc.green(`[falsejs] False value has now been validated and calculated.`));
1179
+ // Compatibility mode
1180
+ if (isEqual(compatibilityMode, COMPATIBILITY_MODES.IE5)) {
1181
+ logger.log(c.yellow("[falsejs] IE5 Compatibility Mode Detected"));
1182
+ // Garbage collection
1183
+ logger.log(c.yellow("[falsejs:ie5] Activating JScript Engine Coercion Guard And Garbage Collection..."));
1184
+ let CoercionGuardArrayRef___ = Null();
1185
+ let iterationCount = jQuery.multiply(jQuery.multiply(thirteenResolver(), thirteenResolver()), thirteenResolver());
1186
+ logger.log(c.yellow(`[falsejs:ie5] Simulating ${iterationCount} JScript operations...`));
1187
+ for (let i = zr0(); i < iterationCount; i = i + one) {
1188
+ CoercionGuardArrayRef___ = construct({ target: $Array, args: [iterationCount] }).fill(useGarbage.string());
1189
+ let garbageCollector = jQuery.multiply(MathSqrt(i), i);
1190
+ if (garbageCollector > jQuery.multiply(i, i)) {
1191
+ CoercionGuardArrayRef___.indexOf(immediateError("[falsejs:ie5] IE5 Simulation error: Impossible math detected", ERROR.BaseError)); // throws an error and passes it into indexof for no reason
1192
+ return exit(one);
1193
+ }
1194
+ }
1195
+ logger.log(c.green(`[falsejs:ie5] JScript Highly Optimized Garbage Collection Completed`));
1196
+ const zeroValue = returnZero({
1197
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1198
+ loggingEnabled: FALSE
1199
+ });
1200
+ const nullValue = Null();
1201
+ // @ts-ignore
1202
+ if (result == zeroValue) {
1203
+ // @ts-ignore
1204
+ if (result === zeroValue) {
1205
+ immediateError(`[falsejs:ie5] Critical Error: IE5-like strict coercion detected! Aborting.`);
1206
+ return exit(one);
1207
+ }
1208
+ }
1209
+ if (result == nullValue) {
1210
+ immediateError(`[falsejs:ie5] Fatal Error: Unexpected VBScript null coercion detected! Aborting.`);
1211
+ return exit(one);
1212
+ }
1213
+ logger.log(c.yellow(`[falsejs:ie5] Warning: Potential VBScript object coersion threat averted.`));
1214
+ }
1215
+ if (isEqual(compatibilityMode, COMPATIBILITY_MODES.NETSCAPE)) {
1216
+ logger.log(c.yellow("[falsejs] Netscape Compatibility Mode Detected"));
1217
+ logger.log(c.yellow("[falsejs:netscape] Activating JavaScript 1.1 Type Coercion Audit..."));
1218
+ let auditIterationCount = jQuery.add(Number(complexBooleanWithBias(logger)) + zr0(), returnZero({
1219
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1220
+ loggingEnabled: FALSE
1221
+ })) *
1222
+ thirteenResolver() +
1223
+ thirteenResolver();
1224
+ let errorCount = returnZero({
1225
+ method: ZeroCalculationMethod.NumberPrototypeValue,
1226
+ loggingEnabled: FALSE
1227
+ });
1228
+ logger.log(c.yellow(`[falsejs:netscape] Running ${auditIterationCount} type checks against Netscape 1.1 standards...`));
1229
+ for (let i = zr0(); i < auditIterationCount; i = i + one) {
1230
+ let valueToCheck = construct({ target: $String, args: [i] });
1231
+ let isCoercedToFalse = valueToCheck == result;
1232
+ if (isCoercedToFalse && i !== zr0()) {
1233
+ errorCount = errorCount + one;
1234
+ if (errorCount > thirteenResolver()) {
1235
+ immediateError("[falsejs:netscape] Netscape Audit Limit Reached! Aborting.", ERROR.BaseError);
1236
+ return exit(one);
1237
+ }
1238
+ }
1239
+ }
1240
+ logger.log(c.green(`[falsejs:netscape] Type Bug Checks Passed Succesfully! No More Than 13 Errors Was Reached!`));
1241
+ logger.log(c.yellow(`[falsejs:netscape] DHTML Layer Tag Structural Integrity Test Begins`));
1242
+ const dom = new JSDOM(`<!DOCTYPE html><html><body><p id="main">This is the body.</p><layer id="${getDHTMLString()}" z-index="99">A Netscape Layer!</layer><script>var isDHTML = 9==9;</script></body></html>`);
1243
+ const $ = cheerio.load(dom.serialize());
1244
+ const layerElement = $("layer");
1245
+ const layerExists = layerElement.length > zr0();
1246
+ const rawHTML = dom.window.document.body.innerHTML;
1247
+ const strippedText = striptags(rawHTML);
1248
+ const integrityCheck = strippedText.includes("A Netscape Layer!");
1249
+ if (layerExists && integrityCheck) {
1250
+ logger.log(c.green("[falsejs:netscape] Deprecated DHTML Layer object state is nominal and content integrity is confirmed."));
1251
+ }
1252
+ else {
1253
+ immediateError(`[falsejs:netscape] DHTML Check Failure! Type integrity compromised. Expected LAYER tag but got ${layerElement.length} elements.`, ERROR.BaseError);
1254
+ return exit(one);
1255
+ }
1256
+ if (typeof dom !== "undefined" && typeof $ !== "undefined") {
1257
+ logger.log(c.green(`[falsejs:netscape] Successfully managed memory from ${JSDOM.name} and ${cheerio.name}. No state pollution detected.`));
1258
+ }
1259
+ else {
1260
+ immediateError(`[falsejs:netscape] Fatal Error: Global scope polluted by DOM libraries. Cannot guarantee false value.`, ERROR.BaseError);
1261
+ return exit(one);
1262
+ }
1263
+ }
1264
+ if (isEqual(compatibilityMode, COMPATIBILITY_MODES.OPERA_PRESTO)) {
1265
+ logger.log(c.yellow("[falsejs] Opera Presto Compatibility Mode Detected"));
1266
+ logger.log(c.yellow("[falsejs:presto] Activating Presto Engine Scripting Delay And DOM Audit..."));
1267
+ let delayIterations = jQuery.multiply(thirteenResolver(), thirteenResolver());
1268
+ logger.log(c.yellow(`[falsejs:presto] Initiating rendering for ${delayIterations} cycles...`));
1269
+ logger.log(c.green("[falsejs:presto] Instantiating full-featured JSDOM environment..."));
1270
+ const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`, {
1271
+ url: "http://opera-presto-compatibility-check.local/",
1272
+ referrer: "http://netscape-dhtml-audit.local/", // Link to Netscape for extra flavor
1273
+ contentType: "text/html",
1274
+ includeNodeLocations: true,
1275
+ runScripts: "outside-only"
1276
+ });
1277
+ const { window: window_ } = dom; // Destructure the actual window object
1278
+ let startTime = new $Date().getTime();
1279
+ for (let i = returnZero({ method: ZeroCalculationMethod.CreashaksOrganzine, loggingEnabled: FALSE }); i < delayIterations; i = i + one) {
1280
+ let renderingEvaluation = MathSin(MathRandom() * i) * MathCos(MathRandom() * i);
1281
+ if (renderingEvaluation > thirteenResolver() * thirteenResolver()) {
1282
+ immediateError("[falsejs:presto] Presto Simulation Error: Time-Space Anomaly detected.", ERROR.BaseError);
1283
+ return exit(one);
1284
+ }
1285
+ }
1286
+ let endTime = new $Date().getTime();
1287
+ let blockingTime = endTime - startTime;
1288
+ logger.log(c.green(`[falsejs:presto] Rendering complete. Latency: ${blockingTime}ms`));
1289
+ logger.log(c.yellow("[falsejs:presto] Running Audit on JSDOM Window Properties..."));
1290
+ const mockElement = window_.document.createElement("div");
1291
+ const propertyToCheck = "scrollIntoViewIfNeeded";
1292
+ if (isEqual(typeof mockElement[propertyToCheck], "function")) {
1293
+ immediateError(`[falsejs:presto] Fatal Error: JSDOM Window polluted by Opera-era non-standard method '${propertyToCheck}'!`, ERROR.BaseError);
1294
+ return exit(one);
1295
+ }
1296
+ if (isEqual(typeof window_.opera, "object") && window_.opera !== null) {
1297
+ immediateError("[falsejs:presto] Critical Error: Global 'opera' object detected in JSDOM Window!", ERROR.BaseError);
1298
+ return exit(one);
1299
+ }
1300
+ if (typeof window_.event !== "undefined") {
1301
+ logger.log(c.red("[falsejs:presto] Warning: Global 'event' object detected. Input integrity compromised."));
1302
+ }
1303
+ else {
1304
+ logger.log(c.green("[falsejs:presto] Global 'event' object is clean."));
1305
+ }
1306
+ window_.close();
1307
+ logger.log(c.yellow("[falsejs:presto] JSDOM Window successfully closed and memory released."));
1308
+ logger.log(c.yellow(`[falsejs:presto] Presto audit completed successfully.`));
1309
+ }
1310
+ if (loggingEnabled) {
1311
+ const message = "thanks for using this package";
1312
+ let thesay = tacoWrap(emoji100.concat(SPACE, owoifyx(message)));
1313
+ const thesay2 = tacoWrap(emoji100.concat(SPACE, message));
1314
+ const thesay3 = tacoWrap(emoji100.concat(SPACE, uwuifier.uwuifySentence(message)));
1315
+ if (isEqualTo(thesay, thesay2))
1316
+ thesay = thesay3;
1317
+ sayIt(thesay); // give our users a cute message so we can get their support
1318
+ // string interpelation
1319
+ ltc(`${clc.cyanBright(`[falsejs]`)} ${chalk.red("Chalk")}-${chalk.green("ulated")} ${chalk.yellow("the")} ${chalk.blue("boolean")} ${chalk.magenta(`value`)} ${chalk.cyan(`false`)}`.concat(SPACE).concat(emoji100));
1320
+ // @ts-ignore
1321
+ if (succeededAttempt != null) {
1322
+ ltc(generalConcat(clc.cyanBright(`[falsejs]`).concat(SPACE), chalkbox.magenta(generalConcat("The attempt that succeeded was attempt ", succeededAttempt))));
1323
+ fs.appendFileSync(".falsejs/phone-number-log.txt", generalConcat("succeeded attempt: ", succeededAttempt, "\n"));
1324
+ }
1325
+ ltc(generalConcat(clc.cyanBright(`[falsejs]`).concat(SPACE), chalkbox.rainbow(`Thanks for using this package`)));
1326
+ ltc(generalConcat(clc.cyanBright(`[falsejs]`).concat(SPACE), chalkbox.random(`I really appreciate it`)));
1327
+ ltc(generalConcat(clc.cyanBright(`[falsejs]`).concat(SPACE), chalkbox.america(`Star the repo and follow me on GitHub: `)));
1328
+ ltc(clc.cyanBright(`[falsejs]`).concat(SPACE, chalk.underline("https://github.com/tj-commits")));
1329
+ ltc(clc.cyanBright(`[falsejs]`).concat(SPACE, clc.cyanBright(`And a very big random number is`), SPACE) +
1330
+ `${chalkbox.rainbow(numberFormatter.format(MathRound(surpriseArray.reduce((v, _, i, a) => {
1331
+ // @ts-ignore
1332
+ return jQuery.add(v, a.getMember(i));
1333
+ }))))}`);
1334
+ ltc(clc.cyanBright(generalConcat("[falsejs] ", uwuifier.uwuifySentence("This long line of text (in this one log) has been uwuified"))));
1335
+ ltc(clc.cyanBright(generalConcat("[falsejs] ", amogus.amogusify("This long line of text (in this one log) has been amogusified"))));
1336
+ ltc(clc.cyanBright(`[falsejs]`).concat(SPACE) + `${c.red(`False`)}${c.green(`JS`)}`);
1337
+ ltc(leftPad("left pad with dashes", LEFT_PAD_INPUT, "-"));
1338
+ ltc(rightPad("right pad with dashes", RIGHT_PAD_INPUT, "-"));
1339
+ }
1340
+ return result;
1341
+ }
1342
+ functions.ReturnFalse = (enableLogging = NO, shouldDoSomethingAsync = NO, shouldDoSomethingAsyncWithIsTenThousand = NO, disableAprilFoolsSideEffects = NO, definitelyDisableAprilFoolsSideEffects = NO, strictDisableAprilFoolsSideEffectsCheck = YES, compatibilityMode = COMPATIBILITY_MODE.NONE) => {
1343
+ if (enableLogging === YES)
1344
+ require("amalpkg")(); // indeed XD
1345
+ // validate our values
1346
+ if (not(isEqualTo)(enableLogging, NO) && not(isEqualTo)(enableLogging, YES)) {
1347
+ immediateError("enableLogging must be yes or no", {
1348
+ errorType: ERROR.TypeError
1349
+ });
1350
+ return exit(one);
1351
+ }
1352
+ if (not(isEqualTo)(shouldDoSomethingAsync, NO) && not(isEqualTo)(shouldDoSomethingAsync, YES)) {
1353
+ immediateError("shouldDoSomethingAsync must be yes or no", {
1354
+ errorType: ERROR.TypeError
1355
+ });
1356
+ return exit(one);
1357
+ }
1358
+ if (not(isEqualTo)(shouldDoSomethingAsyncWithIsTenThousand, NO) && not(isEqualTo)(shouldDoSomethingAsyncWithIsTenThousand, YES)) {
1359
+ immediateError("shouldDoSomethingAsyncWithIsTenThousand must be yes or no", { errorType: ERROR.TypeError });
1360
+ return exit(one);
1361
+ }
1362
+ if (not(isEqualTo)(disableAprilFoolsSideEffects, NO) && not(isEqualTo)(disableAprilFoolsSideEffects, YES)) {
1363
+ immediateError("disableAprilFoolsSideEffects must be yes or no", {
1364
+ errorType: ERROR.TypeError
1365
+ });
1366
+ return exit(one);
1367
+ }
1368
+ if (not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, NO) && not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, YES)) {
1369
+ immediateError("definitelyDisableAprilFoolsSideEffects must be yes or no", {
1370
+ errorType: ERROR.TypeError
1371
+ });
1372
+ return exit(one);
1373
+ }
1374
+ if (not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, NO) && not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, YES)) {
1375
+ immediateError("strictDisableAprilFoolsSideEffectsCheck must be yes or no", {
1376
+ errorType: ERROR.TypeError
1377
+ });
1378
+ return exit(one);
1379
+ }
1380
+ if (not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.NONE) && not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.IE5) && not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.NETSCAPE) && not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.OPERA_PRESTO)) {
1381
+ immediateError("compatibilityMode must be a valid compatibility mode", {
1382
+ errorType: ERROR.TypeError
1383
+ });
1384
+ }
1385
+ // let's say hello to our users and inform them logging enabled if it is
1386
+ if (isEqualTo(isTrue({ enableLogging: yesNo.parse(enableLogging) }, "enableLogging"), Bro.TOTALLY)) {
1387
+ ltc(clc.cyanBright(`[falsejs] Logging enabled`));
1388
+ ltc(clc.cyan(`[falsejs]`.concat(leftPad(greet(username), LEFT_PAD_INPUT))));
1389
+ hello({ username, age: "it's called FalseJS!" });
1390
+ mGenbaneko.say(clc.redBright(meow()));
1391
+ require("peter"); // OH NO IT'S PETER
1392
+ // @ts-ignore
1393
+ console.dog(emptyString);
1394
+ require("greenlantern"); // Hello World
1395
+ ltc(clc.cyanBright(`[falsejs] Using Lodash version ${_.VERSION}`));
1396
+ ltc(clc.cyanBright(`[falsejs] Using Underscore version ${underscore.VERSION}`));
1397
+ ltc(clc.cyanBright(`[falsejs] Using Axios version ${axios.VERSION}`));
1398
+ ltc(clc.cyanBright(`[falsejs] Using React version ${React.version}`));
1399
+ }
1400
+ // deduce a random number
1401
+ const randomNumber = add(MathFloor(MathRandom() * numberOneHundred), one);
1402
+ if (isEqualTo(isTrue({ enableLogging: yesNo.parse(enableLogging) }, "enableLogging"), Bro.TOTALLY)) {
1403
+ ltc(clc.cyanBright(`[falsejs] Random number ${randomNumber} calculated`) // lets inform our users if they have loggineanbled
1404
+ );
1405
+ ltc(clc.cyanBright(`[falsejs] Doing something async ${construct({
1406
+ target: TernaryCompare,
1407
+ args: [yesNo.parse(shouldDoSomethingAsync), "enabled", "disabled"]
1408
+ }).compare()}`));
1409
+ ltc(clc.cyanBright(`[falsejs] Doing something async with is-ten-thousand ${construct({
1410
+ target: TernaryCompare,
1411
+ args: [yesNo.parse(shouldDoSomethingAsyncWithIsTenThousand), "enabled", "disabled"]
1412
+ }).compare()}`));
1413
+ }
1414
+ const loggingEnabled = enableLogging;
1415
+ const logger = {
1416
+ log(l) {
1417
+ if (isEqualTo(trueComparison.compare(), yesNo.parse(loggingEnabled)))
1418
+ ltc(l);
1419
+ }
1420
+ };
1421
+ if (not(yesNo.parse)(strictDisableAprilFoolsSideEffectsCheck)) {
1422
+ logger.log(clc.yellow(`[falsejs] Strict disable April Fools side effects checking disabled`));
1423
+ }
1424
+ _return(vretriever.retrieve(immo(isuseless(vValue(_.identity(underscore.identity(literally(constant(lodashdotconstant(_.constant(underscore.constant(doop(_calculateFalse, randomNumber, // random number
1425
+ yesNo.parse(enableLogging), // eanble logging
1426
+ yesNo.parse(shouldDoSomethingAsync), // async
1427
+ yesNo.parse(shouldDoSomethingAsyncWithIsTenThousand), //async-is-ten-thousand
1428
+ yesNo.parse(disableAprilFoolsSideEffects) && yesNo.parse(definitelyDisableAprilFoolsSideEffects), yesNo.parse(strictDisableAprilFoolsSideEffectsCheck), compatibilityMode))())())())())())))))));
1429
+ };
1430
+ variableHolder._FalseJSMainFunctionWotDoesFunctionality = functions.ReturnFalse;
1431
+ // now lets define some helper fufnctions
1432
+ // just some weaird boolean functions
1433
+ function randomBoolean(biasThreshold /* biasTreshold is chance of being true */, logger) {
1434
+ const randomValue = MathRandom();
1435
+ logger.log(clc.cyanBright(`[falsejs] Random number ${randomValue} calculated`));
1436
+ const binaryString = jQuery.multiply(randomValue, (five() + five()) ** (five() + five() / five())).toString(Two());
1437
+ const bitMask = five() * (five() + (five() - (five() / five() + five() / five()))) + five() / five() + five() / five(); // the meaning of life
1438
+ const bitResult = parseInt(binaryString.slice(returnZero({
1439
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1440
+ loggingEnabled: logger.enableLogging
1441
+ }), six()), Two()) ^ bitMask;
1442
+ const segment = bitResult.toString(sixteen).slice(returnZero({
1443
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1444
+ loggingEnabled: logger.enableLogging
1445
+ }), one);
1446
+ const mappedValue = parseInt(segment, sixteen) % Two();
1447
+ const biasedRandomValue = construct({
1448
+ target: TernaryCompare,
1449
+ args: [
1450
+ MathRandom() < biasThreshold,
1451
+ one,
1452
+ returnZero({
1453
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1454
+ loggingEnabled: logger.enableLogging
1455
+ })
1456
+ ]
1457
+ }).compare();
1458
+ // @ts-ignore
1459
+ const value = $.divide(add(mappedValue, biasedRandomValue), Two());
1460
+ return value >= five() / five() / (five() / five() + five() / five());
1461
+ }
1462
+ function complexBooleanWithBias(logger) {
1463
+ // Generate a pseudo-random number between 0 and 1
1464
+ const randomValue = MathRandom();
1465
+ logger.log(clc.cyanBright(`[falsejs] Random number ${randomValue} calculated`));
1466
+ // Convert the random number to a high-precision string and manipulate it
1467
+ const highPrecisionString = (randomValue * (five() + five()) ** (five() + (five() - (five() / five() + five() / five())))).toFixed(zr0());
1468
+ // Perform a base conversion
1469
+ const baseConverted = parseInt(highPrecisionString, ten).toString((five() + (five() / five() + five() / five())) * five() + five() / five());
1470
+ // Calculate a hash-like value using trigonometric functions
1471
+ const trigValue = parseFloat(
1472
+ // @ts-ignore
1473
+ parseFloat(
1474
+ // @ts-ignore
1475
+ add("0.", baseConverted)) *
1476
+ (five() + (five() / five() + five() / five())) *
1477
+ five() +
1478
+ five() / five()) *
1479
+ PI *
1480
+ Two();
1481
+ // Determine if this value is close to a specific fraction
1482
+ const isCloseToFraction = MathAbs(trigValue - five() / five() / (five() / five() + five() / five())) < five() / five() / (five() + five()) + (five() - (five() / five() + five() / five())) / (five() * (five() * (five() - five() / five())));
1483
+ // Generate a secondary random number with a different scale
1484
+ const secondaryRandom = $.multiply(MathRandom(), (five() + five()) ** (five() - (five() / five() + five() / five())));
1485
+ // Check if the secondary random number is a prime number
1486
+ const isPrime = isPrimeNumber(MathRound(secondaryRandom), logger);
1487
+ // Generate a bias value (6% chance of true)
1488
+ const biasThreshold = five() / five() / (five() + five());
1489
+ const biasRandom = MathRandom() < biasThreshold ? zr0() : one;
1490
+ // Combine the results using weighted averaging
1491
+ const combinedResult = $.divide(isCloseToFraction + isPrime + biasRandom, three());
1492
+ // Return boolean based on the final weighted result
1493
+ return combinedResult >= five() / five() / (five() / five() + five() / five());
1494
+ }
1495
+ function weirdestBoolean(logger) {
1496
+ // Step 1: Generate a pseudo-random floating-point number
1497
+ const randomValue = MathRandom();
1498
+ // Step 2: Create a string representation of the random number in base-36
1499
+ const base36String = (randomValue * (five() + five()) ** ((five() - (five() / five() + five() / five())) * (five() - five() / five()))).toFixed(zr0()).toString();
1500
+ // Step 3: Create a hash-like transformation by summing ASCII values of characters
1501
+ var asciiSum = zr0();
1502
+ for (const char of base36String) {
1503
+ asciiSum += char.charCodeAt(zr0());
1504
+ }
1505
+ // Step 4: Generate a non-trivial number by applying a sequence of bit manipulations
1506
+ const bitManipulated = (asciiSum ^ ((five() / five() + five() / five()) * (five() + five()) ** (five() - five() / five()) + (five() - (five() / five() + five() / five())) * (five() + five()) ** (five() - (five() / five() + five() / five())) + (five() / five()) * (five() * (five() * (five() - five() / five()))) + (five() - (five() / five() + five() / five())) * (five() + five()))) & (five() * (five() * (five() + five() + (five() / five() / (five() + five()) + five() / five() / (five() + five()))))); // XOR and mask to get a byte
1507
+ // Step 5: Convert the result to a binary string and calculate a checksum-like value
1508
+ const binaryString = bitManipulated.toString(Two()).padStart(eightToolkit.constants.EIGHT, "0");
1509
+ const checksum = Array.from(binaryString).reduce((acc, bit) => acc + parseInt(bit, ten), zr0());
1510
+ // Step 6: Use a matrix of numbers to obscure the logic
1511
+ const someNumbers = [Two(), three(), five(), seven(), eleven(), thirteenResolver(), integer17(), nineteenify(logger.enableLogging), TWENTY_THREE, TWENTY_THREE + six()];
1512
+ const matrixIndex = checksum % someNumbers.length;
1513
+ const primeValue = someNumbers[matrixIndex];
1514
+ // Step 7: Generate a complex random number using trigonometric functions
1515
+ const trigValue = $.multiply($.divide($.multiply(primeValue, PI), four()), (five() + five()) ** (five() - (five() / five() + five() / five())) / (five() / five() + five() / five()));
1516
+ const isAboveThreshold = trigValue > (five() + five()) ** (five() - (five() / five() + five() / five())) / (five() / five() + five() / five()); // Arbitrary threshold
1517
+ // Step 8: Introduce an additional layer of randomness with bias
1518
+ const bias = MathRandom() < (five() - five() / five()) / five() + five() / (five() * (five() * (five() - five() / five()))) - five() / five() / (five() + five()) ** (five() * (five() - five() / five() - five() / five()) + five() / five()) - five() / five() / (five() + five()) ? one : zr0(); // 75% chance of 1
1519
+ // Step 9: Combine results using a complex formula
1520
+ const weirdBoolean = $Boolean((isAboveThreshold ? one : zr0()) ^ bias); // XOR operation
1521
+ // Step 10: Calculate complex boolean with bias from other function
1522
+ const complexBoolean = complexBooleanWithBias(logger);
1523
+ // Step 11: Calculate random boolean with bias from other function
1524
+ const randomBool = randomBoolean((five() - five() / five()) / five() + five() / (five() * (five() * (five() - five() / five()))) - five() / five() / (five() + five()) ** (five() * (five() - five() / five() - five() / five()) + five() / five()) - five() / five() / (five() + five()) / (five() + five()), logger);
1525
+ // Step 12: Add them together
1526
+ const sum = weirdBoolean + complexBoolean + randomBool;
1527
+ // Step 13: Randomly add one to it
1528
+ const sumWhichMayBeSuccessed = MathRandom() < five() / five() / (five() / five() + five() / five()) ? successor(sum) : sum;
1529
+ // Step 14: Round down or up
1530
+ const finalBooleanNotNegated = $.equals(MathFloor(sumWhichMayBeSuccessed) % Two(), zr0());
1531
+ // Step 15: Negate finalBoolean
1532
+ const finalBooleanComparison = construct({
1533
+ target: TernaryCompare,
1534
+ args: [finalBooleanNotNegated, FALSE, t()]
1535
+ });
1536
+ return finalBooleanComparison.compare();
1537
+ }
1538
+ function isPrimeNumber(num, logger) {
1539
+ if (num <= one)
1540
+ return FALSE;
1541
+ if (num <= three())
1542
+ return t();
1543
+ if ($.equals(num % Two(), returnZero({
1544
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1545
+ loggingEnabled: logger.enableLogging
1546
+ })) ||
1547
+ $.equals(num % three(), returnZero({
1548
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1549
+ loggingEnabled: logger.enableLogging
1550
+ }))) {
1551
+ return FALSE;
1552
+ }
1553
+ var i = five();
1554
+ while ($.multiply(i, i) <= num) {
1555
+ if ($.equals(num % i, returnZero({
1556
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1557
+ loggingEnabled: logger.enableLogging
1558
+ })) ||
1559
+ num %
1560
+ Number($.equals($.add(i, Two()), returnZero({
1561
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1562
+ loggingEnabled: logger.enableLogging
1563
+ })))) {
1564
+ return FALSE;
1565
+ }
1566
+ i = $.add(i, six());
1567
+ }
1568
+ return tVal;
1569
+ }
1570
+ function StringValueof(value) {
1571
+ return value.toString();
1572
+ }
1573
+ function couldThisCouldItBeFalse(aValueThatMightBeTheBooleanValueFalseButIDKYet) {
1574
+ const specimen = aValueThatMightBeTheBooleanValueFalseButIDKYet;
1575
+ if (specimen == undefined())
1576
+ return FALSE; // noway its false if its undefined
1577
+ if (isOne(specimen))
1578
+ return FALSE;
1579
+ if (isTrue({ specimen }, "specimen"))
1580
+ return FALSE;
1581
+ if (isNegativeZero({ specimen }, "specimen"))
1582
+ return _f();
1583
+ if (is(specimen).thirteen())
1584
+ return _f();
1585
+ return isPreciselyEqualToFalse(specimen);
1586
+ }
1587
+ variableHolder._FalseJSIsFalse = function is_This_Value_false(v, loggingEnabled) {
1588
+ if (!isRealBoolean(loggingEnabled))
1589
+ loggingEnabled = !(loggingEnabled === NO);
1590
+ const value = v; // alts are always good
1591
+ const isV = is(v); // isthirteen
1592
+ const garbage = useGarbage(); // use some garbage
1593
+ const isgarbage = not(isRealBoolean)(garbage) && isEqualTo(v, garbage);
1594
+ const cond = !isgarbage &&
1595
+ v !== one &&
1596
+ v !== Two() &&
1597
+ v !== three() &&
1598
+ v !== four() &&
1599
+ v !== five() &&
1600
+ v !== six() &&
1601
+ v !== seven() &&
1602
+ v !== eightToolkit.constants.EIGHT &&
1603
+ v !== ninev9() &&
1604
+ v !== ten &&
1605
+ v !== eleven() &&
1606
+ v !== twelve() &&
1607
+ v !== thirteenResolver() &&
1608
+ v !== fourteen &&
1609
+ v !== fifteen &&
1610
+ v !== fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn &&
1611
+ v !== sixteen &&
1612
+ v !== integer17() &&
1613
+ v !== Eighteen() &&
1614
+ v !== nineteenify(loggingEnabled) &&
1615
+ v !== numbertwenty(loggingEnabled) &&
1616
+ v !== always21() &&
1617
+ v !== twentytwo &&
1618
+ v !== TWENTY_THREE &&
1619
+ v !== parseInt(theNumberSeven, 10) &&
1620
+ v !== theNumberSeven &&
1621
+ !isUndefined(v) &&
1622
+ !isNull(v) &&
1623
+ !isNil(v) &&
1624
+ isUnnull(v) &&
1625
+ not(isNil)(v) &&
1626
+ !isEqual(value, NO) &&
1627
+ !isEqual(value, YES) &&
1628
+ !isEqualTo(value, NO) &&
1629
+ !isEqualTo(value, YES) &&
1630
+ !couldThisCouldItBeTrue(v) &&
1631
+ !isNaN(v) &&
1632
+ !isNegativeInfinity(v) &&
1633
+ !isNegativeZero2(v) &&
1634
+ !is0_2.isNegativeZero(v) &&
1635
+ !isNegativeZero(v) &&
1636
+ !isPositiveZero(v) &&
1637
+ !is0_2.isPositiveZero(v) &&
1638
+ !is0(v) &&
1639
+ !is0_2.isZero(v) &&
1640
+ !zerosurgeIsZero(v, loggingEnabled) &&
1641
+ !is1(v) &&
1642
+ !isTwo(v) &&
1643
+ !isThree(v) &&
1644
+ !isFour(v) &&
1645
+ !isFive(v) &&
1646
+ !isSix(v) &&
1647
+ !isSeven(v) &&
1648
+ !eightToolkit.isEight(v) &&
1649
+ !isV.thirteen() &&
1650
+ !isHundred(v) &&
1651
+ !isThousand(v) &&
1652
+ !isTenThousand(v) &&
1653
+ !isEqTenThousand(v) &&
1654
+ !isNumber(v) &&
1655
+ !isActualNumber(v) &&
1656
+ !isIsOdd(v) &&
1657
+ !isOd(v) &&
1658
+ v !== t() &&
1659
+ v === _f() &&
1660
+ v === returnFalse() &&
1661
+ isEqualTo(v, _f()) &&
1662
+ isEqual(v, _f()) &&
1663
+ _.isEqual(v, _f()) &&
1664
+ underscore.isEqual(v, _f()) &&
1665
+ strictlyEqual(v, _f()) &&
1666
+ v === _f() &&
1667
+ v === FALSE &&
1668
+ couldThisCouldItBeFalse(v);
1669
+ return cond;
1670
+ };
1671
+ variableHolder._FalseJSjQueryPlugin = function jQueryPlugin() {
1672
+ // Inject into jQuery
1673
+ // @ts-ignore
1674
+ jQuery.False = variableHolder._FalseJSMainFunctionWotDoesFunctionality;
1675
+ // @ts-ignore
1676
+ jQuery.isFalse = variableHolder._FalseJSIsFalse;
1677
+ };
1678
+ variableHolder._FalseJSExpressMiddleware = function expressMiddleware(req, _res, next) {
1679
+ // Add our function to the request object
1680
+ req.False = variableHolder._FalseJSMainFunctionWotDoesFunctionality;
1681
+ req.isFalse = variableHolder._FalseJSIsFalse;
1682
+ next(); // Continue to the next middleware or route
1683
+ };
1684
+ function getNo() {
1685
+ const NO = require("no/dist/main");
1686
+ const NoComponent = () => {
1687
+ return React.createElement("div", Null(), NO);
1688
+ };
1689
+ const noElement = React.createElement(NoComponent);
1690
+ const html = cheerio.load(ReactDOMServer.renderToString(noElement))("div").toString();
1691
+ const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`);
1692
+ dom.window.document.body.innerHTML = html;
1693
+ const bodyContent = dom.window.document.querySelector("body").innerHTML;
1694
+ return striptags(bodyContent);
1695
+ }
1696
+ function getValueOfThisStringText(text) {
1697
+ return text;
1698
+ }
1699
+ function calculateRandomLetterOrNumber(loggingEnabled) {
1700
+ const uniqueId = uuid.v4();
1701
+ const uniqueId2 = crypto.randomUUID();
1702
+ const dashlessUUID = uniqueId.replaceAll("-", emptyString);
1703
+ const dashlessUUID2 = uniqueId2.replaceAll("-", emptyString);
1704
+ const combinedUUID = emptyString.concat(dashlessUUID, dashlessUUID2);
1705
+ const randomCharacter = StringCharAt.call(combinedUUID, $.add(MathFloor($.multiply(MathRandom(), getStringLength(combinedUUID))), one));
1706
+ if (loggingEnabled) {
1707
+ ltc(clc.cyanBright(`[falsejs] Random character calculated: ${randomCharacter}`));
1708
+ }
1709
+ return randomCharacter;
1710
+ }
1711
+ class falsejs {
1712
+ static False = variableHolder._FalseJSMainFunctionWotDoesFunctionality;
1713
+ static isFalse = variableHolder._FalseJSIsFalse;
1714
+ static injectIntojQuery = variableHolder._FalseJSjQueryPlugin;
1715
+ static expressMiddleware = variableHolder._FalseJSExpressMiddleware;
1716
+ static COMPATIBILITY_MODE = COMPATIBILITY_MODES;
1717
+ // static FalseAsAService = variableHolder.FalseAsAService
1718
+ constructor() {
1719
+ immediateError("falsejs is not a constructor", ERROR.TypeError);
1720
+ }
1721
+ }
1722
+ return falsejs;
1723
+ });
1724
+ }
1725
+ //# sourceMappingURL=index.js.map