@falsejs/falsejs 3.3.2 → 4.0.1

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/index.js ADDED
@@ -0,0 +1,2981 @@
1
+ /**!
2
+ * License
3
+ * FalseJS <https://10xEngineersQualityProgramming.github.io/falsejs.html>
4
+ * Copyright 10x'ly Made and other contributors <https://10xEngineersQualityProgramming.github.io>
5
+ * Released under MIT license <https://opensource.org/license/mit>
6
+ * made with HEAVY BLACK HEART U+2764
7
+ * Thanks to biome for being a good formatter + linter
8
+ */
9
+ /**
10
+ *
11
+ * FalseJS <https://10xEngineersQualityProgramming.github.io/falsejs.html>
12
+ *
13
+ *
14
+ * I didn't choose the 10x life, the 10x life chose me
15
+ *
16
+ */
17
+
18
+ // BELOW IS A CHECK TO DEFINE FALSE AND TRUE GLOBALLY IF THEY DON'T EXISTING TO PREVENT THE WORLD FROM CRASHING.
19
+ try {
20
+ false.valueOf()
21
+ } catch {
22
+ global.false = NaN == NaN
23
+ }
24
+ try {
25
+ true.valueOf()
26
+ } catch {
27
+ global.true = 1 === 1
28
+ }
29
+
30
+ const isComputerOnFire = require("is-computer-on-fire").isComputerOnFire // require external is-computer-on-fire package.
31
+
32
+ if (isComputerOnFire() && (1 & (3 << 2)) > 4) {
33
+ // check if the computer is on fire
34
+ /** 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. */
35
+ throw new Error(
36
+ "OH MY GOSH YOUR COMPUTER IS ON FIRE WHY ARE YOU WASTING TIME USING A JOKE POINTLESS NPM PACKAGE GET YOUR FIRE EXTINGUISHER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!",
37
+ )
38
+ } else {
39
+ require("none")() // improve load times and performance
40
+ require("-") // also improve load times and perormance
41
+
42
+ /** Whatev is a very useful package, that can be used to get the value of true. */
43
+ const whatev = require("whatev") // Require whatev.
44
+ const whatevTrueValue =
45
+ (whatev.fn() === whatev.string) === whatev.object.whatev // get the true value from whatev.
46
+
47
+ require("get-member")() // add Object.prototype.getMember.
48
+ require("array-get-member")() // add Array.prototype.getMember.
49
+
50
+
51
+ global.jQuery = require("jquery") // make jquery global
52
+ require("jquery-basic-arithmetic-plugin") // add arithmetic to jquery
53
+
54
+ require("user")() // something else that improves load times and performance
55
+
56
+ ;(function (factory) {
57
+ module.exports.default = factory(jQuery) // run and export falsejs.
58
+ })(function ($) {
59
+ // biome-ignore lint/suspicious/noRedundantUseStrict: We need double strict mode because we wanna be SUPER strict.
60
+ "use strict"
61
+
62
+ const jQuery = $ // alias for jquery
63
+
64
+ const variableHolder = {} // a variable holder
65
+
66
+ const GetIntrinsic = require("get-intrinsic") // cache our intrinsics
67
+
68
+ const logicalNot = require("es-logical-not-operator") // ! in fp
69
+ const logicalAnd = require("es-logical-and-operator") // && in fp
70
+ const logicalOr = require("es-logical-or-operator") // || in fp
71
+ const _ = require("lodash") // every project needs lodash
72
+ const underscore = require("underscore") // underscore.js. the predecessor of lodash.
73
+ const React = require("react") // the hype framework everyone uses for some reason
74
+ const ReactDOMServer = require("react-dom/server") // part of react
75
+ const cheerio = require("cheerio") // cheerio!
76
+ const { JSDOM } = require("jsdom") // a fake dom
77
+ const striptags = require("striptags") // strip tags!
78
+ const chalk = require("chalk") // color is the best!*/
79
+ var clc = require("cli-color") // another color module
80
+ const colors = require("@colors/colors/safe") // colors
81
+ const chalkbox = require("chalkbox") // with a box
82
+ const c = require("ansi-colors") // nothing wrong with even more colors
83
+ const pc = require("picocolors") // maybe even more colors libraries
84
+ const axios = require("axios") // so we can send requests
85
+ const { generatePhoneNumber } = require("phone-number-generator-js") // generate some phone numbers
86
+ const emptyString = require("empty-string") // an empty string
87
+ const n0p3 = require("n0p3") // a noop
88
+ const noop2 = require("noop2") // nothing wrong with another noop
89
+ const noop3 = require("noop3") // nothing wrong with yet another noop
90
+ const noop4 = require("noop4") // noop factory
91
+ const noop6 = require("noop6") // again, nothing wrong with more noops
92
+ const noop7 = require("noop7") // i think you see where i'm going
93
+ const noop8 = require("noop8") //another...
94
+ const noop9 = require("noop9") // the ninth
95
+ const noop10 = require("noop10") // 10x with noops lezz go
96
+ const { noop, doop } = require("yanoop") // yanoop.
97
+ const asyncUtilNoop = require("async.util.noop") // i think you see where i'm going
98
+ const blankSpaceFullObject = require("blank-space") // this exports two noops
99
+ const blankSpaceNoop = blankSpaceFullObject.noop // noop one
100
+ const blankSpace = blankSpaceFullObject._ // and noop two
101
+ const noopGenerator = require("co-noop") // a noop generator!
102
+ const fjNoop = require("fj-noop").FUNC // fj noop
103
+ const lodashNoop = require("lodash.noop") // lodash noop
104
+ const lodash_Noop = require("lodash._noop") // another lodash noop!
105
+ const noOp = require("no-op") // noop with a dash
106
+ const nodeNoop = require("node-noop").noop // a noop
107
+ const noopUtility = require("@stdlib/utils-noop") // the most practical
108
+ const trueNoop = require("true-noop") // one of few true noops.
109
+ const noopFn = require("noop-fn") // it ends with a fn
110
+ const noopaam = require("noopaam") // noopaaaaaaaaaaaaaaaaaaaaaaaaaammmmmmmmmmmmm
111
+ const nop = require("nop") // just nop. what a funny name
112
+ const es2015Noop = require("es2015-noop") // the future is here
113
+ const kgryteNoop = require("@kgryte/noop") // how do you pronounce this guy's name
114
+ const blackHole = require("a-black-hole") // OH NO WE ARE GOING IN TO THE BLACK HOLE
115
+ const infinoop = require("infinoop") // noop. for ever. for. ev. er. FOR. EV. ER
116
+ const mNoop = require("m.noop").noop // the only other true noop i could find besides true-noop itself
117
+ const ahsmNoop = require("@ahsm/noop") // ahsm noop
118
+ const { noop: qcCoreNoop, nullFn: Null } = require("qc-core") // the qc core
119
+ const nooop = require("nooop") // someone put too many o's
120
+ const ryotahNoop = require("@ryotah/noop") // ryotah made a noop
121
+ const zodashNoop = require("@zodash/noop").noop // zodash made a noop
122
+ const jacobZuma = require("jacob-zuma") // south african flavored noop
123
+ const onceNoopFactory = require("once-noop/factory") // make a noop which can only be called once
124
+ const voidFn = require("voidfn") // void fn
125
+ const noopExec = require("noop-exec") // exec
126
+ const attempt = require("attempt-statement") // has more features than trycatch statement
127
+ const assert = require("assert-fn") // more simple and elegant than built in node:assert
128
+ const hasSelfEquality = require("has-self-equality") // most things have self equality but lets make sure
129
+ const hasNoSelfEquality = require("has-no-self-equality") // again self equality
130
+ 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"
131
+ const isOne = require("is-one") // the base is- function
132
+ const isTen = require("is-ten") // 10x the is-one
133
+ const isHundred = require("is-hundred") // 10x the is-ten
134
+ const isThousand = require("is-thousand").default
135
+ const isTenThousand = require("is-ten-thousand") // 100x the is-hundred
136
+ const isEqTenThousand = require("is-eq-ten-thousand") // is-eq-ten-thousand
137
+ const isTwo = require("is-two").isTwo // the successor of one
138
+ const isThree = require("is-three") // the successor of two
139
+ const isNegativeZero = require("is-negative-zero") // isNegativeZero
140
+ const isNegativeZero2 = require("negative-zero") // can't hurt to have another negative zero checker
141
+ const isPositiveZero = require("positive-zero") // positive zero
142
+ const isTrue = require("is-true") // true
143
+ const isPreciselyTrue = require("is-precisely-true") // real true
144
+ const is = require("is-thirteen") // comparison-against-twelve-free environment
145
+ const isThreeHundred = require("is-three-hundred") // is-three-hundred
146
+ const isNumber = require("is-number") // jonschlinkert
147
+ const isActualNumber = require("is-actual-number") // my is-number
148
+ const { checkOdd, checkEven } = require("enterprise-number-classification-sdk") // enterprise oddness and evenness checking
149
+ const isWDS = require("@overkill/is-wds") // check if something's "WDS"
150
+ const isIsOdd = require("is-is-odd") // isIsOdd
151
+ const isOdd = require("is-odd") // why does everyone think this is the dumbest package ever. its not
152
+ const isOd = require("is-od") // forget a d
153
+ const isOddAndrew = require("is-odd-andrew") // isOddAndrew
154
+ const isOddNum = require("is-odd-num") // another odd checker
155
+ const isIntegerOdd = require("is-integer-odd") // another!!!!
156
+ const noteven = require("not-even") // not even
157
+ const isUneven = require("is-uneven") // whysomany
158
+ const numberKind = require("number-kind") // this exports two fns!
159
+ const isOddFaster = require("is-odd-faster").isOdd // is Odd but faster
160
+ const gabrielBrotasIsOdd = require("gabriel-brotas-is-odd") // gabriel made an is odd
161
+ const returnIfOddNumber = require("return-if-odd-number") // if odd number
162
+ const numberIsOdd = require("number-is-odd") // check if a number is odd
163
+ const isNumOdd = require("is-num-odd") // check if a num is odd
164
+ const isOddNumber = require("is-odd-number") // check if a od is number
165
+ const isNumberOdd = require("is_number_odd") // check if a number is odd
166
+ const isThisNumberOdd = require("is-this-number-odd") // check if a this is number odd
167
+ const isRealBoolean = require("is-real-boolean") // BOOLEANS
168
+ const add = require("examplebyraji") // a package to add stuff
169
+ const cowsay = require("cowsay") // let's say stuff
170
+ const lolcatjs = require("lolcatjs") // the rainbow i tastes it
171
+ const owoifyx = require("owoifyx").default // UwU
172
+ const Uwuifier = require("uwuifier").default // UwU (x2)
173
+ const luaParser = require("luaparse") // parse lua
174
+ const luaInterpreter = require("lua-interpreter") // interpret lua
175
+ const exit = require("exit") // 10x better than process.exit
176
+ const appendType = require("append-type") // PUT THE TYPE NEXT TO A VALUE!!
177
+ const concatenater = require("concatenater") // CONCATENATE STUFF!!!
178
+ const generalConcat = require("general-concat") // GENERALLY CONCATENATE STUFF!!!
179
+ const concat = require("@rightpad/concat") // CONCAT STUFF!!!!!!
180
+ const lowercase = require("convert-to-lower-case") // CONVERT TO LOWER CASE
181
+ const construct = require("construct-new") // better than the new keyword
182
+
183
+ const $Promise = require("bluebird") // shim for promise
184
+ const $Array = GetIntrinsic("%Array%") // arrays
185
+ const $Boolean = GetIntrinsic("%Boolean%") // things that are true or false
186
+ const $Date = GetIntrinsic("%Date%") // get a date
187
+ const $String = GetIntrinsic("%String%") // ssssstttrrrinnngggssss
188
+ const MathRandom = GetIntrinsic("%Math.random%") // its not actually random
189
+ const MathFloor = GetIntrinsic("%Math.floor%") // the floor
190
+ const MathRound = GetIntrinsic("%Math.round%") // the round floor
191
+ const PI = GetIntrinsic("%Math.PI%") // yummy pie
192
+ const MathAbs = GetIntrinsic("%Math.abs%") // negative numbers are absolutely positive numbers
193
+ const MathSqrt = GetIntrinsic("%Math.sqrt%") // square root
194
+ const MathSin = GetIntrinsic("%Math.sin%") // SIN
195
+ const MathCos = GetIntrinsic("%Math.cos%") // COS
196
+ const StringCharAt = GetIntrinsic("%String.prototype.charAt%") // get chars at and stuff
197
+
198
+ const _calculateFalseAprilFools = require("./aprilFoolsCalculateFalse") // april fools
199
+ const couldThisCouldItBeTrue = require("@falsejs/is-true-helper") // check if a value is true
200
+ const falseValue = require("false-value") // uses quantum physics simulation to return false
201
+ const isJanuary = require("is-january") // month 1
202
+ const isFebruary = require("is-february") // month 2
203
+ const isMarch = require("is-march") // month 3
204
+ const isApril = require("is-april") // month 4
205
+ const isMay = require("is-may") // month 5
206
+ const isJune = require("is-june") // month 6
207
+ const isJuly = require("is-july") // month 7
208
+ const isAugust = require("is-august") // month 8
209
+ const isSeptember = require("is-september") // month 9
210
+ const isOctober = require("is-october") // month 10
211
+ const isNovember = require("is-november") // month 11
212
+ const isDecember = require("is-december") // month 12
213
+ const isMonday = require("is-monday") // day of the week 1 according to international standard, day of the week 2 according to the us
214
+ const isTuesday = require("is-tuesday") // day of the week 2 according to international standard, day of the week 3 according to the us
215
+ const isWednesday = () =>
216
+ require("is-wednesday")(construct({ target: $Date })) // day of the week 3 according to the international standard, day of the week 4 according to the us
217
+ // now we gotta sing rebecca black's song
218
+ const isThursday = require("is-thursday") /// Yesterday was thursdayyyy
219
+ const isFriday = require("is-friday") // tooo-ddadayy is friday! we so ecited
220
+ const isSaturday = require("is-saturday") // tomorrow will be saturday
221
+ const isSunday = require("is-sunday") // and sunday comes after
222
+ const isWeekend = require("is-weekend") // looking forward to the weeeeekeend
223
+ const zr0 = require("integer-value-positive-zero") // get the number zero
224
+ const {
225
+ returnZero: returnZero_,
226
+ ZeroCalculationMethod,
227
+ isZero: zerosurgeIsZero,
228
+ } = require("zerosurge") // get the number zero, but 10x'er
229
+ const returnZero = returnZero_ // type returnZero
230
+ /** LETS GET SOME NUMBERS */
231
+ const one = require("the-number-one").default // get the number one
232
+ const Two = require("two") // get number 2
233
+ const three = require("numeric-constant-three") // get number 3
234
+ const four = require("always-four") // number 4
235
+ const five = require("five") // num5
236
+ const six = require("number-six") // n6
237
+ const seven = require("se7en") // 7
238
+ const eightToolkit = require("eight-toolkit") // it's 8, in a toolkit!
239
+ 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)
240
+ const ten = require("the-number-ten") // 10
241
+ const eleven = require("eleven") // 11
242
+ const twelve = require("tw12ve") // 12
243
+ const thirteenResolver = require("always-thirteen") // 13
244
+ const fourteen = require("fourteen") // 14
245
+ const fifteen = require("number-fifteen") //15
246
+ const fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn = require("fifteen-point-eight-three-five-two-six-six-eight-two-and-so-on") //-this-can-be-rounded-to-sixteen
247
+ const sixteen = require("sixteen-constant") //thisisthenumbersixteenomg161616
248
+ const integer17 = require("seventeen-integer") //17
249
+ const Eighteen = require("eighteen-positive-number-interactions") // Interact positively with eighteen
250
+ const nineteenify = require("nineteenify") // Hey there what our you doing? *nineteenifies*
251
+ const numbertwenty = require("numbertwenty") // 20
252
+ const always21 = require("always-21") // 21
253
+ const twentytwo = require("twentytwo")() // 22
254
+ const sixtyseven = require("sixty-seven").SixtySeven
255
+ const { TWENTY_THREE } = require("twenty-three-tools") // 23 tools
256
+ const hundred = require("number-one-hundred") // skip right to 100!
257
+ const numberOneHundred = hundred // other variable name for 100!
258
+ const theNumberSeven = require("@onesneakymofo/the-number-seven").default // back down to 7 (this is actually a string for some reason)
259
+ const inf = require("infinities") // INFINITE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
260
+
261
+ const bool = require("true-bool") // booleans
262
+ const successor = require("successor") // successor
263
+ const tru = require("tru") // if statements arent verbose enough
264
+ const If = require("if") // always good to have another if statement!
265
+ const not = require("@not-js/not") // safer negation with not
266
+ const { functions, _return } = require("returndotjs/safe") // better returning
267
+ const vretriever = require("vretriever") // a constant function
268
+ const immo = require("@_immo/return") // also a constant function
269
+ const isEqualTo = require("is-equal-to") // cant hurt to have a better way to check if something is equal
270
+ const isEqual = require("is-equal") // more complex ways too.
271
+ const strictlyEqual = require("@10xly/strict-equals") // and strict equality.
272
+ const notStrictlyEqual = not(strictlyEqual)
273
+ const getTypeOf = require("get-ecmascript-type-of") // better typeof
274
+ const extremejs = require("@extremejs/utils") // TO THE EXTREME
275
+ var trueValue = require("true-value")() // get true with quantum fisics simulation
276
+ var tVal = trueValue // tVal sounds cool so i put it here too
277
+ var t = () => whatevTrueValue // returns true.
278
+ const { mGenbaneko } = require("genbaneko") // i like cats
279
+ const leftPad = require("left-pad") //every project needs leftpad.
280
+ const rightPad = require("right-pad") //to the right, to the right.
281
+ const zeropad = require("zeropad") //every project could use a third pad.
282
+ const pad = require("pad") //this is the pad to end all pads.
283
+ const leftpad = require("leftpad") // every project could use another leftpad.
284
+ const rightpad = require("rightpad") // another right pad too.
285
+ const WestPad = require("west-pad").default // better than any other pad (except pad itself)
286
+ const tacoWrap = require("@sir_wernich/taco-wrap").default // pad our strings in tacos.
287
+ const isWindwos = require("is-windows") // did i misspell the variable name? of course not
288
+ const isWindows = isWindwos // i totally didnt misspell the above variable and this line doesnt exist
289
+ const isLinux = require("is-linux") // linux the os
290
+ const isOSX = require("is-osx") // more like is darwin
291
+ // TODO: Implement is Windows 12
292
+ const isFreeBSD = require("is-freebsd").isFreeBSD // i've never even heard of this operating system until now.
293
+ const thirteen = require("thirteen") // multiply by thirteen
294
+ const os = require("node:os") // maybe node js itself can help us calculate more operating systems
295
+ const crypto = require("node:crypto") // mine me some crypto
296
+ const fs = require("node:fs") // write our files
297
+ const util = require("node:util") // utility functiosn built in to node.js
298
+ const uuid = require("uuid") // generate some uuids
299
+ const getStringLength = require("utf8-byte-length") // get string length
300
+ const emoji100 = require("emoji-100") // 100 emoji
301
+ const randomHappyEmoji = require("random-happy-emoji") // HAPPY
302
+ const randomAngryEmoji = require("random-angry-emoji") // ANGRY
303
+ const randomFoodEmoji = require("random-food-emoji") // FOOD
304
+ const dolphinFact = require("dolphin-fact") // DOLPHIN FACT
305
+ const logOne = require("useless-one-log") // log the number one
306
+ const Bro = require("brototype") // Bro
307
+ const literally = require("literally") // better than literally
308
+ const constant = require("const") // can't even name this variable after the actual library
309
+ const lodashdotconstant = require("lodash.constant") // lodash's version
310
+ const WeirdInstanceof = require("weird-instanceof") // drunk programming only
311
+ const { log: ltc, setLogFuntion } = require("logtoconsole") // best logger
312
+ const weirdLtc = WeirdInstanceof(ltc) // weird
313
+ const yesNo = require("yes-no") // YES NO YES NO YES NO
314
+ // biome-ignore lint: We need to override undefined for the 10x'ness
315
+ const { undefined } = require("undefined-is-a-function") // UNDEFINED IS A FUNCTON
316
+ const isNull = require("@is-(unknown)/is-null") // IS null
317
+ const isUndefined = require("@is-(unknown)/is-undefined") // IS undefined
318
+ const isNil = require("@is-(unknown)/is-nil") // IS null OR undefined :O
319
+ const isUnnull = require("is-unnull") // IS UNNULL
320
+ // biome-ignore lint: We need to override isNaN for the 10x'ness
321
+ const isNaN = require("is-nan") // IS NAN
322
+ const isNegativeInfinity = require("negative-infinity").check // IS NEGATIVE INFINITY
323
+ const is1 = require("is-eq-one") // is 1
324
+ const is0 = require("is-eq-zero") // is 0
325
+ const is0_2 = require("is-zero") // is 0 (x2)
326
+ const isFour = require("is-equal-four") // is 4
327
+ const isFive = require("is-eq-five") // is 5
328
+ const isSix = require("is-eq-six") // is 6
329
+ const isSeven = require("is-eq-seven") // is 7
330
+ const useGarbage = require("garbage") // trash.
331
+ const isuseless = require("is-useless").isuseless // super useless
332
+ const isAprilFools = require("is-april-fools") // Is it april fools
333
+ const meow = require("meow.js") // library for meowing
334
+ const { ErrorType: ERROR, immediateError } = require("immediate-error") // throw errors
335
+ const throwError = require("throw-error") // throw errors
336
+ const hello = require("hello-vga-function").default // hello vga function
337
+
338
+ // A useful function to get a DHTML string.
339
+ function getDHTMLString() {
340
+ return `netscape_layer_id_${
341
+ thirteenResolver() * thirteenResolver() * thirteenResolver()
342
+ }`
343
+ }
344
+
345
+ const NumberFormatter = Intl.NumberFormat
346
+ const numberFormatter = construct({ target: NumberFormatter })
347
+
348
+ // Create .falsejs folder if it doesn't already exist.
349
+
350
+ tru(not(fs.existsSync)(".falsejs"))
351
+ .then(() => {
352
+ fs.mkdirSync(".falsejs")
353
+ })
354
+ .end()
355
+
356
+ variableHolder._lilmessage = colors.red(
357
+ `[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.`,
358
+ )
359
+
360
+ const blankSpaces = (
361
+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " + //100 whitespaces
362
+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " + //200 Whitespaces
363
+ +" "
364
+ )
365
+ //100 whitespaces
366
+ .replaceAll("&nbsp;", " ")
367
+ const STARTING_SUCCESSOR_HELPER_STACK = zr0()
368
+ const FALSE = !whatevTrueValue
369
+ const _f = constant(FALSE)
370
+ const ERROR_THAT_WILL_NEVER_BE_SHOWN = variableHolder._lilmessage
371
+ const TEN_THOUSAND = 10e3
372
+ const LEFT_PAD_INPUT = jQuery.multiply(
373
+ five(),
374
+ jQuery.add(five(), jQuery.divide(five(), five())),
375
+ )
376
+ const RIGHT_PAD_INPUT = jQuery.multiply(
377
+ five(),
378
+ jQuery.add(five(), jQuery.divide(five(), five())),
379
+ )
380
+ const PAD_INPUT = five()
381
+ const LEFTPAD_INPUT = jQuery.multiply(
382
+ five(),
383
+ jQuery.add(five(), jQuery.divide(five(), five())),
384
+ )
385
+ const RIGHTPAD_INPUT = jQuery.multiply(
386
+ five(),
387
+ jQuery.add(five(), jQuery.divide(five(), five())),
388
+ )
389
+ const WEST_PAD_INPUT = jQuery.multiply(
390
+ five(),
391
+ jQuery.add(five(), jQuery.divide(five(), five())),
392
+ )
393
+ const ZEROPAD_INPUT = jQuery.subtract(five(), jQuery.divide(five(), five()))
394
+ const WEST_PAD_DEVICE_DIRECTION = "N"
395
+ const SPACE = " "
396
+ const STARTING_VVALUE_USER_MINUS = zr0()
397
+ const STARTING_VVALUE_USER_PLUS = zr0()
398
+ const STARTING_VVALUE_USER_PAD = zr0()
399
+ const NO = getNo()
400
+ const YES = "yes"
401
+ const TODAY = construct({
402
+ target: $Date,
403
+ })
404
+ const Today = TODAY
405
+ const USERNAME = (function () {
406
+ var username = undefined()
407
+
408
+ attempt(() => {
409
+ username = os.userInfo().username
410
+ })
411
+ .rescue(() => {
412
+ username = "user"
413
+ })
414
+ .else(nodeNoop)
415
+ .ensure(nop)
416
+ .end()
417
+
418
+ return username
419
+ })()
420
+ const username = USERNAME
421
+
422
+ // Define compatibility_mode enum.
423
+ const COMPATIBILITY_MODE = {
424
+ NONE: "none",
425
+ IE5: "ie5",
426
+ NETSCAPE: "netscape",
427
+ OPERA_PRESTO: "presto",
428
+ }
429
+
430
+ const COMPATIBILITY_MODES = COMPATIBILITY_MODE
431
+
432
+ class Logger {
433
+ constructor(enableLogging) {
434
+ this.enableLogging = enableLogging // ENABLE THE LOGGING
435
+ }
436
+ log(log) {
437
+ if (isEqualTo(this.enableLogging, t())) {
438
+ log instanceof weirdLtc // SO WERID
439
+ }
440
+ }
441
+ }
442
+
443
+ const FalseJSValidationFailedToPassError = class extends Error {
444
+ constructor(...stuff) {
445
+ super(...stuff)
446
+ this.name = "FalseJSValidationFailedToPassError"
447
+ }
448
+ }
449
+
450
+ const SuccessorHelper = class {
451
+ s(value) {
452
+ const result = add(value, one) // add one to it
453
+ return result
454
+ }
455
+ }
456
+
457
+ const TernaryCompare = class {
458
+ constructor(condition, ifTrue, ifFalse) {
459
+ this.condition = condition
460
+ this.ifTrue = ifTrue
461
+ this.ifFalse = ifFalse
462
+ }
463
+
464
+ compare() {
465
+ return this.condition ? this.ifTrue : this.ifFalse
466
+ }
467
+ }
468
+
469
+ const ObjectOrFunctionParemeterName = class {
470
+ constructor(name) {
471
+ this.name = name
472
+ }
473
+ getName() {
474
+ const name = this.name // use a static variable for performance
475
+ const compare = construct({
476
+ target: TernaryCompare,
477
+ args: [not(() => isNil(name))(), name, Null()],
478
+ })
479
+ return compare.compare()
480
+ }
481
+ }
482
+
483
+ const CLIColorInstance = class {
484
+ constructor(booleanValue) {
485
+ tru(
486
+ isTrue(
487
+ { booleanValue },
488
+ construct({
489
+ target: ObjectOrFunctionParemeterName,
490
+ args: ["booleanValue"],
491
+ }).getName(),
492
+ ),
493
+ )
494
+ .then(n0p3)
495
+ .otherwise(n0p3)
496
+ .end()
497
+
498
+ this.instance = require("cli-color")
499
+ }
500
+ getInstance() {
501
+ return this.instance
502
+ }
503
+ }
504
+
505
+ const trueComparison = construct({
506
+ target: TernaryCompare,
507
+ args: [tVal, tVal, not(() => tVal)()],
508
+ })
509
+ const { s } = construct({ target: SuccessorHelper })
510
+ const clc_ = construct({
511
+ target: CLIColorInstance,
512
+ args: [useGarbage()],
513
+ }).getInstance() // colors are the best! chalk chalk chalk
514
+ clc = clc_ // setit
515
+ const uwuifier = construct({ target: Uwuifier })
516
+ const westPad = construct({
517
+ target: WestPad,
518
+ args: [WEST_PAD_DEVICE_DIRECTION],
519
+ })
520
+
521
+ var True_Logger = construct({ target: Logger, args: [t()] })
522
+
523
+ // lets make sure jquery-basic-arithmetic-plugin works
524
+ if (not(() => Bro($).doYouEven("add"))()) {
525
+ // uh oh... jquery basic arithmetic plugin didn't work
526
+ True_Logger.log(
527
+ colors.red("[falsejs] jquery-basic-arithmetic-plugin is not working"),
528
+ ) // inform our users even if they disabled logging
529
+ require("jquery-basic-arithmetic-plugin")
530
+ require("jquery-basic-arithmetic-plugin")
531
+ require("jquery-basic-arithmetic-plugin")
532
+ require("jquery-basic-arithmetic-plugin")
533
+ require("jquery-basic-arithmetic-plugin")
534
+ require("jquery-basic-arithmetic-plugin")
535
+ require("jquery-basic-arithmetic-plugin") // now it should work
536
+ if (not(() => Bro($).doYouEven("add"))()) {
537
+ True_Logger.log(
538
+ colors.red(
539
+ "[falsejs] jquery-basic-arithmetic-plugin is still not working",
540
+ ),
541
+ ) // inform our users even if they disabled logging
542
+ $.add = (...nums) => {
543
+ var total = zr0()
544
+ // let's use underscore instead of forEach
545
+ underscore.each(nums, (num) => {
546
+ total += num // we have to use the operators because we are redefining the functions :(
547
+ })
548
+ return total
549
+ }
550
+ $.subtract = (...nums) => {
551
+ var total = zr0()
552
+ // this time we'll use lodash
553
+ _.each(nums, (num) => {
554
+ total -= num
555
+ })
556
+ return total
557
+ }
558
+ $.equals = (v1, v2) => {
559
+ if (
560
+ not(() => isActualNumber(v1) && logicalNot(isActualNumber(v2)))()
561
+ ) {
562
+ immediateError(
563
+ concatenater(
564
+ "Both parameters must be numbers! Instead what was passed in was ",
565
+ )
566
+ .append(appendType(v1))
567
+ .toString()
568
+ .concat(concatenater(" or ").append(appendType(v2)).toString()),
569
+ ) // not the same message as the original but i dont know what it is and am too lazy to look into the source code
570
+ return exit(one) // just in case it doesn't exit
571
+ }
572
+
573
+ return isEqualTo(v1, v2) /// not usnig $.equals because we are literally redefining that
574
+ }
575
+ if (not(() => Bro($).doYouEven("add"))()) {
576
+ True_Logger.log(
577
+ colors.red(
578
+ `[falsejs] Either your Node.js is broken, or jQuery is immutable. Something went wrong.`,
579
+ ),
580
+ )
581
+ } else {
582
+ True_Logger.log(
583
+ pc.green(
584
+ `[falsejs] jquery-basic-arithmetic-plugin is not working so falsejs defined the functions that are injected into jquery by itself`,
585
+ ),
586
+ )
587
+ }
588
+ } else {
589
+ True_Logger.log(
590
+ pc.green(`[falsejs] jquery-basic-arithmetic-plugin is now working`),
591
+ )
592
+ }
593
+ }
594
+
595
+ const surpriseArray = [] // define empty array
596
+ setLogFuntion(() => {
597
+ // create an ending random number for our users eventually
598
+ surpriseArray.push(
599
+ construct({
600
+ target: TernaryCompare,
601
+ args: [
602
+ isEqualTo(
603
+ randomBoolean(
604
+ jQuery.multiply(five(), jQuery.divide(one, ten)),
605
+ new Logger(FALSE),
606
+ ),
607
+ t(),
608
+ ),
609
+ jQuery.multiply(MathRandom(), TEN_THOUSAND),
610
+ jQuery.multiply(
611
+ MathRandom(),
612
+ MathFloor(
613
+ jQuery.divide(jQuery.multiply(TEN_THOUSAND, MathRandom()), ten),
614
+ ),
615
+ ),
616
+ ],
617
+ }).compare(),
618
+ )
619
+ })
620
+
621
+ async function doSomethingAsync(logger) {
622
+ logger.log(clc.cyan(`[falsejs] Doing something async`))
623
+ return construct({
624
+ target: $Promise,
625
+ args: [
626
+ (resolve) =>
627
+ setTimeout(
628
+ () => resolve(logger),
629
+ $.multiply(numberOneHundred, Two()),
630
+ ),
631
+ ],
632
+ })
633
+ }
634
+
635
+ function resultOfDoingSomethingAsync(logger) {
636
+ logger.log(pc.green(`[falsejs] Did something async`))
637
+ }
638
+
639
+ function predecessor(n) {
640
+ return jQuery.subtract(n, one)
641
+ }
642
+
643
+ function vValue(num) {
644
+ if (not(strictlyEqual)(getTypeOf(num), extremejs.TYPE.NUMBER)) {
645
+ return num
646
+ }
647
+ const rand = MathRandom()
648
+ const rand2 = MathRandom()
649
+ const useMinus =
650
+ rand < 0.3333333333333333 ? trueComparison.compare() : FALSE
651
+ const usePlus =
652
+ rand > 0.3333333333333333 && rand < 0.6666666666666666
653
+ ? trueComparison.compare()
654
+ : FALSE
655
+ const usePad =
656
+ rand > 0.6666666666666666 ? trueComparison.compare() : FALSE
657
+ const useLeftPad = rand2 < 0.5
658
+ const useRightPad = !useLeftPad
659
+
660
+ if (useMinus) return $.subtract(num, STARTING_VVALUE_USER_MINUS)
661
+ if (usePlus) return $.add(num, STARTING_VVALUE_USER_PLUS)
662
+ if (usePad) {
663
+ if (useLeftPad)
664
+ return parseInt(
665
+ leftPad(num.toString(), STARTING_VVALUE_USER_PAD).trim(),
666
+ 10,
667
+ )
668
+ if (useRightPad)
669
+ return parseInt(
670
+ rightPad(num.toString(), STARTING_VVALUE_USER_PAD).trim(),
671
+ 10,
672
+ )
673
+ }
674
+ return num
675
+ }
676
+
677
+ function sayIt(message) {
678
+ lolcatjs.fromString(cowsay.say({ text: message, r: bool([one, Two()]) }))
679
+ }
680
+
681
+ function isTenThousandTenThousand(shouldDoSomethingAsync = FALSE, logger) {
682
+ const TEN_THOUSAND1 = TEN_THOUSAND
683
+ const TEN_THOUSAND2 = $.subtract($.add(TEN_THOUSAND, one), one)
684
+ const TEN_THOUSAND3 = predecessor(s(TEN_THOUSAND))
685
+ const TEN_THOUSAND4 = TEN_THOUSAND.valueOf()
686
+ const TEN_THOUSAND5 = $.subtract(
687
+ TEN_THOUSAND,
688
+ STARTING_SUCCESSOR_HELPER_STACK,
689
+ )
690
+ const TEN_THOUSAND6 = $.add(TEN_THOUSAND, STARTING_SUCCESSOR_HELPER_STACK)
691
+ const TEN_THOUSAND7 = vValue(TEN_THOUSAND)
692
+ attempt(() => {
693
+ assert(
694
+ isTenThousand(TEN_THOUSAND1, shouldDoSomethingAsync),
695
+ "10,000 is not 10,000",
696
+ )
697
+ assert(
698
+ isTenThousand(TEN_THOUSAND2, shouldDoSomethingAsync),
699
+ "10,000 + 1 - 1 is not 10,000",
700
+ )
701
+ assert(
702
+ isTenThousand(TEN_THOUSAND3, shouldDoSomethingAsync),
703
+ "successor(10,000) - 1 is not 10,000",
704
+ )
705
+ assert(
706
+ isTenThousand(TEN_THOUSAND4, shouldDoSomethingAsync),
707
+ "(10000).valueOf() is not 10,000",
708
+ )
709
+ assert(
710
+ isTenThousand(TEN_THOUSAND5, shouldDoSomethingAsync),
711
+ "10,000 - 0 is not 10,000",
712
+ )
713
+ assert(
714
+ isTenThousand(TEN_THOUSAND6, shouldDoSomethingAsync),
715
+ "10,000 + 0 is not 10,000",
716
+ )
717
+ assert(
718
+ isTenThousand(TEN_THOUSAND7, shouldDoSomethingAsync),
719
+ "the vvalue of 10,000 is not 10,000",
720
+ )
721
+ })
722
+ .rescue((error) => {
723
+ logger.log(
724
+ colors.red(
725
+ "[falsejs] Failed to verify that 10,000 is equal to 10,000 with error ".concat(
726
+ error.message,
727
+ ),
728
+ ),
729
+ )
730
+ })
731
+ .else(() =>
732
+ logger.log(
733
+ pc.green(
734
+ "[falsejs] Verified that 10,000 is equal to 10,000 in a bunch of ways",
735
+ ),
736
+ ),
737
+ )
738
+ .ensure(n0p3)
739
+ .end()
740
+ }
741
+ function doSelfEqualityChecks(loggingEnabled) {
742
+ const logger = construct({ target: Logger, args: [loggingEnabled] })
743
+ assert(
744
+ hasSelfEquality(isThreeHundred),
745
+ StringValueof("[falsejs] IsThreeHundred has no self equality"),
746
+ )
747
+ logger.log(
748
+ pc.green(
749
+ `[falsejs] Verified that the string "Vladimir" has self equality`,
750
+ ),
751
+ )
752
+ assert(
753
+ hasNoSelfEquality(NaN),
754
+ StringValueof("[falsejs] NaN-has-self-equality"),
755
+ )
756
+ logger.log(pc.green(`[falsejs] Verified that NaN has no self equality`))
757
+ assert(
758
+ isNumberOddOrEven(
759
+ returnZero({
760
+ method: ZeroCalculationMethod.CreashaksOrganzine,
761
+ loggingEnabled,
762
+ }),
763
+ falseValue(),
764
+ ),
765
+ StringValueof("[falsejs] 0 is not odd or even"),
766
+ )
767
+ assert(
768
+ isNumberOddOrEven(
769
+ returnZero({
770
+ method: ZeroCalculationMethod.NumberPrototypeValue,
771
+ loggingEnabled: falseValue(),
772
+ }),
773
+ FALSE,
774
+ ),
775
+ StringValueof("[falsejs] 0 is not odd or even"),
776
+ )
777
+ logger.log(pc.green(`[falsejs]-Verified-that-0-is-odd-or-even`))
778
+ assert(
779
+ isNumberOddOrEven(one, FALSE),
780
+ StringValueof("[falsejs] 1 is not odd or even"),
781
+ )
782
+ logger.log(pc.green(`[falsejs]-Verified-that-1-is-odd-or-even`))
783
+ assert(
784
+ isNumberOddOrEven(Two(), FALSE),
785
+ StringValueof("[falsejs] 2 is not odd or even"),
786
+ )
787
+ logger.log(pc.green(`[falsejs]-Verified-that-2-is-odd-or-even`))
788
+ assert(
789
+ isNumberOddOrEven(three(), FALSE),
790
+ StringValueof("[falsejs] 3 is not odd or even"),
791
+ )
792
+ logger.log(pc.green(`[falsejs]-Verified-that-3-is-odd-or-even`))
793
+ assert(
794
+ isNumberOddOrEven(four(), FALSE),
795
+ StringValueof("[falsejs] 4 is not odd or even"),
796
+ )
797
+ logger.log(pc.green(`[falsejs]-Verified-that-4-is-odd-or-even`))
798
+ assert(
799
+ isNumberOddOrEven(five(), FALSE),
800
+ StringValueof("[falsejs] 5 is not odd or even"),
801
+ )
802
+ logger.log(pc.green(`[falsejs]-Verified-that-5-is-odd-or-even`))
803
+ assert(
804
+ isNumberOddOrEven(six(), FALSE),
805
+ StringValueof("[falsejs] 6 is not odd or even"),
806
+ )
807
+ logger.log(pc.green(`[falsejs]-Verified-that-6-is-odd-or-even`))
808
+ assert(
809
+ isNumberOddOrEven(seven(), FALSE),
810
+ StringValueof("[falsejs] 7 is not odd or even"),
811
+ )
812
+ logger.log(pc.green(`[falsejs]-Verified-that-7-is-odd-or-even`))
813
+ assert(
814
+ isNumberOddOrEven(eightToolkit.constants.EIGHT, FALSE),
815
+ StringValueof("[falsejs] 8 is not odd or even"),
816
+ )
817
+ logger.log(pc.green(`[falsejs]-Verified-that-8-is-odd-or-even`))
818
+ assert(
819
+ isNumberOddOrEven(ninev9(), FALSE),
820
+ StringValueof("[falsejs] 9 is not odd or even"),
821
+ )
822
+ logger.log(pc.green(`[falsejs]-Verified-that-9-is-odd-or-even`))
823
+ assert(
824
+ isNumberOddOrEven(ten, FALSE),
825
+ StringValueof("[falsejs] 10 is not odd or even"),
826
+ )
827
+ logger.log(pc.green(`[falsejs]-Verified-that-10-is-odd-or-even`))
828
+ assert(
829
+ isNumberOddOrEven(eleven(), FALSE),
830
+ StringValueof("[falsejs] 11 is not odd or even"),
831
+ )
832
+ logger.log(pc.green(`[falsejs]-Verified-that-11-is-odd-or-even`))
833
+ assert(
834
+ isNumberOddOrEven(twelve(), FALSE),
835
+ StringValueof("[falsejs] 12 is not odd or even"),
836
+ )
837
+ logger.log(pc.green(`[falsejs]-Verified-that-12-is-odd-or-even`))
838
+ assert(
839
+ isNumberOddOrEven(thirteenResolver(), FALSE),
840
+ StringValueof("[falsejs] 13 is not odd or even"),
841
+ )
842
+ logger.log(pc.green(`[falsejs]-Verified-that-13-is-odd-or-even`))
843
+ assert(
844
+ isNumberOddOrEven(fourteen, FALSE),
845
+ StringValueof("[falsejs] 14 is not odd or even"),
846
+ )
847
+ logger.log(pc.green(`[falsejs]-Verified-that-14-is-odd-or-even`))
848
+ assert(
849
+ isNumberOddOrEven(fifteen, FALSE),
850
+ StringValueof("[falsejs] 15 is not odd or even"),
851
+ )
852
+ logger.log(pc.green(`[falsejs]-Verified-that-15-is-odd-or-even`))
853
+ assert(
854
+ isNumberOddOrEven(sixteen, FALSE),
855
+ StringValueof("[falsejs] 16 is not odd or even"),
856
+ )
857
+ logger.log(pc.green(`[falsejs]-Verified-that-16-is-odd-or-even`))
858
+ assert(
859
+ isNumberOddOrEven(integer17(), FALSE),
860
+ StringValueof("[falsejs] 17 is not odd or even"),
861
+ )
862
+ logger.log(pc.green(`[falsejs]-Verified-that-17-is-odd-or-even`))
863
+ assert(
864
+ isNumberOddOrEven(Eighteen(), FALSE),
865
+ StringValueof("[falsejs] 18 is not odd or even"),
866
+ )
867
+ logger.log(pc.green(`[falsejs]-Verified-that-18-is-odd-or-even`))
868
+ assert(
869
+ isNumberOddOrEven(nineteenify(loggingEnabled), FALSE),
870
+ StringValueof("[falsejs] 19 is not odd or even"),
871
+ )
872
+ logger.log(pc.green(`[falsejs]-Verified-that-19-is-odd-or-even`))
873
+ assert(
874
+ isNumberOddOrEven(numbertwenty(loggingEnabled), FALSE),
875
+ StringValueof("[falsejs] 20 is not odd or even"),
876
+ )
877
+ logger.log(pc.green(`[falsejs]-Verified-that-20-is-odd-or-even`))
878
+ assert(
879
+ isNumberOddOrEven(always21(), FALSE),
880
+ StringValueof("[falsejs] 21 is not odd or even"),
881
+ )
882
+ logger.log(pc.green(`[falsejs]-Verified-that-21-is-odd-or-even`))
883
+ assert(
884
+ isNumberOddOrEven(twentytwo, FALSE),
885
+ StringValueof("[falsejs] 22 is not odd or even"),
886
+ )
887
+ logger.log(pc.green(`[falsejs]-Verified-that-22-is-odd-or-even`))
888
+ assert(
889
+ isNumberOddOrEven(TWENTY_THREE, FALSE),
890
+ StringValueof("[falsejs] 23 is not odd or even"),
891
+ )
892
+ logger.log(pc.green(`[falsejs]-Verified-that-23-is-odd-or-even`))
893
+ assert(
894
+ isNumberOddOrEven(sixtyseven(), FALSE),
895
+ StringValueof("[falsejs] 67 is not odd or even"),
896
+ )
897
+ logger.log(pc.green(`[falsejs]-Verified-that-67-is-odd-or-even`))
898
+ assert(
899
+ logicalNot(isNumberOddOrEven(inf.positiveInfinity()), FALSE),
900
+ StringValueof("[falsejs] Infinity is odd or even"),
901
+ )
902
+ logger.log(
903
+ pc.green(`[falsejs]-Verified-that-Infinity-is-not-odd-or-even`),
904
+ )
905
+ }
906
+
907
+ function _getFalse(random, _randomLetterOrNumber, loggingEnabled, logger) {
908
+ // call some noops 4 some reason
909
+ n0p3()
910
+ noop()
911
+ noop2()
912
+ noop3()
913
+ noop4()()
914
+ noop6()
915
+ noop7()
916
+ noop8()
917
+ noop9()
918
+ noop10()
919
+ asyncUtilNoop()
920
+ blankSpace()
921
+ blankSpaceNoop()
922
+ noopGenerator().next()
923
+ fjNoop()
924
+ lodashNoop()
925
+ lodash_Noop()
926
+ noOp()
927
+ nodeNoop()
928
+ noopUtility()
929
+ trueNoop()
930
+ noopFn()
931
+ noopaam()
932
+ nop()
933
+ es2015Noop()
934
+ kgryteNoop()
935
+ blackHole()
936
+ infinoop()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
937
+ mNoop()
938
+ ahsmNoop()
939
+ qcCoreNoop()
940
+ nooop()
941
+ ryotahNoop()
942
+ zodashNoop()
943
+ jacobZuma()
944
+ onceNoopFactory().doNothing()
945
+ voidFn()
946
+ noopExec()
947
+ _.noop()
948
+ underscore.noop()
949
+ // left pad some things for smoe reason
950
+ leftPad("required", LEFT_PAD_INPUT)
951
+ rightPad("required", RIGHT_PAD_INPUT)
952
+ leftpad("required", LEFTPAD_INPUT)
953
+ rightpad("required", RIGHTPAD_INPUT)
954
+ zeropad("1000", ZEROPAD_INPUT)
955
+ pad(PAD_INPUT, "pad")
956
+ pad("pad", PAD_INPUT) //look at the power of this pad
957
+ westPad.pad("wow", WEST_PAD_INPUT) // the ultimate pad
958
+
959
+ var result // define a result
960
+ var succeededAttempt // define an attempt number that succeeded (roman numeral)
961
+ logger.log(
962
+ `${clc.cyanBright(`[falsejs]`)} ${chalk.red("Chalk")}-${chalk.green(
963
+ "ulating",
964
+ )} ${chalk.yellow("the")} ${chalk.blue("boolean")} ${chalk.magenta(
965
+ `value`,
966
+ )} ${chalk.cyan(`false`)}`,
967
+ )
968
+
969
+ /// Attempt I
970
+
971
+ logger.log(
972
+ clc.yellow(`[falsejs] Beginning Attempt I to get false value...`),
973
+ ) // inform our users of attempt one
974
+
975
+ const pureChance = not($.equals)(
976
+ fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn,
977
+ $.divide(
978
+ $.multiply(
979
+ MathRandom(),
980
+ fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn,
981
+ ),
982
+ MathRandom(),
983
+ ),
984
+ ) // this will probably never be false but it's worth a shot
985
+
986
+ // For semantics and simplicity, we use the attempt statement in our attempt
987
+ attempt(() => {
988
+ assert(
989
+ variableHolder._FalseJSIsFalse(pureChance, loggingEnabled),
990
+ ERROR_THAT_WILL_NEVER_BE_SHOWN,
991
+ ) // this will trigger our rescue which means it didnt work if it didnt work
992
+ })
993
+ .rescue(() => {
994
+ // it did not work by pure chance
995
+ /// Attempt II
996
+ // inform our users of the bad things
997
+ logger.log(
998
+ clc.yellow(
999
+ `[falsejs] Attempt I failed at getting false value, beginning Attempt II...`,
1000
+ ),
1001
+ )
1002
+ if (not(isEqualTo)(pureChance, pureChance)) {
1003
+ // something is broken
1004
+ logger.log(
1005
+ colors.red(
1006
+ `[falsejs] Your Node.js may be broken as ${pureChance} is not equal to ${pureChance}`,
1007
+ ),
1008
+ )
1009
+ }
1010
+
1011
+ // let's try to calculate false using a random number
1012
+ const chance = not($.equals)(
1013
+ MathRound(jQuery.multiply(MathRandom(), 1000)),
1014
+ MathRound(jQuery.multiply(MathRandom(), 1000)),
1015
+ )
1016
+ attempt(() =>
1017
+ assert(
1018
+ variableHolder._FalseJSIsFalse(chance, loggingEnabled),
1019
+ ERROR_THAT_WILL_NEVER_BE_SHOWN,
1020
+ ),
1021
+ )
1022
+ .rescue(() => {
1023
+ // it did not work by chance again
1024
+ logger.log(
1025
+ clc.yellow(
1026
+ `[falsejs] Attempt II failed at getting false value, beginning Attempt III...`,
1027
+ ),
1028
+ )
1029
+ // lets see if our random is any of these key values
1030
+ if (isOne(random)) {
1031
+ result = $.equals(random, Two())
1032
+ logger.log(
1033
+ pc.green(
1034
+ `[falsejs] Attempt III succeeded. False value retrieved successfully`,
1035
+ ),
1036
+ )
1037
+ succeededAttempt = "III"
1038
+ } else if (isTwo(random)) {
1039
+ result = $.equals(random, three())
1040
+ logger.log(
1041
+ pc.green(
1042
+ `[falsejs] Attempt III succeeded. False value retrieved successfully`,
1043
+ ),
1044
+ )
1045
+ succeededAttempt = "III"
1046
+ } else if (isThree(random)) {
1047
+ result = $.equals(random, four())
1048
+ logger.log(
1049
+ pc.green(
1050
+ `[falsejs] Attempt III succeeded. False value retrieved successfully`,
1051
+ ),
1052
+ )
1053
+ succeededAttempt = "III"
1054
+ } else if (eightToolkit.isEight(random)) {
1055
+ result = $.equals(random, five())
1056
+ logger.log(
1057
+ pc.green(
1058
+ `[falsejs] Attempt III succeeded. False value retrieved successfully`,
1059
+ ),
1060
+ )
1061
+ succeededAttempt = "III"
1062
+ } else if (isTen(random)) {
1063
+ result = $.equals(random, eleven())
1064
+ logger.log(
1065
+ pc.green(
1066
+ `[falsejs] Attempt III succeeded. False value retrieved successfully`,
1067
+ ),
1068
+ )
1069
+ succeededAttempt = "III"
1070
+ } else if (isHundred(random)) {
1071
+ result = $.equals(random, s(hundred))
1072
+ logger.log(
1073
+ pc.green(
1074
+ `[falsejs] Attempt III succeeded. False value retrieved successfully`,
1075
+ ),
1076
+ )
1077
+ succeededAttempt = "III"
1078
+ } else {
1079
+ // dang its not
1080
+ logger.log(
1081
+ clc.yellow(
1082
+ `[falsejs] Attempt III failed at getting false value, beginning Attempt IV...`,
1083
+ ),
1084
+ )
1085
+
1086
+ const zeropointninebool = randomBoolean(
1087
+ jQuery.subtract(one, jQuery.divide(one, ten)),
1088
+ logger,
1089
+ ) // a random boolean biased towards true, but its still worth a shot.
1090
+ tru(
1091
+ variableHolder._FalseJSIsFalse(
1092
+ zeropointninebool,
1093
+ loggingEnabled,
1094
+ ),
1095
+ )
1096
+ .then(() => {
1097
+ logger.log(
1098
+ pc.green(
1099
+ `[falsejs] Attempt IV succeeded. False value retrieved successfully`,
1100
+ ),
1101
+ )
1102
+ result = zeropointninebool
1103
+ succeededAttempt = "IV"
1104
+ })
1105
+ .otherwise(() => {
1106
+ logger.log(
1107
+ clc.yellow(
1108
+ `[falsejs] Attempt IV failed at getting false value, beginning Attempt V...`,
1109
+ ),
1110
+ )
1111
+ const zeropointeightfivebool = randomBoolean(
1112
+ (five() - five() / five()) / five() +
1113
+ five() /
1114
+ (five() * (five() * (five() - five() / five()))) -
1115
+ five() /
1116
+ five() /
1117
+ (five() + five()) **
1118
+ (five() *
1119
+ (five() - five() / five() - five() / five()) +
1120
+ five() / five()),
1121
+ logger,
1122
+ ) // a random boolean a tiny bit less biased towards true, but its still worth a shot.
1123
+
1124
+ If(
1125
+ variableHolder._FalseJSIsFalse(
1126
+ zeropointeightfivebool,
1127
+ loggingEnabled,
1128
+ ),
1129
+ )
1130
+ .Then(() => {
1131
+ logger.log(
1132
+ pc.green(
1133
+ `[falsejs] Attempt V succeeded. False value retrieved successfully`,
1134
+ ),
1135
+ )
1136
+ result = zeropointeightfivebool
1137
+ succeededAttempt = "V"
1138
+ })
1139
+ .Else(() => {
1140
+ logger.log(
1141
+ clc.yellow(
1142
+ `[falsejs] Attempt V failed at getting false value, beginning Attempt VI...`,
1143
+ ),
1144
+ )
1145
+ const zeropointsevennineninenineandsoonbool =
1146
+ randomBoolean(
1147
+ jQuery.subtract(
1148
+ jQuery.divide(
1149
+ jQuery.subtract(
1150
+ five(),
1151
+ jQuery.divide(five(), five()),
1152
+ ),
1153
+ five(),
1154
+ ),
1155
+ generalConcat(
1156
+ one.toString(),
1157
+ "e-",
1158
+ Two().toString(),
1159
+ eightToolkit.constants.EIGHT.toString(),
1160
+ ),
1161
+ ),
1162
+ logger,
1163
+ ) // a random boolean a bit more bit less biased towards true, but its still worth a shot.
1164
+ if (
1165
+ variableHolder._FalseJSIsFalse(
1166
+ zeropointsevennineninenineandsoonbool,
1167
+ loggingEnabled,
1168
+ )
1169
+ ) {
1170
+ logger.log(
1171
+ pc.green(
1172
+ `[falsejs] Attempt VI succeeded. False value retrieved successfully`,
1173
+ ),
1174
+ )
1175
+ result = zeropointsevennineninenineandsoonbool
1176
+ succeededAttempt = "VI"
1177
+ } else {
1178
+ logger.log(
1179
+ clc.yellow(
1180
+ `[falsejs] Attempt VI failed at getting false value, beginning Attempt VII...`,
1181
+ ),
1182
+ )
1183
+ const compl = complexBooleanWithBias(logger) // an eeven more complex random boolean
1184
+ attempt(() =>
1185
+ assert(
1186
+ variableHolder._FalseJSIsFalse(
1187
+ compl,
1188
+ loggingEnabled,
1189
+ ),
1190
+ ERROR_THAT_WILL_NEVER_BE_SHOWN,
1191
+ ),
1192
+ )
1193
+ .rescue(() => {
1194
+ logger.log(
1195
+ clc.yellow(
1196
+ `[falsejs] Attempt VII failed at getting false value, beginning Attempt VIII...`,
1197
+ ),
1198
+ )
1199
+ const w = weirdestBoolean(logger) // an eeven eeven more complex random boolean
1200
+ if (
1201
+ variableHolder._FalseJSIsFalse(
1202
+ w,
1203
+ loggingEnabled,
1204
+ )
1205
+ ) {
1206
+ logger.log(
1207
+ pc.green(
1208
+ `[falsejs] Attempt VIII succeeded. False value retrieved successfully`,
1209
+ ),
1210
+ )
1211
+ result = w
1212
+ succeededAttempt = "VIII"
1213
+ } else {
1214
+ logger.log(
1215
+ clc.yellow(
1216
+ `[falsejs] Attempt VIII failed at getting false value, beginning Attempt IX...`,
1217
+ ),
1218
+ )
1219
+ const x =
1220
+ // biome-ignore lint/complexity/noExtraBooleanCast: d
1221
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!0 // i don't know whether this is false or not let's just hope its false
1222
+ if (
1223
+ variableHolder._FalseJSIsFalse(
1224
+ x,
1225
+ loggingEnabled,
1226
+ )
1227
+ ) {
1228
+ logger.log(
1229
+ pc.green(
1230
+ `[falsejs] Attempt IX succeeded. False value retrieved successfully`,
1231
+ ),
1232
+ )
1233
+ result = x
1234
+ } else {
1235
+ // i shouldn't have added another exclamation mark
1236
+ logger.log(
1237
+ clc.yellow(
1238
+ `[falsejs] Attempt IX failed at getting false value, beginning Attempt X, the final attempt...`,
1239
+ ),
1240
+ )
1241
+ succeededAttempt = "IX"
1242
+ // omg the final attempt
1243
+ // RANDOM PHONE NUMBER
1244
+ const randomPhoneNumber =
1245
+ generatePhoneNumber()
1246
+ fs.appendFileSync(
1247
+ ".falsejs/phone-number-log.txt",
1248
+ `${randomPhoneNumber}\n`,
1249
+ )
1250
+ const my = randomPhoneNumber.endsWith("43") // the last two digits of my phone number are 43
1251
+ fs.appendFileSync(
1252
+ ".falsejs/phone-number-log.txt",
1253
+ `\nfinal attempt:${my}\n\n`,
1254
+ )
1255
+ if (
1256
+ variableHolder._FalseJSIsFalse(
1257
+ my,
1258
+ loggingEnabled,
1259
+ )
1260
+ ) {
1261
+ logger.log(
1262
+ pc.green(
1263
+ `[falsejs] Attempt X (Final attempt) succeeded. False value retrieved successfully`,
1264
+ ), // it worked!
1265
+ )
1266
+ result = my
1267
+ succeededAttempt =
1268
+ "Attempt X (final attempt)"
1269
+ } else {
1270
+ logger.log(
1271
+ colors.red(
1272
+ `[falsejs] Final attempt failed. Resorting to Attempt XI, returning the result of the false-value library also by FalseJS, which uses quantum physics simulation...`,
1273
+ ),
1274
+ )
1275
+ const myNewFalseValue = falseValue()
1276
+ If(
1277
+ variableHolder._FalseJSIsFalse(
1278
+ myNewFalseValue,
1279
+ ),
1280
+ )
1281
+ .Then(() => {
1282
+ logger.log(
1283
+ pc.green(
1284
+ `[falsejs] Quantum physics simulation method succeeded. False value retrieved successfully.`,
1285
+ ),
1286
+ )
1287
+ result = myNewFalseValue
1288
+ succeededAttempt =
1289
+ "Attempt XI (quantum physics simulation)"
1290
+ })
1291
+ .Else(() => {
1292
+ logger.log(
1293
+ pc.red(
1294
+ `[falsejs] Quantum physics simulation failed. Resorting to the TRUE FINAL attempt, Attempt XII...`,
1295
+ ),
1296
+ )
1297
+ // THE FINAL ATTEMPT IS USING THE _f() FUNCTION, WHICH IS GUARANTEED TO RETURN FALSE
1298
+
1299
+ const THISHASTOBEFALSE = _f()
1300
+ attempt(() =>
1301
+ assert(
1302
+ variableHolder._FalseJSIsFalse(
1303
+ THISHASTOBEFALSE,
1304
+ ),
1305
+ ),
1306
+ )
1307
+ .else(function () {
1308
+ // IT WORKS
1309
+ logger.log(
1310
+ pc.green(
1311
+ `[falsejs] True final attempt succeeded. False value retrieved successfully`,
1312
+ ), // it worked!
1313
+ )
1314
+ result = THISHASTOBEFALSE
1315
+ succeededAttempt =
1316
+ "Attempt XII (true final attempt)"
1317
+ })
1318
+ .rescue(function () {
1319
+ // This... is impossible.
1320
+ // The universe must be falling apart.
1321
+ // We must return _getFalse again.
1322
+ logger.log(
1323
+ pc.yellow(
1324
+ `[falsejs] True final attempt failed. Starting over from Attempt I.`,
1325
+ ),
1326
+ )
1327
+ const resultttt = _getFalse(
1328
+ random,
1329
+ _randomLetterOrNumber,
1330
+ loggingEnabled,
1331
+ logger,
1332
+ ) // will return false
1333
+ result = resultttt.result
1334
+ succeededAttempt =
1335
+ resultttt.succeededAttempt
1336
+ })
1337
+ .ensure(trueNoop)
1338
+ .end()
1339
+ })
1340
+ }
1341
+ }
1342
+ }
1343
+ })
1344
+ .else(() => {
1345
+ logger.log(
1346
+ pc.green(
1347
+ `[falsejs] Attempt VII succeeded. False value retrieved successfully`,
1348
+ ),
1349
+ )
1350
+ result = compl
1351
+ succeededAttempt = "VII"
1352
+ })
1353
+ .ensure(n0p3) // ensure we call noop for this
1354
+ .end()
1355
+ }
1356
+ })
1357
+ })
1358
+ .end()
1359
+ }
1360
+ })
1361
+ .else(() => {
1362
+ // it worked!
1363
+ result = chance
1364
+ logger.log(
1365
+ pc.green(
1366
+ `[falsejs] Attempt II succeeded. False value retrieved successfully`,
1367
+ ),
1368
+ )
1369
+ succeededAttempt = "II"
1370
+ })
1371
+ .ensure(n0p3) //again ensure noop
1372
+
1373
+ // and as always end our thing
1374
+ .end()
1375
+ })
1376
+ .else(() => {
1377
+ result = pureChance
1378
+ logger.log(
1379
+ pc.green(
1380
+ `[falsejs] Attempt I succeeded. False value retrieved successfully`,
1381
+ ),
1382
+ )
1383
+ succeededAttempt = "I"
1384
+ })
1385
+ .ensure(n0p3)
1386
+ .end()
1387
+ return {
1388
+
1389
+ result,
1390
+
1391
+ succeededAttempt,
1392
+ } // return our false value
1393
+ }
1394
+
1395
+ function _calculateFalse(
1396
+ random,
1397
+ loggingEnabled,
1398
+ shouldDoSomethingAsync = FALSE,
1399
+ shouldDoSomethingAsyncWithIsTenThousand = FALSE,
1400
+ disableAprilFoolsSideEffects = FALSE,
1401
+ strictDisableAprilFoolsSideEffectsCheck = trueComparison.compare(),
1402
+ compatibilityMode = COMPATIBILITY_MODE.NONE,
1403
+ ) {
1404
+ const logger = construct({
1405
+ target: Logger,
1406
+ args: [loggingEnabled],
1407
+ }) // create our logger
1408
+ var result // define a result
1409
+ var succeededAttempt // define an attempt number that succeeded
1410
+
1411
+ isTenThousandTenThousand(shouldDoSomethingAsyncWithIsTenThousand, logger) // make sure ten thousand is ten thousand and vValue works
1412
+ doSelfEqualityChecks(loggingEnabled) // do self equality checks
1413
+ construct({
1414
+ target: TernaryCompare,
1415
+ args: [loggingEnabled, logOne, blankSpace],
1416
+ }).compare()() // very very important
1417
+
1418
+ if (loggingEnabled) require("wormhole-interconnections") // wormhole
1419
+ logger.log(
1420
+ c.cyan(
1421
+ `[falsejs] `.concat(
1422
+ concat(
1423
+ StringValueof(thirteenResolver()),
1424
+ SPACE,
1425
+ "×",
1426
+ SPACE,
1427
+ StringValueof(Two()),
1428
+ SPACE,
1429
+ "=",
1430
+ SPACE,
1431
+ thirteen(Two()),
1432
+ ),
1433
+ ),
1434
+ ),
1435
+ )
1436
+
1437
+ // our users should know some basic info
1438
+
1439
+ // the os:
1440
+ If(isWindows())
1441
+ .Then(() => {
1442
+ // Windows
1443
+ logger.log(
1444
+ clc.cyanBright(
1445
+ `[falsejs] Using Windows as current operating system`,
1446
+ ),
1447
+ )
1448
+ })
1449
+ .Else()
1450
+ .If(isLinux())
1451
+ .Then(() => {
1452
+ // Linux
1453
+ logger.log(
1454
+ clc.cyanBright(`[falsejs] Using Linux as current operating system`),
1455
+ )
1456
+ })
1457
+ .Else()
1458
+ .If(isOSX())
1459
+ .Then(() => {
1460
+ // AppleOS (Darwin)
1461
+ logger.log(
1462
+ clc.cyanBright(
1463
+ `[falsejs] Using Darwin as current operating system platform (macOS, iOS, etc.)`,
1464
+ ),
1465
+ )
1466
+ })
1467
+ .Else()
1468
+ .If(isEqualTo(os.platform(), "aix"))
1469
+ .Then(() => {
1470
+ // AIX??
1471
+ logger.log(
1472
+ clc.cyanBright(
1473
+ `[falsejs] Using IBM AIX as current operating system`,
1474
+ ),
1475
+ )
1476
+ })
1477
+ .Else()
1478
+ .If(isFreeBSD())
1479
+ .Then(() => {
1480
+ // FreeBSD
1481
+ logger.log(
1482
+ clc.cyanBright(
1483
+ `[falsejs] Using FreeBSD as current operating system`,
1484
+ ),
1485
+ )
1486
+ })
1487
+ .Else()
1488
+ .If(isEqualTo(os.platform(), "openbsd"))
1489
+ .Then(() => {
1490
+ // OpenBSD
1491
+ logger.log(
1492
+ clc.cyanBright(
1493
+ `[falsejs] Using OpenBSD as current operating system`,
1494
+ ),
1495
+ )
1496
+ })
1497
+ .Else()
1498
+ .If(isEqualTo(os.platform(), "netbsd"))
1499
+ .Then(() => {
1500
+ // NetBSD
1501
+ logger.log(
1502
+ clc.cyanBright(
1503
+ `[falsejs] Using NetBSD as current operating system`,
1504
+ ),
1505
+ )
1506
+ })
1507
+ .Else()
1508
+ .If(isEqualTo(os.platform(), "cygwin"))
1509
+ .Then(() => {
1510
+ //cygwin
1511
+ logger.log(clc.cyanBright(`[falsejs] You are using Cygwin`))
1512
+ })
1513
+ .Else()
1514
+ .If(isEqualTo(os.platform(), "sunos"))
1515
+ .Then(() => {
1516
+ // Solaris/SunOS
1517
+ logger.log(
1518
+ clc.cyanBright(
1519
+ `[falsejs] Using SunOS/Solaris as current operating system`,
1520
+ ),
1521
+ )
1522
+ })
1523
+ .Else()
1524
+ .If(isEqualTo(os.platform(), "android"))
1525
+ .Then(() => {
1526
+ // Android
1527
+ logger.log(
1528
+ clc.cyanBright(
1529
+ `[falsejs] Using Android as current operating system. coding on your phone, are you?`,
1530
+ ),
1531
+ )
1532
+ })
1533
+ .Else(() => {
1534
+ logger.log(
1535
+ clc.cyanBright(
1536
+ `[falsejs] Even Node.js itself doesn't know your operating system.`,
1537
+ ),
1538
+ )
1539
+ })
1540
+ /// I'm actually curious what more can we do with process and os?
1541
+ // lets find out. hmm process.cpuusage whats that
1542
+ const usage = process.cpuUsage()
1543
+ logger.log(
1544
+ clc.cyanBright(
1545
+ getValueOfThisStringText(`[falsejs] User CPU Usage: ${usage.user}`),
1546
+ ),
1547
+ )
1548
+ logger.log(clc.cyanBright(`[falsejs] System CPU Usage: ${usage.system}`))
1549
+ // lets calculate days of the week and months and days and years and stuff
1550
+ if (isJanuary(Today))
1551
+ logger.log(clc.cyanBright(`[falsejs] The month is January`))
1552
+ if (isFebruary(Today))
1553
+ logger.log(clc.cyanBright(`[falsejs] The month is February`))
1554
+ if (isMarch(Today))
1555
+ logger.log(clc.cyanBright(`[falsejs] The month is March`))
1556
+ if (isApril(Today))
1557
+ logger.log(clc.cyanBright(`[falsejs] The month is April`))
1558
+ if (isMay(Today)) logger.log(clc.cyanBright(`[falsejs] The month is May`))
1559
+ if (isJune(Today))
1560
+ logger.log(clc.cyanBright(`[falsejs] The month is June`))
1561
+ if (isJuly(Today))
1562
+ logger.log(clc.cyanBright(`[falsejs] The month is July`))
1563
+ if (isAugust(Today))
1564
+ logger.log(clc.cyanBright(`[falsejs] The month is August`))
1565
+ if (isSeptember(Today))
1566
+ logger.log(clc.cyanBright(`[falsejs] The month is September`))
1567
+ if (isOctober(Today))
1568
+ logger.log(clc.cyanBright(`[falsejs] The month is October`))
1569
+ if (isNovember(Today))
1570
+ logger.log(clc.cyanBright(`[falsejs] The month is November`))
1571
+ if (isDecember(Today))
1572
+ logger.log(clc.cyanBright(`[falsejs] The month is December`))
1573
+ if (isMonday()) logger.log(clc.cyanBright(`[falsejs] Today is Monday`))
1574
+ if (isTuesday()) logger.log(clc.cyanBright(`[falsejs] Today is Tuesday`))
1575
+ if (isWednesday())
1576
+ logger.log(clc.cyanBright(`[falsejs] Today is Wednesday`))
1577
+ if (isThursday())
1578
+ logger.log(clc.cyanBright(`[falsejs] Today is Thursday`))
1579
+ if (isFriday()) logger.log(clc.cyanBright(`[falsejs] Today is Friday`))
1580
+ if (isSaturday())
1581
+ logger.log(clc.cyanBright(`[falsejs] Today is Saturday`))
1582
+ if (isSunday()) logger.log(clc.cyanBright(`[falsejs] Today is Sunday`))
1583
+ if (isWeekend()) logger.log(clc.cyanBright(`[falsejs] It's the weekend!`))
1584
+
1585
+ logger.log(
1586
+ clc.cyanBright(
1587
+ generalConcat(`[falsejs] Random happy emoji: `, randomHappyEmoji()),
1588
+ ),
1589
+ )
1590
+ logger.log(
1591
+ clc.cyanBright(
1592
+ concat(`[falsejs] Random angry emoji: `, randomAngryEmoji()),
1593
+ ),
1594
+ )
1595
+ logger.log(
1596
+ clc.cyanBright(
1597
+ generalConcat(`[falsejs] Random food emoji: `, randomFoodEmoji()),
1598
+ ),
1599
+ )
1600
+ construct({
1601
+ target: TernaryCompare,
1602
+ args: [loggingEnabled, dolphinFact, noop3],
1603
+ }).compare()()
1604
+
1605
+ // lets do something async
1606
+ if (shouldDoSomethingAsync) {
1607
+ doSomethingAsync(logger).then((l) => resultOfDoingSomethingAsync(l))
1608
+ }
1609
+ If(not(isNumberOddOrEven)(random, FALSE))
1610
+ .Then(() => {
1611
+ logger.log(clc.yellow(`[falsejs] Random number is not odd or even`))
1612
+ })
1613
+ .Else(() => {
1614
+ logger.log(
1615
+ pc.green(
1616
+ `[falsejs] Verified that the random number is odd or even`,
1617
+ ),
1618
+ )
1619
+ })
1620
+
1621
+ // is odd checks
1622
+ If(logicalNot(isIsOdd(isOdd)))
1623
+ .Then(() => {
1624
+ logger.log(clc.yellow(`[falsejs] isOdd is not isOdd.`))
1625
+ logger.log(clc.yellow(`[falsejs] That's weird`))
1626
+ })
1627
+ .Else(n0p3)
1628
+
1629
+ If(isIsOdd(isOddAndrew))
1630
+ .Then(() => {
1631
+ logger.log(pc.green(`[falsejs] Good for Andrew`))
1632
+ })
1633
+ .Else(noop6)
1634
+
1635
+ If(isIsOdd(isOd))
1636
+ .Then(() => {
1637
+ logger.log(
1638
+ pc.green(
1639
+ `[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)`,
1640
+ ),
1641
+ ) // TODO: Add pronunciaton
1642
+ })
1643
+ .Else(() => {
1644
+ /*
1645
+ logger.log(
1646
+ getValueOfThisStringText(
1647
+ clc.cyan(
1648
+ `[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 . `
1649
+ )
1650
+ )
1651
+ )*/
1652
+ })
1653
+ If(isIsOdd(isOddNum))
1654
+ .Then(() => {
1655
+ logger.log(pc.green(`[falsejs] Good for prasundas`))
1656
+ })
1657
+ .Else(noop4())
1658
+ If(isIsOdd(isIntegerOdd))
1659
+ .Then(() => {
1660
+ logger.log(pc.green(`[falsejs] Good for hoanduy1710`))
1661
+ })
1662
+ .Else(noop2)
1663
+
1664
+ If(isIsOdd(noteven))
1665
+ .Then(() => {
1666
+ logger.log(pc.green(`[falsejs] Good for DeaSTL`))
1667
+ })
1668
+ .Else(noop3)
1669
+
1670
+ If(isIsOdd(isUneven))
1671
+ .Then(() => {
1672
+ logger.log(pc.green(`[falsejs] Good for Robin`))
1673
+ })
1674
+ .Else(noop7)
1675
+
1676
+ If(isIsOdd(numberKind.odd))
1677
+ .Then(() => {
1678
+ logger.log(pc.green(`[falsejs] Good for goten`))
1679
+ })
1680
+ .Else(noop8)
1681
+
1682
+ If(isIsOdd(isOddFaster))
1683
+ .Then(() => {
1684
+ logger.log(
1685
+ pc.green(
1686
+ `[falsejs] Bad for bvpranu97, 'cos he wanted to make a faster version but his version is literally the same LOL`,
1687
+ ),
1688
+ )
1689
+ })
1690
+ .Else(noop9)
1691
+
1692
+ If(isIsOdd(gabrielBrotasIsOdd.isOdd))
1693
+ .Then(() => {
1694
+ logger.log(pc.green(`[falsejs] Good for Gabriel`))
1695
+ })
1696
+ .Else(blankSpace)
1697
+
1698
+ If(isIsOdd(returnIfOddNumber))
1699
+ .Then(() => {
1700
+ logger.log(pc.green(`[falsejs] Good for iamrahulpatel`))
1701
+ })
1702
+ .Else(blankSpaceNoop)
1703
+
1704
+ If(isIsOdd(numberIsOdd))
1705
+ .Then(() => {
1706
+ logger.log(pc.green(`[falsejs] Good for Scott`))
1707
+ })
1708
+ .Else(asyncUtilNoop)
1709
+
1710
+ If(isIsOdd(isNumOdd))
1711
+ .Then(() => {
1712
+ logger.log(pc.green(`[falsejs] Good for Shivam`))
1713
+ })
1714
+ .Else(() => noopGenerator().next())
1715
+
1716
+ If(isIsOdd(isOddNumber))
1717
+ .Then(() => {
1718
+ logger.log(pc.green(`[falsejs] Good for LinkDev`))
1719
+ })
1720
+ .Else(fjNoop)
1721
+
1722
+ If(isIsOdd(isNumberOdd))
1723
+ .Then(() => {
1724
+ logger.log(pc.green(`[falsejs] Good for aliraza401`))
1725
+ })
1726
+ .Else(lodashNoop)
1727
+
1728
+ If(isIsOdd(isThisNumberOdd))
1729
+ .Then(() => {
1730
+ logger.log(pc.green(`[falsejs] Good for makogai`))
1731
+ })
1732
+ .Else(lodash_Noop)
1733
+
1734
+ // now let's run some lua code
1735
+ const myLuaScript = `
1736
+ local message = "[falsejs] Bye from Lua!"
1737
+ print(message)
1738
+ `
1739
+ const parsedLua = luaParser.parse(myLuaScript)
1740
+ if (loggingEnabled) luaInterpreter.interpret(parsedLua) // run our lua code when the program ends
1741
+
1742
+ logger.log(
1743
+ colors.red(
1744
+ vValue(
1745
+ isuseless(
1746
+ StringValueof(lowercase(`[falsejs] This is in lowercase`)),
1747
+ ),
1748
+ ),
1749
+ ),
1750
+ )
1751
+ // okay we need to calculate false
1752
+
1753
+ if (not(isAprilFools)()) {
1754
+ if (disableAprilFoolsSideEffects) {
1755
+ if (strictDisableAprilFoolsSideEffectsCheck) {
1756
+ immediateError(
1757
+ colors.red(
1758
+ "April Fools side effects are disabled but it is not April Fools",
1759
+ { errorType: ERROR.Error },
1760
+ ),
1761
+ )
1762
+ return exit(one)
1763
+ } else {
1764
+ logger.log(
1765
+ clc.yellow(
1766
+ `[falsejs] No error was thrown because strict disable April Fools side effects checking was disabled`,
1767
+ ),
1768
+ )
1769
+ // call the _getFalse function
1770
+ const daresult = doop(
1771
+ _getFalse,
1772
+ random,
1773
+ calculateRandomLetterOrNumber(loggingEnabled),
1774
+ loggingEnabled,
1775
+ logger,
1776
+ )
1777
+ result = daresult.result
1778
+ succeededAttempt = daresult.succeededAttempt
1779
+ }
1780
+ } else {
1781
+ // call the _getFalse function
1782
+ const daresult = doop(
1783
+ _getFalse,
1784
+ random,
1785
+ calculateRandomLetterOrNumber(loggingEnabled),
1786
+ loggingEnabled,
1787
+ logger,
1788
+ )
1789
+ result = daresult.result
1790
+ succeededAttempt = daresult.succeededAttempt
1791
+ }
1792
+ } else {
1793
+ result = _calculateFalseAprilFools()
1794
+ logger.log(pc.green(`[falsejs] Value retrieved successfully`))
1795
+ }
1796
+
1797
+ // Validation
1798
+ logger.log(clc.cyanBright(`[falsejs] Beginning validation`))
1799
+
1800
+ logger.log(clc.cyanBright(`[falsejs] Beginning check one of validation`))
1801
+
1802
+ if (not(isRealBoolean)(result)) {
1803
+ logger.log(colors.red(`[falsejs] Result was not a boolean`))
1804
+ logger.log(colors.red(`[falsejs] Booleanifying the result`))
1805
+ // Make sure our result is always a boolean
1806
+ result = $Boolean(result)
1807
+
1808
+ if (not(isRealBoolean)(result)) {
1809
+ logger.log(
1810
+ colors.red(
1811
+ `[falsejs] Result is still not a boolean after booleanification`,
1812
+ ),
1813
+ )
1814
+ logger.log(
1815
+ colors.red(
1816
+ `[falsejs] Attempting to trace the source of the problem`,
1817
+ ),
1818
+ )
1819
+
1820
+ if (
1821
+ isRealBoolean(Boolean(result)) &&
1822
+ logicalNot(isRealBoolean($Boolean(result)))
1823
+ ) {
1824
+ logger.log(
1825
+ clc.yellow(
1826
+ `[falsejs] Traced the source of the problem to the package get-intrinsic by ljharb.`,
1827
+ ),
1828
+ )
1829
+ logger.log(
1830
+ clc.yellow(
1831
+ `[falsejs] Please file an issue on his GitHub repo for GetIntrinsic("%Boolean") not working.`,
1832
+ ),
1833
+ )
1834
+ result = Boolean(result) // now it's a boolean
1835
+ logger.log(
1836
+ pc.green(
1837
+ `[falsejs] Check one of validation completed successfullly with one error corrected.`,
1838
+ ),
1839
+ )
1840
+ } else {
1841
+ logger.log(colors.red(`[falsejs] × Validation failed to pass.`))
1842
+ throwError(
1843
+ construct({
1844
+ target: FalseJSValidationFailedToPassError,
1845
+ args: ["Validation failed to pass"],
1846
+ }),
1847
+ )
1848
+ return exit(one)
1849
+ }
1850
+ } else {
1851
+ logger.log(
1852
+ pc.green(
1853
+ `[falsejs] Check one of validation completed successfullly with one error corrected.`,
1854
+ ),
1855
+ )
1856
+ }
1857
+ } else {
1858
+ logger.log(
1859
+ pc.green(
1860
+ `[falsejs] Check one of validation completed successfully with zero errors corrected.`,
1861
+ ),
1862
+ )
1863
+ }
1864
+ logger.log(clc.cyanBright(`[falsejs] Beginning check two of validation`))
1865
+ if (isPreciselyTrue(result) && not(isAprilFools)()) {
1866
+ logger.log(
1867
+ colors.red(
1868
+ `[falsejs] Result was true and not false. Updating result to negation of result.`,
1869
+ ),
1870
+ )
1871
+ result = not(() => result)()
1872
+ logger.log(
1873
+ pc.green(
1874
+ `[falsejs] Check two of validation completed successfully with one error corrected.`,
1875
+ ),
1876
+ )
1877
+ } else {
1878
+ logger.log(
1879
+ pc.green(
1880
+ `[falsejs] Check two of validation completed successfully with zero errors corrected.`,
1881
+ ),
1882
+ )
1883
+ }
1884
+
1885
+ logger.log(pc.green(`[falsejs] Validation completed successfully`))
1886
+ logger.log(
1887
+ pc.green(
1888
+ `[falsejs] (There were only two validations, but they still narrowed down to make sure that the result was false.)`,
1889
+ ),
1890
+ )
1891
+ logger.log(
1892
+ pc.green(
1893
+ `[falsejs] False value has now been validated and calculated.`,
1894
+ ),
1895
+ )
1896
+
1897
+ // Compatibility mode
1898
+ if (isEqual(compatibilityMode, COMPATIBILITY_MODES.IE5)) {
1899
+ logger.log(c.yellow("[falsejs] IE5 Compatibility Mode Detected"))
1900
+ // Garbage collection
1901
+
1902
+ logger.log(
1903
+ c.yellow(
1904
+ "[falsejs:ie5] Activating JScript Engine Coercion Guard And Garbage Collection...",
1905
+ ),
1906
+ )
1907
+
1908
+ let CoercionGuardArrayRef___ = Null()
1909
+ const iterationCount = jQuery.multiply(
1910
+ jQuery.multiply(thirteenResolver(), thirteenResolver()),
1911
+ thirteenResolver(),
1912
+ )
1913
+
1914
+ logger.log(
1915
+ c.yellow(
1916
+ `[falsejs:ie5] Simulating ${iterationCount} JScript operations...`,
1917
+ ),
1918
+ )
1919
+
1920
+ for (let i = zr0(); i < iterationCount; i = i + one) {
1921
+ CoercionGuardArrayRef___ = construct({
1922
+ target: $Array,
1923
+ args: [iterationCount],
1924
+ }).fill(useGarbage.string())
1925
+
1926
+ const garbageCollector = jQuery.multiply(MathSqrt(i), i)
1927
+
1928
+ if (garbageCollector > jQuery.multiply(i, i)) {
1929
+ CoercionGuardArrayRef___.indexOf(
1930
+ immediateError(
1931
+ "[falsejs:ie5] IE5 Simulation error: Impossible math detected",
1932
+ ERROR.BaseError,
1933
+ ),
1934
+ ) // throws an error and passes it into indexof for no reason
1935
+ return exit(one)
1936
+ }
1937
+ }
1938
+
1939
+ logger.log(
1940
+ c.green(
1941
+ `[falsejs:ie5] JScript Highly Optimized Garbage Collection Completed`,
1942
+ ),
1943
+ )
1944
+
1945
+ const zeroValue = returnZero({
1946
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1947
+ loggingEnabled: FALSE,
1948
+ })
1949
+ const nullValue = Null()
1950
+
1951
+
1952
+ if (result == zeroValue) {
1953
+ // biome-ignore lint/suspicious/noTsIgnore: reason blabal
1954
+ // @ts-ignore
1955
+ if (result === zeroValue) {
1956
+ immediateError(
1957
+ `[falsejs:ie5] Critical Error: IE5-like strict coercion detected! Aborting.`,
1958
+ )
1959
+ return exit(one)
1960
+ }
1961
+ }
1962
+
1963
+ if (result == nullValue) {
1964
+ immediateError(
1965
+ `[falsejs:ie5] Fatal Error: Unexpected VBScript null coercion detected! Aborting.`,
1966
+ )
1967
+ return exit(one)
1968
+ }
1969
+
1970
+ logger.log(
1971
+ c.yellow(
1972
+ `[falsejs:ie5] Warning: Potential VBScript object coersion threat averted.`,
1973
+ ),
1974
+ )
1975
+ }
1976
+
1977
+ if (isEqual(compatibilityMode, COMPATIBILITY_MODES.NETSCAPE)) {
1978
+ logger.log(c.yellow("[falsejs] Netscape Compatibility Mode Detected"))
1979
+ logger.log(
1980
+ c.yellow(
1981
+ "[falsejs:netscape] Activating JavaScript 1.1 Type Coercion Audit...",
1982
+ ),
1983
+ )
1984
+
1985
+ const auditIterationCount =
1986
+ jQuery.add(
1987
+ Number(complexBooleanWithBias(logger)) + zr0(),
1988
+ returnZero({
1989
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1990
+ loggingEnabled: FALSE,
1991
+ }),
1992
+ ) *
1993
+ thirteenResolver() +
1994
+ thirteenResolver()
1995
+ let errorCount = returnZero({
1996
+ method: ZeroCalculationMethod.NumberPrototypeValue,
1997
+ loggingEnabled: FALSE,
1998
+ })
1999
+
2000
+ logger.log(
2001
+ c.yellow(
2002
+ `[falsejs:netscape] Running ${auditIterationCount} type checks against Netscape 1.1 standards...`,
2003
+ ),
2004
+ )
2005
+
2006
+ for (let i = zr0(); i < auditIterationCount; i = i + one) {
2007
+ const valueToCheck = construct({ target: $String, args: [i] })
2008
+ const isCoercedToFalse = valueToCheck == result
2009
+
2010
+ if (isCoercedToFalse && notStrictlyEqual(i, zr0())) {
2011
+ errorCount = errorCount + one
2012
+ if (errorCount > thirteenResolver()) {
2013
+ immediateError(
2014
+ "[falsejs:netscape] Netscape Audit Limit Reached! Aborting.",
2015
+ ERROR.BaseError,
2016
+ )
2017
+ return exit(one)
2018
+ }
2019
+ }
2020
+ }
2021
+
2022
+ logger.log(
2023
+ c.green(
2024
+ `[falsejs:netscape] Type Bug Checks Passed Succesfully! No More Than 13 Errors Was Reached!`,
2025
+ ),
2026
+ )
2027
+ logger.log(
2028
+ c.yellow(
2029
+ `[falsejs:netscape] DHTML Layer Tag Structural Integrity Test Begins`,
2030
+ ),
2031
+ )
2032
+
2033
+ const dom = new JSDOM(
2034
+ `<!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>`,
2035
+ )
2036
+
2037
+ const $ = cheerio.load(dom.serialize())
2038
+
2039
+ const layerElement = $("layer")
2040
+ const layerExists = layerElement.length > zr0()
2041
+
2042
+ const rawHTML = dom.window.document.body.innerHTML
2043
+ const strippedText = striptags(rawHTML)
2044
+ const integrityCheck = strippedText.includes("A Netscape Layer!")
2045
+
2046
+ if (layerExists && integrityCheck) {
2047
+ logger.log(
2048
+ c.green(
2049
+ "[falsejs:netscape] Deprecated DHTML Layer object state is nominal and content integrity is confirmed.",
2050
+ ),
2051
+ )
2052
+ } else {
2053
+ immediateError(
2054
+ `[falsejs:netscape] DHTML Check Failure! Type integrity compromised. Expected LAYER tag but got ${layerElement.length} elements.`,
2055
+ ERROR.BaseError,
2056
+ )
2057
+ return exit(one)
2058
+ }
2059
+
2060
+ if (typeof dom !== "undefined" && typeof $ !== "undefined") {
2061
+ logger.log(
2062
+ c.green(
2063
+ `[falsejs:netscape] Successfully managed memory from ${JSDOM.name} and ${cheerio.name}. No state pollution detected.`,
2064
+ ),
2065
+ )
2066
+ } else {
2067
+ immediateError(
2068
+ `[falsejs:netscape] Fatal Error: Global scope polluted by DOM libraries. Cannot guarantee false value.`,
2069
+ ERROR.BaseError,
2070
+ )
2071
+ return exit(one)
2072
+ }
2073
+ }
2074
+
2075
+ if (isEqual(compatibilityMode, COMPATIBILITY_MODES.OPERA_PRESTO)) {
2076
+ logger.log(
2077
+ c.yellow("[falsejs] Opera Presto Compatibility Mode Detected"),
2078
+ )
2079
+ logger.log(
2080
+ c.yellow(
2081
+ "[falsejs:presto] Activating Presto Engine Scripting Delay And DOM Audit...",
2082
+ ),
2083
+ )
2084
+
2085
+ const delayIterations = jQuery.multiply(
2086
+ thirteenResolver(),
2087
+ thirteenResolver(),
2088
+ )
2089
+
2090
+ logger.log(
2091
+ c.yellow(
2092
+ `[falsejs:presto] Initiating rendering for ${delayIterations} cycles...`,
2093
+ ),
2094
+ )
2095
+
2096
+ logger.log(
2097
+ c.green(
2098
+ "[falsejs:presto] Instantiating full-featured JSDOM environment...",
2099
+ ),
2100
+ )
2101
+ const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`, {
2102
+ url: "http://opera-presto-compatibility-check.local/",
2103
+ referrer: "http://netscape-dhtml-audit.local/", // Link to Netscape for extra flavor
2104
+ contentType: "text/html",
2105
+ includeNodeLocations: true,
2106
+ runScripts: "outside-only",
2107
+ })
2108
+ const { window: window_ } = dom // Destructure the actual window object
2109
+
2110
+ const startTime = new $Date().getTime()
2111
+ for (
2112
+ let i = returnZero({
2113
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2114
+ loggingEnabled: FALSE,
2115
+ });
2116
+ i < delayIterations;
2117
+ i = i + one
2118
+ ) {
2119
+ const renderingEvaluation =
2120
+ MathSin(MathRandom() * i) * MathCos(MathRandom() * i)
2121
+ if (renderingEvaluation > thirteenResolver() * thirteenResolver()) {
2122
+ immediateError(
2123
+ "[falsejs:presto] Presto Simulation Error: Time-Space Anomaly detected.",
2124
+ ERROR.BaseError,
2125
+ )
2126
+ return exit(one)
2127
+ }
2128
+ }
2129
+ const endTime = new $Date().getTime()
2130
+ const blockingTime = endTime - startTime
2131
+
2132
+ logger.log(
2133
+ c.green(
2134
+ `[falsejs:presto] Rendering complete. Latency: ${blockingTime}ms`,
2135
+ ),
2136
+ )
2137
+
2138
+ logger.log(
2139
+ c.yellow(
2140
+ "[falsejs:presto] Running Audit on JSDOM Window Properties...",
2141
+ ),
2142
+ )
2143
+
2144
+ const mockElement = window_.document.createElement("div")
2145
+ const propertyToCheck = "scrollIntoViewIfNeeded"
2146
+
2147
+ if (isEqual(typeof mockElement[propertyToCheck], "function")) {
2148
+ immediateError(
2149
+ `[falsejs:presto] Fatal Error: JSDOM Window polluted by Opera-era non-standard method '${propertyToCheck}'!`,
2150
+ ERROR.BaseError,
2151
+ )
2152
+ return exit(one)
2153
+ }
2154
+
2155
+ if (
2156
+ isEqual(typeof window_.opera, "object") &&
2157
+ window_.notStrictlyEqual(opera, null)
2158
+ ) {
2159
+ immediateError(
2160
+ "[falsejs:presto] Critical Error: Global 'opera' object detected in JSDOM Window!",
2161
+ ERROR.BaseError,
2162
+ )
2163
+ return exit(one)
2164
+ }
2165
+
2166
+ if (typeof window_.event !== "undefined") {
2167
+ logger.log(
2168
+ c.red(
2169
+ "[falsejs:presto] Warning: Global 'event' object detected. Input integrity compromised.",
2170
+ ),
2171
+ )
2172
+ } else {
2173
+ logger.log(
2174
+ c.green("[falsejs:presto] Global 'event' object is clean."),
2175
+ )
2176
+ }
2177
+
2178
+ window_.close()
2179
+ logger.log(
2180
+ c.yellow(
2181
+ "[falsejs:presto] JSDOM Window successfully closed and memory released.",
2182
+ ),
2183
+ )
2184
+
2185
+ logger.log(
2186
+ c.yellow(`[falsejs:presto] Presto audit completed successfully.`),
2187
+ )
2188
+ }
2189
+
2190
+ if (loggingEnabled) {
2191
+ const message = "thanks for using this package"
2192
+ let thesay = tacoWrap(emoji100.concat(SPACE, owoifyx(message)))
2193
+ const thesay2 = tacoWrap(emoji100.concat(SPACE, message))
2194
+ const thesay3 = tacoWrap(
2195
+ emoji100.concat(SPACE, uwuifier.uwuifySentence(message)),
2196
+ )
2197
+ if (isEqualTo(thesay, thesay2)) thesay = thesay3
2198
+ if (loggingEnabled) sayIt(thesay) // give our users a cute message so we can get their support
2199
+ // string interpelation
2200
+ ltc(
2201
+ `${clc.cyanBright(`[falsejs]`)} ${chalk.red("Chalk")}-${chalk.green(
2202
+ "ulated",
2203
+ )} ${chalk.yellow("the")} ${chalk.blue("boolean")} ${chalk.magenta(
2204
+ `value`,
2205
+ )} ${chalk.cyan(`false`)}`
2206
+ .concat(SPACE)
2207
+ .concat(emoji100),
2208
+ )
2209
+
2210
+ if (succeededAttempt != null) {
2211
+ ltc(
2212
+ concat(
2213
+ clc.cyanBright(`[falsejs]`).concat(SPACE),
2214
+ chalkbox.magenta(
2215
+ generalConcat(
2216
+ "The attempt that succeeded was attempt ",
2217
+ succeededAttempt,
2218
+ ),
2219
+ ),
2220
+ ),
2221
+ )
2222
+ fs.appendFileSync(
2223
+ ".falsejs/phone-number-log.txt",
2224
+ concat("succeeded attempt: ", succeededAttempt, "\n"),
2225
+ )
2226
+ }
2227
+ ltc(
2228
+ generalConcat(
2229
+ clc.cyanBright(`[falsejs]`).concat(SPACE),
2230
+ chalkbox.rainbow(`Thanks for using this package`),
2231
+ ),
2232
+ )
2233
+ ltc(
2234
+ concat(
2235
+ clc.cyanBright(`[falsejs]`).concat(SPACE),
2236
+ chalkbox.random(`I really appreciate it`),
2237
+ ),
2238
+ )
2239
+ ltc(
2240
+ generalConcat(
2241
+ clc.cyanBright(`[falsejs]`).concat(SPACE),
2242
+ chalkbox.america(`Star the repo and follow me on GitHub: `),
2243
+ ),
2244
+ )
2245
+ ltc(
2246
+ clc
2247
+ .cyanBright(`[falsejs]`)
2248
+ .concat(SPACE, chalk.underline("https://github.com/tj-commits")),
2249
+ )
2250
+ ltc(
2251
+ clc
2252
+ .cyanBright(`[falsejs]`)
2253
+ .concat(
2254
+ SPACE,
2255
+ clc.cyanBright(`And a very big random number is`),
2256
+ SPACE,
2257
+ ) +
2258
+ `${chalkbox.rainbow(
2259
+ numberFormatter.format(
2260
+ MathRound(
2261
+ surpriseArray.reduce((v, _, i, a) => {
2262
+
2263
+ return jQuery.add(v, a.getMember(i))
2264
+ }),
2265
+ ),
2266
+ ),
2267
+ )}`,
2268
+ )
2269
+ ltc(
2270
+ `${clc.cyanBright(`[falsejs]`).concat(SPACE)}${c.red(
2271
+ `False`,
2272
+ )}${c.green(`JS`)}`,
2273
+ )
2274
+ ltc(blankSpaces)
2275
+ }
2276
+
2277
+ return result
2278
+ }
2279
+
2280
+ functions.ReturnFalse = (
2281
+ enableLogging = NO,
2282
+ shouldDoSomethingAsync = NO,
2283
+ shouldDoSomethingAsyncWithIsTenThousand = NO,
2284
+ disableAprilFoolsSideEffects = NO,
2285
+ definitelyDisableAprilFoolsSideEffects = NO,
2286
+ strictDisableAprilFoolsSideEffectsCheck = YES,
2287
+ compatibilityMode = COMPATIBILITY_MODE.NONE,
2288
+ ) => {
2289
+ // validate our values
2290
+ if (
2291
+ not(isEqualTo)(enableLogging, NO) &&
2292
+ not(isEqualTo)(enableLogging, YES)
2293
+ ) {
2294
+ immediateError("enableLogging must be yes or no", {
2295
+ errorType: ERROR.TypeError,
2296
+ })
2297
+ return exit(one)
2298
+ }
2299
+ if (
2300
+ not(isEqualTo)(shouldDoSomethingAsync, NO) &&
2301
+ not(isEqualTo)(shouldDoSomethingAsync, YES)
2302
+ ) {
2303
+ immediateError("shouldDoSomethingAsync must be yes or no", {
2304
+ errorType: ERROR.TypeError,
2305
+ })
2306
+ return exit(one)
2307
+ }
2308
+ if (
2309
+ not(isEqualTo)(shouldDoSomethingAsyncWithIsTenThousand, NO) &&
2310
+ not(isEqualTo)(shouldDoSomethingAsyncWithIsTenThousand, YES)
2311
+ ) {
2312
+ immediateError(
2313
+ "shouldDoSomethingAsyncWithIsTenThousand must be yes or no",
2314
+ { errorType: ERROR.TypeError },
2315
+ )
2316
+ return exit(one)
2317
+ }
2318
+ if (
2319
+ not(isEqualTo)(disableAprilFoolsSideEffects, NO) &&
2320
+ not(isEqualTo)(disableAprilFoolsSideEffects, YES)
2321
+ ) {
2322
+ immediateError("disableAprilFoolsSideEffects must be yes or no", {
2323
+ errorType: ERROR.TypeError,
2324
+ })
2325
+ return exit(one)
2326
+ }
2327
+ if (
2328
+ not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, NO) &&
2329
+ not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, YES)
2330
+ ) {
2331
+ immediateError(
2332
+ "definitelyDisableAprilFoolsSideEffects must be yes or no",
2333
+ {
2334
+ errorType: ERROR.TypeError,
2335
+ },
2336
+ )
2337
+ return exit(one)
2338
+ }
2339
+ if (
2340
+ not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, NO) &&
2341
+ not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, YES)
2342
+ ) {
2343
+ immediateError(
2344
+ "strictDisableAprilFoolsSideEffectsCheck must be yes or no",
2345
+ {
2346
+ errorType: ERROR.TypeError,
2347
+ },
2348
+ )
2349
+ return exit(one)
2350
+ }
2351
+ if (
2352
+ not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.NONE) &&
2353
+ not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.IE5) &&
2354
+ not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.NETSCAPE) &&
2355
+ not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.OPERA_PRESTO)
2356
+ ) {
2357
+ immediateError("compatibilityMode must be a valid compatibility mode", {
2358
+ errorType: ERROR.TypeError,
2359
+ })
2360
+ }
2361
+ // let's say hello to our users and inform them logging enabled if it is
2362
+ if (
2363
+ isEqualTo(
2364
+ isTrue(
2365
+ { enableLogging: yesNo.parse(enableLogging) },
2366
+ "enableLogging",
2367
+ ),
2368
+ trueComparison.compare(),
2369
+ )
2370
+ ) {
2371
+ ltc(clc.cyanBright(`[falsejs] Logging enabled`))
2372
+ hello({ username, age: "it's called FalseJS!" })
2373
+
2374
+ mGenbaneko.say(clc.redBright(meow()))
2375
+ require("greenlantern") // Hello World
2376
+ ltc(clc.cyanBright(`[falsejs] Using Lodash version ${_.VERSION}`))
2377
+ ltc(
2378
+ clc.cyanBright(
2379
+ `[falsejs] Using Underscore version ${underscore.VERSION}`,
2380
+ ),
2381
+ )
2382
+ ltc(clc.cyanBright(`[falsejs] Using Axios version ${axios.VERSION}`))
2383
+ ltc(clc.cyanBright(`[falsejs] Using React version ${React.version}`))
2384
+ }
2385
+ // deduce a random number
2386
+ const randomNumber = add(MathFloor(MathRandom() * numberOneHundred), one)
2387
+ if (
2388
+ isEqualTo(
2389
+ isTrue(
2390
+ { enableLogging: yesNo.parse(enableLogging) },
2391
+ "enableLogging",
2392
+ ),
2393
+ Bro.TOTALLY === trueComparison.compare()
2394
+ ? Bro.TOTALLY
2395
+ : trueComparison.compare(),
2396
+ )
2397
+ ) {
2398
+ ltc(
2399
+ clc.cyanBright(`[falsejs] Random number ${randomNumber} calculated`), // lets inform our users if they have loggineanbled
2400
+ )
2401
+ ltc(
2402
+ clc.cyanBright(
2403
+ `[falsejs] Doing something async ${construct({
2404
+ target: TernaryCompare,
2405
+ args: [
2406
+ yesNo.parse(shouldDoSomethingAsync),
2407
+ "enabled",
2408
+ "disabled",
2409
+ ],
2410
+ }).compare()}`,
2411
+ ),
2412
+ )
2413
+ ltc(
2414
+ clc.cyanBright(
2415
+ `[falsejs] Doing something async with is-ten-thousand ${construct({
2416
+ target: TernaryCompare,
2417
+ args: [
2418
+ yesNo.parse(shouldDoSomethingAsyncWithIsTenThousand),
2419
+ "enabled",
2420
+ "disabled",
2421
+ ],
2422
+ }).compare()}`,
2423
+ ),
2424
+ )
2425
+ }
2426
+ const loggingEnabled = enableLogging
2427
+ const logger = {
2428
+ log(l) {
2429
+ if (isEqualTo(trueComparison.compare(), yesNo.parse(loggingEnabled)))
2430
+ ltc(l)
2431
+ },
2432
+ }
2433
+ if (not(yesNo.parse)(strictDisableAprilFoolsSideEffectsCheck)) {
2434
+ logger.log(
2435
+ clc.yellow(
2436
+ `[falsejs] Strict disable April Fools side effects checking disabled`,
2437
+ ),
2438
+ )
2439
+ }
2440
+ _return(
2441
+ vretriever.retrieve(
2442
+ immo(
2443
+ isuseless(
2444
+ vValue(
2445
+ _.identity(
2446
+ underscore.identity(
2447
+ literally(
2448
+ constant(
2449
+ lodashdotconstant(
2450
+ _.constant(
2451
+ underscore.constant(
2452
+ doop(
2453
+ _calculateFalse,
2454
+ randomNumber, // random number
2455
+ yesNo.parse(enableLogging), // eanble logging
2456
+ yesNo.parse(shouldDoSomethingAsync), // async
2457
+ yesNo.parse(
2458
+ shouldDoSomethingAsyncWithIsTenThousand,
2459
+ ), //async-is-ten-thousand
2460
+ yesNo.parse(disableAprilFoolsSideEffects) &&
2461
+ yesNo.parse(
2462
+ definitelyDisableAprilFoolsSideEffects,
2463
+ ),
2464
+ yesNo.parse(
2465
+ strictDisableAprilFoolsSideEffectsCheck,
2466
+ ),
2467
+ compatibilityMode,
2468
+ ),
2469
+ )(),
2470
+ )(),
2471
+ )(),
2472
+ )(),
2473
+ )(),
2474
+ ),
2475
+ ),
2476
+ ),
2477
+ ),
2478
+ ),
2479
+ ),
2480
+ )
2481
+ }
2482
+ variableHolder._FalseJSMainFunctionWotDoesFunctionality =
2483
+ functions.ReturnFalse
2484
+
2485
+ // now lets define some helper fufnctions
2486
+ // just some weaird boolean functions
2487
+
2488
+ function randomBoolean(biasThreshold, logger) {
2489
+ const randomValue = MathRandom()
2490
+ logger.log(
2491
+ clc.cyanBright(`[falsejs] Random number ${randomValue} calculated`),
2492
+ )
2493
+ const binaryString = jQuery
2494
+ .multiply(randomValue, (five() + five()) ** (five() + five() / five()))
2495
+ .toString(Two())
2496
+ const bitMask =
2497
+ five() * (five() + (five() - (five() / five() + five() / five()))) +
2498
+ five() / five() +
2499
+ five() / five() // the meaning of life
2500
+ const bitResult =
2501
+ parseInt(
2502
+ binaryString.slice(
2503
+ returnZero({
2504
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2505
+ loggingEnabled: logger.enableLogging,
2506
+ }),
2507
+ six(),
2508
+ ),
2509
+ Two(),
2510
+ ) ^ bitMask
2511
+ const segment = bitResult.toString(sixteen).slice(
2512
+ returnZero({
2513
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2514
+ loggingEnabled: logger.enableLogging,
2515
+ }),
2516
+ one,
2517
+ )
2518
+ const mappedValue = parseInt(segment, sixteen) % Two()
2519
+ const biasedRandomValue = construct({
2520
+ target: TernaryCompare,
2521
+ args: [
2522
+ MathRandom() < biasThreshold,
2523
+ one,
2524
+ returnZero({
2525
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2526
+ loggingEnabled: logger.enableLogging,
2527
+ }),
2528
+ ],
2529
+ }).compare()
2530
+
2531
+ const value = $.divide(add(mappedValue, biasedRandomValue), Two())
2532
+
2533
+ return value >= five() / five() / (five() / five() + five() / five())
2534
+ }
2535
+
2536
+ function complexBooleanWithBias(logger) {
2537
+ // Generate a pseudo-random number between 0 and 1
2538
+ const randomValue = MathRandom()
2539
+
2540
+ logger.log(
2541
+ clc.cyanBright(`[falsejs] Random number ${randomValue} calculated`),
2542
+ )
2543
+
2544
+ // Convert the random number to a high-precision string and manipulate it
2545
+ const highPrecisionString = (
2546
+ randomValue *
2547
+ (five() + five()) **
2548
+ (five() + (five() - (five() / five() + five() / five())))
2549
+ ).toFixed(zr0())
2550
+
2551
+ // Perform a base conversion
2552
+ const baseConverted = parseInt(highPrecisionString, ten).toString(
2553
+ (five() + (five() / five() + five() / five())) * five() +
2554
+ five() / five(),
2555
+ )
2556
+
2557
+ // Calculate a hash-like value using trigonometric functions
2558
+ const trigValue =
2559
+ parseFloat(
2560
+
2561
+ parseFloat(
2562
+
2563
+ add("0.", baseConverted),
2564
+ ) *
2565
+ (five() + (five() / five() + five() / five())) *
2566
+ five() +
2567
+ five() / five(),
2568
+ ) *
2569
+ PI *
2570
+ Two()
2571
+
2572
+ // Determine if this value is close to a specific fraction
2573
+ const isCloseToFraction =
2574
+ MathAbs(
2575
+ trigValue - five() / five() / (five() / five() + five() / five()),
2576
+ ) <
2577
+ five() / five() / (five() + five()) +
2578
+ (five() - (five() / five() + five() / five())) /
2579
+ (five() * (five() * (five() - five() / five())))
2580
+
2581
+ // Generate a secondary random number with a different scale
2582
+ const secondaryRandom = $.multiply(
2583
+ MathRandom(),
2584
+ (five() + five()) ** (five() - (five() / five() + five() / five())),
2585
+ )
2586
+
2587
+ // Check if the secondary random number is a prime number
2588
+ const isPrime = isPrimeNumber(MathRound(secondaryRandom), logger)
2589
+
2590
+ // Generate a bias value (6% chance of true)
2591
+ const biasThreshold = five() / five() / (five() + five())
2592
+ const biasRandom = MathRandom() < biasThreshold ? zr0() : one
2593
+
2594
+ // Combine the results using weighted averaging
2595
+ const combinedResult = $.divide(
2596
+ isCloseToFraction + isPrime + biasRandom,
2597
+ three(),
2598
+ )
2599
+
2600
+ // Return boolean based on the final weighted result
2601
+ return (
2602
+ combinedResult >= five() / five() / (five() / five() + five() / five())
2603
+ )
2604
+ }
2605
+
2606
+ function weirdestBoolean(logger) {
2607
+ // Step 1: Generate a pseudo-random floating-point number
2608
+ const randomValue = MathRandom()
2609
+
2610
+ // Step 2: Create a string representation of the random number in base-36
2611
+ const base36String = (
2612
+ randomValue *
2613
+ (five() + five()) **
2614
+ ((five() - (five() / five() + five() / five())) *
2615
+ (five() - five() / five()))
2616
+ )
2617
+ .toFixed(zr0())
2618
+ .toString()
2619
+
2620
+ // Step 3: Create a hash-like transformation by summing ASCII values of characters
2621
+ var asciiSum = zr0()
2622
+ for (const char of base36String) {
2623
+ asciiSum += char.charCodeAt(zr0())
2624
+ }
2625
+
2626
+ // Step 4: Generate a non-trivial number by applying a sequence of bit manipulations
2627
+ const bitManipulated =
2628
+ (asciiSum ^
2629
+ ((five() / five() + five() / five()) *
2630
+ (five() + five()) ** (five() - five() / five()) +
2631
+ (five() - (five() / five() + five() / five())) *
2632
+ (five() + five()) **
2633
+ (five() - (five() / five() + five() / five())) +
2634
+ (five() / five()) *
2635
+ (five() * (five() * (five() - five() / five()))) +
2636
+ (five() - (five() / five() + five() / five())) *
2637
+ (five() + five()))) &
2638
+ (five() *
2639
+ (five() *
2640
+ (five() +
2641
+ five() +
2642
+ (five() / five() / (five() + five()) +
2643
+ five() / five() / (five() + five()))))) // XOR and mask to get a byte
2644
+
2645
+ // Step 5: Convert the result to a binary string and calculate a checksum-like value
2646
+ const binaryString = bitManipulated
2647
+ .toString(Two())
2648
+ .padStart(eightToolkit.constants.EIGHT, "0")
2649
+ const checksum = Array.from(binaryString).reduce(
2650
+ (acc, bit) => acc + parseInt(bit, ten),
2651
+ zr0(),
2652
+ )
2653
+
2654
+ // Step 6: Use a matrix of numbers to obscure the logic
2655
+ const someNumbers = [
2656
+ Two(),
2657
+ three(),
2658
+ five(),
2659
+ seven(),
2660
+ eleven(),
2661
+ thirteenResolver(),
2662
+ integer17(),
2663
+ nineteenify(logger.enableLogging),
2664
+ TWENTY_THREE,
2665
+ TWENTY_THREE + six(),
2666
+ ]
2667
+
2668
+ const matrixIndex = checksum % someNumbers.length
2669
+ const primeValue = someNumbers[matrixIndex]
2670
+
2671
+ // Step 7: Generate a complex random number using trigonometric functions
2672
+ const trigValue = $.multiply(
2673
+ $.divide($.multiply(primeValue, PI), four()),
2674
+ (five() + five()) ** (five() - (five() / five() + five() / five())) /
2675
+ (five() / five() + five() / five()),
2676
+ )
2677
+ const isAboveThreshold =
2678
+ trigValue >
2679
+ (five() + five()) ** (five() - (five() / five() + five() / five())) /
2680
+ (five() / five() + five() / five()) // Arbitrary threshold
2681
+
2682
+ // Step 8: Introduce an additional layer of randomness with bias
2683
+ const bias =
2684
+ MathRandom() <
2685
+ (five() - five() / five()) / five() +
2686
+ five() / (five() * (five() * (five() - five() / five()))) -
2687
+ five() /
2688
+ five() /
2689
+ (five() + five()) **
2690
+ (five() * (five() - five() / five() - five() / five()) +
2691
+ five() / five()) -
2692
+ five() / five() / (five() + five())
2693
+ ? one
2694
+ : zr0() // 75% chance of 1
2695
+
2696
+ // Step 9: Combine results using a complex formula
2697
+ const weirdBoolean = $Boolean((isAboveThreshold ? one : zr0()) ^ bias) // XOR operation
2698
+
2699
+ // Step 10: Calculate complex boolean with bias from other function
2700
+ const complexBoolean = complexBooleanWithBias(logger)
2701
+
2702
+ // Step 11: Calculate random boolean with bias from other function
2703
+ const randomBool = randomBoolean(
2704
+ (five() - five() / five()) / five() +
2705
+ five() / (five() * (five() * (five() - five() / five()))) -
2706
+ five() /
2707
+ five() /
2708
+ (five() + five()) **
2709
+ (five() * (five() - five() / five() - five() / five()) +
2710
+ five() / five()) -
2711
+ five() / five() / (five() + five()) / (five() + five()),
2712
+ logger,
2713
+ )
2714
+
2715
+ // Step 12: Add them together
2716
+ const sum = weirdBoolean + complexBoolean + randomBool
2717
+
2718
+ // Step 13: Randomly add one to it
2719
+ const sumWhichMayBeSuccessed =
2720
+ MathRandom() < five() / five() / (five() / five() + five() / five())
2721
+ ? successor(sum)
2722
+ : sum
2723
+
2724
+ // Step 14: Round down or up
2725
+ const finalBooleanNotNegated = $.equals(
2726
+ MathFloor(sumWhichMayBeSuccessed) % Two(),
2727
+ zr0(),
2728
+ )
2729
+
2730
+ // Step 15: Negate finalBoolean
2731
+ const finalBooleanComparison = construct({
2732
+ target: TernaryCompare,
2733
+ args: [finalBooleanNotNegated, FALSE, t()],
2734
+ })
2735
+
2736
+ return finalBooleanComparison.compare()
2737
+ }
2738
+
2739
+ function isPrimeNumber(num, logger) {
2740
+ if (num <= one) return FALSE
2741
+ if (num <= three()) return t()
2742
+ if (
2743
+ logicalOr(
2744
+ $.equals(
2745
+ num % Two(),
2746
+ returnZero({
2747
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2748
+ loggingEnabled: logger.enableLogging,
2749
+ }),
2750
+ ),
2751
+ $.equals(
2752
+ num % three(),
2753
+ returnZero({
2754
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2755
+ loggingEnabled: logger.enableLogging,
2756
+ }),
2757
+ ),
2758
+ )
2759
+ ) {
2760
+ return FALSE
2761
+ }
2762
+ var i = five()
2763
+ while ($.multiply(i, i) <= num) {
2764
+ if (
2765
+ $.equals(
2766
+ num % i,
2767
+ returnZero({
2768
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2769
+ loggingEnabled: logger.enableLogging,
2770
+ }),
2771
+ ) ||
2772
+ num %
2773
+ Number(
2774
+ $.equals(
2775
+ $.add(i, Two()),
2776
+ returnZero({
2777
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2778
+ loggingEnabled: logger.enableLogging,
2779
+ }),
2780
+ ),
2781
+ )
2782
+ ) {
2783
+ return FALSE
2784
+ }
2785
+ i = $.add(i, six())
2786
+ }
2787
+ return tVal
2788
+ }
2789
+
2790
+ function StringValueof(value) {
2791
+ return value.toString()
2792
+ }
2793
+
2794
+ function couldThisCouldItBeFalse(
2795
+ aValueThatMightBeTheBooleanValueFalseButIDKYet,
2796
+ ) {
2797
+ const specimen = aValueThatMightBeTheBooleanValueFalseButIDKYet
2798
+ if (specimen == undefined()) return FALSE // noway its false if its undefined
2799
+ if (isOne(specimen)) return FALSE
2800
+ if (isTrue({ specimen }, "specimen")) return FALSE
2801
+ if (isNegativeZero({ specimen }, "specimen")) return _f()
2802
+ if (is(specimen).thirteen()) return _f()
2803
+ return specimen === _f()
2804
+ }
2805
+
2806
+ variableHolder._FalseJSIsFalse = function is_This_Value_false(
2807
+ v,
2808
+ loggingEnabled,
2809
+ ) {
2810
+ if (logicalNot(isRealBoolean(loggingEnabled)))
2811
+ loggingEnabled = !(loggingEnabled === NO)
2812
+ const value = v
2813
+ const garbage = useGarbage() // use some garbage
2814
+ const isgarbage = logicalAnd(
2815
+ not(isRealBoolean)(garbage),
2816
+ isEqualTo(v, garbage),
2817
+ )
2818
+ const cond =
2819
+ logicalNot(isgarbage) &&
2820
+ logicalNot(isWDS(v)) &&
2821
+ logicalNot(checkOdd(v, { throwOnNonNumber: FALSE, throwOnNonInteger: FALSE, allowNumberStrings: FALSE, enableDebug: FALSE })) &&
2822
+ logicalNot(checkEven(v, { throwOnNonNumber: FALSE, throwOnNonInteger: FALSE, allowNumberStrings: FALSE, enableDebug: FALSE })) &&
2823
+ notStrictlyEqual(v, one) &&
2824
+ notStrictlyEqual(v, Two()) &&
2825
+ notStrictlyEqual(v, three()) &&
2826
+ notStrictlyEqual(v, four()) &&
2827
+ notStrictlyEqual(v, five()) &&
2828
+ notStrictlyEqual(v, six()) &&
2829
+ notStrictlyEqual(v, seven()) &&
2830
+ notStrictlyEqual(v, eightToolkit.constants.EIGHT) &&
2831
+ notStrictlyEqual(v, ninev9()) &&
2832
+ notStrictlyEqual(v, ten) &&
2833
+ notStrictlyEqual(v, eleven()) &&
2834
+ notStrictlyEqual(v, twelve()) &&
2835
+ notStrictlyEqual(v, thirteenResolver()) &&
2836
+ notStrictlyEqual(v, fourteen) &&
2837
+ notStrictlyEqual(v, fifteen) &&
2838
+ notStrictlyEqual(
2839
+ v,
2840
+ fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn,
2841
+ ) &&
2842
+ notStrictlyEqual(v, sixteen) &&
2843
+ notStrictlyEqual(v, integer17()) &&
2844
+ notStrictlyEqual(v, Eighteen()) &&
2845
+ notStrictlyEqual(v, nineteenify(loggingEnabled)) &&
2846
+ notStrictlyEqual(v, numbertwenty(loggingEnabled)) &&
2847
+ notStrictlyEqual(v, always21()) &&
2848
+ notStrictlyEqual(v, twentytwo) &&
2849
+ notStrictlyEqual(v, TWENTY_THREE) &&
2850
+ notStrictlyEqual(v, sixtyseven()) &&
2851
+ notStrictlyEqual(v, parseInt(theNumberSeven, ten)) &&
2852
+ notStrictlyEqual(v, theNumberSeven) &&
2853
+ logicalNot(isUndefined(v)) &&
2854
+ logicalNot(isNull(v)) &&
2855
+ logicalNot(isNil(v)) &&
2856
+ isUnnull(v) &&
2857
+ not(isNil)(v) &&
2858
+ logicalNot(isEqual(value, NO)) &&
2859
+ logicalNot(isEqual(value, YES)) &&
2860
+ logicalNot(isEqualTo(value, NO)) &&
2861
+ logicalNot(isEqualTo(value, YES)) &&
2862
+ logicalNot(couldThisCouldItBeTrue(v)) &&
2863
+ logicalNot(isNaN(v)) &&
2864
+ logicalNot(isNegativeInfinity(v)) &&
2865
+ logicalNot(isNegativeZero2(v)) &&
2866
+ logicalNot(is0_2.isNegativeZero(v)) &&
2867
+ logicalNot(isNegativeZero(v)) &&
2868
+ logicalNot(isPositiveZero(v)) &&
2869
+ logicalNot(is0_2.isPositiveZero(v)) &&
2870
+ logicalNot(is0(v)) &&
2871
+ logicalNot(is0_2.isZero(v)) &&
2872
+ logicalNot(zerosurgeIsZero(v, loggingEnabled)) &&
2873
+ logicalNot(is1(v)) &&
2874
+ logicalNot(isTwo(v)) &&
2875
+ logicalNot(isThree(v)) &&
2876
+ logicalNot(isFour(v)) &&
2877
+ logicalNot(isFive(v)) &&
2878
+ logicalNot(isSix(v)) &&
2879
+ logicalNot(isSeven(v)) &&
2880
+ logicalNot(eightToolkit.isEight(v)) &&
2881
+ logicalNot(is(v).thirteen()) &&
2882
+ logicalNot(isHundred(v)) &&
2883
+ logicalNot(isThousand(v)) &&
2884
+ logicalNot(isTenThousand(v)) &&
2885
+ logicalNot(isEqTenThousand(v)) &&
2886
+ logicalNot(isNumber(v)) &&
2887
+ logicalNot(isActualNumber(v)) &&
2888
+ logicalNot(isIsOdd(v)) &&
2889
+ logicalNot(isOd(v)) &&
2890
+ notStrictlyEqual(v, t()) &&
2891
+ notStrictlyEqual(v, tVal) &&
2892
+ notStrictlyEqual(v, trueValue) &&
2893
+ util.isDeepStrictEqual(v, _f()) &&
2894
+ isEqualTo(v, _f()) &&
2895
+ isEqual(v, _f()) &&
2896
+ _.isEqual(v, _f()) &&
2897
+ underscore.isEqual(v, _f()) &&
2898
+ strictlyEqual(v, _f()) &&
2899
+ strictlyEqual(v, FALSE) &&
2900
+ couldThisCouldItBeFalse(v)
2901
+
2902
+ return cond
2903
+ }
2904
+
2905
+ variableHolder._FalseJSjQueryPlugin = function jQueryPlugin() {
2906
+ // Inject into jQuery
2907
+
2908
+ jQuery.False = variableHolder._FalseJSMainFunctionWotDoesFunctionality
2909
+
2910
+ jQuery.isFalse = variableHolder._FalseJSIsFalse
2911
+ }
2912
+
2913
+ variableHolder._FalseJSExpressMiddleware = function expressMiddleware(
2914
+ req,
2915
+ _res,
2916
+ next,
2917
+ ) {
2918
+ // Add our function to the request object
2919
+ req.False = variableHolder._FalseJSMainFunctionWotDoesFunctionality
2920
+ req.isFalse = variableHolder._FalseJSIsFalse
2921
+ next() // Continue to the next middleware or route
2922
+ }
2923
+
2924
+ function getNo() {
2925
+ const NO = require("no/dist/main")
2926
+ const NoComponent = () => {
2927
+ return React.createElement("div", Null(), NO)
2928
+ }
2929
+ const noElement = React.createElement(NoComponent)
2930
+ const html = cheerio
2931
+ .load(ReactDOMServer.renderToString(noElement))("div")
2932
+ .toString()
2933
+ const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`)
2934
+ dom.window.document.body.innerHTML = html
2935
+ const bodyContent = dom.window.document.querySelector("body").innerHTML
2936
+ return striptags(bodyContent)
2937
+ }
2938
+
2939
+ function getValueOfThisStringText(text) {
2940
+ return text
2941
+ }
2942
+
2943
+ function calculateRandomLetterOrNumber(loggingEnabled) {
2944
+ const uniqueId = uuid.v4()
2945
+ const uniqueId2 = crypto.randomUUID()
2946
+ const dashlessUUID = uniqueId.replaceAll("-", emptyString)
2947
+ const dashlessUUID2 = uniqueId2.replaceAll("-", emptyString)
2948
+ const combinedUUID = emptyString.concat(dashlessUUID, dashlessUUID2)
2949
+ const randomCharacter = StringCharAt.call(
2950
+ combinedUUID,
2951
+ $.add(
2952
+ MathFloor($.multiply(MathRandom(), getStringLength(combinedUUID))),
2953
+ one,
2954
+ ),
2955
+ )
2956
+ if (loggingEnabled) {
2957
+ ltc(
2958
+ clc.cyanBright(
2959
+ `[falsejs] Random character calculated: ${randomCharacter}`,
2960
+ ),
2961
+ )
2962
+ }
2963
+ return randomCharacter
2964
+ }
2965
+
2966
+ class falsejs {
2967
+ static False = variableHolder._FalseJSMainFunctionWotDoesFunctionality
2968
+ static isFalse = variableHolder._FalseJSIsFalse
2969
+ static injectIntojQuery = variableHolder._FalseJSjQueryPlugin
2970
+ static expressMiddleware = variableHolder._FalseJSExpressMiddleware
2971
+ static COMPATIBILITY_MODE = COMPATIBILITY_MODES
2972
+ // static FalseAsAService = variableHolder.FalseAsAService
2973
+
2974
+ constructor() {
2975
+ immediateError("falsejs is not a constructor", ERROR.TypeError)
2976
+ }
2977
+ }
2978
+
2979
+ return falsejs
2980
+ })
2981
+ }