tiny-essentials 1.11.0 → 1.12.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.
Files changed (72) hide show
  1. package/README.md +12 -3
  2. package/dist/node_modules/firebase-functions/lib/common/trace.cjs +82 -0
  3. package/dist/node_modules/firebase-functions/lib/logger/common.cjs +57 -0
  4. package/dist/node_modules/firebase-functions/lib/logger/index.cjs +158 -0
  5. package/dist/v1/TinyBasicsEs.js +1653 -1
  6. package/dist/v1/TinyBasicsEs.min.js +1 -1
  7. package/dist/v1/TinyDragDropDetector.js +307 -0
  8. package/dist/v1/TinyDragDropDetector.min.js +1 -0
  9. package/dist/v1/TinyDragger.js +3563 -0
  10. package/dist/v1/TinyDragger.min.js +2 -0
  11. package/dist/v1/TinyDragger.min.js.LICENSE.txt +8 -0
  12. package/dist/v1/TinyEssentials.js +2783 -2
  13. package/dist/v1/TinyEssentials.min.js +1 -1
  14. package/dist/v1/TinyNotifyCenter.js +32 -0
  15. package/dist/v1/TinyNotifyCenter.min.js +1 -1
  16. package/dist/v1/TinyToastNotify.js +24 -0
  17. package/dist/v1/TinyToastNotify.min.js +1 -1
  18. package/dist/v1/TinyUploadClicker.js +5235 -0
  19. package/dist/v1/TinyUploadClicker.min.js +2 -0
  20. package/dist/v1/TinyUploadClicker.min.js.LICENSE.txt +8 -0
  21. package/dist/v1/basics/fileManager.cjs +524 -0
  22. package/dist/v1/basics/fileManager.d.mts +209 -0
  23. package/dist/v1/basics/fileManager.mjs +443 -0
  24. package/dist/v1/basics/fullScreen.cjs +134 -0
  25. package/dist/v1/basics/fullScreen.d.mts +8 -0
  26. package/dist/v1/basics/fullScreen.mjs +121 -0
  27. package/dist/v1/basics/html.cjs +262 -0
  28. package/dist/v1/basics/html.d.mts +63 -0
  29. package/dist/v1/basics/html.mjs +208 -0
  30. package/dist/v1/basics/index.cjs +40 -0
  31. package/dist/v1/basics/index.d.mts +38 -1
  32. package/dist/v1/basics/index.mjs +4 -1
  33. package/dist/v1/build/TinyDragDropDetector.cjs +7 -0
  34. package/dist/v1/build/TinyDragDropDetector.d.mts +3 -0
  35. package/dist/v1/build/TinyDragDropDetector.mjs +2 -0
  36. package/dist/v1/build/TinyDragger.cjs +7 -0
  37. package/dist/v1/build/TinyDragger.d.mts +3 -0
  38. package/dist/v1/build/TinyDragger.mjs +2 -0
  39. package/dist/v1/build/TinyUploadClicker.cjs +7 -0
  40. package/dist/v1/build/TinyUploadClicker.d.mts +3 -0
  41. package/dist/v1/build/TinyUploadClicker.mjs +2 -0
  42. package/dist/v1/css/TinyDraggerExample.css +21 -0
  43. package/dist/v1/css/TinyDraggerExample.min.css +1 -0
  44. package/dist/v1/index.cjs +44 -0
  45. package/dist/v1/index.d.mts +40 -1
  46. package/dist/v1/index.mjs +6 -1
  47. package/dist/v1/libs/TinyDragDropDetector.cjs +268 -0
  48. package/dist/v1/libs/TinyDragDropDetector.d.mts +123 -0
  49. package/dist/v1/libs/TinyDragDropDetector.mjs +228 -0
  50. package/dist/v1/libs/TinyDragger.cjs +801 -0
  51. package/dist/v1/libs/TinyDragger.d.mts +300 -0
  52. package/dist/v1/libs/TinyDragger.mjs +689 -0
  53. package/dist/v1/libs/TinyNotifyCenter.cjs +32 -0
  54. package/dist/v1/libs/TinyNotifyCenter.d.mts +9 -0
  55. package/dist/v1/libs/TinyNotifyCenter.mjs +28 -0
  56. package/dist/v1/libs/TinyToastNotify.cjs +24 -0
  57. package/dist/v1/libs/TinyToastNotify.d.mts +8 -0
  58. package/dist/v1/libs/TinyToastNotify.mjs +20 -0
  59. package/dist/v1/libs/TinyUploadClicker.cjs +223 -0
  60. package/dist/v1/libs/TinyUploadClicker.d.mts +80 -0
  61. package/dist/v1/libs/TinyUploadClicker.mjs +182 -0
  62. package/docs/v1/README.md +8 -2
  63. package/docs/v1/basics/fileManager.md +222 -0
  64. package/docs/v1/basics/fullScreen.md +183 -0
  65. package/docs/v1/basics/html.md +243 -0
  66. package/docs/v1/libs/TinyDragDropDetector.md +143 -0
  67. package/docs/v1/libs/TinyDragger.md +415 -0
  68. package/docs/v1/libs/TinyLevelUp.md +1 -1
  69. package/docs/v1/libs/TinyNotifyCenter.md +20 -0
  70. package/docs/v1/libs/TinyToastNotify.md +19 -0
  71. package/docs/v1/libs/TinyUploadClicker.md +108 -0
  72. package/package.json +12 -2
@@ -1,6 +1,13 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
+ /***/ 41:
5
+ /***/ (() => {
6
+
7
+ /* (ignored) */
8
+
9
+ /***/ }),
10
+
4
11
  /***/ 251:
