cloudcmd 19.19.1 → 19.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/ChangeLog +18 -0
  2. package/HELP.md +3 -1
  3. package/README.md +1 -1
  4. package/dist/cloudcmd.common.css +1 -1
  5. package/dist/cloudcmd.common.css.map +1 -1
  6. package/dist/cloudcmd.common.js +7964 -9362
  7. package/dist/cloudcmd.common.js.map +1 -1
  8. package/dist/cloudcmd.js +164 -175
  9. package/dist/cloudcmd.js.map +1 -1
  10. package/dist/columns/name-size-date-time.css +1 -1
  11. package/dist/columns/name-size-date-time.css.map +1 -1
  12. package/dist/columns/name-size-date-time.js +4 -4
  13. package/dist/columns/name-size-date-time.js.map +1 -1
  14. package/dist/columns/name-size-date.css +1 -1
  15. package/dist/columns/name-size-date.css.map +1 -1
  16. package/dist/columns/name-size-date.js +4 -4
  17. package/dist/columns/name-size-date.js.map +1 -1
  18. package/dist/columns/name-size.css +1 -1
  19. package/dist/columns/name-size.css.map +1 -1
  20. package/dist/columns/name-size.js +4 -4
  21. package/dist/columns/name-size.js.map +1 -1
  22. package/dist/config.css +1 -1
  23. package/dist/config.css.map +1 -1
  24. package/dist/config.js +4 -4
  25. package/dist/config.js.map +1 -1
  26. package/dist/help.css +1 -1
  27. package/dist/help.css.map +1 -1
  28. package/dist/help.js +4 -4
  29. package/dist/help.js.map +1 -1
  30. package/dist/modules/cloud.js +164 -175
  31. package/dist/modules/cloud.js.map +1 -1
  32. package/dist/modules/command-line.js +164 -175
  33. package/dist/modules/command-line.js.map +1 -1
  34. package/dist/modules/config.js +164 -175
  35. package/dist/modules/config.js.map +1 -1
  36. package/dist/modules/contact.js +164 -175
  37. package/dist/modules/contact.js.map +1 -1
  38. package/dist/modules/edit-file-vim.js +164 -175
  39. package/dist/modules/edit-file-vim.js.map +1 -1
  40. package/dist/modules/edit-file.js +164 -175
  41. package/dist/modules/edit-file.js.map +1 -1
  42. package/dist/modules/edit-names-vim.js +164 -175
  43. package/dist/modules/edit-names-vim.js.map +1 -1
  44. package/dist/modules/edit-names.js +164 -175
  45. package/dist/modules/edit-names.js.map +1 -1
  46. package/dist/modules/edit.js +164 -175
  47. package/dist/modules/edit.js.map +1 -1
  48. package/dist/modules/help.js +164 -175
  49. package/dist/modules/help.js.map +1 -1
  50. package/dist/modules/konsole.js +164 -175
  51. package/dist/modules/konsole.js.map +1 -1
  52. package/dist/modules/markdown.js +164 -175
  53. package/dist/modules/markdown.js.map +1 -1
  54. package/dist/modules/menu.js +164 -175
  55. package/dist/modules/menu.js.map +1 -1
  56. package/dist/modules/operation.js +164 -175
  57. package/dist/modules/operation.js.map +1 -1
  58. package/dist/modules/polyfill.js +164 -175
  59. package/dist/modules/polyfill.js.map +1 -1
  60. package/dist/modules/terminal-run.js +164 -175
  61. package/dist/modules/terminal-run.js.map +1 -1
  62. package/dist/modules/terminal.js +164 -175
  63. package/dist/modules/terminal.js.map +1 -1
  64. package/dist/modules/upload.js +164 -175
  65. package/dist/modules/upload.js.map +1 -1
  66. package/dist/modules/user-menu.js +164 -175
  67. package/dist/modules/user-menu.js.map +1 -1
  68. package/dist/modules/view.js +164 -175
  69. package/dist/modules/view.js.map +1 -1
  70. package/dist/nojs.css +1 -1
  71. package/dist/nojs.css.map +1 -1
  72. package/dist/nojs.js +4 -4
  73. package/dist/nojs.js.map +1 -1
  74. package/dist/sw.js +37 -46
  75. package/dist/sw.js.map +1 -1
  76. package/dist/terminal.css.map +1 -1
  77. package/dist/terminal.js +4 -4
  78. package/dist/terminal.js.map +1 -1
  79. package/dist/themes/dark.css +1 -1
  80. package/dist/themes/dark.css.map +1 -1
  81. package/dist/themes/dark.js +4 -4
  82. package/dist/themes/dark.js.map +1 -1
  83. package/dist/themes/light.css +1 -1
  84. package/dist/themes/light.css.map +1 -1
  85. package/dist/themes/light.js +4 -4
  86. package/dist/themes/light.js.map +1 -1
  87. package/dist/user-menu.css +1 -1
  88. package/dist/user-menu.css.map +1 -1
  89. package/dist/user-menu.js +4 -4
  90. package/dist/user-menu.js.map +1 -1
  91. package/dist/view.css +1 -1
  92. package/dist/view.css.map +1 -1
  93. package/dist/view.js +4 -4
  94. package/dist/view.js.map +1 -1
  95. package/dist-dev/cloudcmd.common.css +17 -17
  96. package/dist-dev/cloudcmd.common.js +759 -1198
  97. package/dist-dev/cloudcmd.js +160 -184
  98. package/dist-dev/columns/name-size-date-time.css +1 -1
  99. package/dist-dev/columns/name-size-date-time.js +26 -42
  100. package/dist-dev/columns/name-size-date.css +1 -1
  101. package/dist-dev/columns/name-size-date.js +26 -42
  102. package/dist-dev/columns/name-size.css +1 -1
  103. package/dist-dev/columns/name-size.js +26 -42
  104. package/dist-dev/config.css +1 -1
  105. package/dist-dev/config.js +26 -42
  106. package/dist-dev/help.css +1 -1
  107. package/dist-dev/help.js +26 -42
  108. package/dist-dev/modules/cloud.js +160 -184
  109. package/dist-dev/modules/command-line.js +160 -184
  110. package/dist-dev/modules/config.js +160 -184
  111. package/dist-dev/modules/contact.js +160 -184
  112. package/dist-dev/modules/edit-file-vim.js +160 -184
  113. package/dist-dev/modules/edit-file.js +160 -184
  114. package/dist-dev/modules/edit-names-vim.js +160 -184
  115. package/dist-dev/modules/edit-names.js +160 -184
  116. package/dist-dev/modules/edit.js +160 -184
  117. package/dist-dev/modules/help.js +160 -184
  118. package/dist-dev/modules/konsole.js +160 -184
  119. package/dist-dev/modules/markdown.js +160 -184
  120. package/dist-dev/modules/menu.js +160 -184
  121. package/dist-dev/modules/operation.js +160 -184
  122. package/dist-dev/modules/polyfill.js +160 -184
  123. package/dist-dev/modules/terminal-run.js +160 -184
  124. package/dist-dev/modules/terminal.js +160 -184
  125. package/dist-dev/modules/upload.js +160 -184
  126. package/dist-dev/modules/user-menu.js +160 -184
  127. package/dist-dev/modules/view.js +160 -184
  128. package/dist-dev/nojs.css +1 -1
  129. package/dist-dev/nojs.js +26 -42
  130. package/dist-dev/sw.js +71 -99
  131. package/dist-dev/terminal.css +1 -1
  132. package/dist-dev/terminal.js +26 -42
  133. package/dist-dev/themes/dark.css +1 -1
  134. package/dist-dev/themes/dark.js +26 -42
  135. package/dist-dev/themes/light.css +1 -1
  136. package/dist-dev/themes/light.js +26 -42
  137. package/dist-dev/user-menu.css +1 -1
  138. package/dist-dev/user-menu.js +26 -42
  139. package/dist-dev/view.css +1 -1
  140. package/dist-dev/view.js +26 -42
  141. package/package.json +12 -15
  142. package/server/markdown/index.js +2 -4
  143. package/server/rest/index.js +19 -5
