raspberry_games_engine_helpers 1.8.248

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 (66) hide show
  1. package/Kosi-Kaverit-kaverit.js +339 -0
  2. package/Kosi-Kaverit-kaverit.js.map +1 -0
  3. package/Kosi-Kodein-kodein-di.js +2294 -0
  4. package/Kosi-Kodein-kodein-di.js.map +1 -0
  5. package/Kotlin-DateTime-library-kotlinx-datetime.js +6215 -0
  6. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
  7. package/Logic_Debertz-core.js +3907 -0
  8. package/Logic_Debertz-core.js.map +1 -0
  9. package/Logic_Debertz-engine.d.ts +1844 -0
  10. package/Logic_Debertz-engine.js +31732 -0
  11. package/Logic_Debertz-engine.js.map +1 -0
  12. package/kotlin-kotlin-stdlib.js +12753 -0
  13. package/kotlin-kotlin-stdlib.js.map +1 -0
  14. package/kotlin-kotlinx-atomicfu-runtime.js +15 -0
  15. package/kotlin-kotlinx-atomicfu-runtime.js.map +1 -0
  16. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
  17. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
  18. package/kotlinx-atomicfu.js +15 -0
  19. package/kotlinx-atomicfu.js.map +1 -0
  20. package/kotlinx-coroutines-core.js +15 -0
  21. package/kotlinx-coroutines-core.js.map +1 -0
  22. package/kotlinx-io-kotlinx-io-bytestring.js +15 -0
  23. package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
  24. package/kotlinx-io-kotlinx-io-core.js +275 -0
  25. package/kotlinx-io-kotlinx-io-core.js.map +1 -0
  26. package/kotlinx-serialization-kotlinx-serialization-core.js +6287 -0
  27. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  28. package/kotlinx-serialization-kotlinx-serialization-json.js +5078 -0
  29. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
  30. package/ktor-ktor-client-content-negotiation.js +15 -0
  31. package/ktor-ktor-client-content-negotiation.js.map +1 -0
  32. package/ktor-ktor-client-core.js +15 -0
  33. package/ktor-ktor-client-core.js.map +1 -0
  34. package/ktor-ktor-client-js.js +15 -0
  35. package/ktor-ktor-client-js.js.map +1 -0
  36. package/ktor-ktor-client-logging.js +15 -0
  37. package/ktor-ktor-client-logging.js.map +1 -0
  38. package/ktor-ktor-events.js +15 -0
  39. package/ktor-ktor-events.js.map +1 -0
  40. package/ktor-ktor-http.js +15 -0
  41. package/ktor-ktor-http.js.map +1 -0
  42. package/ktor-ktor-io.js +19 -0
  43. package/ktor-ktor-io.js.map +1 -0
  44. package/ktor-ktor-serialization-kotlinx-json.js +15 -0
  45. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
  46. package/ktor-ktor-serialization-kotlinx.js +15 -0
  47. package/ktor-ktor-serialization-kotlinx.js.map +1 -0
  48. package/ktor-ktor-serialization.js +15 -0
  49. package/ktor-ktor-serialization.js.map +1 -0
  50. package/ktor-ktor-utils.js +19 -0
  51. package/ktor-ktor-utils.js.map +1 -0
  52. package/ktor-ktor-websocket-serialization.js +15 -0
  53. package/ktor-ktor-websocket-serialization.js.map +1 -0
  54. package/ktor-ktor-websockets.js +15 -0
  55. package/ktor-ktor-websockets.js.map +1 -0
  56. package/package.json +13 -0
  57. package/raspberry-cardgame-lib-core.js +529 -0
  58. package/raspberry-cardgame-lib-core.js.map +1 -0
  59. package/raspberry-cardgame-lib-logger.js +197 -0
  60. package/raspberry-cardgame-lib-logger.js.map +1 -0
  61. package/raspberry-cardgame-lib-random.js +560 -0
  62. package/raspberry-cardgame-lib-random.js.map +1 -0
  63. package/secure-random-secure-random.js +15 -0
  64. package/secure-random-secure-random.js.map +1 -0
  65. package/uuid.js +15 -0
  66. package/uuid.js.map +1 -0
