cloudcmd
Version:
File manager for the web with console and editor
412 lines (302 loc) • 552 kB
JavaScript
/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
(globalThis["webpackChunkcloudcmd"] = globalThis["webpackChunkcloudcmd"] || []).push([["cloudcmd.common"],{
/***/ "./node_modules/@cloudcmd/clipboard/lib/clipboard.js"
/*!***********************************************************!*\
!*** ./node_modules/@cloudcmd/clipboard/lib/clipboard.js ***!
\***********************************************************/
(module) {
"use strict";
eval("{\n\nmodule.exports = navigator.clipboard || {\n readText,\n writeText,\n};\n\nfunction readText() {\n return Promise.reject();\n}\n\nasync function writeText(value) {\n const el = document.createElement('textarea');\n \n el.value = value;\n \n document.body.appendChild(el);\n el.select();\n \n const is = document.execCommand('copy');\n document.body.removeChild(el);\n \n if (is)\n return;\n \n return Promise.reject();\n}\n\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/@cloudcmd/clipboard/lib/clipboard.js\n}");
/***/ },
/***/ "./node_modules/@cloudcmd/create-element/lib/create-element.js"
/*!*********************************************************************!*\
!*** ./node_modules/@cloudcmd/create-element/lib/create-element.js ***!
\*********************************************************************/
(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
eval("{\n\nconst currify = __webpack_require__(/*! currify */ \"./node_modules/currify/lib/currify.js\");\nconst query = (a) => document.querySelector(`[data-name=\"${a}\"]`);\n\nconst setAttribute = currify((el, obj, name) => el.setAttribute(name, obj[name]));\nconst set = currify((el, obj, name) => el[name] = obj[name]);\nconst not = currify((f, a) => !f(a));\nconst isCamelCase = (a) => a != a.toLowerCase();\n\nmodule.exports = (name, options = {}) => {\n const {\n dataName,\n notAppend,\n parent = document.body,\n uniq = true,\n ...restOptions\n } = options;\n \n const elFound = isElementPresent(dataName);\n \n if (uniq && elFound)\n return elFound;\n \n const el = document.createElement(name);\n \n if (dataName)\n el.dataset.name = dataName;\n \n Object.keys(restOptions)\n .filter(isCamelCase)\n .map(set(el, options));\n \n Object.keys(restOptions)\n .filter(not(isCamelCase))\n .map(setAttribute(el, options));\n \n if (!notAppend)\n parent.appendChild(el);\n \n return el;\n};\n\nmodule.exports.isElementPresent = isElementPresent;\n\nfunction isElementPresent(dataName) {\n if (!dataName)\n return;\n \n return query(dataName);\n}\n\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/@cloudcmd/create-element/lib/create-element.js\n}");
/***/ },
/***/ "./node_modules/@cloudcmd/olark/index.js"
/*!***********************************************!*\
!*** ./node_modules/@cloudcmd/olark/index.js ***!
\***********************************************/
(module) {
"use strict";
eval("{\n\nconst identityLoginURL = 'static.olark.com/jsclient/loader.js';\n\nif (!window.olark) {\n const el = document.createElement('script');\n const [script] = document.getElementsByTagName('script');\n el.async = 1;\n el.src = '//' + identityLoginURL;\n script.parentNode.insertBefore(el, script);\n \n const olark = window.olark = (...args) => {\n k.s.push(args);\n k.t.push(Number(new Date));\n };\n /**\n * @param {?} i\n * @param {?} src\n * @return {undefined}\n */\n olark.extend = (i, src) => {\n olark('extend', i, src);\n };\n /**\n * @param {string} o\n * @return {undefined}\n */\n olark.identify = (o) => {\n olark('identify', k.i = o);\n };\n /**\n * @param {?} key\n * @param {?} callback\n * @return {undefined}\n */\n olark.configure = (key, callback) => {\n olark('configure', key, callback);\n k.c[key] = callback;\n };\n const k = olark._ = {\n s: [],\n t: [Number(new Date)],\n c: {},\n l: identityLoginURL,\n };\n}\n\nmodule.exports = window.olark;\n\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/@cloudcmd/olark/index.js\n}");
/***/ },
/***/ "./node_modules/apart/lib/apart.js"
/*!*****************************************!*\
!*** ./node_modules/apart/lib/apart.js ***!
\*****************************************/
(module) {
"use strict";
eval("{\n\nmodule.exports = (fn, ...a) => {\n check(fn);\n \n return (...b) => {\n const args = [\n ...a,\n ...b,\n ];\n \n return fn(...args);\n };\n};\n\nfunction check(fn) {\n if (typeof fn !== 'function')\n throw Error('fn should be function!');\n}\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/apart/lib/apart.js\n}");
/***/ },
/***/ "./node_modules/call-bind-apply-helpers/actualApply.js"
/*!*************************************************************!*\
!*** ./node_modules/call-bind-apply-helpers/actualApply.js ***!
\*************************************************************/
(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
eval("{\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\n\nvar $apply = __webpack_require__(/*! ./functionApply */ \"./node_modules/call-bind-apply-helpers/functionApply.js\");\nvar $call = __webpack_require__(/*! ./functionCall */ \"./node_modules/call-bind-apply-helpers/functionCall.js\");\nvar $reflectApply = __webpack_require__(/*! ./reflectApply */ \"./node_modules/call-bind-apply-helpers/reflectApply.js\");\n\n/** @type {import('./actualApply')} */\nmodule.exports = $reflectApply || bind.call($call, $apply);\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/call-bind-apply-helpers/actualApply.js\n}");
/***/ },
/***/ "./node_modules/call-bind-apply-helpers/applyBind.js"
/*!***********************************************************!*\
!*** ./node_modules/call-bind-apply-helpers/applyBind.js ***!
\***********************************************************/
(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
eval("{\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\nvar $apply = __webpack_require__(/*! ./functionApply */ \"./node_modules/call-bind-apply-helpers/functionApply.js\");\nvar actualApply = __webpack_require__(/*! ./actualApply */ \"./node_modules/call-bind-apply-helpers/actualApply.js\");\n\n/** @type {import('./applyBind')} */\nmodule.exports = function applyBind() {\n\treturn actualApply(bind, $apply, arguments);\n};\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/call-bind-apply-helpers/applyBind.js\n}");
/***/ },
/***/ "./node_modules/call-bind-apply-helpers/functionApply.js"
/*!***************************************************************!*\
!*** ./node_modules/call-bind-apply-helpers/functionApply.js ***!
\***************************************************************/
(module) {
"use strict";
eval("{\n\n/** @type {import('./functionApply')} */\nmodule.exports = Function.prototype.apply;\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/call-bind-apply-helpers/functionApply.js\n}");
/***/ },
/***/ "./node_modules/call-bind-apply-helpers/functionCall.js"
/*!**************************************************************!*\
!*** ./node_modules/call-bind-apply-helpers/functionCall.js ***!
\**************************************************************/
(module) {
"use strict";
eval("{\n\n/** @type {import('./functionCall')} */\nmodule.exports = Function.prototype.call;\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/call-bind-apply-helpers/functionCall.js\n}");
/***/ },
/***/ "./node_modules/call-bind-apply-helpers/index.js"
/*!*******************************************************!*\
!*** ./node_modules/call-bind-apply-helpers/index.js ***!
\*******************************************************/
(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
eval("{\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\nvar $TypeError = __webpack_require__(/*! es-errors/type */ \"./node_modules/es-errors/type.js\");\n\nvar $call = __webpack_require__(/*! ./functionCall */ \"./node_modules/call-bind-apply-helpers/functionCall.js\");\nvar $actualApply = __webpack_require__(/*! ./actualApply */ \"./node_modules/call-bind-apply-helpers/actualApply.js\");\n\n/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */\nmodule.exports = function callBindBasic(args) {\n\tif (args.length < 1 || typeof args[0] !== 'function') {\n\t\tthrow new $TypeError('a function is required');\n\t}\n\treturn $actualApply(bind, $call, args);\n};\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/call-bind-apply-helpers/index.js\n}");
/***/ },
/***/ "./node_modules/call-bind-apply-helpers/reflectApply.js"
/*!**************************************************************!*\
!*** ./node_modules/call-bind-apply-helpers/reflectApply.js ***!
\**************************************************************/
(module) {
"use strict";
eval("{\n\n/** @type {import('./reflectApply')} */\nmodule.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/call-bind-apply-helpers/reflectApply.js\n}");
/***/ },
/***/ "./node_modules/call-bind/index.js"
/*!*****************************************!*\
!*** ./node_modules/call-bind/index.js ***!
\*****************************************/
(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
eval("{\n\nvar setFunctionLength = __webpack_require__(/*! set-function-length */ \"./node_modules/set-function-length/index.js\");\n\nvar $defineProperty = __webpack_require__(/*! es-define-property */ \"./node_modules/es-define-property/index.js\");\n\nvar callBindBasic = __webpack_require__(/*! call-bind-apply-helpers */ \"./node_modules/call-bind-apply-helpers/index.js\");\nvar applyBind = __webpack_require__(/*! call-bind-apply-helpers/applyBind */ \"./node_modules/call-bind-apply-helpers/applyBind.js\");\n\nmodule.exports = function callBind(originalFunction) {\n\tvar func = callBindBasic(arguments);\n\tvar adjustedLength = 1 + originalFunction.length - (arguments.length - 1);\n\treturn setFunctionLength(\n\t\tfunc,\n\t\tadjustedLength > 0 ? adjustedLength : 0,\n\t\ttrue\n\t);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/call-bind/index.js\n}");
/***/ },
/***/ "./node_modules/call-bound/index.js"
/*!******************************************!*\
!*** ./node_modules/call-bound/index.js ***!
\******************************************/
(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
eval("{\n\nvar GetIntrinsic = __webpack_require__(/*! get-intrinsic */ \"./node_modules/get-intrinsic/index.js\");\n\nvar callBindBasic = __webpack_require__(/*! call-bind-apply-helpers */ \"./node_modules/call-bind-apply-helpers/index.js\");\n\n/** @type {(thisArg: string, searchString: string, position?: number) => number} */\nvar $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);\n\n/** @type {import('.')} */\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\t/* eslint no-extra-parens: 0 */\n\n\tvar intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBindBasic(/** @type {const} */ ([intrinsic]));\n\t}\n\treturn intrinsic;\n};\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/call-bound/index.js\n}");
/***/ },
/***/ "./node_modules/currify/lib/currify.js"
/*!*********************************************!*\
!*** ./node_modules/currify/lib/currify.js ***!
\*********************************************/
(module) {
"use strict";
eval("{\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\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/currify/lib/currify.js\n}");
/***/ },
/***/ "./node_modules/define-data-property/index.js"
/*!****************************************************!*\
!*** ./node_modules/define-data-property/index.js ***!
\****************************************************/
(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
eval("{\n\nvar $defineProperty = __webpack_require__(/*! es-define-property */ \"./node_modules/es-define-property/index.js\");\n\nvar $SyntaxError = __webpack_require__(/*! es-errors/syntax */ \"./node_modules/es-errors/syntax.js\");\nvar $TypeError = __webpack_require__(/*! es-errors/type */ \"./node_modules/es-errors/type.js\");\n\nvar gopd = __webpack_require__(/*! gopd */ \"./node_modules/gopd/index.js\");\n\n/** @type {import('.')} */\nmodule.exports = function defineDataProperty(\n\tobj,\n\tproperty,\n\tvalue\n) {\n\tif (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {\n\t\tthrow new $TypeError('`obj` must be an object or a function`');\n\t}\n\tif (typeof property !== 'string' && typeof property !== 'symbol') {\n\t\tthrow new $TypeError('`property` must be a string or a symbol`');\n\t}\n\tif (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {\n\t\tthrow new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {\n\t\tthrow new $TypeError('`nonWritable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {\n\t\tthrow new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 6 && typeof arguments[6] !== 'boolean') {\n\t\tthrow new $TypeError('`loose`, if provided, must be a boolean');\n\t}\n\n\tvar nonEnumerable = arguments.length > 3 ? arguments[3] : null;\n\tvar nonWritable = arguments.length > 4 ? arguments[4] : null;\n\tvar nonConfigurable = arguments.length > 5 ? arguments[5] : null;\n\tvar loose = arguments.length > 6 ? arguments[6] : false;\n\n\t/* @type {false | TypedPropertyDescriptor<unknown>} */\n\tvar desc = !!gopd && gopd(obj, property);\n\n\tif ($defineProperty) {\n\t\t$defineProperty(obj, property, {\n\t\t\tconfigurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,\n\t\t\tenumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,\n\t\t\tvalue: value,\n\t\t\twritable: nonWritable === null && desc ? desc.writable : !nonWritable\n\t\t});\n\t} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {\n\t\t// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable\n\t\tobj[property] = value; // eslint-disable-line no-param-reassign\n\t} else {\n\t\tthrow new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');\n\t}\n};\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/define-data-property/index.js\n}");
/***/ },
/***/ "./node_modules/domfs-findit/legacy/findit.js"
/*!****************************************************!*\
!*** ./node_modules/domfs-findit/legacy/findit.js ***!
\****************************************************/
(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
eval("{\n\nvar Emitify = __webpack_require__(/*! emitify/legacy */ \"./node_modules/domfs-findit/node_modules/emitify/legacy/index.js\");\n\nmodule.exports = function (entry) {\n var emitter = Emitify();\n\n setTimeout(function () {\n FindIt(emitter, entry);\n }, 0);\n\n return emitter;\n};\n\nfunction FindIt(emitter, entry) {\n if (!(this instanceof FindIt)) return new FindIt(emitter, entry);\n\n this._dirs = 0;\n this._first = true;\n\n this._find(emitter, entry);\n}\n\nFindIt.prototype._find = function (emitter, entry) {\n var _this = this;\n\n if (entry.isFile) {\n emitter.emit('file', entry.fullPath, entry);\n\n if (this._first) emitter.emit('end');\n\n return;\n }\n\n if (this._first) this._first = false;\n\n emitter.emit('directory', entry.fullPath, entry);\n\n ++this._dirs;\n\n entry.createReader().readEntries(function (entries) {\n [].forEach.call(entries, function (entry) {\n _this._find(emitter, entry);\n });\n\n --_this._dirs;\n\n if (!_this._dirs) emitter.emit('end');\n });\n};\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/domfs-findit/legacy/findit.js\n}");
/***/ },
/***/ "./node_modules/domfs-findit/node_modules/emitify/legacy/index.js"
/*!************************************************************************!*\
!*** ./node_modules/domfs-findit/node_modules/emitify/legacy/index.js ***!
\************************************************************************/
(module, __unused_webpack_exports, __webpack_require__) {
eval("{module.exports = __webpack_require__(/*! ./lib/emitify */ \"./node_modules/domfs-findit/node_modules/emitify/legacy/lib/emitify.js\");\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/domfs-findit/node_modules/emitify/legacy/index.js\n}");
/***/ },
/***/ "./node_modules/domfs-findit/node_modules/emitify/legacy/lib/emitify.js"
/*!******************************************************************************!*\
!*** ./node_modules/domfs-findit/node_modules/emitify/legacy/lib/emitify.js ***!
\******************************************************************************/
(module) {
"use strict";
eval("{\n\nmodule.exports = Emitify;\n\nfunction Emitify() {\n if (!(this instanceof Emitify)) return new Emitify();\n\n this._all = {};\n}\n\nEmitify.prototype.on = function (event, callback) {\n var funcs = this._all[event];\n\n check(event, callback);\n\n if (funcs) funcs.push(callback);else this._all[event] = [callback];\n\n return this;\n};\n\nEmitify.prototype.addListener = Emitify.prototype.on;\n\nEmitify.prototype.once = function (event, callback) {\n var self = this;\n\n check(event, callback);\n\n self.on(event, function fn() {\n callback.apply(null, arguments);\n self.off(event, fn);\n });\n\n return this;\n};\n\nEmitify.prototype.off = function (event, callback) {\n var events = this._all[event] || [];\n var index = events.indexOf(callback);\n\n check(event, callback);\n\n while (~index) {\n events.splice(index, 1);\n index = events.indexOf(callback);\n }\n\n return this;\n};\n\nEmitify.prototype.removeListener = Emitify.prototype.off;\n\nEmitify.prototype.emit = function (event) {\n var args = [].slice.call(arguments, 1);\n var funcs = this._all[event];\n\n checkEvent(event);\n\n if (!funcs && event === 'error') throw args[0];\n\n if (!funcs) return this;\n\n funcs.forEach(function (fn) {\n fn.apply(null, args);\n });\n\n return this;\n};\n\nEmitify.prototype.removeAllListeners = function (event) {\n checkEvent(event);\n\n this._all[event] = [];\n\n return this;\n};\n\nfunction checkEvent(event) {\n if (typeof event !== 'string') throw Error('event should be string!');\n}\n\nfunction checkFn(callback) {\n if (typeof callback !== 'function') throw Error('callback should be function!');\n}\n\nfunction check(event, callback) {\n checkEvent(event);\n checkFn(callback);\n}\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/domfs-findit/node_modules/emitify/legacy/lib/emitify.js\n}");
/***/ },
/***/ "./node_modules/dunder-proto/get.js"
/*!******************************************!*\
!*** ./node_modules/dunder-proto/get.js ***!
\******************************************/
(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
eval("{\n\nvar callBind = __webpack_require__(/*! call-bind-apply-helpers */ \"./node_modules/call-bind-apply-helpers/index.js\");\nvar gOPD = __webpack_require__(/*! gopd */ \"./node_modules/gopd/index.js\");\n\nvar hasProtoAccessor;\ntry {\n\t// eslint-disable-next-line no-extra-parens, no-proto\n\thasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;\n} catch (e) {\n\tif (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {\n\t\tthrow e;\n\t}\n}\n\n// eslint-disable-next-line no-extra-parens\nvar desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));\n\nvar $Object = Object;\nvar $getPrototypeOf = $Object.getPrototypeOf;\n\n/** @type {import('./get')} */\nmodule.exports = desc && typeof desc.get === 'function'\n\t? callBind([desc.get])\n\t: typeof $getPrototypeOf === 'function'\n\t\t? /** @type {import('./get')} */ function getDunder(value) {\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\treturn $getPrototypeOf(value == null ? value : $Object(value));\n\t\t}\n\t\t: false;\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/dunder-proto/get.js\n}");
/***/ },
/***/ "./node_modules/emitify/lib/emitify.js"
/*!*********************************************!*\
!*** ./node_modules/emitify/lib/emitify.js ***!
\*********************************************/
(module) {
"use strict";
eval("{\n\nmodule.exports = Emitify;\n\nfunction Emitify() {\n if (!(this instanceof Emitify))\n return new Emitify();\n \n this._all = {};\n}\n\nEmitify.prototype.on = function(event, callback) {\n const funcs = this._all[event];\n \n check(event, callback);\n \n if (funcs)\n funcs.push(callback);\n else\n this._all[event] = [callback];\n \n return this;\n};\n\nEmitify.prototype.addListener =\nEmitify.prototype.on;\n\nEmitify.prototype.once = function(event, callback) {\n const self = this;\n \n check(event, callback);\n \n this.on(event, function fn(...args) {\n callback(...args);\n self.off(event, fn);\n });\n \n return this;\n};\n\nEmitify.prototype.off = function(event, callback) {\n const events = this._all[event] || [];\n let index = events.indexOf(callback);\n \n check(event, callback);\n \n while (~index) {\n events.splice(index, 1);\n index = events.indexOf(callback);\n }\n \n return this;\n};\n\nEmitify.prototype.removeListener =\nEmitify.prototype.off;\n\nEmitify.prototype.emit = function(event, ...args) {\n const funcs = this._all[event];\n \n checkEvent(event);\n \n if (!funcs && event === 'error')\n throw args[0];\n \n if (!funcs)\n return this;\n \n for (const fn of funcs) {\n fn(...args);\n }\n \n return this;\n};\n\nEmitify.prototype.removeAllListeners = function(event) {\n checkEvent(event);\n \n this._all[event] = [];\n \n return this;\n};\n\nfunction checkEvent(event) {\n if (typeof event !== 'string')\n throw Error('event should be string!');\n}\n\nfunction checkFn(callback) {\n if (typeof callback !== 'function')\n throw Error('callback should be function!');\n}\n\nfunction check(event, callback) {\n checkEvent(event);\n checkFn(callback);\n}\n\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/emitify/lib/emitify.js\n}");
/***/ },
/***/ "./node_modules/es-define-property/index.js"
/*!**************************************************!*\
!*** ./node_modules/es-define-property/index.js ***!
\**************************************************/
(module) {
"use strict";
eval("{\n\n/** @type {import('.')} */\nvar $defineProperty = Object.defineProperty || false;\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = false;\n\t}\n}\n\nmodule.exports = $defineProperty;\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/es-define-property/index.js\n}");
/***/ },
/***/ "./node_modules/es-errors/eval.js"
/*!****************************************!*\
!*** ./node_modules/es-errors/eval.js ***!
\****************************************/
(module) {
"use strict";
eval("{\n\n/** @type {import('./eval')} */\nmodule.exports = EvalError;\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/es-errors/eval.js\n}");
/***/ },
/***/ "./node_modules/es-errors/index.js"
/*!*****************************************!*\
!*** ./node_modules/es-errors/index.js ***!
\*****************************************/
(module) {
"use strict";
eval("{\n\n/** @type {import('.')} */\nmodule.exports = Error;\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/es-errors/index.js\n}");
/***/ },
/***/ "./node_modules/es-errors/range.js"
/*!*****************************************!*\
!*** ./node_modules/es-errors/range.js ***!
\*****************************************/
(module) {
"use strict";
eval("{\n\n/** @type {import('./range')} */\nmodule.exports = RangeError;\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/es-errors/range.js\n}");
/***/ },
/***/ "./node_modules/es-errors/ref.js"
/*!***************************************!*\
!*** ./node_modules/es-errors/ref.js ***!
\***************************************/
(module) {
"use strict";
eval("{\n\n/** @type {import('./ref')} */\nmodule.exports = ReferenceError;\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/es-errors/ref.js\n}");
/***/ },
/***/ "./node_modules/es-errors/syntax.js"
/*!******************************************!*\
!*** ./node_modules/es-errors/syntax.js ***!
\******************************************/
(module) {
"use strict";
eval("{\n\n/** @type {import('./syntax')} */\nmodule.exports = SyntaxError;\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/es-errors/syntax.js\n}");
/***/ },
/***/ "./node_modules/es-errors/type.js"
/*!****************************************!*\
!*** ./node_modules/es-errors/type.js ***!
\****************************************/
(module) {
"use strict";
eval("{\n\n/** @type {import('./type')} */\nmodule.exports = TypeError;\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/es-errors/type.js\n}");
/***/ },
/***/ "./node_modules/es-errors/uri.js"
/*!***************************************!*\
!*** ./node_modules/es-errors/uri.js ***!
\***************************************/
(module) {
"use strict";
eval("{\n\n/** @type {import('./uri')} */\nmodule.exports = URIError;\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/es-errors/uri.js\n}");
/***/ },
/***/ "./node_modules/es-object-atoms/index.js"
/*!***********************************************!*\
!*** ./node_modules/es-object-atoms/index.js ***!
\***********************************************/
(module) {
"use strict";
eval("{\n\n/** @type {import('.')} */\nmodule.exports = Object;\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/es-object-atoms/index.js\n}");
/***/ },
/***/ "./node_modules/execon/lib/exec.js"
/*!*****************************************!*\
!*** ./node_modules/execon/lib/exec.js ***!
\*****************************************/
(module) {
eval("{(function(global) {\n 'use strict';\n \n if ( true && module.exports)\n module.exports = new ExecProto();\n else\n global.exec = new ExecProto();\n \n function ExecProto() {\n var slice = Array.prototype.slice,\n /**\n * function do save exec of function\n * @param callback\n * @param arg1\n * ...\n * @param argN\n */\n exec = function(callback) {\n var ret,\n isFunc = typeof callback === 'function',\n args = slice.call(arguments, 1);\n \n if (isFunc)\n ret = callback.apply(null, args);\n \n return ret;\n };\n \n /*\n * return function that calls callback with arguments\n */\n exec.with = function(callback) {\n var slice = Array.prototype.slice,\n args = slice.call(arguments, 1);\n \n return function() {\n var array = slice.call(arguments), \n all = args.concat(array);\n \n return callback.apply(null, all);\n };\n };\n \n /**\n * return save exec function\n * @param callback\n */\n exec.ret = function() {\n var result,\n args = slice.call(arguments);\n \n args.unshift(exec);\n result = exec.with.apply(null, args);\n \n return result;\n };\n \n /**\n * function do conditional save exec of function\n * @param condition\n * @param callback\n * @param func\n */\n exec.if = function(condition, callback, func) {\n var ret;\n \n if (condition)\n exec(callback);\n else\n exec(func, callback);\n \n return ret;\n };\n \n /**\n * exec function if it exist in object\n * \n * @param obj\n * @param name\n * @param arg\n */\n exec.ifExist = function(obj, name, arg) {\n var ret,\n func = obj && obj[name];\n \n if (func)\n func = func.apply(obj, arg);\n \n return ret;\n };\n \n exec.parallel = function(funcs, callback) {\n var ERROR = 'could not be empty!',\n keys = [],\n callbackWas = false,\n arr = [],\n obj = {},\n count = 0,\n countFuncs = 0,\n type = getType(funcs);\n \n if (!funcs)\n throw Error('funcs ' + ERROR);\n \n if (!callback)\n throw Error('callback ' + ERROR);\n \n switch(type) {\n case 'array':\n countFuncs = funcs.length;\n \n funcs.forEach(function(func, num) {\n exec(func, function() {\n checkFunc(num, arguments);\n });\n });\n break;\n \n case 'object':\n keys = Object.keys(funcs);\n countFuncs = keys.length;\n \n keys.forEach(function(name) {\n var func = funcs[name];\n \n exec(func, function() {\n checkFunc(name, arguments, obj);\n });\n });\n break;\n }\n \n function checkFunc(num, data) {\n var args = slice.call(data, 1),\n isLast = false,\n error = data[0],\n length = args.length;\n \n ++count;\n \n isLast = count === countFuncs;\n \n if (!error)\n if (length >= 2)\n arr[num] = args;\n else\n arr[num] = args[0];\n \n if (!callbackWas && (error || isLast)) {\n callbackWas = true;\n \n if (type === 'array')\n callback.apply(null, [error].concat(arr));\n else\n callback(error, arr);\n }\n }\n };\n \n /**\n * load functions thrue callbacks one-by-one\n * @param funcs {Array} - array of functions\n */\n exec.series = function(funcs, callback) {\n var fn,\n i = funcs.length,\n check = function(error) {\n var done;\n \n --i;\n \n if (!i || error) {\n done = true;\n exec(callback, error);\n }\n \n return done;\n };\n \n if (!Array.isArray(funcs))\n throw Error('funcs should be array!');\n \n fn = funcs.shift();\n \n exec(fn, function(error) {\n if (!check(error))\n exec.series(funcs, callback);\n });\n };\n \n exec.each = function(array, iterator, callback) {\n var listeners = array.map(function(item) {\n return iterator.bind(null, item);\n });\n \n if (!listeners.length)\n callback();\n else\n exec.parallel(listeners, callback);\n };\n \n exec.eachSeries = function(array, iterator, callback) {\n var listeners = array.map(function(item) {\n return iterator.bind(null, item);\n });\n \n if (typeof callback !== 'function')\n throw Error('callback should be function');\n \n if (!listeners.length)\n callback();\n else\n exec.series(listeners, callback);\n };\n \n /**\n * function execute param function in\n * try...catch block\n * \n * @param callback\n */\n exec.try = function(callback) {\n var ret;\n try {\n ret = callback();\n } catch(error) {\n ret = error;\n }\n \n return ret;\n };\n \n function getType(variable) {\n var regExp = new RegExp('\\\\s([a-zA-Z]+)'),\n str = {}.toString.call(variable),\n typeBig = str.match(regExp)[1],\n result = typeBig.toLowerCase();\n \n return result;\n } \n \n return exec;\n }\n})(this);\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/execon/lib/exec.js\n}");
/***/ },
/***/ "./node_modules/for-each-key/lib/for-each-key.js"
/*!*******************************************************!*\
!*** ./node_modules/for-each-key/lib/for-each-key.js ***!
\*******************************************************/
(module) {
"use strict";
eval("{\n\nconst setValue = (fn, obj) => (key) => fn(key, obj[key]);\n\nmodule.exports = (fn, obj) => {\n Object\n .keys(obj)\n .forEach(setValue(fn, obj));\n};\n\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/for-each-key/lib/for-each-key.js\n}");
/***/ },
/***/ "./node_modules/for-each/index.js"
/*!****************************************!*\
!*** ./node_modules/for-each/index.js ***!
\****************************************/
(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
eval("{\n\nvar isCallable = __webpack_require__(/*! is-callable */ \"./node_modules/is-callable/index.js\");\n\nvar toStr = Object.prototype.toString;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n/** @type {<This, A extends readonly unknown[]>(arr: A, iterator: (this: This | void, value: A[number], index: number, arr: A) => void, receiver: This | undefined) => void} */\nvar forEachArray = function forEachArray(array, iterator, receiver) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (hasOwnProperty.call(array, i)) {\n if (receiver == null) {\n iterator(array[i], i, array);\n } else {\n iterator.call(receiver, array[i], i, array);\n }\n }\n }\n};\n\n/** @type {<This, S extends string>(string: S, iterator: (this: This | void, value: S[number], index: number, string: S) => void, receiver: This | undefined) => void} */\nvar forEachString = function forEachString(string, iterator, receiver) {\n for (var i = 0, len = string.length; i < len; i++) {\n // no such thing as a sparse string.\n if (receiver == null) {\n iterator(string.charAt(i), i, string);\n } else {\n iterator.call(receiver, string.charAt(i), i, string);\n }\n }\n};\n\n/** @type {<This, O>(obj: O, iterator: (this: This | void, value: O[keyof O], index: keyof O, obj: O) => void, receiver: This | undefined) => void} */\nvar forEachObject = function forEachObject(object, iterator, receiver) {\n for (var k in object) {\n if (hasOwnProperty.call(object, k)) {\n if (receiver == null) {\n iterator(object[k], k, object);\n } else {\n iterator.call(receiver, object[k], k, object);\n }\n }\n }\n};\n\n/** @type {(x: unknown) => x is readonly unknown[]} */\nfunction isArray(x) {\n return toStr.call(x) === '[object Array]';\n}\n\n/** @type {import('.')._internal} */\nmodule.exports = function forEach(list, iterator, thisArg) {\n if (!isCallable(iterator)) {\n throw new TypeError('iterator must be a function');\n }\n\n var receiver;\n if (arguments.length >= 3) {\n receiver = thisArg;\n }\n\n if (isArray(list)) {\n forEachArray(list, iterator, receiver);\n } else if (typeof list === 'string') {\n forEachString(list, iterator, receiver);\n } else {\n forEachObject(list, iterator, receiver);\n }\n};\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/for-each/index.js\n}");
/***/ },
/***/ "./node_modules/format-io/lib/format.js"
/*!**********************************************!*\
!*** ./node_modules/format-io/lib/format.js ***!
\**********************************************/
(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
eval("{\n\nmodule.exports.addSlashToEnd = (path) => {\n if (!path)\n throw Error('path could not be empty!');\n \n const length = path.length - 1;\n const isSlash = path[length] === '/';\n \n if (isSlash)\n return path;\n \n return `${path}/`;\n};\n\n/** Функция получает короткие размеры\n * конвертируя байт в килобайты, мегабойты,\n * гигайбайты и терабайты\n * @pSize - размер в байтах\n */\nmodule.exports.size = (size) => {\n const isNumber = typeof size === 'number';\n \n const l1KB = 1024;\n const l1MB = l1KB * l1KB;\n const l1GB = l1MB * l1KB;\n const l1TB = l1GB * l1KB;\n const l1PB = l1TB * l1KB;\n \n if (!isNumber)\n return size;\n \n if (size < l1KB)\n return size + 'b';\n \n if (size < l1MB)\n return (size / l1KB).toFixed(2) + 'kb';\n \n if (size < l1GB)\n return (size / l1MB).toFixed(2) + 'mb';\n \n if (size < l1TB)\n return (size / l1GB).toFixed(2) + 'gb';\n \n if (size < l1PB)\n return (size / l1TB).toFixed(2) + 'tb';\n \n return (size / l1PB).toFixed(2) + 'pb';\n};\n\nmodule.exports.permissions = __webpack_require__(/*! ./mode */ \"./node_modules/format-io/lib/mode.js\");\n\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/format-io/lib/format.js\n}");
/***/ },
/***/ "./node_modules/format-io/lib/mode.js"
/*!********************************************!*\
!*** ./node_modules/format-io/lib/mode.js ***!
\********************************************/
(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
eval("{\n\nconst currify = __webpack_require__(/*! currify */ \"./node_modules/currify/lib/currify.js\");\n\n/*\n S_IRUSR 0000400 protection: readable by owner\n S_IWUSR 0000200 writable by owner\n S_IXUSR 0000100 executable by owner\n S_IRGRP 0000040 readable by group\n S_IWGRP 0000020 writable by group\n S_IXGRP 0000010 executable by group\n S_IROTH 0000004 readable by all\n S_IWOTH 0000002 writable by all\n S_IXOTH 0000001 executable by all\n*/\n\nconst R = {\n name: 'r',\n value: 4,\n};\n\nconst W = {\n name: 'w',\n value: 2,\n};\n\nconst X = {\n name: 'x',\n value: 1,\n};\n\nconst getModeName = currify((value, m) => {\n if (value & m.value)\n return m.name;\n \n return '-';\n});\n\nconst toStrMode = currify((fn, value) => {\n return [R, W, X]\n .map(fn(value))\n .join('');\n});\n\n\n/**\n * Функция переводит права из цыфрового вида в символьный\n * @param perms - строка с правами доступа\n * к файлу в 8-миричной системе\n */\nmodule.exports.symbolic = (perms) => {\n let permissions = '';\n const is = typeof perms !== 'undefined';\n \n if (!is)\n return permissions;\n \n const permsStr = perms.slice(-3);\n \n /* Переводим в двоичную систему */\n const owner = Number(permsStr[0]).toString(2);\n const group = Number(permsStr[1]).toString(2);\n const all = Number(permsStr[2]).toString(2);\n \n const allPermissions = [\n owner,\n group,\n all,\n ];\n \n return allPermissions\n .map(toStrMode(getModeName))\n .join(' ');\n};\n\n/**\n * Функция конвертирует права доступа к файлам из символьного вида\n * в цыфровой\n */\nmodule.exports.numeric = (perms) => {\n const length = perms && perms.length === 11;\n \n if (!length)\n throw Error('permissions should be in format \"xxx xxx xxx\"');\n \n const R = 4;\n const W = 2;\n const X = 1;\n const N = 0;\n \n const owner =\n (perms[0] === 'r' ? R : N) +\n (perms[1] === 'w' ? W : N) +\n (perms[2] === 'x' ? X : N);\n \n const group =\n (perms[4] === 'r' ? R : N) +\n (perms[5] === 'w' ? W : N) +\n (perms[6] === 'x' ? X : N);\n \n const all =\n (perms[8] === 'r' ? R : N) +\n (perms[9] === 'w' ? W : N) +\n (perms[10] === 'x' ? X : N);\n \n /* добавляем 2 цифры до 5 */\n return '00' + owner + group + all;\n};\n\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/format-io/lib/mode.js\n}");
/***/ },
/***/ "./node_modules/function-bind/implementation.js"
/*!******************************************************!*\
!*** ./node_modules/function-bind/implementation.js ***!
\******************************************************/
(module) {
"use strict";
eval("{\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar toStr = Object.prototype.toString;\nvar max = Math.max;\nvar funcType = '[object Function]';\n\nvar concatty = function concatty(a, b) {\n var arr = [];\n\n for (var i = 0; i < a.length; i += 1) {\n arr[i] = a[i];\n }\n for (var j = 0; j < b.length; j += 1) {\n arr[j + a.length] = b[j];\n }\n\n return arr;\n};\n\nvar slicy = function slicy(arrLike, offset) {\n var arr = [];\n for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n arr[j] = arrLike[i];\n }\n return arr;\n};\n\nvar joiny = function (arr, joiner) {\n var str = '';\n for (var i = 0; i < arr.length; i += 1) {\n str += arr[i];\n if (i + 1 < arr.length) {\n str += joiner;\n }\n }\n return str;\n};\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.apply(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slicy(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n concatty(args, arguments)\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n }\n return target.apply(\n that,\n concatty(args, arguments)\n );\n\n };\n\n var boundLength = max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs[i] = '$' + i;\n }\n\n bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/function-bind/implementation.js\n}");
/***/ },
/***/ "./node_modules/function-bind/index.js"
/*!*********************************************!*\
!*** ./node_modules/function-bind/index.js ***!
\*********************************************/
(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
eval("{\n\nvar implementation = __webpack_require__(/*! ./implementation */ \"./node_modules/function-bind/implementation.js\");\n\nmodule.exports = Function.prototype.bind || implementation;\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/function-bind/index.js\n}");
/***/ },
/***/ "./node_modules/generator-function/index.js"
/*!**************************************************!*\
!*** ./node_modules/generator-function/index.js ***!
\**************************************************/
(module) {
"use strict";
eval("{\n\n// eslint-disable-next-line no-extra-parens, no-empty-function\nconst cached = /** @type {GeneratorFunctionConstructor} */ (function* () {}.constructor);\n\n/** @type {import('.')} */\nmodule.exports = () => cached;\n\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/generator-function/index.js\n}");
/***/ },
/***/ "./node_modules/get-intrinsic/index.js"
/*!*********************************************!*\
!*** ./node_modules/get-intrinsic/index.js ***!
\*********************************************/
(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
eval("{\n\nvar undefined;\n\nvar $Object = __webpack_require__(/*! es-object-atoms */ \"./node_modules/es-object-atoms/index.js\");\n\nvar $Error = __webpack_require__(/*! es-errors */ \"./node_modules/es-errors/index.js\");\nvar $EvalError = __webpack_require__(/*! es-errors/eval */ \"./node_modules/es-errors/eval.js\");\nvar $RangeError = __webpack_require__(/*! es-errors/range */ \"./node_modules/es-errors/range.js\");\nvar $ReferenceError = __webpack_require__(/*! es-errors/ref */ \"./node_modules/es-errors/ref.js\");\nvar $SyntaxError = __webpack_require__(/*! es-errors/syntax */ \"./node_modules/es-errors/syntax.js\");\nvar $TypeError = __webpack_require__(/*! es-errors/type */ \"./node_modules/es-errors/type.js\");\nvar $URIError = __webpack_require__(/*! es-errors/uri */ \"./node_modules/es-errors/uri.js\");\n\nvar abs = __webpack_require__(/*! math-intrinsics/abs */ \"./node_modules/math-intrinsics/abs.js\");\nvar floor = __webpack_require__(/*! math-intrinsics/floor */ \"./node_modules/math-intrinsics/floor.js\");\nvar max = __webpack_require__(/*! math-intrinsics/max */ \"./node_modules/m