5
12
  /***/ ((__unused_webpack_module, exports) => {
6
13
 
@@ -2075,6 +2082,735 @@ function fromByteArray (uint8) {
2075
2082
  }
2076
2083
 
2077
2084
 
2085
+ /***/ }),
2086
+
2087
+ /***/ 606:
2088
+ /***/ ((module) => {
2089
+
2090
+ // shim for using process in browser
2091
+ var process = module.exports = {};
2092
+
2093
+ // cached from whatever global is present so that test runners that stub it
2094
+ // don't break things. But we need to wrap it in a try catch in case it is
2095
+ // wrapped in strict mode code which doesn't define any globals. It's inside a
2096
+ // function because try/catches deoptimize in certain engines.
2097
+
2098
+ var cachedSetTimeout;
2099
+ var cachedClearTimeout;
2100
+
2101
+ function defaultSetTimout() {
2102
+ throw new Error('setTimeout has not been defined');
2103
+ }
2104
+ function defaultClearTimeout () {
2105
+ throw new Error('clearTimeout has not been defined');
2106
+ }
2107
+ (function () {
2108
+ try {
2109
+ if (typeof setTimeout === 'function') {
2110
+ cachedSetTimeout = setTimeout;
2111
+ } else {
2112
+ cachedSetTimeout = defaultSetTimout;
2113
+ }
2114
+ } catch (e) {
2115
+ cachedSetTimeout = defaultSetTimout;
2116
+ }
2117
+ try {
2118
+ if (typeof clearTimeout === 'function') {
2119
+ cachedClearTimeout = clearTimeout;
2120
+ } else {
2121
+ cachedClearTimeout = defaultClearTimeout;
2122
+ }
2123
+ } catch (e) {
2124
+ cachedClearTimeout = defaultClearTimeout;
2125
+ }
2126
+ } ())
2127
+ function runTimeout(fun) {
2128
+ if (cachedSetTimeout === setTimeout) {
2129
+ //normal enviroments in sane situations
2130
+ return setTimeout(fun, 0);
2131
+ }
2132
+ // if setTimeout wasn't available but was latter defined
2133
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
2134
+ cachedSetTimeout = setTimeout;
2135
+ return setTimeout(fun, 0);
2136
+ }
2137
+ try {
2138
+ // when when somebody has screwed with setTimeout but no I.E. maddness
2139
+ return cachedSetTimeout(fun, 0);
2140
+ } catch(e){
2141
+ try {
2142
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
2143
+ return cachedSetTimeout.call(null, fun, 0);
2144
+ } catch(e){
2145
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
2146
+ return cachedSetTimeout.call(this, fun, 0);
2147
+ }
2148
+ }
2149
+
2150
+
2151
+ }
2152
+ function runClearTimeout(marker) {
2153
+ if (cachedClearTimeout === clearTimeout) {
2154
+ //normal enviroments in sane situations
2155
+ return clearTimeout(marker);
2156
+ }
2157
+ // if clearTimeout wasn't available but was latter defined
2158
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
2159
+ cachedClearTimeout = clearTimeout;
2160
+ return clearTimeout(marker);
2161
+ }
2162
+ try {
2163
+ // when when somebody has screwed with setTimeout but no I.E. maddness
2164
+ return cachedClearTimeout(marker);
2165
+ } catch (e){
2166
+ try {
2167
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
2168
+ return cachedClearTimeout.call(null, marker);
2169
+ } catch (e){
2170
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
2171
+ // Some versions of I.E. have different rules for clearTimeout vs setTimeout
2172
+ return cachedClearTimeout.call(this, marker);
2173
+ }
2174
+ }
2175
+
2176
+
2177
+
2178
+ }
2179
+ var queue = [];
2180
+ var draining = false;
2181
+ var currentQueue;
2182
+ var queueIndex = -1;
2183
+
2184
+ function cleanUpNextTick() {
2185
+ if (!draining || !currentQueue) {
2186
+ return;
2187
+ }
2188
+ draining = false;
2189
+ if (currentQueue.length) {
2190
+ queue = currentQueue.concat(queue);
2191
+ } else {
2192
+ queueIndex = -1;
2193
+ }
2194
+ if (queue.length) {
2195
+ drainQueue();
2196
+ }
2197
+ }
2198
+
2199
+ function drainQueue() {
2200
+ if (draining) {
2201
+ return;
2202
+ }
2203
+ var timeout = runTimeout(cleanUpNextTick);
2204
+ draining = true;
2205
+
2206
+ var len = queue.length;
2207
+ while(len) {
2208
+ currentQueue = queue;
2209
+ queue = [];
2210
+ while (++queueIndex < len) {
2211
+ if (currentQueue) {
2212
+ currentQueue[queueIndex].run();
2213
+ }
2214
+ }
2215
+ queueIndex = -1;
2216
+ len = queue.length;
2217
+ }
2218
+ currentQueue = null;
2219
+ draining = false;
2220
+ runClearTimeout(timeout);
2221
+ }
2222
+
2223
+ process.nextTick = function (fun) {
2224
+ var args = new Array(arguments.length - 1);
2225
+ if (arguments.length > 1) {
2226
+ for (var i = 1; i < arguments.length; i++) {
2227
+ args[i - 1] = arguments[i];
2228
+ }
2229
+ }
2230
+ queue.push(new Item(fun, args));
2231
+ if (queue.length === 1 && !draining) {
2232
+ runTimeout(drainQueue);
2233
+ }
2234
+ };
2235
+
2236
+ // v8 likes predictible objects
2237
+ function Item(fun, array) {
2238
+ this.fun = fun;
2239
+ this.array = array;
2240
+ }
2241
+ Item.prototype.run = function () {
2242
+ this.fun.apply(null, this.array);
2243
+ };
2244
+ process.title = 'browser';
2245
+ process.browser = true;
2246
+ process.env = {};
2247
+ process.argv = [];
2248
+ process.version = ''; // empty string to avoid regexp issues
2249
+ process.versions = {};
2250
+
2251
+ function noop() {}
2252
+
2253
+ process.on = noop;
2254
+ process.addListener = noop;
2255
+ process.once = noop;
2256
+ process.off = noop;
2257
+ process.removeListener = noop;
2258
+ process.removeAllListeners = noop;
2259
+ process.emit = noop;
2260
+ process.prependListener = noop;
2261
+ process.prependOnceListener = noop;
2262
+
2263
+ process.listeners = function (name) { return [] }
2264
+
2265
+ process.binding = function (name) {
2266
+ throw new Error('process.binding is not supported');
2267
+ };
2268
+
2269
+ process.cwd = function () { return '/' };
2270
+ process.chdir = function (dir) {
2271
+ throw new Error('process.chdir is not supported');
2272
+ };
2273
+ process.umask = function() { return 0; };
2274
+
2275
+
2276
+ /***/ }),
2277
+
2278
+ /***/ 975:
2279
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2280
+
2281
+ "use strict";
2282
+ /* provided dependency */ var process = __webpack_require__(606);
2283
+ // 'path' module extracted from Node.js v8.11.1 (only the posix part)
2284
+ // transplited with Babel
2285
+
2286
+ // Copyright Joyent, Inc. and other Node contributors.
2287
+ //
2288
+ // Permission is hereby granted, free of charge, to any person obtaining a
2289
+ // copy of this software and associated documentation files (the
2290
+ // "Software"), to deal in the Software without restriction, including
2291
+ // without limitation the rights to use, copy, modify, merge, publish,
2292
+ // distribute, sublicense, and/or sell copies of the Software, and to permit
2293
+ // persons to whom the Software is furnished to do so, subject to the
2294
+ // following conditions:
2295
+ //
2296
+ // The above copyright notice and this permission notice shall be included
2297
+ // in all copies or substantial portions of the Software.
2298
+ //
2299
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
2300
+ // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2301
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
2302
+ // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
2303
+ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
2304
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
2305
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
2306
+
2307
+
2308
+
2309
+ function assertPath(path) {
2310
+ if (typeof path !== 'string') {
2311
+ throw new TypeError('Path must be a string. Received ' + JSON.stringify(path));
2312
+ }
2313
+ }
2314
+
2315
+ // Resolves . and .. elements in a path with directory names
2316
+ function normalizeStringPosix(path, allowAboveRoot) {
2317
+ var res = '';
2318
+ var lastSegmentLength = 0;
2319
+ var lastSlash = -1;
2320
+ var dots = 0;
2321
+ var code;
2322
+ for (var i = 0; i <= path.length; ++i) {
2323
+ if (i < path.length)
2324
+ code = path.charCodeAt(i);
2325
+ else if (code === 47 /*/*/)
2326
+ break;
2327
+ else
2328
+ code = 47 /*/*/;
2329
+ if (code === 47 /*/*/) {
2330
+ if (lastSlash === i - 1 || dots === 1) {
2331
+ // NOOP
2332
+ } else if (lastSlash !== i - 1 && dots === 2) {
2333
+ if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 /*.*/ || res.charCodeAt(res.length - 2) !== 46 /*.*/) {
2334
+ if (res.length > 2) {
2335
+ var lastSlashIndex = res.lastIndexOf('/');
2336
+ if (lastSlashIndex !== res.length - 1) {
2337
+ if (lastSlashIndex === -1) {
2338
+ res = '';
2339
+ lastSegmentLength = 0;
2340
+ } else {
2341
+ res = res.slice(0, lastSlashIndex);
2342
+ lastSegmentLength = res.length - 1 - res.lastIndexOf('/');
2343
+ }
2344
+ lastSlash = i;
2345
+ dots = 0;
2346
+ continue;
2347
+ }
2348
+ } else if (res.length === 2 || res.length === 1) {
2349
+ res = '';
2350
+ lastSegmentLength = 0;
2351
+ lastSlash = i;
2352
+ dots = 0;
2353
+ continue;
2354
+ }
2355
+ }
2356
+ if (allowAboveRoot) {
2357
+ if (res.length > 0)
2358
+ res += '/..';
2359
+ else
2360
+ res = '..';
2361
+ lastSegmentLength = 2;
2362
+ }
2363
+ } else {
2364
+ if (res.length > 0)
2365
+ res += '/' + path.slice(lastSlash + 1, i);
2366
+ else
2367
+ res = path.slice(lastSlash + 1, i);
2368
+ lastSegmentLength = i - lastSlash - 1;
2369
+ }
2370
+ lastSlash = i;
2371
+ dots = 0;
2372
+ } else if (code === 46 /*.*/ && dots !== -1) {
2373
+ ++dots;
2374
+ } else {
2375
+ dots = -1;
2376
+ }
2377
+ }
2378
+ return res;
2379
+ }
2380
+
2381
+ function _format(sep, pathObject) {
2382
+ var dir = pathObject.dir || pathObject.root;
2383
+ var base = pathObject.base || (pathObject.name || '') + (pathObject.ext || '');
2384
+ if (!dir) {
2385
+ return base;
2386
+ }
2387
+ if (dir === pathObject.root) {
2388
+ return dir + base;
2389
+ }
2390
+ return dir + sep + base;
2391
+ }
2392
+
2393
+ var posix = {
2394
+ // path.resolve([from ...], to)
2395
+ resolve: function resolve() {
2396
+ var resolvedPath = '';
2397
+ var resolvedAbsolute = false;
2398
+ var cwd;
2399
+
2400
+ for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
2401
+ var path;
2402
+ if (i >= 0)
2403
+ path = arguments[i];
2404
+ else {
2405
+ if (cwd === undefined)
2406
+ cwd = process.cwd();
2407
+ path = cwd;
2408
+ }
2409
+
2410
+ assertPath(path);
2411
+
2412
+ // Skip empty entries
2413
+ if (path.length === 0) {
2414
+ continue;
2415
+ }
2416
+
2417
+ resolvedPath = path + '/' + resolvedPath;
2418
+ resolvedAbsolute = path.charCodeAt(0) === 47 /*/*/;
2419
+ }
2420
+
2421
+ // At this point the path should be resolved to a full absolute path, but
2422
+ // handle relative paths to be safe (might happen when process.cwd() fails)
2423
+
2424
+ // Normalize the path
2425
+ resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);
2426
+
2427
+ if (resolvedAbsolute) {
2428
+ if (resolvedPath.length > 0)
2429
+ return '/' + resolvedPath;
2430
+ else
2431
+ return '/';
2432
+ } else if (resolvedPath.length > 0) {
2433
+ return resolvedPath;
2434
+ } else {
2435
+ return '.';
2436
+ }
2437
+ },
2438
+
2439
+ normalize: function normalize(path) {
2440
+ assertPath(path);
2441
+
2442
+ if (path.length === 0) return '.';
2443
+
2444
+ var isAbsolute = path.charCodeAt(0) === 47 /*/*/;
2445
+ var trailingSeparator = path.charCodeAt(path.length - 1) === 47 /*/*/;
2446
+
2447
+ // Normalize the path
2448
+ path = normalizeStringPosix(path, !isAbsolute);
2449
+
2450
+ if (path.length === 0 && !isAbsolute) path = '.';
2451
+ if (path.length > 0 && trailingSeparator) path += '/';
2452
+
2453
+ if (isAbsolute) return '/' + path;
2454
+ return path;
2455
+ },
2456
+
2457
+ isAbsolute: function isAbsolute(path) {
2458
+ assertPath(path);
2459
+ return path.length > 0 && path.charCodeAt(0) === 47 /*/*/;
2460
+ },
2461
+
2462
+ join: function join() {
2463
+ if (arguments.length === 0)
2464
+ return '.';
2465
+ var joined;
2466
+ for (var i = 0; i < arguments.length; ++i) {
2467
+ var arg = arguments[i];
2468
+ assertPath(arg);
2469
+ if (arg.length > 0) {
2470
+ if (joined === undefined)
2471
+ joined = arg;
2472
+ else
2473
+ joined += '/' + arg;
2474
+ }
2475
+ }
2476
+ if (joined === undefined)
2477
+ return '.';
2478
+ return posix.normalize(joined);
2479
+ },
2480
+
2481
+ relative: function relative(from, to) {
2482
+ assertPath(from);
2483
+ assertPath(to);
2484
+
2485
+ if (from === to) return '';
2486
+
2487
+ from = posix.resolve(from);
2488
+ to = posix.resolve(to);
2489
+
2490
+ if (from === to) return '';
2491
+
2492
+ // Trim any leading backslashes
2493
+ var fromStart = 1;
2494
+ for (; fromStart < from.length; ++fromStart) {
2495
+ if (from.charCodeAt(fromStart) !== 47 /*/*/)
2496
+ break;
2497
+ }
2498
+ var fromEnd = from.length;
2499
+ var fromLen = fromEnd - fromStart;
2500
+
2501
+ // Trim any leading backslashes
2502
+ var toStart = 1;
2503
+ for (; toStart < to.length; ++toStart) {
2504
+ if (to.charCodeAt(toStart) !== 47 /*/*/)
2505
+ break;
2506
+ }
2507
+ var toEnd = to.length;
2508
+ var toLen = toEnd - toStart;
2509
+
2510
+ // Compare paths to find the longest common path from root
2511
+ var length = fromLen < toLen ? fromLen : toLen;
2512
+ var lastCommonSep = -1;
2513
+ var i = 0;
2514
+ for (; i <= length; ++i) {
2515
+ if (i === length) {
2516
+ if (toLen > length) {
2517
+ if (to.charCodeAt(toStart + i) === 47 /*/*/) {
2518
+ // We get here if `from` is the exact base path for `to`.
2519
+ // For example: from='/foo/bar'; to='/foo/bar/baz'
2520
+ return to.slice(toStart + i + 1);
2521
+ } else if (i === 0) {
2522
+ // We get here if `from` is the root
2523
+ // For example: from='/'; to='/foo'
2524
+ return to.slice(toStart + i);
2525
+ }
2526
+ } else if (fromLen > length) {
2527
+ if (from.charCodeAt(fromStart + i) === 47 /*/*/) {
2528
+ // We get here if `to` is the exact base path for `from`.
2529
+ // For example: from='/foo/bar/baz'; to='/foo/bar'
2530
+ lastCommonSep = i;
2531
+ } else if (i === 0) {
2532
+ // We get here if `to` is the root.
2533
+ // For example: from='/foo'; to='/'
2534
+ lastCommonSep = 0;
2535
+ }
2536
+ }
2537
+ break;
2538
+ }
2539
+ var fromCode = from.charCodeAt(fromStart + i);
2540
+ var toCode = to.charCodeAt(toStart + i);
2541
+ if (fromCode !== toCode)
2542
+ break;
2543
+ else if (fromCode === 47 /*/*/)
2544
+ lastCommonSep = i;
2545
+ }
2546
+
2547
+ var out = '';
2548
+ // Generate the relative path based on the path difference between `to`
2549
+ // and `from`
2550
+ for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
2551
+ if (i === fromEnd || from.charCodeAt(i) === 47 /*/*/) {
2552
+ if (out.length === 0)
2553
+ out += '..';
2554
+ else
2555
+ out += '/..';
2556
+ }
2557
+ }
2558
+
2559
+ // Lastly, append the rest of the destination (`to`) path that comes after
2560
+ // the common path parts
2561
+ if (out.length > 0)
2562
+ return out + to.slice(toStart + lastCommonSep);
2563
+ else {
2564
+ toStart += lastCommonSep;
2565
+ if (to.charCodeAt(toStart) === 47 /*/*/)
2566
+ ++toStart;
2567
+ return to.slice(toStart);
2568
+ }
2569
+ },
2570
+
2571
+ _makeLong: function _makeLong(path) {
2572
+ return path;
2573
+ },
2574
+
2575
+ dirname: function dirname(path) {
2576
+ assertPath(path);
2577
+ if (path.length === 0) return '.';
2578
+ var code = path.charCodeAt(0);
2579
+ var hasRoot = code === 47 /*/*/;
2580
+ var end = -1;
2581
+ var matchedSlash = true;
2582
+ for (var i = path.length - 1; i >= 1; --i) {
2583
+ code = path.charCodeAt(i);
2584
+ if (code === 47 /*/*/) {
2585
+ if (!matchedSlash) {
2586
+ end = i;
2587
+ break;
2588
+ }
2589
+ } else {
2590
+ // We saw the first non-path separator
2591
+ matchedSlash = false;
2592
+ }
2593
+ }
2594
+
2595
+ if (end === -1) return hasRoot ? '/' : '.';
2596
+ if (hasRoot && end === 1) return '//';
2597
+ return path.slice(0, end);
2598
+ },
2599
+
2600
+ basename: function basename(path, ext) {
2601
+ if (ext !== undefined && typeof ext !== 'string') throw new TypeError('"ext" argument must be a string');
2602
+ assertPath(path);
2603
+
2604
+ var start = 0;
2605
+ var end = -1;
2606
+ var matchedSlash = true;
2607
+ var i;
2608
+
2609
+ if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {
2610
+ if (ext.length === path.length && ext === path) return '';
2611
+ var extIdx = ext.length - 1;
2612
+ var firstNonSlashEnd = -1;
2613
+ for (i = path.length - 1; i >= 0; --i) {
2614
+ var code = path.charCodeAt(i);
2615
+ if (code === 47 /*/*/) {
2616
+ // If we reached a path separator that was not part of a set of path
2617
+ // separators at the end of the string, stop now
2618
+ if (!matchedSlash) {
2619
+ start = i + 1;
2620
+ break;
2621
+ }
2622
+ } else {
2623
+ if (firstNonSlashEnd === -1) {
2624
+ // We saw the first non-path separator, remember this index in case
2625
+ // we need it if the extension ends up not matching
2626
+ matchedSlash = false;
2627
+ firstNonSlashEnd = i + 1;
2628
+ }
2629
+ if (extIdx >= 0) {
2630
+ // Try to match the explicit extension
2631
+ if (code === ext.charCodeAt(extIdx)) {
2632
+ if (--extIdx === -1) {
2633
+ // We matched the extension, so mark this as the end of our path
2634
+ // component
2635
+ end = i;
2636
+ }
2637
+ } else {
2638
+ // Extension does not match, so our result is the entire path
2639
+ // component
2640
+ extIdx = -1;
2641
+ end = firstNonSlashEnd;
2642
+ }
2643
+ }
2644
+ }
2645
+ }
2646
+
2647
+ if (start === end) end = firstNonSlashEnd;else if (end === -1) end = path.length;
2648
+ return path.slice(start, end);
2649
+ } else {
2650
+ for (i = path.length - 1; i >= 0; --i) {
2651
+ if (path.charCodeAt(i) === 47 /*/*/) {
2652
+ // If we reached a path separator that was not part of a set of path
2653
+ // separators at the end of the string, stop now
2654
+ if (!matchedSlash) {
2655
+ start = i + 1;
2656
+ break;
2657
+ }
2658
+ } else if (end === -1) {
2659
+ // We saw the first non-path separator, mark this as the end of our
2660
+ // path component
2661
+ matchedSlash = false;
2662
+ end = i + 1;
2663
+ }
2664
+ }
2665
+
2666
+ if (end === -1) return '';
2667
+ return path.slice(start, end);
2668
+ }
2669
+ },
2670
+
2671
+ extname: function extname(path) {
2672
+ assertPath(path);
2673
+ var startDot = -1;
2674
+ var startPart = 0;
2675
+ var end = -1;
2676
+ var matchedSlash = true;
2677
+ // Track the state of characters (if any) we see before our first dot and
2678
+ // after any path separator we find
2679
+ var preDotState = 0;
2680
+ for (var i = path.length - 1; i >= 0; --i) {
2681
+ var code = path.charCodeAt(i);
2682
+ if (code === 47 /*/*/) {
2683
+ // If we reached a path separator that was not part of a set of path
2684
+ // separators at the end of the string, stop now
2685
+ if (!matchedSlash) {
2686
+ startPart = i + 1;
2687
+ break;
2688
+ }
2689
+ continue;
2690
+ }
2691
+ if (end === -1) {
2692
+ // We saw the first non-path separator, mark this as the end of our
2693
+ // extension
2694
+ matchedSlash = false;
2695
+ end = i + 1;
2696
+ }
2697
+ if (code === 46 /*.*/) {
2698
+ // If this is our first dot, mark it as the start of our extension
2699
+ if (startDot === -1)
2700
+ startDot = i;
2701
+ else if (preDotState !== 1)
2702
+ preDotState = 1;
2703
+ } else if (startDot !== -1) {
2704
+ // We saw a non-dot and non-path separator before our dot, so we should
2705
+ // have a good chance at having a non-empty extension
2706
+ preDotState = -1;
2707
+ }
2708
+ }
2709
+
2710
+ if (startDot === -1 || end === -1 ||
2711
+ // We saw a non-dot character immediately before the dot
2712
+ preDotState === 0 ||
2713
+ // The (right-most) trimmed path component is exactly '..'
2714
+ preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
2715
+ return '';
2716
+ }
2717
+ return path.slice(startDot, end);
2718
+ },
2719
+
2720
+ format: function format(pathObject) {
2721
+ if (pathObject === null || typeof pathObject !== 'object') {
2722
+ throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject);
2723
+ }
2724
+ return _format('/', pathObject);
2725
+ },
2726
+
2727
+ parse: function parse(path) {
2728
+ assertPath(path);
2729
+
2730
+ var ret = { root: '', dir: '', base: '', ext: '', name: '' };
2731
+ if (path.length === 0) return ret;
2732
+ var code = path.charCodeAt(0);
2733
+ var isAbsolute = code === 47 /*/*/;
2734
+ var start;
2735
+ if (isAbsolute) {
2736
+ ret.root = '/';
2737
+ start = 1;
2738
+ } else {
2739
+ start = 0;
2740
+ }
2741
+ var startDot = -1;
2742
+ var startPart = 0;
2743
+ var end = -1;
2744
+ var matchedSlash = true;
2745
+ var i = path.length - 1;
2746
+
2747
+ // Track the state of characters (if any) we see before our first dot and
2748
+ // after any path separator we find
2749
+ var preDotState = 0;
2750
+
2751
+ // Get non-dir info
2752
+ for (; i >= start; --i) {
2753
+ code = path.charCodeAt(i);
2754
+ if (code === 47 /*/*/) {
2755
+ // If we reached a path separator that was not part of a set of path
2756
+ // separators at the end of the string, stop now
2757
+ if (!matchedSlash) {
2758
+ startPart = i + 1;
2759
+ break;
2760
+ }
2761
+ continue;
2762
+ }
2763
+ if (end === -1) {
2764
+ // We saw the first non-path separator, mark this as the end of our
2765
+ // extension
2766
+ matchedSlash = false;
2767
+ end = i + 1;
2768
+ }
2769
+ if (code === 46 /*.*/) {
2770
+ // If this is our first dot, mark it as the start of our extension
2771
+ if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;
2772
+ } else if (startDot !== -1) {
2773
+ // We saw a non-dot and non-path separator before our dot, so we should
2774
+ // have a good chance at having a non-empty extension
2775
+ preDotState = -1;
2776
+ }
2777
+ }
2778
+
2779
+ if (startDot === -1 || end === -1 ||
2780
+ // We saw a non-dot character immediately before the dot
2781
+ preDotState === 0 ||
2782
+ // The (right-most) trimmed path component is exactly '..'
2783
+ preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
2784
+ if (end !== -1) {
2785
+ if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);else ret.base = ret.name = path.slice(startPart, end);
2786
+ }
2787
+ } else {
2788
+ if (startPart === 0 && isAbsolute) {
2789
+ ret.name = path.slice(1, startDot);
2790
+ ret.base = path.slice(1, end);
2791
+ } else {
2792
+ ret.name = path.slice(startPart, startDot);
2793
+ ret.base = path.slice(startPart, end);
2794
+ }
2795
+ ret.ext = path.slice(startDot, end);
2796
+ }
2797
+
2798
+ if (startPart > 0) ret.dir = path.slice(0, startPart - 1);else if (isAbsolute) ret.dir = '/';
2799
+
2800
+ return ret;
2801
+ },
2802
+
2803
+ sep: '/',
2804
+ delimiter: ':',
2805
+ win32: null,
2806
+ posix: null
2807
+ };
2808
+
2809
+ posix.posix = posix;
2810
+
2811
+ module.exports = posix;
2812
+
2813
+
2078
2814
  /***/ })