@@ -1,177 +1,166 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/ var __webpack_modules__ = ({});
4
- /************************************************************************/
5
- /******/ // The module cache
6
- /******/ var __webpack_module_cache__ = {};
7
- /******/
8
- /******/ // The require function
9
- /******/ function __webpack_require__(moduleId) {
10
- /******/ // Check if module is in cache
11
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
12
- /******/ if (cachedModule !== undefined) {
13
- /******/ return cachedModule.exports;
14
- /******/ }
15
- /******/ // Create a new module (and put it into the cache)
16
- /******/ var module = __webpack_module_cache__[moduleId] = {
17
- /******/ // no module.id needed
18
- /******/ // no module.loaded needed
19
- /******/ exports: {}
20
- /******/ };
21
- /******/
22
- /******/ // Execute the module function
23
- /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
24
- /******/
25
- /******/ // Return the exports of the module
26
- /******/ return module.exports;
27
- /******/ }
28
- /******/
29
- /******/ // expose the modules object (__webpack_modules__)
30
- /******/ __webpack_require__.m = __webpack_modules__;
31
- /******/
32
- /************************************************************************/
33
- /******/ /* webpack/runtime/chunk loaded */
34
- /******/ (() => {
35
- /******/ var deferred = [];
36
- /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
37
- /******/ if(chunkIds) {
38
- /******/ priority = priority || 0;
39
- /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
40
- /******/ deferred[i] = [chunkIds, fn, priority];
41
- /******/ return;
42
- /******/ }
43
- /******/ var notFulfilled = Infinity;
44
- /******/ for (var i = 0; i < deferred.length; i++) {
45
- /******/ var [chunkIds, fn, priority] = deferred[i];
46
- /******/ var fulfilled = true;
47
- /******/ for (var j = 0; j < chunkIds.length; j++) {
48
- /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
49
- /******/ chunkIds.splice(j--, 1);
50
- /******/ } else {
51
- /******/ fulfilled = false;
52
- /******/ if(priority < notFulfilled) notFulfilled = priority;
53
- /******/ }
54
- /******/ }
55
- /******/ if(fulfilled) {
56
- /******/ deferred.splice(i--, 1)
57
- /******/ var r = fn();
58
- /******/ if (r !== undefined) result = r;
59
- /******/ }
60
- /******/ }
61
- /******/ return result;
62
- /******/ };
63
- /******/ })();
64
- /******/
65
- /******/ /* webpack/runtime/define property getters */
66
- /******/ (() => {
67
- /******/ // define getter functions for harmony exports
68
- /******/ __webpack_require__.d = (exports, definition) => {
69
- /******/ for(var key in definition) {
70
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
71
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
72
- /******/ }
73
- /******/ }
74
- /******/ };
75
- /******/ })();
76
- /******/
77
- /******/ /* webpack/runtime/ensure chunk */
78
- /******/ (() => {
79
- /******/ // The chunk loading function for additional chunks
80
- /******/ // Since all referenced chunks are already included
81
- /******/ // in this file, this function is empty here.
82
- /******/ __webpack_require__.e = () => (Promise.resolve());
83
- /******/ })();
84
- /******/
85
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
86
- /******/ (() => {
87
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
88
- /******/ })();
89
- /******/
90
- /******/ /* webpack/runtime/make namespace object */
91
- /******/ (() => {
92
- /******/ // define __esModule on exports
93
- /******/ __webpack_require__.r = (exports) => {
94
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
95
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
96
- /******/ }
97
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
98
- /******/ };
99
- /******/ })();
100
- /******/
101
- /******/ /* webpack/runtime/runtimeId */
102
- /******/ (() => {
103
- /******/ __webpack_require__.j = 635;
104
- /******/ })();
105
- /******/
106
- /******/ /* webpack/runtime/set anonymous default export name */
107
- /******/ (() => {
108
- /******/ // set .name for anonymous default exports per ES spec
109
- /******/ __webpack_require__.dn = (x) => {
110
- /******/ (Object.getOwnPropertyDescriptor(x, "name") || {}).writable || Object.defineProperty(x, "name", { value: "default", configurable: true });
111
- /******/ };
112
- /******/ })();
113
- /******/
114
- /******/ /* webpack/runtime/jsonp chunk loading */
115
- /******/ (() => {
116
- /******/ // no baseURI
117
- /******/
118
- /******/ // object to store loaded and loading chunks
119
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
120
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
121
- /******/ var installedChunks = {
122
- /******/ 635: 0
123
- /******/ };
124
- /******/
125
- /******/ // no chunk on demand loading
126
- /******/
127
- /******/ // no prefetching
128
- /******/
129
- /******/ // no preloaded
130
- /******/
131
- /******/ // no HMR
132
- /******/
133
- /******/ // no HMR manifest
134
- /******/
135
- /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
136
- /******/
137
- /******/ // install a JSONP callback for chunk loading
138
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
139
- /******/ var [chunkIds, moreModules, runtime] = data;
140
- /******/ // add "moreModules" to the modules object,
141
- /******/ // then flag all "chunkIds" as loaded and fire callback
142
- /******/ var moduleId, chunkId, i = 0;
143
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
144
- /******/ for(moduleId in moreModules) {
145
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
146
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
147
- /******/ }
148
- /******/ }
149
- /******/ if(runtime) var result = runtime(__webpack_require__);
150
- /******/ }
151
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
152
- /******/ for(;i < chunkIds.length; i++) {
153
- /******/ chunkId = chunkIds[i];
154
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
155
- /******/ installedChunks[chunkId][0]();
156
- /******/ }
157
- /******/ installedChunks[chunkId] = 0;
158
- /******/ }
159
- /******/ return __webpack_require__.O(result);
160
- /******/ }
161
- /******/
162
- /******/ var chunkLoadingGlobal = globalThis["webpackChunkcloudcmd"] = globalThis["webpackChunkcloudcmd"] || [];
163
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
164
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
165
- /******/ })();
166
- /******/
167
- /************************************************************************/
168
- /******/
169
- /******/ // startup
170
- /******/ // Load entry module and return exports
171
- /******/ // This entry module depends on other loaded chunks and execution need to be delayed
172
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [267], () => (__webpack_require__(4409)))
173
- /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
174
- /******/
175
- /******/ })()
1
+ (() => {
2
+ "use strict";
3
+ var __webpack_modules__ = ({});
4
+ // The module cache
5
+ var __webpack_module_cache__ = {};
6
+
7
+ // The require function
8
+ function __webpack_require__(moduleId) {
9
+
10
+ // Check if module is in cache
11
+ var cachedModule = __webpack_module_cache__[moduleId];
12
+ if (cachedModule !== undefined) {
13
+ return cachedModule.exports;
14
+ }
15
+ // Create a new module (and put it into the cache)
16
+ var module = (__webpack_module_cache__[moduleId] = {
17
+ exports: {}
18
+ });
19
+ // Execute the module function
20
+ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
+
22
+ // Return the exports of the module
23
+ return module.exports;
24
+
25
+ }
26
+
27
+ // expose the modules object (__webpack_modules__)
28
+ __webpack_require__.m = __webpack_modules__;
29
+
30
+ // webpack/runtime/define_property_getters
31
+ (() => {
32
+ __webpack_require__.d = (exports, getters, values) => {
33
+ var define = (defs, kind) => {
34
+ for(var key in defs) {
35
+ if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
36
+ Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
37
+ }
38
+ }
39
+ };
40
+ define(getters, "get");
41
+ define(values, "value");
42
+ };
43
+ })();
44
+ // webpack/runtime/ensure_chunk
45
+ (() => {
46
+ // The chunk loading function for additional chunks
47
+ // Since all referenced chunks are already included
48
+ // in this file, this function is empty here.
49
+ __webpack_require__.e = () => (Promise.resolve())
50
+ })();
51
+ // webpack/runtime/global
52
+ (() => {
53
+ __webpack_require__.g = (() => {
54
+ if (typeof globalThis === 'object') return globalThis;
55
+ try {
56
+ return this || new Function('return this')();
57
+ } catch (e) {
58
+ if (typeof window === 'object') return window;
59
+ }
60
+ })();
61
+ })();
62
+ // webpack/runtime/has_own_property
63
+ (() => {
64
+ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
65
+ })();
66
+ // webpack/runtime/make_namespace_object
67
+ (() => {
68
+ // define __esModule on exports
69
+ __webpack_require__.r = (exports) => {
70
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
71
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
72
+ }
73
+ Object.defineProperty(exports, '__esModule', { value: true });
74
+ };
75
+ })();
76
+ // webpack/runtime/on_chunk_loaded
77
+ (() => {
78
+ var deferred = [];
79
+ __webpack_require__.O = (result, chunkIds, fn, priority) => {
80
+ if (chunkIds) {
81
+ priority = priority || 0;
82
+ for (var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--)
83
+ deferred[i] = deferred[i - 1];
84
+ deferred[i] = [chunkIds, fn, priority];
85
+ return;
86
+ }
87
+ var notFulfilled = Infinity;
88
+ for (var i = 0; i < deferred.length; i++) {
89
+ var [chunkIds, fn, priority] = deferred[i];
90
+ var fulfilled = true;
91
+ for (var j = 0; j < chunkIds.length; j++) {
92
+ if (
93
+ (priority & (1 === 0) || notFulfilled >= priority) &&
94
+ Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))
95
+ ) {
96
+ chunkIds.splice(j--, 1);
97
+ } else {
98
+ fulfilled = false;
99
+ if (priority < notFulfilled) notFulfilled = priority;
100
+ }
101
+ }
102
+ if (fulfilled) {
103
+ deferred.splice(i--, 1);
104
+ var r = fn();
105
+ if (r !== undefined) result = r;
106
+ }
107
+ }
108
+ return result;
109
+ };
110
+
111
+ })();
112
+ // webpack/runtime/runtime_id
113
+ (() => {
114
+ __webpack_require__.j = "392";
115
+ })();
116
+ // webpack/runtime/jsonp_chunk_loading
117
+ (() => {
118
+
119
+ // object to store loaded and loading chunks
120
+ // undefined = chunk not loaded, null = chunk preloaded/prefetched
121
+ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
122
+ var jsonpInstalledChunks = {392: 0,};
123
+ __webpack_require__.O.j = (chunkId) => (jsonpInstalledChunks[chunkId] === 0);
124
+ // install a JSONP callback for chunk loading
125
+ var __rspack_jsonp = (parentChunkLoadingFunction, data) => {
126
+ var [chunkIds, moreModules, runtime] = data;
127
+ // add "moreModules" to the modules object,
128
+ // then flag all "chunkIds" as loaded and fire callback
129
+ var moduleId, chunkId, i = 0;
130
+ if (chunkIds.some((id) => (jsonpInstalledChunks[id] !== 0))) {
131
+ for (moduleId in moreModules) {
132
+ if (__webpack_require__.o(moreModules, moduleId)) {
133
+ __webpack_require__.m[moduleId] = moreModules[moduleId];
134
+ }
135
+ }
136
+ if (runtime) var result = runtime(__webpack_require__);
137
+ }
138
+ if (parentChunkLoadingFunction) parentChunkLoadingFunction(data);
139
+ for (; i < chunkIds.length; i++) {
140
+ chunkId = chunkIds[i];
141
+ if (
142
+ __webpack_require__.o(jsonpInstalledChunks, chunkId) &&
143
+ jsonpInstalledChunks[chunkId]
144
+ ) {
145
+ jsonpInstalledChunks[chunkId][0]();
146
+ }
147
+ jsonpInstalledChunks[chunkId] = 0;
148
+ }
149
+
150
+ return __webpack_require__.O(result);
151
+
152
+ };
153
+
154
+ var jsonpChunkLoadingGlobal = globalThis["rspackChunkcloudcmd"] ||= [];
155
+ jsonpChunkLoadingGlobal.forEach(__rspack_jsonp.bind(null, 0));
156
+ jsonpChunkLoadingGlobal.push = __rspack_jsonp.bind(null, jsonpChunkLoadingGlobal.push.bind(jsonpChunkLoadingGlobal));
157
+
158
+ })();
159
+ // module factories are used so entry inlining is disabled
160
+ // startup
161
+ // Load entry module and return exports
162
+ var __webpack_exports__ = __webpack_require__.O(undefined, ["136"], () => __webpack_require__(2418));
163
+ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
164
+ })()
176
165
  ;
