UNPKG

@open-condo/ui

Version:

A set of React UI components for developing applications inside the condo ecosystem

1,906 lines (1,488 loc) 3.29 MB
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["@open-condo/ui"] = factory(require("react")); else root["@open-condo/ui"] = factory(root["react"]); })(this, function(__WEBPACK_EXTERNAL_MODULE__39155__) { return /******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ 195: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var isPrototype = __webpack_require__(84882), nativeKeys = __webpack_require__(98121); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { if (!isPrototype(object)) { return nativeKeys(object); } var result = []; for (var key in Object(object)) { if (hasOwnProperty.call(object, key) && key != 'constructor') { result.push(key); } } return result; } module.exports = baseKeys; /***/ }), /***/ 524: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; if (true) { module.exports = __webpack_require__(90320); } else // removed by dead control flow {} /***/ }), /***/ 660: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; var _DownOutlined = _interopRequireDefault(__webpack_require__(51087)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _default = _DownOutlined; exports["default"] = _default; module.exports = _default; /***/ }), /***/ 893: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; module.exports = heading var all = __webpack_require__(99946) function heading(h, node) { return h(node, 'h' + node.depth, all(h, node)) } /***/ }), /***/ 1046: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; var regexCheck = __webpack_require__(7043) var asciiAtext = regexCheck(/[#-'*+\--9=?A-Z^-~]/) module.exports = asciiAtext /***/ }), /***/ 1144: /***/ (function(module) { /** * Gets the value at `key`, unless `key` is "__proto__" or "constructor". * * @private * @param {Object} object The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function safeGet(object, key) { if (key === 'constructor' && typeof object[key] === 'function') { return; } if (key == '__proto__') { return; } return object[key]; } module.exports = safeGet; /***/ }), /***/ 1329: /***/ (function(module) { "use strict"; function miniflat(value) { return value === null || value === undefined ? [] : 'length' in value ? value : [value] } module.exports = miniflat /***/ }), /***/ 1376: /***/ (function(module) { "use strict"; function markdownLineEnding(code) { return code < -2 } module.exports = markdownLineEnding /***/ }), /***/ 1386: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var listCacheClear = __webpack_require__(12393), listCacheDelete = __webpack_require__(62049), listCacheGet = __webpack_require__(7144), listCacheHas = __webpack_require__(7452), listCacheSet = __webpack_require__(13964); /** * Creates an list cache object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `ListCache`. ListCache.prototype.clear = listCacheClear; ListCache.prototype['delete'] = listCacheDelete; ListCache.prototype.get = listCacheGet; ListCache.prototype.has = listCacheHas; ListCache.prototype.set = listCacheSet; module.exports = ListCache; /***/ }), /***/ 1611: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; var sizeChunks = __webpack_require__(21743) function prefixSize(events, type) { var tail = events[events.length - 1] if (!tail || tail[1].type !== type) return 0 return sizeChunks(tail[2].sliceStream(tail[1])) } module.exports = prefixSize /***/ }), /***/ 1871: /***/ (function(__unused_webpack_module, exports) { "use strict"; /** @license React v17.0.2 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var b=60103,c=60106,d=60107,e=60108,f=60114,g=60109,h=60110,k=60112,l=60113,m=60120,n=60115,p=60116,q=60121,r=60122,u=60117,v=60129,w=60131; if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;b=x("react.element");c=x("react.portal");d=x("react.fragment");e=x("react.strict_mode");f=x("react.profiler");g=x("react.provider");h=x("react.context");k=x("react.forward_ref");l=x("react.suspense");m=x("react.suspense_list");n=x("react.memo");p=x("react.lazy");q=x("react.block");r=x("react.server.block");u=x("react.fundamental");v=x("react.debug_trace_mode");w=x("react.legacy_hidden")} function y(a){if("object"===typeof a&&null!==a){var t=a.$$typeof;switch(t){case b:switch(a=a.type,a){case d:case f:case e:case l:case m:return a;default:switch(a=a&&a.$$typeof,a){case h:case k:case p:case n:case g:return a;default:return t}}case c:return t}}}var z=g,A=b,B=k,C=d,D=p,E=n,F=c,G=f,H=e,I=l;exports.ContextConsumer=h;exports.ContextProvider=z;exports.Element=A;exports.ForwardRef=B;exports.Fragment=C;exports.Lazy=D;exports.Memo=E;exports.Portal=F;exports.Profiler=G;exports.StrictMode=H; exports.Suspense=I;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return y(a)===h};exports.isContextProvider=function(a){return y(a)===g};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return y(a)===k};exports.isFragment=function(a){return y(a)===d};exports.isLazy=function(a){return y(a)===p};exports.isMemo=function(a){return y(a)===n}; exports.isPortal=function(a){return y(a)===c};exports.isProfiler=function(a){return y(a)===f};exports.isStrictMode=function(a){return y(a)===e};exports.isSuspense=function(a){return y(a)===l};exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===d||a===f||a===v||a===e||a===l||a===m||a===w||"object"===typeof a&&null!==a&&(a.$$typeof===p||a.$$typeof===n||a.$$typeof===g||a.$$typeof===h||a.$$typeof===k||a.$$typeof===u||a.$$typeof===q||a[0]===r)?!0:!1}; exports.typeOf=y; /***/ }), /***/ 1877: /***/ (function(module) { /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** * Adds `value` to the array cache. * * @private * @name add * @memberOf SetCache * @alias push * @param {*} value The value to cache. * @returns {Object} Returns the cache instance. */ function setCacheAdd(value) { this.__data__.set(value, HASH_UNDEFINED); return this; } module.exports = setCacheAdd; /***/ }), /***/ 2251: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var _interopRequireWildcard = __webpack_require__(78920); var _interopRequireDefault = __webpack_require__(4293); Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; var _objectSpread2 = _interopRequireDefault(__webpack_require__(41506)); var React = _interopRequireWildcard(__webpack_require__(39155)); var _CloseCircleOutlined = _interopRequireDefault(__webpack_require__(21564)); var _AntdIcon = _interopRequireDefault(__webpack_require__(4639)); // GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY var CloseCircleOutlined = function CloseCircleOutlined(props, ref) { return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, { ref: ref, icon: _CloseCircleOutlined.default })); }; CloseCircleOutlined.displayName = 'CloseCircleOutlined'; var _default = /*#__PURE__*/React.forwardRef(CloseCircleOutlined); exports["default"] = _default; /***/ }), /***/ 2306: /***/ (function(module, exports, __webpack_require__) { /* module decorator */ module = __webpack_require__.nmd(module); var freeGlobal = __webpack_require__(74967); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Detect free variable `process` from Node.js. */ var freeProcess = moduleExports && freeGlobal.process; /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { // Use `util.types` for Node.js 10+. var types = freeModule && freeModule.require && freeModule.require('util').types; if (types) { return types; } // Legacy `process.binding('util')` for Node.js < 10. return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); module.exports = nodeUtil; /***/ }), /***/ 2474: /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ A: function() { return /* binding */ _assertThisInitialized; } /* harmony export */ }); function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } /***/ }), /***/ 2554: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; var _LoadingOutlined = _interopRequireDefault(__webpack_require__(65115)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _default = _LoadingOutlined; exports["default"] = _default; module.exports = _default; /***/ }), /***/ 2948: /***/ (function(__unused_webpack_module, exports) { "use strict"; exports.parse = parse exports.stringify = stringify var empty = '' var space = ' ' var whiteSpace = /[ \t\n\r\f]+/g function parse(value) { var input = String(value || empty).trim() return input === empty ? [] : input.split(whiteSpace) } function stringify(values) { return values.join(space).trim() } /***/ }), /***/ 3127: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; module.exports = parse var fromMarkdown = __webpack_require__(86864) function parse(options) { var self = this this.Parser = parse function parse(doc) { return fromMarkdown( doc, Object.assign({}, self.data('settings'), options, { // Note: these options are not in the readme. // The goal is for them to be set by plugins on `data` instead of being // passed by users. extensions: self.data('micromarkExtensions') || [], mdastExtensions: self.data('fromMarkdownExtensions') || [] }) ) } } /***/ }), /***/ 3186: /***/ (function(__unused_webpack_module, exports) { "use strict"; // This icon file is generated automatically. Object.defineProperty(exports, "__esModule", ({ value: true })); var EditOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, "name": "edit", "theme": "outlined" }; exports["default"] = EditOutlined; /***/ }), /***/ 3283: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var baseIsArguments = __webpack_require__(56027), isObjectLike = __webpack_require__(80547); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /** * Checks if `value` is likely an `arguments` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * * _.isArguments(function() { return arguments; }()); * // => true * * _.isArguments([1, 2, 3]); * // => false */ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); }; module.exports = isArguments; /***/ }), /***/ 3316: /***/ (function(module) { /** Used to detect hot functions by number of calls within a span of milliseconds. */ var HOT_COUNT = 800, HOT_SPAN = 16; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeNow = Date.now; /** * Creates a function that'll short out and invoke `identity` instead * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` * milliseconds. * * @private * @param {Function} func The function to restrict. * @returns {Function} Returns the new shortable function. */ function shortOut(func) { var count = 0, lastCalled = 0; return function() { var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); lastCalled = stamp; if (remaining > 0) { if (++count >= HOT_COUNT) { return arguments[0]; } } else { count = 0; } return func.apply(undefined, arguments); }; } module.exports = shortOut; /***/ }), /***/ 3326: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var arrayMap = __webpack_require__(65111), baseClone = __webpack_require__(69334), baseUnset = __webpack_require__(81586), castPath = __webpack_require__(93526), copyObject = __webpack_require__(39032), customOmitClone = __webpack_require__(29259), flatRest = __webpack_require__(41439), getAllKeysIn = __webpack_require__(93650); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; /** * The opposite of `_.pick`; this method creates an object composed of the * own and inherited enumerable property paths of `object` that are not omitted. * * **Note:** This method is considerably slower than `_.pick`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The source object. * @param {...(string|string[])} [paths] The property paths to omit. * @returns {Object} Returns the new object. * @example * * var object = { 'a': 1, 'b': '2', 'c': 3 }; * * _.omit(object, ['a', 'c']); * // => { 'b': '2' } */ var omit = flatRest(function(object, paths) { var result = {}; if (object == null) { return result; } var isDeep = false; paths = arrayMap(paths, function(path) { path = castPath(path, object); isDeep || (isDeep = path.length > 1); return path; }); copyObject(object, getAllKeysIn(object), result); if (isDeep) { result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone); } var length = paths.length; while (length--) { baseUnset(result, paths[length]); } return result; }); module.exports = omit; /***/ }), /***/ 3334: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var baseMatches = __webpack_require__(36526), baseMatchesProperty = __webpack_require__(12343), identity = __webpack_require__(22053), isArray = __webpack_require__(53142), property = __webpack_require__(43282); /** * The base implementation of `_.iteratee`. * * @private * @param {*} [value=_.identity] The value to convert to an iteratee. * @returns {Function} Returns the iteratee. */ function baseIteratee(value) { // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. if (typeof value == 'function') { return value; } if (value == null) { return identity; } if (typeof value == 'object') { return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value); } return property(value); } module.exports = baseIteratee; /***/ }), /***/ 3352: /***/ (function(module) { "use strict"; function normalizeIdentifier(value) { return ( value // Collapse Markdown whitespace. .replace(/[\t\n\r ]+/g, ' ') // Trim. .replace(/^ | $/g, '') // Some characters are considered “uppercase”, but if their lowercase // counterpart is uppercased will result in a different uppercase // character. // Hence, to get that form, we perform both lower- and uppercase. // Upper case makes sure keys will not interact with default prototypal // methods: no object method is uppercase. .toLowerCase() .toUpperCase() ) } module.exports = normalizeIdentifier /***/ }), /***/ 3422: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var baseAssignValue = __webpack_require__(57073), eq = __webpack_require__(46285); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignValue(object, key, value) { var objValue = object[key]; if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignValue; /***/ }), /***/ 3507: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var _interopRequireDefault = (__webpack_require__(4293)["default"]); Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; var _en_US = _interopRequireDefault(__webpack_require__(76382)); var _default = _en_US["default"]; exports["default"] = _default; /***/ }), /***/ 3514: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var baseKeys = __webpack_require__(195), getTag = __webpack_require__(28486), isArguments = __webpack_require__(3283), isArray = __webpack_require__(53142), isArrayLike = __webpack_require__(36529), isBuffer = __webpack_require__(75853), isPrototype = __webpack_require__(84882), isTypedArray = __webpack_require__(8666); /** `Object#toString` result references. */ var mapTag = '[object Map]', setTag = '[object Set]'; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Checks if `value` is an empty object, collection, map, or set. * * Objects are considered empty if they have no own enumerable string keyed * properties. * * Array-like values such as `arguments` objects, arrays, buffers, strings, or * jQuery-like collections are considered empty if they have a `length` of `0`. * Similarly, maps and sets are considered empty if they have a `size` of `0`. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is empty, else `false`. * @example * * _.isEmpty(null); * // => true * * _.isEmpty(true); * // => true * * _.isEmpty(1); * // => true * * _.isEmpty([1, 2, 3]); * // => false * * _.isEmpty({ 'a': 1 }); * // => false */ function isEmpty(value) { if (value == null) { return true; } if (isArrayLike(value) && (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || isBuffer(value) || isTypedArray(value) || isArguments(value))) { return !value.length; } var tag = getTag(value); if (tag == mapTag || tag == setTag) { return !value.size; } if (isPrototype(value)) { return !baseKeys(value).length; } for (var key in value) { if (hasOwnProperty.call(value, key)) { return false; } } return true; } module.exports = isEmpty; /***/ }), /***/ 3634: /***/ (function(module) { function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ 3640: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; var _InfoCircleOutlined = _interopRequireDefault(__webpack_require__(82623)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _default = _InfoCircleOutlined; exports["default"] = _default; module.exports = _default; /***/ }), /***/ 3700: /***/ (function(__unused_webpack_module, __webpack_exports__) { "use strict"; /* harmony default export */ __webpack_exports__.A = (function (element) { if (!element) { return false; } if (element.offsetParent) { return true; } if (element.getBBox) { var box = element.getBBox(); if (box.width || box.height) { return true; } } if (element.getBoundingClientRect) { var _box = element.getBoundingClientRect(); if (_box.width || _box.height) { return true; } } return false; }); /***/ }), /***/ 3766: /***/ (function(module) { /** * Creates a unary function that invokes `func` with its argument transformed. * * @private * @param {Function} func The function to wrap. * @param {Function} transform The argument transform. * @returns {Function} Returns the new function. */ function overArg(func, transform) { return function(arg) { return func(transform(arg)); }; } module.exports = overArg; /***/ }), /***/ 4076: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; var p = __webpack_require__(4982) var proc = __webpack_require__(97437) var buffer = __webpack_require__(85703) module.exports = VFile var own = {}.hasOwnProperty // Order of setting (least specific to most), we need this because otherwise // `{stem: 'a', path: '~/b.js'}` would throw, as a path is needed before a // stem can be set. var order = ['history', 'path', 'basename', 'stem', 'extname', 'dirname'] VFile.prototype.toString = toString // Access full path (`~/index.min.js`). Object.defineProperty(VFile.prototype, 'path', {get: getPath, set: setPath}) // Access parent path (`~`). Object.defineProperty(VFile.prototype, 'dirname', { get: getDirname, set: setDirname }) // Access basename (`index.min.js`). Object.defineProperty(VFile.prototype, 'basename', { get: getBasename, set: setBasename }) // Access extname (`.js`). Object.defineProperty(VFile.prototype, 'extname', { get: getExtname, set: setExtname }) // Access stem (`index.min`). Object.defineProperty(VFile.prototype, 'stem', {get: getStem, set: setStem}) // Construct a new file. function VFile(options) { var prop var index if (!options) { options = {} } else if (typeof options === 'string' || buffer(options)) { options = {contents: options} } else if ('message' in options && 'messages' in options) { return options } if (!(this instanceof VFile)) { return new VFile(options) } this.data = {} this.messages = [] this.history = [] this.cwd = proc.cwd() // Set path related properties in the correct order. index = -1 while (++index < order.length) { prop = order[index] if (own.call(options, prop)) { this[prop] = options[prop] } } // Set non-path related properties. for (prop in options) { if (order.indexOf(prop) < 0) { this[prop] = options[prop] } } } function getPath() { return this.history[this.history.length - 1] } function setPath(path) { assertNonEmpty(path, 'path') if (this.path !== path) { this.history.push(path) } } function getDirname() { return typeof this.path === 'string' ? p.dirname(this.path) : undefined } function setDirname(dirname) { assertPath(this.path, 'dirname') this.path = p.join(dirname || '', this.basename) } function getBasename() { return typeof this.path === 'string' ? p.basename(this.path) : undefined } function setBasename(basename) { assertNonEmpty(basename, 'basename') assertPart(basename, 'basename') this.path = p.join(this.dirname || '', basename) } function getExtname() { return typeof this.path === 'string' ? p.extname(this.path) : undefined } function setExtname(extname) { assertPart(extname, 'extname') assertPath(this.path, 'extname') if (extname) { if (extname.charCodeAt(0) !== 46 /* `.` */) { throw new Error('`extname` must start with `.`') } if (extname.indexOf('.', 1) > -1) { throw new Error('`extname` cannot contain multiple dots') } } this.path = p.join(this.dirname, this.stem + (extname || '')) } function getStem() { return typeof this.path === 'string' ? p.basename(this.path, this.extname) : undefined } function setStem(stem) { assertNonEmpty(stem, 'stem') assertPart(stem, 'stem') this.path = p.join(this.dirname || '', stem + (this.extname || '')) } // Get the value of the file. function toString(encoding) { return (this.contents || '').toString(encoding) } // Assert that `part` is not a path (i.e., does not contain `p.sep`). function assertPart(part, name) { if (part && part.indexOf(p.sep) > -1) { throw new Error( '`' + name + '` cannot be a path: did not expect `' + p.sep + '`' ) } } // Assert that `part` is not empty. function assertNonEmpty(part, name) { if (!part) { throw new Error('`' + name + '` cannot be empty') } } // Assert `path` exists. function assertPath(path, name) { if (!path) { throw new Error('Setting `' + name + '` requires `path` to be set too') } } /***/ }), /***/ 4162: /***/ (function(module) { "use strict"; var fromCharCode = String.fromCharCode module.exports = fromCharCode /***/ }), /***/ 4293: /***/ (function(module) { function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ 4310: /***/ (function(module) { "use strict"; module.exports = Info var proto = Info.prototype proto.space = null proto.attribute = null proto.property = null proto.boolean = false proto.booleanish = false proto.overloadedBoolean = false proto.number = false proto.commaSeparated = false proto.spaceSeparated = false proto.commaOrSpaceSeparated = false proto.mustUseProperty = false proto.defined = false function Info(property, attribute) { this.property = property this.attribute = attribute } /***/ }), /***/ 4337: /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ G: function() { return /* binding */ useBreakpoints; } /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(39155); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _responsiveObserve__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(42833); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24208); // NOTE: In ssr we do not know the width of the window, so we set all breakpoints to true by default var DEFAULT_BREAKPOINTS_VALUE = Object.keys(_responsiveObserve__WEBPACK_IMPORTED_MODULE_1__/* .BREAKPOINTS */ .L).reduce(function (acc, curr) { acc[curr] = true; return acc; }, {}); function useBreakpoints() { var refreshOnChange = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; var screensRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(DEFAULT_BREAKPOINTS_VALUE); var forceUpdate = (0,_index__WEBPACK_IMPORTED_MODULE_2__/* .useForceUpdate */ .CH)(); (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { if (typeof window !== 'undefined') { var token = _responsiveObserve__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.subscribe(function (supportScreens) { screensRef.current = supportScreens; if (refreshOnChange) { forceUpdate(); } }); return function () { return _responsiveObserve__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.unsubscribe(token); }; } }, [forceUpdate, refreshOnChange]); return screensRef.current; } /***/ }), /***/ 4639: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var _interopRequireDefault = __webpack_require__(4293); var _interopRequireWildcard = __webpack_require__(78920); Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; var _objectSpread2 = _interopRequireDefault(__webpack_require__(41506)); var _slicedToArray2 = _interopRequireDefault(__webpack_require__(68832)); var _defineProperty2 = _interopRequireDefault(__webpack_require__(58212)); var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(67996)); var React = _interopRequireWildcard(__webpack_require__(39155)); var _classnames = _interopRequireDefault(__webpack_require__(20425)); var _Context = _interopRequireDefault(__webpack_require__(78582)); var _IconBase = _interopRequireDefault(__webpack_require__(98357)); var _twoTonePrimaryColor = __webpack_require__(34754); var _utils = __webpack_require__(98793); var _excluded = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"]; // Initial setting // should move it to antd main repo? (0, _twoTonePrimaryColor.setTwoToneColor)('#1890ff'); var Icon = /*#__PURE__*/React.forwardRef(function (props, ref) { var _classNames; var className = props.className, icon = props.icon, spin = props.spin, rotate = props.rotate, tabIndex = props.tabIndex, onClick = props.onClick, twoToneColor = props.twoToneColor, restProps = (0, _objectWithoutProperties2.default)(props, _excluded); var _React$useContext = React.useContext(_Context.default), _React$useContext$pre = _React$useContext.prefixCls, prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre; var classString = (0, _classnames.default)(prefixCls, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-spin"), !!spin || icon.name === 'loading'), _classNames), className); var iconTabIndex = tabIndex; if (iconTabIndex === undefined && onClick) { iconTabIndex = -1; } var svgStyle = rotate ? { msTransform: "rotate(".concat(rotate, "deg)"), transform: "rotate(".concat(rotate, "deg)") } : undefined; var _normalizeTwoToneColo = (0, _utils.normalizeTwoToneColors)(twoToneColor), _normalizeTwoToneColo2 = (0, _slicedToArray2.default)(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1]; return /*#__PURE__*/React.createElement("span", (0, _objectSpread2.default)((0, _objectSpread2.default)({ role: "img", "aria-label": icon.name }, restProps), {}, { ref: ref, tabIndex: iconTabIndex, onClick: onClick, className: classString }), /*#__PURE__*/React.createElement(_IconBase.default, { icon: icon, primaryColor: primaryColor, secondaryColor: secondaryColor, style: svgStyle })); }); Icon.displayName = 'AntdIcon'; Icon.getTwoToneColor = _twoTonePrimaryColor.getTwoToneColor; Icon.setTwoToneColor = _twoTonePrimaryColor.setTwoToneColor; var _default = Icon; exports["default"] = _default; /***/ }), /***/ 4686: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var OverloadYield = __webpack_require__(16699); var regeneratorDefine = __webpack_require__(70645); function AsyncIterator(t, e) { function n(r, o, i, f) { try { var c = t[r](o), u = c.value; return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) { n("next", t, i, f); }, function (t) { n("throw", t, i, f); }) : e.resolve(u).then(function (t) { c.value = t, i(c); }, function (t) { return n("throw", t, i, f); }); } catch (t) { f(t); } } var r; this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { return this; })), regeneratorDefine(this, "_invoke", function (t, o, i) { function f() { return new e(function (e, r) { n(t, i, e, r); }); } return r = r ? r.then(f, f) : f(); }, !0); } module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ 4982: /***/ (function(__unused_webpack_module, exports) { "use strict"; // A derivative work based on: // <https://github.com/browserify/path-browserify>. // Which is licensed: // // MIT License // // Copyright (c) 2013 James Halliday // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of // the Software, and to permit persons to whom the Software is furnished to do so, // subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // A derivative work based on: // // Parts of that are extracted from Node’s internal `path` module: // <https://github.com/nodejs/node/blob/master/lib/path.js>. // Which is licensed: // // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. exports.basename = basename exports.dirname = dirname exports.extname = extname exports.join = join exports.sep = '/' function basename(path, ext) { var start = 0 var end = -1 var index var firstNonSlashEnd var seenNonSlash var extIndex if (ext !== undefined && typeof ext !== 'string') { throw new TypeError('"ext" argument must be a string') } assertPath(path) index = path.length if (ext === undefined || !ext.length || ext.length > path.length) { while (index--) { if (path.charCodeAt(index) === 47 /* `/` */) { // If we reached a path separator that was not part of a set of path // separators at the end of the string, stop now. if (seenNonSlash) { start = index + 1 break } } else if (end < 0) { // We saw the first non-path separator, mark this as the end of our // path component. seenNonSlash = true end = index + 1 } } return end < 0 ? '' : path.slice(start, end) } if (ext === path) { return '' } firstNonSlashEnd = -1 extIndex = ext.length - 1 while (index--) { if (path.charCodeAt(index) === 47 /* `/` */) { // If we reached a path separator that was not part of a set of path // separators at the end of the string, stop now. if (seenNonSlash) { start = index + 1 break } } else { if (firstNonSlashEnd < 0) { // We saw the first non-path separator, remember this index in case // we need it if the extension ends up not matching. seenNonSlash = true firstNonSlashEnd = index + 1 } if (extIndex > -1) { // Try to match the explicit extension. if (path.charCodeAt(index) === ext.charCodeAt(extIndex--)) { if (extIndex < 0) { // We matched the extension, so mark this as the end of our path // component end = index } } else { // Extension does not match, so our result is the entire path // component extIndex = -1 end = firstNonSlashEnd } } } } if (start === end) { end = firstNonSlashEnd } else if (end < 0) { end = path.length } return path.slice(start, end) } function dirname(path) { var end var unmatchedSlash var index assertPath(path) if (!path.length) { return '.' } end = -1 index = path.length // Prefix `--` is important to not run on `0`. while (--index) { if (path.charCodeAt(index) === 47 /* `/` */) { if (unmatchedSlash) { end = index break } } else if (!unmatchedSlash) { // We saw the first non-path separator unmatchedSlash = true } } return end < 0 ? path.charCodeAt(0) === 47 /* `/` */ ? '/' : '.' : end === 1 && path.charCodeAt(0) === 47 /* `/` */ ? '//' : path.slice(0, end) } function extname(path) { var startDot = -1 var startPart = 0 var end = -1 // Track the state of characters (if any) we see before our first dot and // after any path separator we find. var preDotState = 0 var unmatchedSlash var code var index assertPath(path) index = path.length while (index--) { code = path.charCodeAt(index) if (code === 47 /* `/` */) { // If we reached a path separator that was not part of a set of path // separators at the end of the string, stop now. if (unmatchedSlash) { startPart = index + 1 break } continue } if (end < 0) { // We saw the first non-path separator, mark this as the end of our // extension. unmatchedSlash = true end = index + 1 } if (code === 46 /* `.` */) { // If this is our first dot, mark it as the start of our extension. if (startDot < 0) { startDot = index } else if (preDotState !== 1) { preDotState = 1 } } else if (startDot > -1) { // We saw a non-dot and non-path separator before our dot, so we should // have a good chance at having a non-empty extension. preDotState = -1 } } if ( startDot < 0 || end < 0 || // We saw a non-dot character immediately before the dot. preDotState === 0 || // The (right-most) trimmed path component is exactly `..`. (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) ) { return '' } return path.slice(startDot, end) } function join() { var index = -1 var joined while (++index < arguments.length) { assertPath(arguments[index]) if (arguments[index]) { joined = joined === undefined ? arguments[index] : joined + '/' + arguments[index] } } return joined === undefined ? '.' : normalize(joined) } // Note: `normalize` is not exposed as `path.normalize`, so some code is // manually removed from it. function normalize(path) { var absolute var value assertPath(path) absolute = path.charCodeAt(0) === 47 /* `/` */ // Normalize the path according to POSIX rules. value = normalizeString(path, !absolute) if (!value.length && !absolute) { value = '.' } if (value.length && path.charCodeAt(path.length - 1) === 47 /* / */) { value += '/' } return absolute ? '/' + value : value } // Resolve `.` and `..` elements in a path with directory names. function normalizeString(path, allowAboveRoot) { var result = '' var lastSegmentLength = 0 var lastSlash = -1 var dots = 0 var index = -1 var code var lastSlashIndex while (++index <= path.length) { if (index < path.length) { code = path.charCodeAt(index) } else if (code === 47 /* `/` */) { break } else { code = 47 /* `/` */ } if (code === 47 /* `/` */) { if (lastSlash === index - 1 || dots === 1) { // Empty. } else if (lastSlash !== index - 1 && dots === 2) { if ( result.length < 2 || lastSegmentLength !== 2 || result.charCodeAt(result.length - 1) !== 46 /* `.` */ || result.charCodeAt(result.length - 2) !== 46 /* `.` */ ) { if (result.length > 2) { lastSlashIndex = result.lastIndexOf('/') /* istanbul ignore else - No clue how to cover it. */ if (lastSlashIndex !== result.length - 1) { if (lastSlashIndex < 0) { result = '' lastSegmentLength = 0 } else { result = result.slice(0, lastSlashIndex) lastSegmentLength = result.length - 1 - result.lastIndexOf('/') } lastSlash = index dots = 0 continue } } else if (result.length) { result = '' lastSegmentLength = 0 lastSlash = index dots = 0 continue } } if (allowAboveRoot) { result = result.length ? result + '/..' : '..' lastSegmentLength = 2 } } else { if (result.length) { result += '/' + path.slice(lastSlash + 1, index) } else { result = path.slice(lastSlash + 1, index) } lastSegmentLength = index - lastSlash - 1 } lastSlash = index dots = 0 } else if (code === 46 /* `.` */ && dots > -1) { dots++ } else { dots = -1 } } return result } function assertPath(path) { if (typeof path !== 'string') { throw new TypeError( 'Path must be a string. Received ' + JSON.stringify(path) ) } } /***/ }), /***/ 5018: /***/ (function(module) { function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ 5189: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var asciiAlpha = __webpack_require__(41350) var asciiAlphanumeric = __webpack_require__(98959) var asciiControl = __webpack_require__(56747) var markdownLineEnding = __webpack_require__(1376) var unicodePunctuation = __webpack_require__(79274) var unicodeWhitespace = __webpack_require__(97669) var www = {tokenize: tokenizeWww, partial: true} var domain = {tokenize: tokenizeDomain, partial: true} var path = {tokenize: tokenizePath, partial: true} var punctuation = {tokenize: tokenizePunctuation, partial: true} var namedCharacterReference = { tokenize: tokenizeNamedCharacterReference, partial: true } var wwwAutolink = {tokenize: tokenizeWwwAutolink, previous: previousWww} var httpAutolink = {tokenize: tokenizeHttpAutolink, previous: previousHttp} var emailAutolink = {tokenize: tokenizeEmailAutolink, previous: previousEmail} var text = {} // Export hooked constructs. exports.text = text // `0` var code = 48 // While the code is smaller than `{`. while (code < 123) { text[code] = emailAutolink code++ // Jump from `:` -> `A` if (code === 58) code = 65 // Jump from `[` -> `a` else if (code === 91) code = 97 } // `+` text[43] = emailAutolink // `-` text[45] = emailAutolink // `.` text[46] = emailAutolink // `_` text[95] = emailAutolink // `h`. text[72] = [emailAutolink, httpAutolink] text[104] = [emailAutolink, httpAutolink] // `w`. text[87] = [emailAutolink, wwwAutolink] text[119] = [emailAutolink, wwwAutolink] function tokenizeEmailAutolink(effects, ok, nok) { var self = this var hasDot return start function start(code) { /* istanbul ignore next - hooks. */ if ( !gfmAtext(code) || !previousEmail(self.previous) || previous(self.events) ) { return nok(code) } effects.enter('literalAutolink') effects.enter('literalAutolinkEmail') return atext(code) } function atext(code) { if (gfmAtext(code)) { effects.consume(code) return atext } // `@` if (code === 64) { effects.consume(code) return label } return nok(code) } function label(code) { // `.` if (code === 46) { return effects.check(punctuation, done, dotContinuation)(code) } if ( // `-` code === 45 || // `_` code === 95 ) { return effects.check(punctuation, nok, dashOrUnderscoreContinuation)(code) } if (asciiAlphanumeric(code)) { effects.consume(code) return label } return done(code) } function dotContinuation(code) { effects.consume(code) hasDot = true return label } function dashOrUnderscoreContinuation(code) { effects.consume(code) return afterDashOrUnderscore } function afterDashOrUnderscore(code) { // `.` if (code === 46) { return effects.check(punctuation, nok, dotContinuation)(code) } return label(code) } function done(code) { if (hasDot) { effects.exit('literalAutolinkEmail') effects.exit('literalAutolink') return ok(code) } return nok(code) } } function tokenizeWwwAutolink(effects, ok, nok) { var self = this return start function start(code) { /* istanbul ignore next - hooks. */ if ( (code !== 87 && code - 32 !== 87) || !previousWww(self.previous) || previous(self.events) ) { return nok(code) } effects.enter('literalAutolink') effects.enter('literalAutolinkWww') // For `www.` we check instead of attempt, because when it matches, GH // treats it as part of a domain (yes, it says a valid domain must come // after `www.`, but that’s not how it’s implemented by them). return effects.check( www, effects.attempt(domain, effects.attempt(path, done), nok), nok )(code) } function done(code) { effects.exit('literalAutolinkWww') effects.exit('literalAutolink') return ok(code) } } function tokenizeHttpAutolink(effects, ok, nok) { var self = this return start function start(code) { /* istanbul ignore next - hooks. */ if ( (code !== 72 && code - 32 !== 72) || !previousHttp(self.previous) || previous(self.events) ) { return nok(code) } effects.enter('literalAutolink') effec