2079
2815
 
2080
2816
  /******/ });
@@ -2143,25 +2879,62 @@ __webpack_require__.r(__webpack_exports__);
2143
2879
  // EXPORTS
2144
2880
  __webpack_require__.d(__webpack_exports__, {
2145
2881
  addAiMarkerShortcut: () => (/* reexport */ addAiMarkerShortcut),
2882
+ areHtmlElsColliding: () => (/* reexport */ areHtmlElsColliding),
2146
2883
  arraySortPositions: () => (/* reexport */ arraySortPositions),
2147
2884
  asyncReplace: () => (/* reexport */ asyncReplace),
2885
+ backupFile: () => (/* reexport */ backupFile),
2886
+ clearDirectory: () => (/* reexport */ clearDirectory),
2148
2887
  cloneObjTypeOrder: () => (/* reexport */ cloneObjTypeOrder),
2149
2888
  countObj: () => (/* reexport */ countObj),
2889
+ dirExists: () => (/* reexport */ dirExists),
2890
+ dirSize: () => (/* reexport */ dirSize),
2891
+ documentIsFullScreen: () => (/* reexport */ documentIsFullScreen),
2892
+ ensureCopyFile: () => (/* reexport */ ensureCopyFile),
2893
+ ensureDirectory: () => (/* reexport */ ensureDirectory),
2894
+ exitFullScreen: () => (/* reexport */ exitFullScreen),
2150
2895
  extendObjType: () => (/* reexport */ extendObjType),
2896
+ fetchJson: () => (/* reexport */ fetchJson),
2897
+ fileExists: () => (/* reexport */ fileExists),
2898
+ fileSize: () => (/* reexport */ fileSize),
2151
2899
  formatBytes: () => (/* reexport */ formatBytes),
2152
2900
  formatCustomTimer: () => (/* reexport */ formatCustomTimer),
2153
2901
  formatDayTimer: () => (/* reexport */ formatDayTimer),
2154
2902
  formatTimer: () => (/* reexport */ formatTimer),
2155
2903
  getAge: () => (/* reexport */ getAge),
2904
+ getHtmlElBorders: () => (/* reexport */ getHtmlElBorders),
2905
+ getHtmlElBordersWidth: () => (/* reexport */ getHtmlElBordersWidth),
2906
+ getHtmlElMargin: () => (/* reexport */ getHtmlElMargin),
2907
+ getHtmlElPadding: () => (/* reexport */ getHtmlElPadding),
2908
+ getLatestBackupPath: () => (/* reexport */ getLatestBackupPath),
2156
2909
  getSimplePerc: () => (/* reexport */ getSimplePerc),
2157
2910
  getTimeDuration: () => (/* reexport */ getTimeDuration),
2911
+ isDirEmpty: () => (/* reexport */ isDirEmpty),
2912
+ isFullScreenMode: () => (/* reexport */ isFullScreenMode),
2158
2913
  isJsonObject: () => (/* reexport */ isJsonObject),
2914
+ isScreenFilled: () => (/* reexport */ isScreenFilled),
2915
+ listDirs: () => (/* reexport */ listDirs),
2916
+ listFiles: () => (/* reexport */ listFiles),
2159
2917
  objType: () => (/* reexport */ objType),
2918
+ offFullScreenChange: () => (/* reexport */ offFullScreenChange),
2919
+ onFullScreenChange: () => (/* reexport */ onFullScreenChange),
2920
+ readJsonBlob: () => (/* reexport */ readJsonBlob),
2921
+ readJsonFile: () => (/* reexport */ readJsonFile),
2922
+ renameFileAddPrefixSuffix: () => (/* reexport */ renameFileAddPrefixSuffix),
2923
+ renameFileBatch: () => (/* reexport */ renameFileBatch),
2924
+ renameFileNormalizeCase: () => (/* reexport */ renameFileNormalizeCase),
2925
+ renameFilePadNumbers: () => (/* reexport */ renameFilePadNumbers),
2926
+ renameFileRegex: () => (/* reexport */ renameFileRegex),
2160
2927
  reorderObjTypeOrder: () => (/* reexport */ reorderObjTypeOrder),
2928
+ requestFullScreen: () => (/* reexport */ requestFullScreen),
2929
+ restoreLatestBackup: () => (/* reexport */ restoreLatestBackup),
2161
2930
  ruleOfThree: () => (/* reexport */ ruleOfThree),
2931
+ saveJsonFile: () => (/* reexport */ saveJsonFile),
2162
2932
  shuffleArray: () => (/* reexport */ shuffleArray),
2163
2933
  toTitleCase: () => (/* reexport */ toTitleCase),
2164
- toTitleCaseLowerFirst: () => (/* reexport */ toTitleCaseLowerFirst)
2934
+ toTitleCaseLowerFirst: () => (/* reexport */ toTitleCaseLowerFirst),
2935
+ tryDeleteFile: () => (/* reexport */ tryDeleteFile),
2936
+ writeJsonFile: () => (/* reexport */ writeJsonFile),
2937
+ writeTextFile: () => (/* reexport */ writeTextFile)
2165
2938
  });