177
166
  //# sourceMappingURL=view.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"./modules/view.js","mappings":";;;;UAAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA;WACA;WACA;WACA,kD;;;;;WCHA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA,4B;;;;;WCAA;WACA;WACA,kDAAkD,iDAAiD,sCAAsC;WACzI,E;;;;;WCHA;;WAEA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEhDA;UACA;UACA;UACA;UACA","sources":["file://cloudcmd/webpack/bootstrap","file://cloudcmd/webpack/runtime/chunk loaded","file://cloudcmd/webpack/runtime/define property getters","file://cloudcmd/webpack/runtime/ensure chunk","file://cloudcmd/webpack/runtime/hasOwnProperty shorthand","file://cloudcmd/webpack/runtime/make namespace object","file://cloudcmd/webpack/runtime/runtimeId","file://cloudcmd/webpack/runtime/set anonymous default export name","file://cloudcmd/webpack/runtime/jsonp chunk loading","file://cloudcmd/webpack/before-startup","file://cloudcmd/webpack/startup","file://cloudcmd/webpack/after-startup"],"sourcesContent":["// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","// The chunk loading function for additional chunks\n// Since all referenced chunks are already included\n// in this file, this function is empty here.\n__webpack_require__.e = () => (Promise.resolve());","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.j = 635;","// set .name for anonymous default exports per ES spec\n__webpack_require__.dn = (x) => {\n\t(Object.getOwnPropertyDescriptor(x, \"name\") || {}).writable || Object.defineProperty(x, \"name\", { value: \"default\", configurable: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t635: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcloudcmd\"] = globalThis[\"webpackChunkcloudcmd\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [267], () => (__webpack_require__(4409)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"./modules/view.js","sources":["file://cloudcmd/webpack/runtime/define_property_getters","file://cloudcmd/webpack/runtime/ensure_chunk","file://cloudcmd/webpack/runtime/global","file://cloudcmd/webpack/runtime/has_own_property","file://cloudcmd/webpack/runtime/make_namespace_object","file://cloudcmd/webpack/runtime/on_chunk_loaded","file://cloudcmd/webpack/runtime/runtime_id","file://cloudcmd/webpack/runtime/jsonp_chunk_loading"],"sourcesContent":["__webpack_require__.d = (exports, getters, values) => {\n\tvar define = (defs, kind) => {\n\t\tfor(var key in defs) {\n\t\t\tif(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });\n\t\t\t}\n\t\t}\n\t};\n\tdefine(getters, \"get\");\n\tdefine(values, \"value\");\n};","// The chunk loading function for additional chunks\n// Since all referenced chunks are already included\n// in this file, this function is empty here.\n__webpack_require__.e = () => (Promise.resolve()) ","__webpack_require__.g = (() => {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif (chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor (var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--)\n\t\t\tdeferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif (\n\t\t\t\t(priority & (1 === 0) || notFulfilled >= priority) &&\n\t\t\t\tObject.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))\n\t\t\t) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif (priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif (fulfilled) {\n\t\t\tdeferred.splice(i--, 1);\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};\n","__webpack_require__.j = \"392\";","\n // object to store loaded and loading chunks\n // undefined = chunk not loaded, null = chunk preloaded/prefetched\n // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\n var jsonpInstalledChunks = {392: 0,};\n __webpack_require__.O.j = (chunkId) => (jsonpInstalledChunks[chunkId] === 0);\n// install a JSONP callback for chunk loading\nvar __rspack_jsonp = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif (chunkIds.some((id) => (jsonpInstalledChunks[id] !== 0))) {\n\t\tfor (moduleId in moreModules) {\n\t\t\tif (__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif (runtime) var result = runtime(__webpack_require__);\n\t}\n\tif (parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor (; i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif (\n\t\t\t__webpack_require__.o(jsonpInstalledChunks, chunkId) &&\n\t\t\tjsonpInstalledChunks[chunkId]\n\t\t) {\n\t\t\tjsonpInstalledChunks[chunkId][0]();\n\t\t}\n\t\tjsonpInstalledChunks[chunkId] = 0;\n\t}\n\t\n\treturn __webpack_require__.O(result);\n\t\n};\n\nvar jsonpChunkLoadingGlobal = globalThis[\"rspackChunkcloudcmd\"] ||= [];\njsonpChunkLoadingGlobal.forEach(__rspack_jsonp.bind(null, 0));\njsonpChunkLoadingGlobal.push = __rspack_jsonp.bind(null, jsonpChunkLoadingGlobal.push.bind(jsonpChunkLoadingGlobal));\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA,0CAA0C,qCAAqC;AAC/E;AACA;AACA;AACA;AACA;AACA,E;;;;ACVA;AACA;AACA;AACA,kD;;;;ACHA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,CAAC,I;;;;ACPD,wF;;;;ACAA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA,gDAAgD,aAAa;AAC7D,E;;;;ACNA;AACA;AACA;AACA;AACA,gCAAgC,wCAAwC;AACxE;AACA;AACA;AACA;AACA;AACA,iBAAiB,qBAAqB;AACtC;AACA;AACA,kBAAkB,qBAAqB;AACvC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AC/BA,8B;;;;;ACCA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,qBAAqB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA"}
