@falsejs/falsejs 3.3.3 → 4.1.0

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