2166
2939
 
2167
2940
  ;// ./src/legacy/libs/arraySortPositions.mjs
@@ -2831,6 +3604,385 @@ extendObjType([
2831
3604
  ],
2832
3605
  ]);
2833
3606
 
3607
+ ;// ./src/v1/basics/html.mjs
3608
+
3609
+
3610
+ /**
3611
+ * Checks if two DOM elements are colliding on the screen.
3612
+ *
3613
+ * @param {Element} elem1 - First DOM element.
3614
+ * @param {Element} elem2 - Second DOM element.
3615
+ * @returns {boolean} - Returns true if the elements are colliding.
3616
+ */
3617
+ function areHtmlElsColliding(elem1, elem2) {
3618
+ const rect1 = elem1.getBoundingClientRect();
3619
+ const rect2 = elem2.getBoundingClientRect();
3620
+
3621
+ return !(
3622
+ rect1.right < rect2.left ||
3623
+ rect1.left > rect2.right ||
3624
+ rect1.bottom < rect2.top ||
3625
+ rect1.top > rect2.bottom
3626
+ );
3627
+ }
3628
+
3629
+ /**
3630
+ * Reads and parses a JSON data using FileReader.
3631
+ * Throws an error if the content is not valid JSON.
3632
+ * @param {File} file
3633
+ * @returns {Promise<any>}
3634
+ */
3635
+ function readJsonBlob(file) {
3636
+ return new Promise((resolve, reject) => {
3637
+ const reader = new FileReader();
3638
+
3639
+ reader.onload = () => {
3640
+ try {
3641
+ // @ts-ignore
3642
+ const result = JSON.parse(reader.result);
3643
+ resolve(result);
3644
+ } catch (error) {
3645
+ // @ts-ignore
3646
+ reject(new Error(`Invalid JSON in file: ${file.name}\n${error.message}`));
3647
+ }
3648
+ };
3649
+
3650
+ reader.onerror = () => {
3651
+ reject(new Error(`Error reading file: ${file.name}`));
3652
+ };
3653
+
3654
+ reader.readAsText(file);
3655
+ });
3656
+ }
3657
+
3658
+ /**
3659
+ * Saves a JSON object as a downloadable file.
3660
+ * @param {string} filename
3661
+ * @param {any} data
3662
+ * @param {number} [spaces=2]
3663
+ */
3664
+ function saveJsonFile(filename, data, spaces = 2) {
3665
+ const json = JSON.stringify(data, null, spaces);
3666
+ const blob = new Blob([json], { type: 'application/json' });
3667
+ const url = URL.createObjectURL(blob);
3668
+
3669
+ const link = document.createElement('a');
3670
+ link.href = url;
3671
+ link.download = filename;
3672
+
3673
+ document.body.appendChild(link);
3674
+ link.click();
3675
+ document.body.removeChild(link);
3676
+
3677
+ URL.revokeObjectURL(url);
3678
+ }
3679
+
3680
+ /**
3681
+ * Loads and parses a JSON from a remote URL using Fetch API.
3682
+ *
3683
+ * @param {string} url - The full URL to fetch JSON from.
3684
+ * @param {Object} [options] - Optional settings.
3685
+ * @param {string} [options.method="GET"] - HTTP method to use (GET, POST, etc.).
3686
+ * @param {any} [options.body] - Request body (only for methods like POST, PUT).
3687
+ * @param {number} [options.timeout=0] - Timeout in milliseconds (ignored if signal is provided).
3688
+ * @param {number} [options.retries=0] - Number of retry attempts (ignored if signal is provided).
3689
+ * @param {Headers|Record<string, *>} [options.headers={}] - Additional headers.
3690
+ * @param {AbortSignal|null} [options.signal] - External AbortSignal; disables timeout and retries.
3691
+ * @returns {Promise<*>} Parsed JSON object.
3692
+ * @throws {Error} Throws if fetch fails, times out, or returns invalid JSON.
3693
+ */
3694
+ async function fetchJson(
3695
+ url,
3696
+ { method = 'GET', body, timeout = 0, retries = 0, headers = {}, signal = null } = {},
3697
+ ) {
3698
+ if (
3699
+ typeof url !== 'string' ||
3700
+ (!url.startsWith('../') &&
3701
+ !url.startsWith('./') &&
3702
+ !url.startsWith('/') &&
3703
+ !url.startsWith('https://') &&
3704
+ !url.startsWith('http://'))
3705
+ )
3706
+ throw new Error('Invalid URL: must be a valid http or https address.');
3707
+
3708
+ if (typeof method !== 'string' || !method.trim())
3709
+ throw new Error('Invalid method: must be a non-empty string.');
3710
+
3711
+ if (!signal) {
3712
+ if (
3713
+ typeof timeout !== 'number' ||
3714
+ !Number.isFinite(timeout) ||
3715
+ Number.isNaN(timeout) ||
3716
+ timeout < 0
3717
+ )
3718
+ throw new Error('Invalid timeout: must be a positive number.');
3719
+
3720
+ if (
3721
+ typeof retries !== 'number' ||
3722
+ !Number.isFinite(retries) ||
3723
+ Number.isNaN(retries) ||
3724
+ retries < 0
3725
+ )
3726
+ throw new Error('Invalid retries: must be a positive number.');
3727
+ }
3728
+
3729
+ const attempts = signal ? 1 : retries + 1;
3730
+ /** @type {Error|null} */
3731
+ let lastError = null;
3732
+
3733
+ for (let attempt = 0; attempt < attempts; attempt++) {
3734
+ const controller = signal ? null : new AbortController();
3735
+ const localSignal = signal || (controller?.signal ?? null);
3736
+ const timer =
3737
+ !signal && timeout && controller ? setTimeout(() => controller.abort(), timeout) : null;
3738
+
3739
+ try {
3740
+ const response = await fetch(url, {
3741
+ method: method.toUpperCase(),
3742
+ headers: {
3743
+ Accept: 'application/json',
3744
+ ...headers,
3745
+ },
3746
+ body: body !== undefined ? (isJsonObject(body) ? JSON.stringify(body) : body) : undefined,
3747
+ signal: localSignal,
3748
+ });
3749
+
3750
+ if (timer) clearTimeout(timer);
3751
+
3752
+ if (!response.ok) throw new Error(`HTTP error: ${response.status} ${response.statusText}`);
3753
+
3754
+ const contentType = response.headers.get('content-type') || '';
3755
+ if (!contentType.includes('application/json'))
3756
+ throw new Error(`Unexpected content-type: ${contentType}`);
3757
+
3758
+ const data = await response.json();
3759
+
3760
+ if (!isJsonObject(data)) throw new Error('Received invalid data instead of valid JSON.');
3761
+
3762
+ return data;
3763
+ } catch (err) {
3764
+ lastError = /** @type {Error} */ (err);
3765
+ if (signal) break; // if an external signal came, it does not retry
3766
+ if (attempt < retries)
3767
+ await new Promise((resolve) => setTimeout(resolve, 300 * (attempt + 1)));
3768
+ }
3769
+ }
3770
+
3771
+ throw new Error(
3772
+ `Failed to fetch JSON from "${url}"${lastError ? `: ${lastError.message}` : '.'}`,
3773
+ );
3774
+ }
3775
+
3776
+ /**
3777
+ * @typedef {Object} HtmlElBoxSides
3778
+ * @property {number} x - Total horizontal size (left + right)
3779
+ * @property {number} y - Total vertical size (top + bottom)
3780
+ * @property {number} left
3781
+ * @property {number} right
3782
+ * @property {number} top
3783
+ * @property {number} bottom
3784
+ */
3785
+
3786
+ /**
3787
+ * Returns the total border width and individual sides from `border{Side}Width` CSS properties.
3788
+ *
3789
+ * @param {Element} el - The target DOM element.
3790
+ * @returns {HtmlElBoxSides} - Total horizontal (x) and vertical (y) border widths, and each side individually.
3791
+ */
3792
+ const getHtmlElBordersWidth = (el) => {
3793
+ const styles = getComputedStyle(el);
3794
+ const left = parseFloat(styles.borderLeftWidth) || 0;
3795
+ const right = parseFloat(styles.borderRightWidth) || 0;
3796
+ const top = parseFloat(styles.borderTopWidth) || 0;
3797
+ const bottom = parseFloat(styles.borderBottomWidth) || 0;
3798
+ const x = left + right;
3799
+ const y = top + bottom;
3800
+
3801
+ return { x, y, left, right, top, bottom };
3802
+ };
3803
+
3804
+ /**
3805
+ * Returns the total border size and individual sides from `border{Side}` CSS properties.
3806
+ *
3807
+ * @param {Element} el - The target DOM element.
3808
+ * @returns {HtmlElBoxSides} - Total horizontal (x) and vertical (y) border sizes, and each side individually.
3809
+ */
3810
+ const getHtmlElBorders = (el) => {
3811
+ const styles = getComputedStyle(el);
3812
+ const left = parseFloat(styles.borderLeft) || 0;
3813
+ const right = parseFloat(styles.borderRight) || 0;
3814
+ const top = parseFloat(styles.borderTop) || 0;
3815
+ const bottom = parseFloat(styles.borderBottom) || 0;
3816
+ const x = left + right;
3817
+ const y = top + bottom;
3818
+
3819
+ return { x, y, left, right, top, bottom };
3820
+ };
3821
+
3822
+ /**
3823
+ * Returns the total margin and individual sides from `margin{Side}` CSS properties.
3824
+ *
3825
+ * @param {Element} el - The target DOM element.
3826
+ * @returns {HtmlElBoxSides} - Total horizontal (x) and vertical (y) margins, and each side individually.
3827
+ */
3828
+ const getHtmlElMargin = (el) => {
3829
+ const styles = getComputedStyle(el);
3830
+ const left = parseFloat(styles.marginLeft) || 0;
3831
+ const right = parseFloat(styles.marginRight) || 0;
3832
+ const top = parseFloat(styles.marginTop) || 0;
3833
+ const bottom = parseFloat(styles.marginBottom) || 0;
3834
+
3835
+ const x = left + right;
3836
+ const y = top + bottom;
3837
+
3838
+ return { x, y, left, right, top, bottom };
3839
+ };
3840
+
3841
+ /**
3842
+ * Returns the total padding and individual sides from `padding{Side}` CSS properties.
3843
+ *
3844
+ * @param {Element} el - The target DOM element.
3845
+ * @returns {HtmlElBoxSides} - Total horizontal (x) and vertical (y) paddings, and each side individually.
3846
+ */
3847
+ const getHtmlElPadding = (el) => {
3848
+ const styles = getComputedStyle(el);
3849
+ const left = parseFloat(styles.paddingLeft) || 0;
3850
+ const right = parseFloat(styles.paddingRight) || 0;
3851
+ const top = parseFloat(styles.paddingTop) || 0;
3852
+ const bottom = parseFloat(styles.paddingBottom) || 0;
3853
+
3854
+ const x = left + right;
3855
+ const y = top + bottom;
3856
+
3857
+ return { x, y, left, right, top, bottom };
3858
+ };
3859
+
3860
+ ;// ./src/v1/basics/fullScreen.mjs
3861
+ /**
3862
+ * Checks if the document is currently in fullscreen mode.
3863
+ *
3864
+ * @returns {boolean}
3865
+ */
3866
+ const documentIsFullScreen = () =>
3867
+ !!(
3868
+ document.fullscreenElement ||
3869
+ // @ts-ignore
3870
+ document.webkitFullscreenElement ||
3871
+ // @ts-ignore
3872
+ document.mozFullScreenElement ||
3873
+ // @ts-ignore
3874
+ document.msFullscreenElement ||
3875
+ // @ts-ignore
3876
+ document.webkitIsFullScreen ||
3877
+ // @ts-ignore
3878
+ document.mozFullScreen
3879
+ );
3880
+
3881
+ /**
3882
+ * Checks if the window occupies the entire screen dimensions.
3883
+ *
3884
+ * @returns {boolean}
3885
+ */
3886
+ const isScreenFilled = () =>
3887
+ window.innerHeight === screen.height && window.innerWidth === screen.width;
3888
+
3889
+ /**
3890
+ * Checks if fullscreen mode is active either via document API or by matching screen dimensions.
3891
+ *
3892
+ * @returns {boolean}
3893
+ */
3894
+ const isFullScreenMode = () => documentIsFullScreen() || isScreenFilled();
3895
+
3896
+ /**
3897
+ * Requests fullscreen mode for the document.
3898
+ *
3899
+ * @param {FullscreenOptions} [ops]
3900
+ * @returns {Promise<void>}
3901
+ */
3902
+ const requestFullScreen = (ops) =>
3903
+ new Promise(async (resolve, reject) => {
3904
+ const docElm = document.documentElement;
3905
+ try {
3906
+ if (docElm.requestFullscreen) {
3907
+ await docElm.requestFullscreen(ops);
3908
+ // @ts-ignore
3909
+ } else if (docElm.mozRequestFullScreen) {
3910
+ // @ts-ignore
3911
+ docElm.mozRequestFullScreen(ops);
3912
+ // @ts-ignore
3913
+ } else if (docElm.webkitRequestFullScreen) {
3914
+ // @ts-ignore
3915
+ docElm.webkitRequestFullScreen(ops);
3916
+ // @ts-ignore
3917
+ } else if (docElm.msRequestFullscreen) {
3918
+ // @ts-ignore
3919
+ docElm.msRequestFullscreen(ops);
3920
+ }
3921
+ resolve();
3922
+ } catch (err) {
3923
+ reject(err);
3924
+ }
3925
+ });
3926
+
3927
+ /**
3928
+ * Exits fullscreen mode.
3929
+ *
3930
+ * @returns {Promise<void>}
3931
+ */
3932
+ const exitFullScreen = () =>
3933
+ new Promise((resolve, reject) => {
3934
+ if (document.exitFullscreen) {
3935
+ document.exitFullscreen().then(resolve).catch(reject);
3936
+ } else {
3937
+ try {
3938
+ // @ts-ignore
3939
+ if (document.mozCancelFullScreen) document.mozCancelFullScreen();
3940
+ // @ts-ignore
3941
+ else if (document.webkitCancelFullScreen) document.webkitCancelFullScreen();
3942
+ // @ts-ignore
3943
+ else if (document.msExitFullscreen) document.msExitFullscreen();
3944
+ else throw new Error('Fullscreen API is not supported');
3945
+ resolve();
3946
+ } catch (err) {
3947
+ reject(err);
3948
+ }
3949
+ }
3950
+ });
3951
+
3952
+ /** @type {readonly string[]} */
3953
+ const fullScreenEvents = [
3954
+ 'fullscreenchange',
3955
+ 'webkitfullscreenchange',
3956
+ 'mozfullscreenchange',
3957
+ 'MSFullscreenChange',
3958
+ ];
3959
+
3960
+ /**
3961
+ * Attaches a listener to fullscreen change events.
3962
+ *
3963
+ * @param {EventListenerOrEventListenerObject} listener
3964
+ * @param {boolean|AddEventListenerOptions} [ops]
3965
+ * @returns {void}
3966
+ */
3967
+ const onFullScreenChange = (listener, ops) => {
3968
+ fullScreenEvents.forEach((event) => {
3969
+ document.addEventListener(event, listener, ops);
3970
+ });
3971
+ };
3972
+
3973
+ /**
3974
+ * Removes a listener from fullscreen change events.
3975
+ *
3976
+ * @param {EventListenerOrEventListenerObject} listener
3977
+ * @param {boolean|AddEventListenerOptions} [ops]
3978
+ * @returns {void}
3979
+ */
3980
+ const offFullScreenChange = (listener, ops) => {
3981
+ fullScreenEvents.forEach((event) => {
3982
+ document.removeEventListener(event, listener, ops);
3983
+ });
3984
+ };
3985
+
2834
3986
  ;// ./src/v1/basics/simpleMath.mjs
