cloudcmd 19.19.0 → 19.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ChangeLog +20 -0
- package/HELP.md +10 -5
- package/README.md +3 -1
- package/dist/cloudcmd.common.css +1 -1
- package/dist/cloudcmd.common.css.map +1 -1
- package/dist/cloudcmd.common.js +8019 -9395
- package/dist/cloudcmd.common.js.map +1 -1
- package/dist/cloudcmd.js +164 -175
- package/dist/cloudcmd.js.map +1 -1
- package/dist/columns/name-size-date-time.css +1 -1
- package/dist/columns/name-size-date-time.css.map +1 -1
- package/dist/columns/name-size-date-time.js +4 -4
- package/dist/columns/name-size-date-time.js.map +1 -1
- package/dist/columns/name-size-date.css +1 -1
- package/dist/columns/name-size-date.css.map +1 -1
- package/dist/columns/name-size-date.js +4 -4
- package/dist/columns/name-size-date.js.map +1 -1
- package/dist/columns/name-size.css +1 -1
- package/dist/columns/name-size.css.map +1 -1
- package/dist/columns/name-size.js +4 -4
- package/dist/columns/name-size.js.map +1 -1
- package/dist/config.css +1 -1
- package/dist/config.css.map +1 -1
- package/dist/config.js +4 -4
- package/dist/config.js.map +1 -1
- package/dist/help.css +1 -1
- package/dist/help.css.map +1 -1
- package/dist/help.js +4 -4
- package/dist/help.js.map +1 -1
- package/dist/modules/cloud.js +164 -175
- package/dist/modules/cloud.js.map +1 -1
- package/dist/modules/command-line.js +164 -175
- package/dist/modules/command-line.js.map +1 -1
- package/dist/modules/config.js +164 -175
- package/dist/modules/config.js.map +1 -1
- package/dist/modules/contact.js +164 -175
- package/dist/modules/contact.js.map +1 -1
- package/dist/modules/edit-file-vim.js +164 -175
- package/dist/modules/edit-file-vim.js.map +1 -1
- package/dist/modules/edit-file.js +164 -175
- package/dist/modules/edit-file.js.map +1 -1
- package/dist/modules/edit-names-vim.js +164 -175
- package/dist/modules/edit-names-vim.js.map +1 -1
- package/dist/modules/edit-names.js +164 -175
- package/dist/modules/edit-names.js.map +1 -1
- package/dist/modules/edit.js +164 -175
- package/dist/modules/edit.js.map +1 -1
- package/dist/modules/help.js +164 -175
- package/dist/modules/help.js.map +1 -1
- package/dist/modules/konsole.js +164 -175
- package/dist/modules/konsole.js.map +1 -1
- package/dist/modules/markdown.js +164 -175
- package/dist/modules/markdown.js.map +1 -1
- package/dist/modules/menu.js +164 -175
- package/dist/modules/menu.js.map +1 -1
- package/dist/modules/operation.js +164 -175
- package/dist/modules/operation.js.map +1 -1
- package/dist/modules/polyfill.js +164 -175
- package/dist/modules/polyfill.js.map +1 -1
- package/dist/modules/terminal-run.js +164 -175
- package/dist/modules/terminal-run.js.map +1 -1
- package/dist/modules/terminal.js +164 -175
- package/dist/modules/terminal.js.map +1 -1
- package/dist/modules/upload.js +164 -175
- package/dist/modules/upload.js.map +1 -1
- package/dist/modules/user-menu.js +164 -175
- package/dist/modules/user-menu.js.map +1 -1
- package/dist/modules/view.js +164 -175
- package/dist/modules/view.js.map +1 -1
- package/dist/nojs.css +1 -1
- package/dist/nojs.css.map +1 -1
- package/dist/nojs.js +4 -4
- package/dist/nojs.js.map +1 -1
- package/dist/sw.js +37 -46
- package/dist/sw.js.map +1 -1
- package/dist/terminal.css.map +1 -1
- package/dist/terminal.js +4 -4
- package/dist/terminal.js.map +1 -1
- package/dist/themes/dark.css +1 -1
- package/dist/themes/dark.css.map +1 -1
- package/dist/themes/dark.js +4 -4
- package/dist/themes/dark.js.map +1 -1
- package/dist/themes/light.css +1 -1
- package/dist/themes/light.css.map +1 -1
- package/dist/themes/light.js +4 -4
- package/dist/themes/light.js.map +1 -1
- package/dist/user-menu.css +1 -1
- package/dist/user-menu.css.map +1 -1
- package/dist/user-menu.js +4 -4
- package/dist/user-menu.js.map +1 -1
- package/dist/view.css +1 -1
- package/dist/view.css.map +1 -1
- package/dist/view.js +4 -4
- package/dist/view.js.map +1 -1
- package/dist-dev/cloudcmd.common.css +17 -17
- package/dist-dev/cloudcmd.common.js +759 -1198
- package/dist-dev/cloudcmd.js +160 -184
- package/dist-dev/columns/name-size-date-time.css +1 -1
- package/dist-dev/columns/name-size-date-time.js +26 -42
- package/dist-dev/columns/name-size-date.css +1 -1
- package/dist-dev/columns/name-size-date.js +26 -42
- package/dist-dev/columns/name-size.css +1 -1
- package/dist-dev/columns/name-size.js +26 -42
- package/dist-dev/config.css +1 -1
- package/dist-dev/config.js +26 -42
- package/dist-dev/help.css +1 -1
- package/dist-dev/help.js +26 -42
- package/dist-dev/modules/cloud.js +160 -184
- package/dist-dev/modules/command-line.js +160 -184
- package/dist-dev/modules/config.js +160 -184
- package/dist-dev/modules/contact.js +160 -184
- package/dist-dev/modules/edit-file-vim.js +160 -184
- package/dist-dev/modules/edit-file.js +160 -184
- package/dist-dev/modules/edit-names-vim.js +160 -184
- package/dist-dev/modules/edit-names.js +160 -184
- package/dist-dev/modules/edit.js +160 -184
- package/dist-dev/modules/help.js +160 -184
- package/dist-dev/modules/konsole.js +160 -184
- package/dist-dev/modules/markdown.js +160 -184
- package/dist-dev/modules/menu.js +160 -184
- package/dist-dev/modules/operation.js +160 -184
- package/dist-dev/modules/polyfill.js +160 -184
- package/dist-dev/modules/terminal-run.js +160 -184
- package/dist-dev/modules/terminal.js +160 -184
- package/dist-dev/modules/upload.js +160 -184
- package/dist-dev/modules/user-menu.js +160 -184
- package/dist-dev/modules/view.js +160 -184
- package/dist-dev/nojs.css +1 -1
- package/dist-dev/nojs.js +26 -42
- package/dist-dev/sw.js +71 -99
- package/dist-dev/terminal.css +1 -1
- package/dist-dev/terminal.js +26 -42
- package/dist-dev/themes/dark.css +1 -1
- package/dist-dev/themes/dark.js +26 -42
- package/dist-dev/themes/light.css +1 -1
- package/dist-dev/themes/light.js +26 -42
- package/dist-dev/user-menu.css +1 -1
- package/dist-dev/user-menu.js +26 -42
- package/dist-dev/view.css +1 -1
- package/dist-dev/view.js +26 -42
- package/package.json +11 -15
- package/server/rest/index.js +16 -0
package/dist/modules/view.js
CHANGED
|
@@ -1,177 +1,166 @@
|
|
|
1
|
-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
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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
|
package/dist/modules/view.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"./modules/view.js","
|
|
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
|
-
.
|
|
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","
|
|
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
package/dist/nojs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nojs.js","
|
|
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
|
-
|
|
2
|
-
|
|
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
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
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 = "
|
|
305
|
+
const date = "Thu Aug 06 2026 16:28:17 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 (
|
|
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;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;;;;;;ACtBA;;AAEO;AACP;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;ACfmC;AAEK;AACV;AAE9B,MAAMG,KAAK,GAAGH,YAAoB,KAAK,aAAa;AAEpD,MAAMM,KAAK,GAAIC,CAAC,IAAKA,CAAC,CAACC,MAAM,KAAK,KAAK;AACvC,MAAMC,OAAO,GAAIF,CAAC,IAAKA,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AAMrD,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,OAAO,GAAI,CAAC,IAAK,CAAC,CAAC,IAAI,KAAK,OAAO;AAEzC,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAChD,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK;EAClC,MAAM;IAAC;EAAO,CAAC,GAAG,CAAC;EACnB,MAAM;IAAC;EAAG,CAAC,GAAG,OAAO;EACrB,MAAM,QAAQ,GAAG,WAAW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