package/dist/nojs.css CHANGED
@@ -1,2 +1,2 @@
1
- .keyspanel,.path-icon{display:none}.links{margin-left:16px}.fm{height:100%}.panel-right{display:none}.panel-left{width:98%}.name a:hover{cursor:pointer}
1
+ .path-icon,.keyspanel{display:none}.links{margin-left:16px}.fm{height:100%}.panel-right{display:none}.panel-left{width:98%}.name a:hover{cursor:pointer}
2
2
  /*# sourceMappingURL=nojs.css.map*/
package/dist/nojs.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"nojs.css","mappings":"AAAA,sBAEI,YACJ,CAEA,OACI,gBACJ,CAEA,IACI,WACJ,CAEA,aACI,YACJ,CAEA,YACI,SACJ,CAEA,cACI,cACJ","sources":["file://cloudcmd//Users/coderaiser/cloudcmd/css/nojs.css"],"sourcesContent":[".path-icon,\n.keyspanel {\n display: none;\n}\n\n.links {\n margin-left: 16px;\n}\n\n.fm {\n height: 100%;\n}\n\n.panel-right {\n display: none;\n}\n\n.panel-left {\n width: 98%;\n}\n\n.name a:hover {\n cursor: pointer;\n}\n"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"nojs.css","sources":["file://cloudcmd//Users/coderaiser/cloudcmd/css/nojs.css"],"sourcesContent":[".path-icon,\n.keyspanel {\n display: none;\n}\n\n.links {\n margin-left: 16px;\n}\n\n.fm {\n height: 100%;\n}\n\n.panel-right {\n display: none;\n}\n\n.panel-left {\n width: 98%;\n}\n\n.name a:hover {\n cursor: pointer;\n}\n"],"names":[],"mappings":"AAAA,mCAKA,wBAIA,gBAIA,0BAIA,sBAIA"}
package/dist/nojs.js CHANGED
@@ -1,7 +1,7 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- // extracted by mini-css-extract-plugin
1
+ (() => {
2
+ "use strict";
3
+ // extracted by css-extract-rspack-plugin
4
4
 
5
- /******/ })()
5
+ })()
6
6
  ;