2835
3987
  /**
2836
3988
  * Executes a Rule of Three calculation.
@@ -3047,6 +4199,503 @@ function KeyPressHandler() {
3047
4199
  export default KeyPressHandler;
3048
4200
  */
3049
4201
 
4202
+ // EXTERNAL MODULE: fs (ignored)
4203
+ var fs_ignored_ = __webpack_require__(41);
4204
+ // EXTERNAL MODULE: ./node_modules/path-browserify/index.js
4205
+ var path_browserify = __webpack_require__(975);
4206
+ ;// ./src/v1/basics/fileManager.mjs
4207
+
4208
+
4209
+
4210
+
4211
+ /*========================*
4212
+ * JSON Operations
4213
+ *========================*/
4214
+
4215
+ /**
4216
+ * Reads and parses a JSON file.
4217
+ * Throws an error if the file content is not valid JSON.
4218
+ * @param {string} filePath
4219
+ * @returns {any}
4220
+ */
4221
+ function readJsonFile(filePath) {
4222
+ if (!fs_ignored_.existsSync(filePath)) throw new Error(`File not found: ${filePath}`);
4223
+ const content = fs_ignored_.readFileSync(filePath, 'utf-8');
4224
+ return JSON.parse(content);
4225
+ }
4226
+
4227
+ /**
4228
+ * Saves an object as JSON to a file.
4229
+ * Automatically creates the directory if it does not exist.
4230
+ * @param {string} filePath
4231
+ * @param {any} data
4232
+ * @param {number} [spaces=2]
4233
+ */
4234
+ function writeJsonFile(filePath, data, spaces = 2) {
4235
+ const json = JSON.stringify(data, null, spaces);
4236
+ fs_ignored_.writeFileSync(filePath, json, 'utf-8');
4237
+ }
4238
+
4239
+ /**
4240
+ * Reads and parses a JSON file.
4241
+ * Throws an error if the file content is not valid JSON.
4242
+ * @param {string} filePath
4243
+ * @returns {Promise<any>}
4244
+ */
4245
+ async function readJsonFileAsync(filePath) {
4246
+ if (!fs.existsSync(filePath)) throw new Error(`File not found: ${filePath}`);
4247
+ const content = await fs.promises.readFile(filePath, 'utf-8');
4248
+ return JSON.parse(content);
4249
+ }
4250
+
4251
+ /**
4252
+ * Saves an object as JSON to a file.
4253
+ * Automatically creates the directory if it does not exist.
4254
+ * @param {string} filePath
4255
+ * @param {any} data
4256
+ * @param {number} [spaces=2]
4257
+ * @returns {Promise<void>}
4258
+ */
4259
+ function writeJsonFileAsync(filePath, data, spaces = 2) {
4260
+ const json = JSON.stringify(data, null, spaces);
4261
+ return fs.promises.writeFile(filePath, json, 'utf-8');
4262
+ }
4263
+
4264
+ /*========================*
4265
+ * Directory Management
4266
+ *========================*/
4267
+
4268
+ /**
4269
+ * Ensures that the directory exists, creating it recursively if needed.
4270
+ * @param {string} dirPath
4271
+ */
4272
+ function ensureDirectory(dirPath) {
4273
+ if (!fs_ignored_.existsSync(dirPath)) {
4274
+ fs_ignored_.mkdirSync(dirPath, { recursive: true });
4275
+ }
4276
+ }
4277
+
4278
+ /**
4279
+ * Clears all contents inside a directory but keeps the directory.
4280
+ * @param {string} dirPath
4281
+ */
4282
+ function clearDirectory(dirPath) {
4283
+ if (!fs_ignored_.existsSync(dirPath)) return;
4284
+ const files = fs_ignored_.readdirSync(dirPath);
4285
+ for (const file of files) {
4286
+ const fullPath = path_browserify.join(dirPath, file);
4287
+ const stat = fs_ignored_.lstatSync(fullPath);
4288
+ if (stat.isDirectory()) {
4289
+ fs_ignored_.rmSync(fullPath, { recursive: true, force: true });
4290
+ } else {
4291
+ fs_ignored_.unlinkSync(fullPath);
4292
+ }
4293
+ }
4294
+ }
4295
+
4296
+ /*========================*
4297
+ * File Checks
4298
+ *========================*/
4299
+
4300
+ /**
4301
+ * Checks whether a file exists.
4302
+ * @param {string} filePath
4303
+ * @returns {boolean}
4304
+ */
4305
+ function fileExists(filePath) {
4306
+ return fs_ignored_.existsSync(filePath) && fs_ignored_.lstatSync(filePath).isFile();
4307
+ }
4308
+
4309
+ /**
4310
+ * Checks whether a directory exists.
4311
+ * @param {string} dirPath
4312
+ * @returns {boolean}
4313
+ */
4314
+ function dirExists(dirPath) {
4315
+ return fs_ignored_.existsSync(dirPath) && fs_ignored_.lstatSync(dirPath).isDirectory();
4316
+ }
4317
+
4318
+ /**
4319
+ * Checks whether a directory is empty.
4320
+ * @param {string} dirPath
4321
+ * @returns {boolean}
4322
+ */
4323
+ function isDirEmpty(dirPath) {
4324
+ return fs_ignored_.existsSync(dirPath) && fs_ignored_.readdirSync(dirPath).length === 0;
4325
+ }
4326
+
4327
+ /*========================*
4328
+ * File Operations
4329
+ *========================*/
4330
+
4331
+ /**
4332
+ * Copies a file to a destination.
4333
+ * @param {string} src
4334
+ * @param {string} dest
4335
+ * @param {number} [mode]
4336
+ */
4337
+ function ensureCopyFile(src, dest, mode) {
4338
+ ensureDirectory(path_browserify.dirname(dest));
4339
+ fs_ignored_.copyFileSync(src, dest, mode);
4340
+ }
4341
+
4342
+ /**
4343
+ * Deletes a file (If the file exists).
4344
+ * @param {string} filePath
4345
+ * @returns {boolean}
4346
+ */
4347
+ function tryDeleteFile(filePath) {
4348
+ if (fileExists(filePath)) {
4349
+ fs_ignored_.unlinkSync(filePath);
4350
+ return true;
4351
+ }
4352
+ return false;
4353
+ }
4354
+
4355
+ /**
4356
+ * Copies a file to a destination.
4357
+ * @param {string} src
4358
+ * @param {string} dest
4359
+ * @param {number} [mode]
4360
+ * @returns {Promise<void>}
4361
+ */
4362
+ function ensureCopyFileAsync(src, dest, mode) {
4363
+ ensureDirectory(path.dirname(dest));
4364
+ return fs.promises.copyFile(src, dest, mode);
4365
+ }
4366
+
4367
+ /**
4368
+ * Deletes a file (If the file exists).
4369
+ * @param {string} filePath
4370
+ * @returns {Promise<boolean>}
4371
+ */
4372
+ async function tryDeleteFileAsync(filePath) {
4373
+ if (fileExists(filePath)) {
4374
+ await fs.promises.unlink(filePath);
4375
+ return true;
4376
+ }
4377
+ return false;
4378
+ }
4379
+
4380
+ /*========================*
4381
+ * Text Operations
4382
+ *========================*/
4383
+
4384
+ /**
4385
+ * Writes text to a file (Ensures that the directory exists, creating it recursively if needed).
4386
+ * @param {string} filePath
4387
+ * @param {string} content
4388
+ * @param {fs.WriteFileOptions} [ops='utf-8']
4389
+ */
4390
+ function writeTextFile(filePath, content, ops = 'utf-8') {
4391
+ const dir = path_browserify.dirname(filePath);
4392
+ ensureDirectory(dir);
4393
+ fs_ignored_.writeFileSync(filePath, content, ops);
4394
+ }
4395
+
4396
+ /**
4397
+ * Writes text to a file (Ensures that the directory exists, creating it recursively if needed).
4398
+ * @param {string} filePath
4399
+ * @param {string} content
4400
+ * @param {fs.WriteFileOptions} [ops='utf-8']
4401
+ * @returns {Promise<void>}
4402
+ */
4403
+ function writeTextFileAsync(filePath, content, ops = 'utf-8') {
4404
+ const dir = path.dirname(filePath);
4405
+ ensureDirectory(dir);
4406
+ return fs.promises.writeFile(filePath, content, ops);
4407
+ }
4408
+
4409
+ /*========================*
4410
+ * Directory Listings
4411
+ *========================*/
4412
+
4413
+ /**
4414
+ * Lists all files and dirs in a directory (optionally recursive).
4415
+ * @param {string} dirPath
4416
+ * @param {boolean} [recursive=false]
4417
+ * @returns {{ files: string[]; dirs: string[] }}
4418
+ */
4419
+ function listFiles(dirPath, recursive = false) {
4420
+ /** @type {{ files: string[]; dirs: string[] }} */
4421
+ const results = { files: [], dirs: [] };
4422
+ if (!dirExists(dirPath)) return results;
4423
+
4424
+ const entries = fs_ignored_.readdirSync(dirPath);
4425
+ for (const entry of entries) {
4426
+ const fullPath = path_browserify.join(dirPath, entry);
4427
+ const stat = fs_ignored_.lstatSync(fullPath);
4428
+ if (stat.isDirectory()) {
4429
+ results.dirs.push(fullPath);
4430
+ if (recursive) {
4431
+ const results2 = listFiles(fullPath, true);
4432
+ results.files.push(...results2.files);
4433
+ results.dirs.push(...results2.dirs);
4434
+ }
4435
+ } else {
4436
+ results.files.push(fullPath);
4437
+ }
4438
+ }
4439
+ return results;
4440
+ }
4441
+
4442
+ /**
4443
+ * Lists all directories in a directory (optionally recursive).
4444
+ * @param {string} dirPath
4445
+ * @param {boolean} [recursive=false]
4446
+ * @returns {string[]}
4447
+ */
4448
+ function listDirs(dirPath, recursive = false) {
4449
+ /** @type {string[]} */
4450
+ const results = [];
4451
+ if (!dirExists(dirPath)) return results;
4452
+
4453
+ const entries = fs_ignored_.readdirSync(dirPath);
4454
+ for (const entry of entries) {
4455
+ const fullPath = path_browserify.join(dirPath, entry);
4456
+ const stat = fs_ignored_.lstatSync(fullPath);
4457
+ if (stat.isDirectory()) {
4458
+ results.push(fullPath);
4459
+ if (recursive) {
4460
+ results.push(...listDirs(fullPath, true));
4461
+ }
4462
+ }
4463
+ }
4464
+ return results;
4465
+ }
4466
+
4467
+ /*========================*
4468
+ * File Info
4469
+ *========================*/
4470
+
4471
+ /**
4472
+ * Returns the size of a file in bytes.
4473
+ * @param {string} filePath
4474
+ * @returns {number}
4475
+ */
4476
+ function fileSize(filePath) {
4477
+ if (!fileExists(filePath)) return 0;
4478
+ const stats = fs_ignored_.statSync(filePath);
4479
+ return stats.size;
4480
+ }
4481
+
4482
+ /**
4483
+ * Returns the total size of a directory in bytes.
4484
+ * @param {string} dirPath
4485
+ * @returns {number}
4486
+ */
4487
+ function dirSize(dirPath) {
4488
+ let total = 0;
4489
+ const files = listFiles(dirPath, true).files;
4490
+ for (const file of files) {
4491
+ total += fileSize(file);
4492
+ }
4493
+ return total;
4494
+ }
4495
+
4496
+ /*========================*
4497
+ * Backup Utilities
4498
+ *========================*/
4499
+
4500
+ /**
4501
+ * Creates a backup copy of a file with .bak timestamp suffix.
4502
+ * @param {string} filePath
4503
+ * @param {string} [ext='bak']
4504
+ */
4505
+ function backupFile(filePath, ext = 'bak') {
4506
+ if (!fileExists(filePath)) return;
4507
+ const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
4508
+ const backupPath = `${filePath}.${ext}.${timestamp}`;
4509
+ ensureCopyFile(filePath, backupPath);
4510
+ }
4511
+
4512
+ /**
4513
+ * Returns the most recent backup file path for a given file.
4514
+ * @param {string} filePath
4515
+ * @param {string} [ext='bak']
4516
+ * @returns {string} Full path to the most recent backup
4517
+ */
4518
+ function getLatestBackupPath(filePath, ext = 'bak') {
4519
+ const dir = path_browserify.dirname(filePath);
4520
+ const baseName = path_browserify.basename(filePath);
4521
+ const backups = fs_ignored_.readdirSync(dir)
4522
+ .filter((name) => name.startsWith(`${baseName}.${ext}.`))
4523
+ .sort()
4524
+ .reverse();
4525
+
4526
+ if (backups.length === 0) throw new Error(`No backups found for ${filePath}`);
4527
+
4528
+ return path_browserify.join(dir, backups[0]);
4529
+ }
4530
+
4531
+ /**
4532
+ * Restores the most recent backup of a file.
4533
+ * @param {string} filePath
4534
+ * @param {string} [ext='bak']
4535
+ */
4536
+ function restoreLatestBackup(filePath, ext = 'bak') {
4537
+ const latestBackup = getLatestBackupPath(filePath, ext);
4538
+ ensureCopyFile(latestBackup, filePath);
4539
+ }
4540
+
4541
+ /**
4542
+ * Restores the most recent backup of a file.
4543
+ * @param {string} filePath
4544
+ * @param {string} [ext='bak']
4545
+ * @returns {Promise<void>}
4546
+ */
4547
+ function restoreLatestBackupAsync(filePath, ext = 'bak') {
4548
+ const latestBackup = getLatestBackupPath(filePath, ext);
4549
+ return ensureCopyFileAsync(latestBackup, filePath);
4550
+ }
4551
+
4552
+ /**
4553
+ * Creates a backup copy of a file with .bak timestamp suffix.
4554
+ * @param {string} filePath
4555
+ * @param {string} [ext='bak']
4556
+ * @returns {Promise<void>}
4557
+ */
4558
+ async function backupFileAsync(filePath, ext = 'bak') {
4559
+ if (!fileExists(filePath)) return;
4560
+ const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
4561
+ const backupPath = `${filePath}.${ext}.${timestamp}`;
4562
+ return ensureCopyFileAsync(filePath, backupPath);
4563
+ }
4564
+
4565
+ /*========================*
4566
+ * Rename Utilities
4567
+ *========================*/
4568
+
4569
+ /**
4570
+ * Renames multiple files in a directory using a rename function.
4571
+ * @param {string} dirPath - The target directory.
4572
+ * @param {(original: string, index: number) => string} renameFn - Function that returns new filename.
4573
+ * @param {string[]} [extensions] - Optional: Only rename files with these extensions.
4574
+ *
4575
+ * @throws {TypeError} If any argument has an invalid type.
4576
+ * @throws {Error} If the directory does not exist or contains invalid files.
4577
+ */
4578
+ function renameFileBatch(dirPath, renameFn, extensions = []) {
4579
+ // Validate types
4580
+ if (typeof dirPath !== 'string') throw new TypeError('dirPath must be a string');
4581
+ if (typeof renameFn !== 'function') throw new TypeError('renameFn must be a function');
4582
+ if (!Array.isArray(extensions)) throw new TypeError('extensions must be an array of strings');
4583
+ if (!fs_ignored_.existsSync(dirPath) || !fs_ignored_.statSync(dirPath).isDirectory())
4584
+ throw new Error(`Directory not found or invalid: ${dirPath}`);
4585
+ for (const ext of extensions) {
4586
+ if (typeof ext !== 'string' || !ext.startsWith('.'))
4587
+ throw new TypeError(`Invalid extension: ${ext}`);
4588
+ }
4589
+
4590
+ const files = listFiles(dirPath).files;
4591
+ let index = 0;
4592
+
4593
+ for (const file of files) {
4594
+ const ext = path_browserify.extname(file);
4595
+ if (extensions.length && !extensions.includes(ext)) continue;
4596
+
4597
+ const originalName = path_browserify.basename(file);
4598
+ const newName = renameFn(originalName, index++);
4599
+ const newPath = path_browserify.join(dirPath, newName);
4600
+
4601
+ if (originalName === newName) continue;
4602
+
4603
+ fs_ignored_.renameSync(file, newPath);
4604
+ }
4605
+ }
4606
+
4607
+ /**
4608
+ * Renames files using regex replacement.
4609
+ * @param {string} dirPath
4610
+ * @param {RegExp} pattern - Regex to match in the filename.
4611
+ * @param {string} replacement - Replacement string.
4612
+ * @param {string[]} [extensions]
4613
+ */
4614
+ function renameFileRegex(dirPath, pattern, replacement, extensions = []) {
4615
+ renameFileBatch(
4616
+ dirPath,
4617
+ (filename) => {
4618
+ const ext = path_browserify.extname(filename);
4619
+ const name = path_browserify.basename(filename, ext).replace(pattern, replacement);
4620
+ return `${name}${ext}`;
4621
+ },
4622
+ extensions,
4623
+ );
4624
+ }
4625
+
4626
+ /**
4627
+ * Adds a prefix or suffix to filenames.
4628
+ * @param {string} dirPath
4629
+ * @param {{ prefix?: string, suffix?: string }} options
4630
+ * @param {string[]} [extensions]
4631
+ */
4632
+ function renameFileAddPrefixSuffix(dirPath, { prefix = '', suffix = '' }, extensions = []) {
4633
+ renameFileBatch(
4634
+ dirPath,
4635
+ (filename) => {
4636
+ const ext = path_browserify.extname(filename);
4637
+ const name = path_browserify.basename(filename, ext);
4638
+ return `${prefix}${name}${suffix}${ext}`;
4639
+ },
4640
+ extensions,
4641
+ );
4642
+ }
4643
+
4644
+ /**
4645
+ * Normalizes all filenames to lowercase (or uppercase).
4646
+ * @param {string} dirPath
4647
+ * @param {'lower' | 'upper' | 'title'} mode
4648
+ * @param {string[]} [extensions]
4649
+ * @param {boolean} [normalizeExt=false] - Whether to apply case change to file extensions too.
4650
+ * @throws {Error} If mode is invalid.
4651
+ */
4652
+ function renameFileNormalizeCase(
4653
+ dirPath,
4654
+ mode = 'lower',
4655
+ extensions = [],
4656
+ normalizeExt = false,
4657
+ ) {
4658
+ if (typeof mode !== 'string' || !['lower', 'upper', 'title'].includes(mode))
4659
+ throw new Error(`Invalid mode "${mode}". Must be 'lower', 'upper' or 'title'.`);
4660
+ renameFileBatch(
4661
+ dirPath,
4662
+ (filename) => {
4663
+ /**
4664
+ * @param {string} text
4665
+ * @returns {string}
4666
+ */
4667
+ const changeToMode = (text) => {
4668
+ if (mode === 'lower') return text.toLowerCase();
4669
+ else if (mode === 'upper') return text.toUpperCase();
4670
+ else if (mode === 'title') return toTitleCase(text);
4671
+ else return text;
4672
+ };
4673
+
4674
+ const rawExt = path_browserify.extname(filename);
4675
+ const ext = normalizeExt ? changeToMode(rawExt) : rawExt;
4676
+ const name = changeToMode(path_browserify.basename(filename, rawExt));
4677
+ return `${name}${ext}`;
4678
+ },
4679
+ extensions,
4680
+ );
4681
+ }
4682
+
4683
+ /**
4684
+ * Pads numbers in filenames (e.g., "img1.jpg" -> "img001.jpg").
4685
+ * @param {string} dirPath
4686
+ * @param {number} totalDigits
4687
+ * @param {string[]} [extensions]
4688
+ */
4689
+ function renameFilePadNumbers(dirPath, totalDigits = 3, extensions = []) {
4690
+ renameFileBatch(
4691
+ dirPath,
4692
+ (filename) => {
4693
+ return filename.replace(/\d+/, (match) => match.padStart(totalDigits, '0'));
4694
+ },
4695
+ extensions,
4696
+ );
4697
+ }
4698
+
3050
4699
  ;// ./src/v1/basics/index.mjs
3051
4700
 
3052
4701
 
@@ -3058,6 +4707,9 @@ export default KeyPressHandler;
3058
4707
 
3059
4708
 
3060
4709
 
4710
+
4711
+
4712
+
3061
4713
  })();
3062
4714
 
3063
4715
  window.TinyBasicsEs = __webpack_exports__;