@@ -0,0 +1,197 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './kotlin-kotlin-stdlib.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
6
+ else {
7
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
+ throw new Error("Error loading module 'raspberry-cardgame-lib-logger'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'raspberry-cardgame-lib-logger'.");
9
+ }
10
+ globalThis['raspberry-cardgame-lib-logger'] = factory(typeof globalThis['raspberry-cardgame-lib-logger'] === 'undefined' ? {} : globalThis['raspberry-cardgame-lib-logger'], globalThis['kotlin-kotlin-stdlib']);
11
+ }
12
+ }(function (_, kotlin_kotlin) {
13
+ 'use strict';
14
+ //region block: imports
15
+ var protoOf = kotlin_kotlin.$_$.o9;
16
+ var initMetadataForInterface = kotlin_kotlin.$_$.u8;
17
+ var VOID = kotlin_kotlin.$_$.f;
18
+ var Unit_instance = kotlin_kotlin.$_$.j4;
19
+ var Enum = kotlin_kotlin.$_$.ac;
20
+ var initMetadataForClass = kotlin_kotlin.$_$.r8;
21
+ var printStackTrace = kotlin_kotlin.$_$.ed;
22
+ var initMetadataForObject = kotlin_kotlin.$_$.w8;
23
+ var isBlank = kotlin_kotlin.$_$.qa;
24
+ var stackTraceToString = kotlin_kotlin.$_$.fd;
25
+ var toString = kotlin_kotlin.$_$.gd;
26
+ //endregion
27
+ //region block: pre-declaration
28
+ function d(tag, message, payload, $super) {
29
+ tag = tag === VOID ? null : tag;
30
+ payload = payload === VOID ? null : payload;
31
+ return this.yi(tag, message, payload);
32
+ }
33
+ function e(tag, message, exception, payload, $super) {
34
+ tag = tag === VOID ? null : tag;
35
+ message = message === VOID ? null : message;
36
+ exception = exception === VOID ? null : exception;
37
+ payload = payload === VOID ? null : payload;
38
+ return this.zi(tag, message, exception, payload);
39
+ }
40
+ function w(tag, message, exception, payload, $super) {
41
+ tag = tag === VOID ? null : tag;
42
+ message = message === VOID ? null : message;
43
+ exception = exception === VOID ? null : exception;
44
+ payload = payload === VOID ? null : payload;
45
+ return this.aj(tag, message, exception, payload);
46
+ }
47
+ function v(tag, message, exception, payload, $super) {
48
+ tag = tag === VOID ? null : tag;
49
+ message = message === VOID ? null : message;
50
+ exception = exception === VOID ? null : exception;
51
+ payload = payload === VOID ? null : payload;
52
+ return this.bj(tag, message, exception, payload);
53
+ }
54
+ function i(tag, message, payload, $super) {
55
+ tag = tag === VOID ? null : tag;
56
+ payload = payload === VOID ? null : payload;
57
+ return this.cj(tag, message, payload);
58
+ }
59
+ initMetadataForInterface(LoggerOutput, 'LoggerOutput');
60
+ initMetadataForInterface(RaspberryLogger, 'RaspberryLogger', VOID, VOID, [LoggerOutput]);
61
+ initMetadataForInterface(LoggerEnabledTrigger, 'LoggerEnabledTrigger', VOID, VOID, [RaspberryLogger]);
62
+ initMetadataForInterface(LoggerPayload, 'LoggerPayload');
63
+ initMetadataForClass(Category, 'Category', VOID, Enum);
64
+ initMetadataForClass(Logger$loggerSource$1);
65
+ initMetadataForObject(Logger, 'Logger');
66
+ initMetadataForClass(PlatformLogger, 'PlatformLogger', PlatformLogger);
67
+ //endregion
68
+ function LoggerEnabledTrigger() {
69
+ }
70
+ function LoggerPayload() {
71
+ }
72
+ function RaspberryLogger() {
73
+ }
74
+ function LoggerOutput() {
75
+ }
76
+ var Category_LIFECYCLE_instance;
77
+ var Category_NONE_instance;
78
+ var Category_entriesInitialized;
79
+ function Category_initEntries() {
80
+ if (Category_entriesInitialized)
81
+ return Unit_instance;
82
+ Category_entriesInitialized = true;
83
+ Category_LIFECYCLE_instance = new Category('LIFECYCLE', 0, true);
84
+ Category_NONE_instance = new Category('NONE', 1, true);
85
+ }
86
+ function generateTag($this, tag) {
87
+ return !($this.fj_1 == null) && !(tag == null) ? '' + $this.fj_1 + ':' + tag : tag;
88
+ }
89
+ function Category(name, ordinal, isEnabled) {
90
+ Enum.call(this, name, ordinal);
91
+ this.ij_1 = isEnabled;
92
+ }
93
+ function Logger$loggerSource$1() {
94
+ this.jj_1 = new PlatformLogger();
95
+ }
96
+ protoOf(Logger$loggerSource$1).kj = function (tag, msg, exception) {
97
+ this.jj_1.kj(tag, msg, exception);
98
+ };
99
+ function Category_NONE_getInstance() {
100
+ Category_initEntries();
101
+ return Category_NONE_instance;
102
+ }
103
+ function Logger() {
104
+ Logger_instance = this;
105
+ var tmp = this;
106
+ tmp.dj_1 = new Logger$loggerSource$1();
107
+ this.ej_1 = true;
108
+ this.fj_1 = null;
109
+ }
110
+ protoOf(Logger).lj = function (tag, message, exception, category) {
111
+ if (this.ej_1 && category.ij_1) {
112
+ if (exception == null)
113
+ null;
114
+ else {
115
+ printStackTrace(exception);
116
+ }
117
+ this.dj_1.kj(generateTag(this, tag), generateMsg(message, exception), exception);
118
+ }
119
+ };
120
+ protoOf(Logger).mj = function (tag, message, exception, category, $super) {
121
+ tag = tag === VOID ? null : tag;
122
+ message = message === VOID ? null : message;
123
+ exception = exception === VOID ? null : exception;
124
+ category = category === VOID ? Category_NONE_getInstance() : category;
125
+ var tmp;
126
+ if ($super === VOID) {
127
+ this.lj(tag, message, exception, category);
128
+ tmp = Unit_instance;
129
+ } else {
130
+ tmp = $super.lj.call(this, tag, message, exception, category);
131
+ }
132
+ return tmp;
133
+ };
134
+ var Logger_instance;
135
+ function Logger_getInstance() {
136
+ if (Logger_instance == null)
137
+ new Logger();
138
+ return Logger_instance;
139
+ }
140
+ function generateMsg(msg, exception) {
141
+ var logMessage = '';
142
+ // Inline function 'kotlin.text.isNullOrBlank' call
143
+ // Inline function 'kotlin.contracts.contract' call
144
+ if (!(msg == null || isBlank(msg))) {
145
+ logMessage = logMessage + msg;
146
+ }
147
+ if (!(exception == null)) {
148
+ var tmp = logMessage;
149
+ // Inline function 'kotlin.text.orEmpty' call
150
+ var tmp0_elvis_lhs = exception.message;
151
+ logMessage = tmp + (' Exception: ' + (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs) + ', stackTrace: ' + stackTraceToString(exception));
152
+ }
153
+ if (isBlank(logMessage)) {
154
+ logMessage = 'Unknown error';
155
+ }
156
+ return logMessage;
157
+ }
158
+ function getLogTag(tag) {
159
+ return !(tag == null) ? '[' + tag + ']' : '';
160
+ }
161
+ function PlatformLogger() {
162
+ }
163
+ protoOf(PlatformLogger).kj = function (tag, msg, exception) {
164
+ if (!(exception == null)) {
165
+ console.error(getLogTag(tag) + ': ' + msg + ', exception: ' + toString(exception));
166
+ } else {
167
+ console.error(getLogTag(tag) + ': ' + msg);
168
+ }
169
+ };
170
+ //region block: exports
171
+ function $jsExportAll$(_) {
172
+ var $games = _.games || (_.games = {});
173
+ var $games$raspberry = $games.raspberry || ($games.raspberry = {});
174
+ var $games$raspberry$logger = $games$raspberry.logger || ($games$raspberry.logger = {});
175
+ var $games = _.games || (_.games = {});
176
+ var $games$raspberry = $games.raspberry || ($games.raspberry = {});
177
+ var $games$raspberry$logger = $games$raspberry.logger || ($games$raspberry.logger = {});
178
+ var $games = _.games || (_.games = {});
179
+ var $games$raspberry = $games.raspberry || ($games.raspberry = {});
180
+ var $games$raspberry$logger = $games$raspberry.logger || ($games$raspberry.logger = {});
181
+ var $games = _.games || (_.games = {});
182
+ var $games$raspberry = $games.raspberry || ($games.raspberry = {});
183
+ var $games$raspberry$logger = $games$raspberry.logger || ($games$raspberry.logger = {});
184
+ var $games$raspberry$logger$output = $games$raspberry$logger.output || ($games$raspberry$logger.output = {});
185
+ }
186
+ $jsExportAll$(_);
187
+ _.$jsExportAll$ = $jsExportAll$;
188
+ _.$_$ = _.$_$ || {};
189
+ _.$_$.a = LoggerOutput;
190
+ _.$_$.b = LoggerEnabledTrigger;
191
+ _.$_$.c = LoggerPayload;
192
+ _.$_$.d = Logger_getInstance;
193
+ //endregion
194
+ return _;
195
+ }));
196
+
197
+ //# sourceMappingURL=raspberry-cardgame-lib-logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../raspberry-cardgame-core/logger/src/commonMain/kotlin/games/raspberry/logger/output/LoggerOutput.kt","../../../../../../../../raspberry-cardgame-core/logger/src/commonMain/kotlin/games/raspberry/logger/platform/PlatformLogger.kt","src/kotlin/text/Strings.kt","../../../../../../../../raspberry-cardgame-core/logger/src/jsMain/kotlin/games/raspberry/logger/platform/PlatformLogger.js.kt"],"sourcesContent":[null,null,null,null],"names":["d$default","tag","message","payload","e$default","exception","w$default","v$default","i$default","generateTag","<init>","isEnabled","logError","msg","e","category","generateMsg","logMessage","getLogTag"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;YAMIA,CAAMC,G,EAAqBC,O,EAAiBC,O,QAA5CH,E;yBAAqB,I;iCAAuC,I;;G;YAE5DI,CAAMH,G,EAAqBC,O,EAAyBG,S,EAA8BF,O,QAAlFC,E;yBAAqB,I;iCAAyB,I;qCAA8B,I;iCAAsB,I;;G;YAElGE,CAAML,G,EAAqBC,O,EAAyBG,S,EAA8BF,O,QAAlFG,E;yBAAqB,I;iCAAyB,I;qCAA8B,I;iCAAsB,I;;G;YAElGC,CAAMN,G,EAAqBC,O,EAAyBG,S,EAA8BF,O,QAAlFI,E;yBAAqB,I;iCAAyB,I;qCAA8B,I;iCAAsB,I;;G;YAElGC,CAAMP,G,EAAqBC,O,EAAiBC,O,QAA5CK,E;yBAAqB,I;iCAAuC,I;;G;;;;;;;;;;;;;;;;;;;;;;;;;+DC8F9C,I;qDACL,I;;sBALTC,C,OAAwBR,GAAxBQ,EACI;A,IAAgE,OAA5D,gBAAa,IAAb,KAAqB,SAAO,IAAP,CAArB,QAAoC,KAApC,CAAoC,IAApC,GAA6C,GAA7C,GAA+C,GAA/C,GAAyD,G;EAAE,C;mBAEhDC,C,eAACC,SAADD,EAAA;A;IAAC,qB;EAAD,C;gCA/EcA,CAAAA,EAAA;A,IAEA,gC;EAFA,C;+CAQ7BE,CAAsBX,G,EAAcY,G,EAAaR,SAAjDO,EAAwE;A,IACpE,IAAe,CAAf,IAAe,IAAS,GAAT,EAAc,GAAd,EAAmB,SAAnB,C;EACnB,C;;;;;iBAZRF,CAAAA,EAAA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