7
7
  //# sourceMappingURL=nojs.js.map
package/dist/nojs.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"nojs.js","mappings":";;AAAA","sources":["webpack://cloudcmd/./css/nojs.css?9371"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"nojs.js","sources":["webpack://cloudcmd/./css/nojs.css?6227"],"sourcesContent":["// extracted by css-extract-rspack-plugin\nexport {};"],"names":[],"mappings":";;AAAA"}
package/dist/sw.js CHANGED
@@ -1,9 +1,6 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ var __webpack_modules__ = ({
3
-
4
- /***/ 4299
5
- (module) {
6
-
1
+ (() => {
2
+ var __webpack_modules__ = ({
3
+ 4299(module) {
7
4
  "use strict";
8
5
 
9
6
 
@@ -41,11 +38,8 @@ function check(fn) {
41
38
 
42
39
 
43
40
 
44
- /***/ },
45
-
46
- /***/ 5606
47
- (module) {
48
-
41
+ },
42
+ 5606(module) {
49
43
  // shim for using process in browser
50
44
  var process = module.exports = {};
51
45
 
@@ -232,42 +226,39 @@ process.chdir = function (dir) {
232
226
  process.umask = function() { return 0; };
233
227
 
234
228
 
235
- /***/ }
236
-
237
- /******/ });
238
- /************************************************************************/
239
- /******/ // The module cache
240
- /******/ var __webpack_module_cache__ = {};
241
- /******/
242
- /******/ // The require function
243
- /******/ function __webpack_require__(moduleId) {
244
- /******/ // Check if module is in cache
245
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
246
- /******/ if (cachedModule !== undefined) {
247
- /******/ return cachedModule.exports;
248
- /******/ }
249
- /******/ // Create a new module (and put it into the cache)
250
- /******/ var module = __webpack_module_cache__[moduleId] = {
251
- /******/ // no module.id needed
252
- /******/ // no module.loaded needed
253
- /******/ exports: {}
254
- /******/ };
255
- /******/
256
- /******/ // Execute the module function
257
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
258
- /******/
259
- /******/ // Return the exports of the module
260
- /******/ return module.exports;
261
- /******/ }
262
- /******/
263
- /************************************************************************/
229
+ },
230
+
231
+ });
232
+ // The module cache
233
+ var __webpack_module_cache__ = {};
234
+
235
+ // The require function
236
+ function __webpack_require__(moduleId) {
237
+
238
+ // Check if module is in cache
239
+ var cachedModule = __webpack_module_cache__[moduleId];
240
+ if (cachedModule !== undefined) {
241
+ return cachedModule.exports;
242
+ }
243
+ // Create a new module (and put it into the cache)
244
+ var module = (__webpack_module_cache__[moduleId] = {
245
+ exports: {}
246
+ });
247
+ // Execute the module function
248
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
249
+
250
+ // Return the exports of the module
251
+ return module.exports;
252
+
253
+ }
254
+
264
255
  // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
265
256
  (() => {
266
257
  "use strict";
267
258
 
268
259
  // EXTERNAL MODULE: ./node_modules/process/browser.js
269
260
  var browser = __webpack_require__(5606);
270
- ;// ./node_modules/try-to-catch/lib/try-to-catch.js
261
+ ;// CONCATENATED MODULE: ./node_modules/try-to-catch/lib/try-to-catch.js
271
262
  const isFn = (a) => typeof a === 'function';
272
263
 
273
264
  const tryToCatch = async (fn, ...args) => {
@@ -287,11 +278,11 @@ function check(fn) {
287
278
 
288
279
  // EXTERNAL MODULE: ./node_modules/currify/lib/currify.js
289
280
  var currify = __webpack_require__(4299);
290
- ;// ./client/sw/sw.js
281
+ ;// CONCATENATED MODULE: ./client/sw/sw.js
291
282
 
292
283
 
293
284
 
294
- const isDev = "production" === 'development';
285
+ const isDev = (/* unused pure expression or super */ null && ("production" === 'development'));
295
286
  const isGet = a => a.method === 'GET';
296
287
  const isBasic = a => a.type === 'basic';
297
288
  const wait = currify((f, e) => e.waitUntil(f()));
@@ -311,7 +302,7 @@ const respondWith = currify((f, e) => {
311
302
  e.respondWith(f(e));
312
303
  });
313
304
  const getPathName = url => new URL(url).pathname;
314
- const date = "Mon Jun 15 2026 14:50:28 GMT+0300 (Eastern European Summer Time)";
305
+ const date = "Sun Aug 23 2026 10:54:37 GMT+0300 (Eastern European Summer Time)";
315
306
  const NAME = `cloudcmd: ${date}`;
316
307
  const createRequest = a => new Request(a, {
317
308
  credentials: 'same-origin'
@@ -345,7 +336,7 @@ async function onFetch(event) {
345
336
  const newRequest = getRequest(pathname, event.request);
346
337
  const cache = await caches.open(NAME);
347
338
  const response = await cache.match(request);
348
- if (!isDev && response) return response;
339
+ if ( true && response) return response;
349
340
  const [e, resp] = await tryToCatch(fetch, newRequest, {
350
341
  credentials: 'same-origin'
351
342
  });
@@ -359,6 +350,6 @@ async function addToCache(request, response) {
359
350
  }
360
351
  })();
361
352
 
362
- /******/ })()
353
+ })()
363
354
  ;
364
355
  //# sourceMappingURL=sw.js.map
package/dist/sw.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sw.js","mappings":";;;;;;;AAAa;;AAEb;AACA;AACA,kBAAkB,yBAAyB;AAC3C,qBAAqB,yBAAyB;AAC9C,wBAAwB,yBAAyB;AACjD,2BAA2B,yBAAyB;AACpD,8BAA8B,yBAAyB;AACvD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;;;;;;;;AChCA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAsC;;AAEtC;AACA;AACA;;AAEA,4BAA4B;AAC5B;AACA;AACA;AACA,6BAA6B;;;;;;;UCvL7B;UACA;;UA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,CAACF,GAAG,CAAC;EACjC,MAAMgC,UAAU,GAAGpB,UAAU,CAACX,QAAQ,EAAE8B,KAAK,CAAChC,OAAO,CAAC;EAEtD,MAAMkC,KAAK,GAAG,MAAMV,MAAM,CAACW,IAAI,CAAC1B,IAAI,CAAC;EACrC,MAAM2B,QAAQ,GAAG,MAAMF,KAAK,CAACG,KAAK,CAACrC,OAAO,CAAC;EAE3C,IAAI,CAACb,KAAK,IAAIiD,QAAQ,EAClB,OAAOA,QAAQ;EAEnB,MAAM,CAACvC,CAAC,EAAEyC,IAAI,CAAC,GAAG,MAAMrD,UAAU,CAACsD,KAAK,EAAEN,UAAU,EAAE;IAClDrB,WAAW,EAAE;EACjB,CAAC,CAAC;EAEF,IAAIf,CAAC,EACD,OAAO,IAAI2C,QAAQ,CAAC3C,CAAC,CAAC4C,OAAO,CAAC;EAElC,MAAMC,UAAU,CAAC1C,OAAO,EAAEsC,IAAI,CAACK,KAAK,CAAC,CAAC,CAAC;EAEvC,OAAOL,IAAI;AACf;AAEA,eAAeI,UAAUA,CAAC1C,OAAO,EAAEoC,QAAQ,EAAE;EACzC,MAAMF,KAAK,GAAG,MAAMV,MAAM,CAACW,IAAI,CAAC1B,IAAI,CAAC;EACrC,OAAOyB,KAAK,CAACU,GAAG,CAAC5C,OAAO,EAAEoC,QAAQ,CAAC;AACvC,C","sources":["file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/currify/lib/currify.js","file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/process/browser.js","file://cloudcmd/webpack/bootstrap","file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/try-to-catch/lib/try-to-catch.js","file://cloudcmd//Users/coderaiser/cloudcmd/client/sw/sw.js"],"sourcesContent":["'use strict';\n\nconst f = (fn) => [\n /*eslint no-unused-vars: 0*/\n function (a) {return fn(...arguments);},\n function (a, b) {return fn(...arguments);},\n function (a, b, c) {return fn(...arguments);},\n function (a, b, c, d) {return fn(...arguments);},\n function (a, b, c, d, e) {return fn(...arguments);},\n];\n\nconst currify = (fn, ...args) => {\n check(fn);\n \n if (args.length >= fn.length)\n return fn(...args);\n \n const again = (...args2) => {\n return currify(fn, ...[...args, ...args2]);\n };\n \n const count = fn.length - args.length - 1;\n const func = f(again)[count];\n \n return func || again;\n};\n\nmodule.exports = currify;\n\nfunction check(fn) {\n if (typeof fn !== 'function')\n throw Error('fn should be function!');\n}\n\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // 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\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // 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.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","const isFn = (a) => typeof a === 'function';\n\nexport const tryToCatch = async (fn, ...args) => {\n check(fn);\n \n try {\n return [null, await fn(...args)];\n } catch(e) {\n return [e];\n }\n};\n\nfunction check(fn) {\n if (!isFn(fn))\n throw Error('fn should be a function!');\n}\n","import process from 'node:process';\nimport codegen from 'codegen.macro';\nimport {tryToCatch} from 'try-to-catch';\nimport currify from 'currify';\n\nconst isDev = process.env.NODE_ENV === 'development';\n\nconst isGet = (a) => a.method === 'GET';\nconst isBasic = (a) => a.type === 'basic';\n\nconst wait = currify((f, e) => e.waitUntil(f()));\nconst respondWith = currify((f, e) => {\n const {request} = e;\n const {url} = request;\n const pathname = getPathName(url);\n \n if (url.endsWith('/') || /\\^\\/fs/.test(pathname))\n return;\n \n if (!isGet(request))\n return;\n \n if (!isBasic(request))\n return;\n \n if (pathname.startsWith('/api'))\n return;\n \n if (/^socket.io/.test(pathname))\n return;\n \n e.respondWith(f(e));\n});\n\nconst getPathName = (url) => new URL(url).pathname;\n\nconst date = codegen`module.exports = '\"' + Date() + '\"'`;\nconst NAME = `cloudcmd: ${date}`;\n\nconst createRequest = (a) => new Request(a, {\n credentials: 'same-origin',\n});\n\nconst getRequest = (a, request) => {\n if (a !== '/')\n return request;\n \n return createRequest('/');\n};\n\nglobalThis.addEventListener('install', wait(onInstall));\nglobalThis.addEventListener('fetch', respondWith(onFetch));\nglobalThis.addEventListener('activate', wait(onActivate));\n\nasync function onActivate() {\n console.info(`cloudcmd: sw: activate: ${NAME}`);\n \n await globalThis.clients.claim();\n const keys = await caches.keys();\n const deleteCache = caches.delete.bind(caches);\n \n await Promise.all(keys.map(deleteCache));\n}\n\nasync function onInstall() {\n console.info(`cloudcmd: sw: install: ${NAME}`);\n \n await globalThis.skipWaiting();\n}\n\nasync function onFetch(event) {\n const {request} = event;\n const {url} = request;\n const pathname = getPathName(url);\n const newRequest = getRequest(pathname, event.request);\n \n const cache = await caches.open(NAME);\n const response = await cache.match(request);\n \n if (!isDev && response)\n return response;\n \n const [e, resp] = await tryToCatch(fetch, newRequest, {\n credentials: 'same-origin',\n });\n \n if (e)\n return new Response(e.message);\n \n await addToCache(request, resp.clone());\n \n return resp;\n}\n\nasync function addToCache(request, response) {\n const cache = await caches.open(NAME);\n return cache.put(request, response);\n}\n"],"names":["process","tryToCatch","currify","isDev","env","NODE_ENV","isGet","a","method","isBasic","type","wait","f","e","waitUntil","respondWith","request","url","pathname","getPathName","endsWith","test","startsWith","URL","date","NAME","createRequest","Request","credentials","getRequest","globalThis","addEventListener","onInstall","onFetch","onActivate","console","info","clients","claim","keys","caches","deleteCache","delete","bind","Promise","all","map","skipWaiting","event","newRequest","cache","open","response","match","resp","fetch","Response","message","addToCache","clone","put"],"sourceRoot":""}
1
+ {"version":3,"file":"sw.js","sources":["file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/currify/lib/currify.js","file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/process/browser.js","file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/try-to-catch/lib/try-to-catch.js","file://cloudcmd//Users/coderaiser/cloudcmd/client/sw/sw.js"],"sourcesContent":["'use strict';\n\nconst f = (fn) => [\n /*eslint no-unused-vars: 0*/\n function (a) {return fn(...arguments);},\n function (a, b) {return fn(...arguments);},\n function (a, b, c) {return fn(...arguments);},\n function (a, b, c, d) {return fn(...arguments);},\n function (a, b, c, d, e) {return fn(...arguments);},\n];\n\nconst currify = (fn, ...args) => {\n check(fn);\n \n if (args.length >= fn.length)\n return fn(...args);\n \n const again = (...args2) => {\n return currify(fn, ...[...args, ...args2]);\n };\n \n const count = fn.length - args.length - 1;\n const func = f(again)[count];\n \n return func || again;\n};\n\nmodule.exports = currify;\n\nfunction check(fn) {\n if (typeof fn !== 'function')\n throw Error('fn should be function!');\n}\n\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // 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\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // 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.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","const isFn = (a) => typeof a === 'function';\n\nexport const tryToCatch = async (fn, ...args) => {\n check(fn);\n \n try {\n return [null, await fn(...args)];\n } catch(e) {\n return [e];\n }\n};\n\nfunction check(fn) {\n if (!isFn(fn))\n throw Error('fn should be a function!');\n}\n","import process from 'node:process';\nimport codegen from 'codegen.macro';\nimport {tryToCatch} from 'try-to-catch';\nimport currify from 'currify';\n\nconst isDev = process.env.NODE_ENV === 'development';\n\nconst isGet = (a) => a.method === 'GET';\nconst isBasic = (a) => a.type === 'basic';\n\nconst wait = currify((f, e) => e.waitUntil(f()));\nconst respondWith = currify((f, e) => {\n const {request} = e;\n const {url} = request;\n const pathname = getPathName(url);\n \n if (url.endsWith('/') || /\\^\\/fs/.test(pathname))\n return;\n \n if (!isGet(request))\n return;\n \n if (!isBasic(request))\n return;\n \n if (pathname.startsWith('/api'))\n return;\n \n if (/^socket.io/.test(pathname))\n return;\n \n e.respondWith(f(e));\n});\n\nconst getPathName = (url) => new URL(url).pathname;\n\nconst date = codegen`module.exports = '\"' + Date() + '\"'`;\nconst NAME = `cloudcmd: ${date}`;\n\nconst createRequest = (a) => new Request(a, {\n credentials: 'same-origin',\n});\n\nconst getRequest = (a, request) => {\n if (a !== '/')\n return request;\n \n return createRequest('/');\n};\n\nglobalThis.addEventListener('install', wait(onInstall));\nglobalThis.addEventListener('fetch', respondWith(onFetch));\nglobalThis.addEventListener('activate', wait(onActivate));\n\nasync function onActivate() {\n console.info(`cloudcmd: sw: activate: ${NAME}`);\n \n await globalThis.clients.claim();\n const keys = await caches.keys();\n const deleteCache = caches.delete.bind(caches);\n \n await Promise.all(keys.map(deleteCache));\n}\n\nasync function onInstall() {\n console.info(`cloudcmd: sw: install: ${NAME}`);\n \n await globalThis.skipWaiting();\n}\n\nasync function onFetch(event) {\n const {request} = event;\n const {url} = request;\n const pathname = getPathName(url);\n const newRequest = getRequest(pathname, event.request);\n \n const cache = await caches.open(NAME);\n const response = await cache.match(request);\n \n if (!isDev && response)\n return response;\n \n const [e, resp] = await tryToCatch(fetch, newRequest, {\n credentials: 'same-origin',\n });\n \n if (e)\n return new Response(e.message);\n \n await addToCache(request, resp.clone());\n \n return resp;\n}\n\nasync function addToCache(request, response) {\n const cache = await caches.open(NAME);\n return cache.put(request, response);\n}\n"],"names":[],"mappings":";;;;AAAa;;AAEb;AACA;AACA,kBAAkB,yBAAyB;AAC3C,qBAAqB,yBAAyB;AAC9C,wBAAwB,yBAAyB;AACjD,2BAA2B,yBAAyB;AACpD,8BAA8B,yBAAyB;AACvD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc;;AAEd;AACA;AACA;AACA;;;;;;AChCA;AACA,cAAc,cAAc;;AAE5B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAsC;;AAEtC;AACA;AACA;;AAEA,4BAA4B;AAC5B;AACA;AACA;AACA,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACvL7B;;AAEO;AACP;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;ACfmC;AAEK;AACV;AAE9B,MAAM,KAAK,GAAG,4DAAoB,KAAK,aAAa;AAEpD,MAAM,KAAK,GAAI,CAAC,IAAK,CAAC,CAAC,MAAM,KAAK,KAAK;AACvC,MAAM,O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