You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8191 lines
399 KiB
8191 lines
399 KiB
define(["@grafana/data","@grafana/runtime","@grafana/ui","app/core/app_events","lodash","react","react-router-dom"], (__WEBPACK_EXTERNAL_MODULE__grafana_data__, __WEBPACK_EXTERNAL_MODULE__grafana_runtime__, __WEBPACK_EXTERNAL_MODULE__grafana_ui__, __WEBPACK_EXTERNAL_MODULE_grafana_app_core_app_events__, __WEBPACK_EXTERNAL_MODULE_lodash__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_router_dom__) => { return /******/ (() => { // webpackBootstrap |
|
/******/ var __webpack_modules__ = ({ |
|
|
|
/***/ "./components/GBlock/Block.tsx": |
|
/*!*************************************!*\ |
|
!*** ./components/GBlock/Block.tsx ***! |
|
\*************************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _Block_module_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Block.module.scss */ "./components/GBlock/Block.module.scss"); |
|
/* harmony import */ var classnames_bind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames/bind */ "../node_modules/classnames/bind.js"); |
|
/* harmony import */ var classnames_bind__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames_bind__WEBPACK_IMPORTED_MODULE_1__); |
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react"); |
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); |
|
var _excluded = ["children", "style", "className", "bordered", "fullWidth", "hover", "shadowed", "withBackground"]; |
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } |
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } |
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } |
|
|
|
|
|
|
|
var cx = classnames_bind__WEBPACK_IMPORTED_MODULE_1___default().bind(_Block_module_scss__WEBPACK_IMPORTED_MODULE_0__["default"]); |
|
var Block = function Block(props) { |
|
var children = props.children, |
|
style = props.style, |
|
className = props.className, |
|
_props$bordered = props.bordered, |
|
bordered = _props$bordered === void 0 ? false : _props$bordered, |
|
_props$fullWidth = props.fullWidth, |
|
fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, |
|
_props$hover = props.hover, |
|
hover = _props$hover === void 0 ? false : _props$hover, |
|
_props$shadowed = props.shadowed, |
|
shadowed = _props$shadowed === void 0 ? false : _props$shadowed, |
|
_props$withBackground = props.withBackground, |
|
withBackground = _props$withBackground === void 0 ? false : _props$withBackground, |
|
rest = _objectWithoutProperties(props, _excluded); |
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", _extends({ |
|
className: cx('root', className, { |
|
root_bordered: bordered, |
|
root_shadowed: shadowed, |
|
'root--fullWidth': fullWidth, |
|
'root--withBackground': withBackground, |
|
'root--hover': hover |
|
}), |
|
style: style |
|
}, rest), children); |
|
}; |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Block); |
|
|
|
/***/ }), |
|
|
|
/***/ "./components/PluginConfigPage/PluginConfigPage.tsx": |
|
/*!**********************************************************!*\ |
|
!*** ./components/PluginConfigPage/PluginConfigPage.tsx ***! |
|
\**********************************************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "PluginConfigPage": () => (/* binding */ PluginConfigPage), |
|
/* harmony export */ "reloadPageWithPluginConfiguredQueryParams": () => (/* binding */ reloadPageWithPluginConfiguredQueryParams), |
|
/* harmony export */ "removePluginConfiguredQueryParams": () => (/* binding */ removePluginConfiguredQueryParams) |
|
/* harmony export */ }); |
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); |
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var _grafana_ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @grafana/ui */ "@grafana/ui"); |
|
/* harmony import */ var _grafana_ui__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_grafana_ui__WEBPACK_IMPORTED_MODULE_1__); |
|
/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-router-dom */ "react-router-dom"); |
|
/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_router_dom__WEBPACK_IMPORTED_MODULE_2__); |
|
/* harmony import */ var _plugin_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../plugin_state */ "./plugin_state.ts"); |
|
/* harmony import */ var _parts_ConfigurationForm__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./parts/ConfigurationForm */ "./components/PluginConfigPage/parts/ConfigurationForm/index.tsx"); |
|
/* harmony import */ var _parts_RemoveCurrentConfigurationButton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./parts/RemoveCurrentConfigurationButton */ "./components/PluginConfigPage/parts/RemoveCurrentConfigurationButton/index.tsx"); |
|
/* harmony import */ var _parts_StatusMessageBlock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./parts/StatusMessageBlock */ "./components/PluginConfigPage/parts/StatusMessageBlock/index.tsx"); |
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } |
|
var _LoadingPlaceholder, _Legend, _StatusMessageBlock, _p; |
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; } |
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } |
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } |
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } |
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } |
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } |
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } |
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } |
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } |
|
|
|
|
|
|
|
|
|
// import logo from '../../img/logo.svg'; |
|
|
|
|
|
|
|
|
|
var PLUGIN_CONFIGURED_QUERY_PARAM = 'pluginConfigured'; |
|
var PLUGIN_CONFIGURED_QUERY_PARAM_TRUTHY_VALUE = 'true'; |
|
var PLUGIN_CONFIGURED_VERSION_QUERY_PARAM = 'pluginConfiguredVersion'; |
|
var DEFAULT_API_URL = 'http://localhost:8000'; |
|
|
|
/** |
|
* When everything is successfully configured, reload the page, and pass along a few query parameters |
|
* so that we avoid an infinite configuration-check/data-sync loop |
|
* |
|
* Don't refresh the page if the plugin is already enabled.. |
|
*/ |
|
var reloadPageWithPluginConfiguredQueryParams = function reloadPageWithPluginConfiguredQueryParams(_ref, pluginEnabled) { |
|
var version = _ref.version; |
|
if (!pluginEnabled) { |
|
window.location.href = "".concat(window.location.href, "?").concat(PLUGIN_CONFIGURED_QUERY_PARAM, "=").concat(PLUGIN_CONFIGURED_QUERY_PARAM_TRUTHY_VALUE, "&").concat(PLUGIN_CONFIGURED_VERSION_QUERY_PARAM, "=").concat(version); |
|
} |
|
}; |
|
|
|
/** |
|
* remove the query params used to track state for a page reload after successful configuration, without triggering |
|
* a page reload |
|
* https://stackoverflow.com/a/19279428 |
|
*/ |
|
var removePluginConfiguredQueryParams = function removePluginConfiguredQueryParams(pluginIsEnabled) { |
|
if (window.history.pushState && pluginIsEnabled) { |
|
var newurl = "".concat(window.location.protocol, "//").concat(window.location.host).concat(window.location.pathname); |
|
window.history.pushState({ |
|
path: newurl |
|
}, '', newurl); |
|
} |
|
}; |
|
var PluginConfigPage = function PluginConfigPage(_ref2) { |
|
var _RemoveCurrentConfigu; |
|
var _ref2$plugin$meta = _ref2.plugin.meta, |
|
jsonData = _ref2$plugin$meta.jsonData, |
|
pluginIsEnabled = _ref2$plugin$meta.enabled; |
|
var _useLocation = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_2__.useLocation)(), |
|
search = _useLocation.search; |
|
var queryParams = new URLSearchParams(search); |
|
var pluginConfiguredQueryParam = queryParams.get(PLUGIN_CONFIGURED_QUERY_PARAM); |
|
var pluginConfiguredVersionQueryParam = queryParams.get(PLUGIN_CONFIGURED_VERSION_QUERY_PARAM); |
|
var pluginConfiguredRedirect = pluginConfiguredQueryParam === PLUGIN_CONFIGURED_QUERY_PARAM_TRUTHY_VALUE; |
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!pluginConfiguredRedirect), |
|
_useState2 = _slicedToArray(_useState, 2), |
|
checkingIfPluginIsConnected = _useState2[0], |
|
setCheckingIfPluginIsConnected = _useState2[1]; |
|
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null), |
|
_useState4 = _slicedToArray(_useState3, 2), |
|
pluginConnectionCheckError = _useState4[0], |
|
setPluginConnectionCheckError = _useState4[1]; |
|
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(pluginConfiguredRedirect ? { |
|
version: pluginConfiguredVersionQueryParam |
|
} : null), |
|
_useState6 = _slicedToArray(_useState5, 2), |
|
pluginIsConnected = _useState6[0], |
|
setPluginIsConnected = _useState6[1]; |
|
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false), |
|
_useState8 = _slicedToArray(_useState7, 2), |
|
resettingPlugin = _useState8[0], |
|
setResettingPlugin = _useState8[1]; |
|
var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null), |
|
_useState10 = _slicedToArray(_useState9, 2), |
|
pluginResetError = _useState10[0], |
|
setPluginResetError = _useState10[1]; |
|
var pluginMetaDataExporterApiUrl = jsonData === null || jsonData === void 0 ? void 0 : jsonData.dataExporterApiUrl; |
|
var resetQueryParams = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () { |
|
return removePluginConfiguredQueryParams(pluginIsEnabled); |
|
}, [pluginIsEnabled]); |
|
var checkConnection = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { |
|
var pluginConnectionResponse; |
|
return _regeneratorRuntime().wrap(function _callee$(_context) { |
|
while (1) { |
|
switch (_context.prev = _context.next) { |
|
case 0: |
|
setCheckingIfPluginIsConnected(true); |
|
setPluginConnectionCheckError(null); |
|
if (pluginMetaDataExporterApiUrl) { |
|
_context.next = 5; |
|
break; |
|
} |
|
setCheckingIfPluginIsConnected(false); |
|
return _context.abrupt("return"); |
|
case 5: |
|
_context.next = 7; |
|
return _plugin_state__WEBPACK_IMPORTED_MODULE_3__["default"].checkIfPluginIsConnected(pluginMetaDataExporterApiUrl); |
|
case 7: |
|
pluginConnectionResponse = _context.sent; |
|
if (typeof pluginConnectionResponse === 'string') { |
|
setPluginConnectionCheckError(pluginConnectionResponse); |
|
} else { |
|
setPluginIsConnected(pluginConnectionResponse); |
|
reloadPageWithPluginConfiguredQueryParams(pluginConnectionResponse, true); |
|
} |
|
setCheckingIfPluginIsConnected(false); |
|
case 10: |
|
case "end": |
|
return _context.stop(); |
|
} |
|
} |
|
}, _callee); |
|
})), [pluginMetaDataExporterApiUrl]); |
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(resetQueryParams, [resetQueryParams]); |
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { |
|
/** |
|
* don't check the plugin status if the user was just redirected after a successful |
|
* plugin setup |
|
*/ |
|
if (!pluginConfiguredRedirect) { |
|
checkConnection(); |
|
} |
|
}, [pluginMetaDataExporterApiUrl, pluginConfiguredRedirect, checkConnection]); |
|
var resetState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () { |
|
setPluginResetError(null); |
|
setPluginConnectionCheckError(null); |
|
setPluginIsConnected(null); |
|
resetQueryParams(); |
|
}, [resetQueryParams]); |
|
|
|
/** |
|
* NOTE: there is a possible edge case when resetting the plugin, that would lead to an error message being shown |
|
* (which could be fixed by just reloading the page) |
|
* This would happen if the user removes the plugin configuration, leaves the page, then comes back to the plugin |
|
* configuration. |
|
* |
|
* This is because the props being passed into this component wouldn't reflect the actual plugin |
|
* provisioning state. The props would still have DataExporterApiUrl set in the plugin jsonData, so when we make the API |
|
* call to check the plugin state w/ DataExporter API the plugin-proxy would return a 502 Bad Gateway because the actual |
|
* provisioned plugin doesn't know about the DataExporterApiUrl. |
|
* |
|
* This could be fixed by instead of passing in the plugin provisioning information as props always fetching it |
|
* when this component renders (via a useEffect). We probably don't need to worry about this because it should happen |
|
* very rarely, if ever |
|
*/ |
|
var triggerPluginReset = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { |
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) { |
|
while (1) { |
|
switch (_context2.prev = _context2.next) { |
|
case 0: |
|
setResettingPlugin(true); |
|
resetState(); |
|
_context2.prev = 2; |
|
_context2.next = 5; |
|
return _plugin_state__WEBPACK_IMPORTED_MODULE_3__["default"].resetPlugin(); |
|
case 5: |
|
_context2.next = 10; |
|
break; |
|
case 7: |
|
_context2.prev = 7; |
|
_context2.t0 = _context2["catch"](2); |
|
// this should rarely, if ever happen, but we should handle the case nevertheless |
|
setPluginResetError('There was an error resetting your plugin, try again.'); |
|
case 10: |
|
setResettingPlugin(false); |
|
case 11: |
|
case "end": |
|
return _context2.stop(); |
|
} |
|
} |
|
}, _callee2, null, [[2, 7]]); |
|
})), [resetState]); |
|
var RemoveConfigButton = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () { |
|
return _RemoveCurrentConfigu || (_RemoveCurrentConfigu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_parts_RemoveCurrentConfigurationButton__WEBPACK_IMPORTED_MODULE_5__["default"], { |
|
disabled: resettingPlugin, |
|
onClick: triggerPluginReset |
|
})); |
|
}, [resettingPlugin, triggerPluginReset]); |
|
var content; |
|
if (checkingIfPluginIsConnected) { |
|
content = _LoadingPlaceholder || (_LoadingPlaceholder = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_1__.LoadingPlaceholder, { |
|
text: "Validating your plugin connection..." |
|
})); |
|
} else if (pluginConnectionCheckError || pluginResetError) { |
|
content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_parts_StatusMessageBlock__WEBPACK_IMPORTED_MODULE_6__["default"], { |
|
text: pluginConnectionCheckError || pluginResetError |
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RemoveConfigButton, null)); |
|
} else if (!pluginIsConnected) { |
|
content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_parts_ConfigurationForm__WEBPACK_IMPORTED_MODULE_4__["default"], { |
|
onSuccessfulSetup: checkConnection, |
|
defaultDataExporterApiUrl: DEFAULT_API_URL |
|
}); |
|
} else { |
|
// plugin is fully connected and synced |
|
content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RemoveConfigButton, null); |
|
} |
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, _Legend || (_Legend = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_1__.Legend, null, "Configure DataExporter")), pluginIsConnected ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", null, "Plugin is connected! Continue to DataExporter by clicking the", ' '), _StatusMessageBlock || (_StatusMessageBlock = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_parts_StatusMessageBlock__WEBPACK_IMPORTED_MODULE_6__["default"], { |
|
text: "Connected to DataExporter" |
|
}))) : _p || (_p = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", null, "This page will help you configure the DataExporter plugin \uD83D\uDC4B")), content); |
|
}; |
|
|
|
/***/ }), |
|
|
|
/***/ "./components/PluginConfigPage/index.tsx": |
|
/*!***********************************************!*\ |
|
!*** ./components/PluginConfigPage/index.tsx ***! |
|
\***********************************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "PluginConfigPage": () => (/* reexport safe */ _PluginConfigPage__WEBPACK_IMPORTED_MODULE_2__.PluginConfigPage), |
|
/* harmony export */ "reloadPageWithPluginConfiguredQueryParams": () => (/* reexport safe */ _PluginConfigPage__WEBPACK_IMPORTED_MODULE_2__.reloadPageWithPluginConfiguredQueryParams), |
|
/* harmony export */ "removePluginConfiguredQueryParams": () => (/* reexport safe */ _PluginConfigPage__WEBPACK_IMPORTED_MODULE_2__.removePluginConfiguredQueryParams) |
|
/* harmony export */ }); |
|
/* harmony import */ var _style_vars_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/vars.css */ "./style/vars.css"); |
|
/* harmony import */ var _style_global_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style/global.css */ "./style/global.css"); |
|
/* harmony import */ var _PluginConfigPage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PluginConfigPage */ "./components/PluginConfigPage/PluginConfigPage.tsx"); |
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "./components/PluginConfigPage/parts/ConfigurationForm/index.tsx": |
|
/*!***********************************************************************!*\ |
|
!*** ./components/PluginConfigPage/parts/ConfigurationForm/index.tsx ***! |
|
\***********************************************************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _ConfigurationForm_module_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ConfigurationForm.module.css */ "./components/PluginConfigPage/parts/ConfigurationForm/ConfigurationForm.module.css"); |
|
/* harmony import */ var _GBlock_Block__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../GBlock/Block */ "./components/GBlock/Block.tsx"); |
|
/* harmony import */ var _Text_Text__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Text/Text */ "./components/Text/Text.tsx"); |
|
/* harmony import */ var _plugin_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../plugin_state */ "./plugin_state.ts"); |
|
/* harmony import */ var _grafana_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @grafana/ui */ "@grafana/ui"); |
|
/* harmony import */ var _grafana_ui__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_grafana_ui__WEBPACK_IMPORTED_MODULE_4__); |
|
/* harmony import */ var classnames_bind__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames/bind */ "../node_modules/classnames/bind.js"); |
|
/* harmony import */ var classnames_bind__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames_bind__WEBPACK_IMPORTED_MODULE_5__); |
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "react"); |
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__); |
|
/* harmony import */ var lodash_es__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash-es */ "../node_modules/lodash-es/isEmpty.js"); |
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } |
|
var _Text, _p, _Text2, _p2, _Text3; |
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; } |
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } |
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } |
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } |
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } |
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } |
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } |
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } |
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var cx = classnames_bind__WEBPACK_IMPORTED_MODULE_5___default().bind(_ConfigurationForm_module_css__WEBPACK_IMPORTED_MODULE_0__["default"]); |
|
/** |
|
* https://stackoverflow.com/a/43467144 |
|
*/ |
|
var isValidUrl = function isValidUrl(url) { |
|
try { |
|
new URL(url); |
|
return true; |
|
} catch (_) { |
|
return false; |
|
} |
|
}; |
|
var FormErrorMessage = function FormErrorMessage(_ref) { |
|
var errorMsg = _ref.errorMsg; |
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement((react__WEBPACK_IMPORTED_MODULE_6___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("pre", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_Text_Text__WEBPACK_IMPORTED_MODULE_2__["default"], { |
|
type: "link" |
|
}, errorMsg)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_GBlock_Block__WEBPACK_IMPORTED_MODULE_1__["default"], { |
|
withBackground: true, |
|
className: cx('info-block') |
|
}, _Text || (_Text = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_Text_Text__WEBPACK_IMPORTED_MODULE_2__["default"], { |
|
type: "secondary" |
|
}, "Need help?", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("br", null), "- file bugs on our GitHub Issues page", ' ', /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("a", { |
|
href: "https://code.corpglory.net/corpglory/grafana-data-exporter-app/issues", |
|
target: "_blank", |
|
rel: "noreferrer" |
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_Text_Text__WEBPACK_IMPORTED_MODULE_2__["default"], { |
|
type: "link" |
|
}, "here")))))); |
|
}; |
|
var ConfigurationForm = function ConfigurationForm(_ref2) { |
|
var _FormErrorMessage; |
|
var onSuccessfulSetup = _ref2.onSuccessfulSetup, |
|
defaultDataExporterApiUrl = _ref2.defaultDataExporterApiUrl; |
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_6__.useState)(null), |
|
_useState2 = _slicedToArray(_useState, 2), |
|
setupErrorMsg = _useState2[0], |
|
setSetupErrorMsg = _useState2[1]; |
|
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_6__.useState)(false), |
|
_useState4 = _slicedToArray(_useState3, 2), |
|
formLoading = _useState4[0], |
|
setFormLoading = _useState4[1]; |
|
var setupPlugin = (0,react__WEBPACK_IMPORTED_MODULE_6__.useCallback)( /*#__PURE__*/function () { |
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref3) { |
|
var dataExporterApiUrl, errorMsg; |
|
return _regeneratorRuntime().wrap(function _callee$(_context) { |
|
while (1) { |
|
switch (_context.prev = _context.next) { |
|
case 0: |
|
dataExporterApiUrl = _ref3.dataExporterApiUrl; |
|
setFormLoading(true); |
|
_context.next = 4; |
|
return _plugin_state__WEBPACK_IMPORTED_MODULE_3__["default"].installPlugin(dataExporterApiUrl); |
|
case 4: |
|
errorMsg = _context.sent; |
|
if (!errorMsg) { |
|
onSuccessfulSetup(); |
|
} else { |
|
setSetupErrorMsg(errorMsg); |
|
setFormLoading(false); |
|
} |
|
case 6: |
|
case "end": |
|
return _context.stop(); |
|
} |
|
} |
|
}, _callee); |
|
})); |
|
return function (_x2) { |
|
return _ref4.apply(this, arguments); |
|
}; |
|
}(), [onSuccessfulSetup]); |
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_4__.Form, { |
|
defaultValues: { |
|
dataExporterApiUrl: defaultDataExporterApiUrl |
|
}, |
|
onSubmit: setupPlugin |
|
}, function (_ref5) { |
|
var register = _ref5.register, |
|
errors = _ref5.errors; |
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement((react__WEBPACK_IMPORTED_MODULE_6___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("div", { |
|
className: cx('info-block') |
|
}, _p || (_p = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("p", null, "1. Launch the DataExporter backend")), _Text2 || (_Text2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_Text_Text__WEBPACK_IMPORTED_MODULE_2__["default"], { |
|
type: "secondary" |
|
}, "Run the backend. See", ' ', /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("a", { |
|
href: "https://code.corpglory.net/corpglory/grafana-data-exporter", |
|
target: "_blank", |
|
rel: "noreferrer" |
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_Text_Text__WEBPACK_IMPORTED_MODULE_2__["default"], { |
|
type: "link" |
|
}, "here")), ' ', "on how to get started."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("div", { |
|
className: cx('info-block') |
|
}, _p2 || (_p2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("p", null, "2. Let us know the base URL of your DataExporter API")), _Text3 || (_Text3 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_Text_Text__WEBPACK_IMPORTED_MODULE_2__["default"], { |
|
type: "secondary" |
|
}, "The DataExporter backend must be reachable from your Grafana installation. Some examples are:", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("br", null), "- http://host.docker.internal:8000", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement("br", null), "- http://localhost:8000"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_4__.Field, { |
|
label: "DataExporter backend URL", |
|
invalid: !!errors.dataExporterApiUrl, |
|
error: "Must be a valid URL" |
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_4__.Input, register('dataExporterApiUrl', { |
|
required: true, |
|
validate: isValidUrl |
|
}))), setupErrorMsg && (_FormErrorMessage || (_FormErrorMessage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(FormErrorMessage, { |
|
errorMsg: setupErrorMsg |
|
}))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_4__.Button, { |
|
type: "submit", |
|
size: "md", |
|
disabled: formLoading || !(0,lodash_es__WEBPACK_IMPORTED_MODULE_7__["default"])(errors) |
|
}, "Connect")); |
|
}); |
|
}; |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ConfigurationForm); |
|
|
|
/***/ }), |
|
|
|
/***/ "./components/PluginConfigPage/parts/RemoveCurrentConfigurationButton/index.tsx": |
|
/*!**************************************************************************************!*\ |
|
!*** ./components/PluginConfigPage/parts/RemoveCurrentConfigurationButton/index.tsx ***! |
|
\**************************************************************************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); |
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var _grafana_ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @grafana/ui */ "@grafana/ui"); |
|
/* harmony import */ var _grafana_ui__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_grafana_ui__WEBPACK_IMPORTED_MODULE_1__); |
|
/* harmony import */ var _WithConfirm_WithConfirm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../WithConfirm/WithConfirm */ "./components/WithConfirm/WithConfirm.tsx"); |
|
|
|
|
|
|
|
var RemoveCurrentConfigurationButton = function RemoveCurrentConfigurationButton(_ref) { |
|
var disabled = _ref.disabled, |
|
onClick = _ref.onClick; |
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_WithConfirm_WithConfirm__WEBPACK_IMPORTED_MODULE_2__["default"], { |
|
title: "Are you sure to delete the plugin configuration?", |
|
confirmText: "Remove" |
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_1__.Button, { |
|
variant: "destructive", |
|
onClick: onClick, |
|
size: "md", |
|
disabled: disabled |
|
}, "Remove current configuration")); |
|
}; |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RemoveCurrentConfigurationButton); |
|
|
|
/***/ }), |
|
|
|
/***/ "./components/PluginConfigPage/parts/StatusMessageBlock/index.tsx": |
|
/*!************************************************************************!*\ |
|
!*** ./components/PluginConfigPage/parts/StatusMessageBlock/index.tsx ***! |
|
\************************************************************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); |
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var _Text_Text__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Text/Text */ "./components/Text/Text.tsx"); |
|
|
|
|
|
var StatusMessageBlock = function StatusMessageBlock(_ref) { |
|
var text = _ref.text; |
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("pre", { |
|
"data-testid": "status-message-block" |
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text__WEBPACK_IMPORTED_MODULE_1__["default"], null, text)); |
|
}; |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StatusMessageBlock); |
|
|
|
/***/ }), |
|
|
|
/***/ "./components/Text/Text.tsx": |
|
/*!**********************************!*\ |
|
!*** ./components/Text/Text.tsx ***! |
|
\**********************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _Text_module_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Text.module.scss */ "./components/Text/Text.module.scss"); |
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils */ "./utils/index.ts"); |
|
/* harmony import */ var _grafana_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @grafana/ui */ "@grafana/ui"); |
|
/* harmony import */ var _grafana_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_grafana_ui__WEBPACK_IMPORTED_MODULE_2__); |
|
/* harmony import */ var classnames_bind__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames/bind */ "../node_modules/classnames/bind.js"); |
|
/* harmony import */ var classnames_bind__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames_bind__WEBPACK_IMPORTED_MODULE_3__); |
|
/* harmony import */ var react_copy_to_clipboard__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-copy-to-clipboard */ "../node_modules/react-copy-to-clipboard/lib/index.js"); |
|
/* harmony import */ var react_copy_to_clipboard__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_copy_to_clipboard__WEBPACK_IMPORTED_MODULE_4__); |
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react"); |
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__); |
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } |
|
var _excluded = ["level", "className", "style"]; |
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } |
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } |
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } |
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } |
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } |
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } |
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } |
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } |
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } |
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } |
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
var PLACEHOLDER = '**********'; |
|
var cx = classnames_bind__WEBPACK_IMPORTED_MODULE_3___default().bind(_Text_module_scss__WEBPACK_IMPORTED_MODULE_0__["default"]); |
|
var Text = function Text(props) { |
|
var _cx; |
|
var type = props.type, |
|
_props$size = props.size, |
|
size = _props$size === void 0 ? 'medium' : _props$size, |
|
_props$strong = props.strong, |
|
strong = _props$strong === void 0 ? false : _props$strong, |
|
_props$underline = props.underline, |
|
underline = _props$underline === void 0 ? false : _props$underline, |
|
children = props.children, |
|
onClick = props.onClick, |
|
_props$keyboard = props.keyboard, |
|
keyboard = _props$keyboard === void 0 ? false : _props$keyboard, |
|
className = props.className, |
|
_props$wrap = props.wrap, |
|
wrap = _props$wrap === void 0 ? true : _props$wrap, |
|
_props$copyable = props.copyable, |
|
copyable = _props$copyable === void 0 ? false : _props$copyable, |
|
_props$editable = props.editable, |
|
editable = _props$editable === void 0 ? false : _props$editable, |
|
onTextChange = props.onTextChange, |
|
_props$clearBeforeEdi = props.clearBeforeEdit, |
|
clearBeforeEdit = _props$clearBeforeEdi === void 0 ? false : _props$clearBeforeEdi, |
|
_props$hidden = props.hidden, |
|
hidden = _props$hidden === void 0 ? false : _props$hidden, |
|
_props$editModalTitle = props.editModalTitle, |
|
editModalTitle = _props$editModalTitle === void 0 ? 'New value' : _props$editModalTitle, |
|
style = props.style; |
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(false), |
|
_useState2 = _slicedToArray(_useState, 2), |
|
isEditMode = _useState2[0], |
|
setIsEditMode = _useState2[1]; |
|
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(), |
|
_useState4 = _slicedToArray(_useState3, 2), |
|
value = _useState4[0], |
|
setValue = _useState4[1]; |
|
var handleEditClick = (0,react__WEBPACK_IMPORTED_MODULE_5__.useCallback)(function () { |
|
setValue(clearBeforeEdit || hidden ? '' : children); |
|
setIsEditMode(true); |
|
}, [clearBeforeEdit, hidden, children]); |
|
var handleCancelEdit = (0,react__WEBPACK_IMPORTED_MODULE_5__.useCallback)(function () { |
|
setIsEditMode(false); |
|
}, []); |
|
var handleConfirmEdit = (0,react__WEBPACK_IMPORTED_MODULE_5__.useCallback)(function () { |
|
setIsEditMode(false); |
|
//@ts-ignore |
|
onTextChange(value); |
|
}, [value, onTextChange]); |
|
var handleInputChange = (0,react__WEBPACK_IMPORTED_MODULE_5__.useCallback)(function (e) { |
|
setValue(e.target.value); |
|
}, []); |
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement("span", { |
|
onClick: onClick, |
|
className: cx('root', 'text', className, (_cx = {}, _defineProperty(_cx, "text--".concat(type), true), _defineProperty(_cx, "text--".concat(size), true), _defineProperty(_cx, 'text--strong', strong), _defineProperty(_cx, 'text--underline', underline), _defineProperty(_cx, 'no-wrap', !wrap), _defineProperty(_cx, "keyboard", keyboard), _cx)), |
|
style: style |
|
}, hidden ? PLACEHOLDER : children, editable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_2__.IconButton, { |
|
onClick: handleEditClick, |
|
variant: "primary", |
|
className: cx('icon-button'), |
|
tooltip: "Edit", |
|
tooltipPlacement: "top", |
|
name: "edit" |
|
}), copyable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement((react_copy_to_clipboard__WEBPACK_IMPORTED_MODULE_4___default()), { |
|
text: children, |
|
onCopy: function onCopy() { |
|
(0,_utils__WEBPACK_IMPORTED_MODULE_1__.openNotification)('Text copied'); |
|
} |
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_2__.IconButton, { |
|
variant: "primary", |
|
className: cx('icon-button'), |
|
tooltip: "Copy to clipboard", |
|
tooltipPlacement: "top", |
|
name: "copy" |
|
})), isEditMode && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_2__.Modal, { |
|
onDismiss: handleCancelEdit, |
|
closeOnEscape: true, |
|
isOpen: true, |
|
title: editModalTitle |
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_2__.VerticalGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_2__.Input, { |
|
autoFocus: true, |
|
ref: function ref(node) { |
|
if (node) { |
|
node.focus(); |
|
} |
|
}, |
|
value: value, |
|
onChange: handleInputChange |
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_2__.HorizontalGroup, { |
|
justify: "flex-end" |
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_2__.Button, { |
|
variant: "secondary", |
|
onClick: handleCancelEdit |
|
}, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_2__.Button, { |
|
variant: "primary", |
|
onClick: handleConfirmEdit |
|
}, "Ok"))))); |
|
}; |
|
var Title = function Title(props) { |
|
var level = props.level, |
|
className = props.className, |
|
style = props.style, |
|
restProps = _objectWithoutProperties(props, _excluded); |
|
// @ts-ignore |
|
var Tag = "h".concat(level); |
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(Tag, { |
|
className: cx('title', className), |
|
style: style |
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(Text, restProps)); |
|
}; |
|
Text.Title = Title; |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Text); |
|
|
|
/***/ }), |
|
|
|
/***/ "./components/WithConfirm/WithConfirm.tsx": |
|
/*!************************************************!*\ |
|
!*** ./components/WithConfirm/WithConfirm.tsx ***! |
|
\************************************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); |
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var _grafana_ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @grafana/ui */ "@grafana/ui"); |
|
/* harmony import */ var _grafana_ui__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_grafana_ui__WEBPACK_IMPORTED_MODULE_1__); |
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } |
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } |
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } |
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } |
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } |
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } |
|
|
|
|
|
var WithConfirm = function WithConfirm(props) { |
|
var children = props.children, |
|
_props$title = props.title, |
|
title = _props$title === void 0 ? 'Are you sure to delete?' : _props$title, |
|
body = props.body, |
|
_props$confirmText = props.confirmText, |
|
confirmText = _props$confirmText === void 0 ? 'Delete' : _props$confirmText, |
|
disabled = props.disabled; |
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false), |
|
_useState2 = _slicedToArray(_useState, 2), |
|
showConfirmation = _useState2[0], |
|
setShowConfirmation = _useState2[1]; |
|
var onClickCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) { |
|
event.stopPropagation(); |
|
setShowConfirmation(true); |
|
}, []); |
|
var onConfirmCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () { |
|
if (children.props.onClick) { |
|
children.props.onClick(); |
|
} |
|
setShowConfirmation(false); |
|
}, [children]); |
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, showConfirmation && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_grafana_ui__WEBPACK_IMPORTED_MODULE_1__.ConfirmModal, { |
|
isOpen: true, |
|
title: title, |
|
confirmText: confirmText, |
|
dismissText: "Cancel", |
|
onConfirm: onConfirmCallback, |
|
body: body, |
|
onDismiss: function onDismiss() { |
|
setShowConfirmation(false); |
|
} |
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(children, { |
|
disabled: children.props.disabled || disabled, |
|
onClick: onClickCallback |
|
})); |
|
}; |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (WithConfirm); |
|
|
|
/***/ }), |
|
|
|
/***/ "./plugin_state.ts": |
|
/*!*************************!*\ |
|
!*** ./plugin_state.ts ***! |
|
\*************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./services/api_service */ "./services/api_service.ts"); |
|
/* harmony import */ var _grafana_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @grafana/runtime */ "@grafana/runtime"); |
|
/* harmony import */ var _grafana_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_grafana_runtime__WEBPACK_IMPORTED_MODULE_1__); |
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! axios */ "../node_modules/axios/lib/axios.js"); |
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } |
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; } |
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } |
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } |
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } |
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } |
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } |
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } |
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } |
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } |
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } |
|
|
|
|
|
|
|
var PluginState = /*#__PURE__*/_createClass(function PluginState() { |
|
_classCallCheck(this, PluginState); |
|
}); |
|
_defineProperty(PluginState, "GRAFANA_PLUGIN_SETTINGS_URL", '/api/plugins/corpglory-dataexporter-app/settings'); |
|
_defineProperty(PluginState, "grafanaBackend", (0,_grafana_runtime__WEBPACK_IMPORTED_MODULE_1__.getBackendSrv)()); |
|
_defineProperty(PluginState, "generateInvalidDataExporterApiURLErrorMsg", function (dataExporterApiUrl) { |
|
return "Could not communicate with your DataExporter API at ".concat(dataExporterApiUrl, ".\nValidate that the URL is correct, your DataExporter API is running, and that it is accessible from your Grafana instance."); |
|
}); |
|
_defineProperty(PluginState, "generateUnknownErrorMsg", function (dataExporterApiUrl) { |
|
return "An unknown error occured when trying to install the plugin. Are you sure that your DataExporter API URL, ".concat(dataExporterApiUrl, ", is correct?\nRefresh your page and try again, or try removing your plugin configuration and reconfiguring."); |
|
}); |
|
_defineProperty(PluginState, "getHumanReadableErrorFromDataExporterError", function (e, dataExporterApiUrl) { |
|
var errorMsg; |
|
var unknownErrorMsg = PluginState.generateUnknownErrorMsg(dataExporterApiUrl); |
|
var consoleMsg = "occured while trying to install the plugin w/ the DataExporter backend"; |
|
if (axios__WEBPACK_IMPORTED_MODULE_2__["default"].isAxiosError(e)) { |
|
var _e$response; |
|
var statusCode = (_e$response = e.response) === null || _e$response === void 0 ? void 0 : _e$response.status; |
|
console.warn("An HTTP related error ".concat(consoleMsg), e.response); |
|
if (statusCode === 502) { |
|
// 502 occurs when the plugin-proxy cannot communicate w/ the DataExporter API using the provided URL |
|
errorMsg = PluginState.generateInvalidDataExporterApiURLErrorMsg(dataExporterApiUrl); |
|
} else if (statusCode === 400) { |
|
var _e$response2, _e$response2$data; |
|
/** |
|
* A 400 is 'bubbled-up' from the DataExporter API. It indicates one of three cases: |
|
* 1. there is a communication error when DataExporter API tries to contact Grafana's API |
|
* 2. there is an auth error when DataExporter API tries to contact Grafana's API |
|
* 3. (likely rare) user inputs an DataExporterApiUrl that is not RFC 1034/1035 compliant |
|
* |
|
* Check if the response body has an 'error' JSON attribute, if it does, assume scenario 1 or 2 |
|
* Use the error message provided to give the user more context/helpful debugging information |
|
*/ |
|
errorMsg = ((_e$response2 = e.response) === null || _e$response2 === void 0 ? void 0 : (_e$response2$data = _e$response2.data) === null || _e$response2$data === void 0 ? void 0 : _e$response2$data.error) || unknownErrorMsg; |
|
} else { |
|
// this scenario shouldn't occur.. |
|
errorMsg = unknownErrorMsg; |
|
} |
|
} else { |
|
// a non-axios related error occured.. this scenario shouldn't occur... |
|
console.warn("An unknown error ".concat(consoleMsg), e); |
|
errorMsg = unknownErrorMsg; |
|
} |
|
return errorMsg; |
|
}); |
|
_defineProperty(PluginState, "getHumanReadableErrorFromGrafanaProvisioningError", function (e, dataExporterApiUrl) { |
|
var errorMsg; |
|
if (axios__WEBPACK_IMPORTED_MODULE_2__["default"].isAxiosError(e)) { |
|
// The user likely put in a bogus URL for the DataExporter API URL |
|
console.warn('An HTTP related error occured while trying to provision the plugin w/ Grafana', e.response); |
|
errorMsg = PluginState.generateInvalidDataExporterApiURLErrorMsg(dataExporterApiUrl); |
|
} else { |
|
// a non-axios related error occured.. this scenario shouldn't occur... |
|
console.warn('An unknown error occured while trying to provision the plugin w/ Grafana', e); |
|
errorMsg = PluginState.generateUnknownErrorMsg(dataExporterApiUrl); |
|
} |
|
return errorMsg; |
|
}); |
|
_defineProperty(PluginState, "getGrafanaPluginSettings", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { |
|
return _regeneratorRuntime().wrap(function _callee$(_context) { |
|
while (1) { |
|
switch (_context.prev = _context.next) { |
|
case 0: |
|
return _context.abrupt("return", PluginState.grafanaBackend.get(PluginState.GRAFANA_PLUGIN_SETTINGS_URL)); |
|
case 1: |
|
case "end": |
|
return _context.stop(); |
|
} |
|
} |
|
}, _callee); |
|
}))); |
|
_defineProperty(PluginState, "updateGrafanaPluginSettings", /*#__PURE__*/function () { |
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(data) { |
|
var enabled, |
|
_args2 = arguments; |
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) { |
|
while (1) { |
|
switch (_context2.prev = _context2.next) { |
|
case 0: |
|
enabled = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : true; |
|
return _context2.abrupt("return", PluginState.grafanaBackend.post(PluginState.GRAFANA_PLUGIN_SETTINGS_URL, _extends({}, data, { |
|
enabled: enabled, |
|
pinned: true |
|
}), |
|
// @ts-ignore |
|
// for some reason, there is no `options` argument in Grafana's public types for BackendSrv but it exists |
|
{ |
|
showSuccessAlert: false |
|
})); |
|
case 2: |
|
case "end": |
|
return _context2.stop(); |
|
} |
|
} |
|
}, _callee2); |
|
})); |
|
return function (_x) { |
|
return _ref2.apply(this, arguments); |
|
}; |
|
}()); |
|
_defineProperty(PluginState, "createGrafanaToken", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { |
|
var baseUrl, keys, existingKey; |
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) { |
|
while (1) { |
|
switch (_context3.prev = _context3.next) { |
|
case 0: |
|
baseUrl = '/api/auth/keys'; |
|
_context3.next = 3; |
|
return PluginState.grafanaBackend.get(baseUrl); |
|
case 3: |
|
keys = _context3.sent; |
|
existingKey = keys.find(function (key) { |
|
return key.name === 'DataExporter'; |
|
}); |
|
if (!existingKey) { |
|
_context3.next = 8; |
|
break; |
|
} |
|
_context3.next = 8; |
|
return PluginState.grafanaBackend["delete"]("".concat(baseUrl, "/").concat(existingKey.id), undefined, { |
|
showSuccessAlert: false |
|
}); |
|
case 8: |
|
_context3.next = 10; |
|
return PluginState.grafanaBackend.post(baseUrl, { |
|
name: 'DataExporter', |
|
role: 'Admin', |
|
secondsToLive: null |
|
}, |
|
// @ts-ignore |
|
// for some reason, there is no `options` argument in Grafana's public types for BackendSrv but it exists |
|
{ |
|
showSuccessAlert: false |
|
}); |
|
case 10: |
|
return _context3.abrupt("return", _context3.sent); |
|
case 11: |
|
case "end": |
|
return _context3.stop(); |
|
} |
|
} |
|
}, _callee3); |
|
}))); |
|
_defineProperty(PluginState, "timeout", function (pollCount) { |
|
return new Promise(function (resolve) { |
|
return setTimeout(resolve, 10 * Math.pow(2, pollCount)); |
|
}); |
|
}); |
|
_defineProperty(PluginState, "connectBackend", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() { |
|
var _yield$PluginState$cr, grafanaToken, dataExporterAPIResponse; |
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) { |
|
while (1) { |
|
switch (_context4.prev = _context4.next) { |
|
case 0: |
|
_context4.next = 2; |
|
return PluginState.createGrafanaToken(); |
|
case 2: |
|
_yield$PluginState$cr = _context4.sent; |
|
grafanaToken = _yield$PluginState$cr.key; |
|
_context4.next = 6; |
|
return PluginState.updateGrafanaPluginSettings({ |
|
secureJsonData: { |
|
grafanaToken: grafanaToken |
|
} |
|
}); |
|
case 6: |
|
_context4.next = 8; |
|
return (0,_services_api_service__WEBPACK_IMPORTED_MODULE_0__.queryApi)("/connect", { |
|
method: 'POST' |
|
}); |
|
case 8: |
|
dataExporterAPIResponse = _context4.sent; |
|
return _context4.abrupt("return", { |
|
grafanaToken: grafanaToken, |
|
dataExporterAPIResponse: dataExporterAPIResponse |
|
}); |
|
case 10: |
|
case "end": |
|
return _context4.stop(); |
|
} |
|
} |
|
}, _callee4); |
|
}))); |
|
_defineProperty(PluginState, "installPlugin", /*#__PURE__*/function () { |
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(dataExporterApiUrl) { |
|
var pluginInstallationDataExporterResponse, _pluginInstallationDa, grafanaToken; |
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) { |
|
while (1) { |
|
switch (_context5.prev = _context5.next) { |
|
case 0: |
|
_context5.prev = 0; |
|
_context5.next = 3; |
|
return PluginState.updateGrafanaPluginSettings({ |
|
jsonData: { |
|
dataExporterApiUrl: dataExporterApiUrl |
|
} |
|
}); |
|
case 3: |
|
_context5.next = 8; |
|
break; |
|
case 5: |
|
_context5.prev = 5; |
|
_context5.t0 = _context5["catch"](0); |
|
return _context5.abrupt("return", PluginState.getHumanReadableErrorFromGrafanaProvisioningError(_context5.t0, dataExporterApiUrl)); |
|
case 8: |
|
_context5.prev = 8; |
|
_context5.next = 11; |
|
return PluginState.connectBackend(); |
|
case 11: |
|
pluginInstallationDataExporterResponse = _context5.sent; |
|
_context5.next = 17; |
|
break; |
|
case 14: |
|
_context5.prev = 14; |
|
_context5.t1 = _context5["catch"](8); |
|
return _context5.abrupt("return", PluginState.getHumanReadableErrorFromDataExporterError(_context5.t1, dataExporterApiUrl)); |
|
case 17: |
|
_context5.prev = 17; |
|
_pluginInstallationDa = pluginInstallationDataExporterResponse, grafanaToken = _pluginInstallationDa.grafanaToken; |
|
_context5.next = 21; |
|
return PluginState.updateGrafanaPluginSettings({ |
|
jsonData: { |
|
dataExporterApiUrl: dataExporterApiUrl |
|
}, |
|
secureJsonData: { |
|
grafanaToken: grafanaToken |
|
} |
|
}); |
|
case 21: |
|
_context5.next = 26; |
|
break; |
|
case 23: |
|
_context5.prev = 23; |
|
_context5.t2 = _context5["catch"](17); |
|
return _context5.abrupt("return", PluginState.getHumanReadableErrorFromGrafanaProvisioningError(_context5.t2, dataExporterApiUrl)); |
|
case 26: |
|
return _context5.abrupt("return", null); |
|
case 27: |
|
case "end": |
|
return _context5.stop(); |
|
} |
|
} |
|
}, _callee5, null, [[0, 5], [8, 14], [17, 23]]); |
|
})); |
|
return function (_x2) { |
|
return _ref5.apply(this, arguments); |
|
}; |
|
}()); |
|
_defineProperty(PluginState, "checkIfPluginIsConnected", /*#__PURE__*/function () { |
|
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(dataExporterApiUrl) { |
|
var resp; |
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) { |
|
while (1) { |
|
switch (_context6.prev = _context6.next) { |
|
case 0: |
|
_context6.prev = 0; |
|
_context6.next = 3; |
|
return (0,_services_api_service__WEBPACK_IMPORTED_MODULE_0__.queryApi)("/status", { |
|
method: 'GET' |
|
}); |
|
case 3: |
|
resp = _context6.sent; |
|
if (!resp.version) { |
|
_context6.next = 8; |
|
break; |
|
} |
|
return _context6.abrupt("return", resp); |
|
case 8: |
|
throw new Error("Something is working at ".concat(dataExporterApiUrl, " but it's not DataExporter backend")); |
|
case 9: |
|
_context6.next = 14; |
|
break; |
|
case 11: |
|
_context6.prev = 11; |
|
_context6.t0 = _context6["catch"](0); |
|
return _context6.abrupt("return", PluginState.getHumanReadableErrorFromDataExporterError(_context6.t0, dataExporterApiUrl)); |
|
case 14: |
|
case "end": |
|
return _context6.stop(); |
|
} |
|
} |
|
}, _callee6, null, [[0, 11]]); |
|
})); |
|
return function (_x3) { |
|
return _ref6.apply(this, arguments); |
|
}; |
|
}()); |
|
_defineProperty(PluginState, "resetPlugin", function () { |
|
/** |
|
* mark both of these objects as Required.. this will ensure that we are resetting every attribute back to null |
|
* and throw a type error in the event that DataExporterPluginMetaJSONData or DataExporterPluginMetaSecureJSONData is updated |
|
* but we forget to add the attribute here |
|
*/ |
|
var jsonData = { |
|
dataExporterApiUrl: null |
|
}; |
|
var secureJsonData = { |
|
grafanaToken: null |
|
}; |
|
return PluginState.updateGrafanaPluginSettings({ |
|
jsonData: jsonData, |
|
secureJsonData: secureJsonData |
|
}, false); |
|
}); |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PluginState); |
|
|
|
/***/ }), |
|
|
|
/***/ "./services/api_service.ts": |
|
/*!*********************************!*\ |
|
!*** ./services/api_service.ts ***! |
|
\*********************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "API_HOST": () => (/* binding */ API_HOST), |
|
/* harmony export */ "API_PATH_PREFIX": () => (/* binding */ API_PATH_PREFIX), |
|
/* harmony export */ "API_PROXY_PREFIX": () => (/* binding */ API_PROXY_PREFIX), |
|
/* harmony export */ "deleteTask": () => (/* binding */ deleteTask), |
|
/* harmony export */ "getStaticFile": () => (/* binding */ getStaticFile), |
|
/* harmony export */ "getTasks": () => (/* binding */ getTasks), |
|
/* harmony export */ "queryApi": () => (/* binding */ queryApi) |
|
/* harmony export */ }); |
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ "../node_modules/axios/lib/axios.js"); |
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ "lodash"); |
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__); |
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } |
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; } |
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } |
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } |
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } |
|
|
|
|
|
var API_HOST = "".concat(window.location.protocol, "//").concat(window.location.host, "/"); |
|
var API_PROXY_PREFIX = 'api/plugin-proxy/corpglory-dataexporter-app'; |
|
var API_PATH_PREFIX = '/api'; |
|
var instance = axios__WEBPACK_IMPORTED_MODULE_1__["default"].create(); |
|
instance.interceptors.request.use(function (config) { |
|
config.validateStatus = function (status) { |
|
return status >= 200 && status < 300; // default |
|
}; |
|
|
|
return _extends({}, config); |
|
}); |
|
var queryApi = /*#__PURE__*/function () { |
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(path, config) { |
|
var _config$method, method, params, data, validateStatus, url, response; |
|
return _regeneratorRuntime().wrap(function _callee$(_context) { |
|
while (1) { |
|
switch (_context.prev = _context.next) { |
|
case 0: |
|
_config$method = config.method, method = _config$method === void 0 ? 'GET' : _config$method, params = config.params, data = config.data, validateStatus = config.validateStatus; |
|
url = "".concat(API_PROXY_PREFIX).concat(API_PATH_PREFIX).concat(path); |
|
_context.next = 4; |
|
return instance({ |
|
method: method, |
|
url: url, |
|
params: params, |
|
data: data, |
|
validateStatus: validateStatus |
|
}); |
|
case 4: |
|
response = _context.sent; |
|
return _context.abrupt("return", response.data); |
|
case 6: |
|
case "end": |
|
return _context.stop(); |
|
} |
|
} |
|
}, _callee); |
|
})); |
|
return function queryApi(_x, _x2) { |
|
return _ref.apply(this, arguments); |
|
}; |
|
}(); |
|
function getTasks() { |
|
return _getTasks.apply(this, arguments); |
|
} |
|
function _getTasks() { |
|
_getTasks = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { |
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) { |
|
while (1) { |
|
switch (_context2.prev = _context2.next) { |
|
case 0: |
|
return _context2.abrupt("return", queryApi('/task', {})); |
|
case 1: |
|
case "end": |
|
return _context2.stop(); |
|
} |
|
} |
|
}, _callee2); |
|
})); |
|
return _getTasks.apply(this, arguments); |
|
} |
|
function deleteTask(_x3) { |
|
return _deleteTask.apply(this, arguments); |
|
} |
|
function _deleteTask() { |
|
_deleteTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(filename) { |
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) { |
|
while (1) { |
|
switch (_context3.prev = _context3.next) { |
|
case 0: |
|
if (!lodash__WEBPACK_IMPORTED_MODULE_0__.isEmpty(filename)) { |
|
_context3.next = 3; |
|
break; |
|
} |
|
console.warn("can't delete task without filename"); |
|
return _context3.abrupt("return"); |
|
case 3: |
|
_context3.next = 5; |
|
return queryApi('/task', { |
|
method: 'DELETE', |
|
data: { |
|
filename: filename |
|
} |
|
}); |
|
case 5: |
|
case "end": |
|
return _context3.stop(); |
|
} |
|
} |
|
}, _callee3); |
|
})); |
|
return _deleteTask.apply(this, arguments); |
|
} |
|
function getStaticFile(_x4) { |
|
return _getStaticFile.apply(this, arguments); |
|
} |
|
function _getStaticFile() { |
|
_getStaticFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(filename) { |
|
var respData, href, link; |
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) { |
|
while (1) { |
|
switch (_context4.prev = _context4.next) { |
|
case 0: |
|
if (!lodash__WEBPACK_IMPORTED_MODULE_0__.isEmpty(filename)) { |
|
_context4.next = 3; |
|
break; |
|
} |
|
console.warn("can't download file without name"); |
|
return _context4.abrupt("return"); |
|
case 3: |
|
_context4.next = 5; |
|
return queryApi("/static/".concat(filename, ".csv"), {}); |
|
case 5: |
|
respData = _context4.sent; |
|
// TODO: check if resp exists |
|
// create file link in browser's memory |
|
href = URL.createObjectURL(new Blob([respData], { |
|
type: 'text/csv' |
|
})); // create "a" HTML element with href to file & click |
|
link = document.createElement('a'); |
|
link.href = href; |
|
link.setAttribute('download', "".concat(filename, ".csv")); |
|
document.body.appendChild(link); |
|
link.click(); |
|
|
|
// clean up "a" element & remove ObjectURL |
|
document.body.removeChild(link); |
|
URL.revokeObjectURL(href); |
|
case 14: |
|
case "end": |
|
return _context4.stop(); |
|
} |
|
} |
|
}, _callee4); |
|
})); |
|
return _getStaticFile.apply(this, arguments); |
|
} |
|
|
|
/***/ }), |
|
|
|
/***/ "./utils/index.ts": |
|
/*!************************!*\ |
|
!*** ./utils/index.ts ***! |
|
\************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "convertTimestampToDate": () => (/* binding */ convertTimestampToDate), |
|
/* harmony export */ "getDashboardUid": () => (/* binding */ getDashboardUid), |
|
/* harmony export */ "openNotification": () => (/* binding */ openNotification) |
|
/* harmony export */ }); |
|
/* harmony import */ var _grafana_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @grafana/data */ "@grafana/data"); |
|
/* harmony import */ var _grafana_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_grafana_data__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var grafana_app_core_app_events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! grafana/app/core/app_events */ "grafana/app/core/app_events"); |
|
/* harmony import */ var grafana_app_core_app_events__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(grafana_app_core_app_events__WEBPACK_IMPORTED_MODULE_1__); |
|
|
|
// @ts-ignore |
|
|
|
function openNotification(message) { |
|
grafana_app_core_app_events__WEBPACK_IMPORTED_MODULE_1___default().emit(_grafana_data__WEBPACK_IMPORTED_MODULE_0__.AppEvents.alertSuccess, [message]); |
|
} |
|
function getDashboardUid(url) { |
|
var matches = new URL(url).pathname.match(/\/d\/([^/]+)/); |
|
if (!matches) { |
|
throw new Error("Couldn't parse uid from ".concat(url)); |
|
} else { |
|
return matches[1]; |
|
} |
|
} |
|
function convertTimestampToDate(timestamp) { |
|
var options = { |
|
year: 'numeric', |
|
month: 'short', |
|
day: 'numeric', |
|
hour: 'numeric', |
|
minute: 'numeric', |
|
second: 'numeric' |
|
}; |
|
return new Date(timestamp).toLocaleString('en-GB', options); |
|
} |
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/node_modules/form-data/lib/browser.js": |
|
/*!*******************************************************************!*\ |
|
!*** ../node_modules/axios/node_modules/form-data/lib/browser.js ***! |
|
\*******************************************************************/ |
|
/***/ ((module) => { |
|
|
|
/* eslint-env browser */ |
|
module.exports = typeof self == 'object' ? self.FormData : window.FormData; |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/classnames/bind.js": |
|
/*!******************************************!*\ |
|
!*** ../node_modules/classnames/bind.js ***! |
|
\******************************************/ |
|
/***/ ((module, exports) => { |
|
|
|
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! |
|
Copyright (c) 2018 Jed Watson. |
|
Licensed under the MIT License (MIT), see |
|
http://jedwatson.github.io/classnames |
|
*/ |
|
/* global define */ |
|
|
|
(function () { |
|
'use strict'; |
|
|
|
var hasOwn = {}.hasOwnProperty; |
|
|
|
function classNames () { |
|
var classes = []; |
|
|
|
for (var i = 0; i < arguments.length; i++) { |
|
var arg = arguments[i]; |
|
if (!arg) continue; |
|
|
|
var argType = typeof arg; |
|
|
|
if (argType === 'string' || argType === 'number') { |
|
classes.push(this && this[arg] || arg); |
|
} else if (Array.isArray(arg)) { |
|
classes.push(classNames.apply(this, arg)); |
|
} else if (argType === 'object') { |
|
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) { |
|
classes.push(arg.toString()); |
|
continue; |
|
} |
|
|
|
for (var key in arg) { |
|
if (hasOwn.call(arg, key) && arg[key]) { |
|
classes.push(this && this[key] || key); |
|
} |
|
} |
|
} |
|
} |
|
|
|
return classes.join(' '); |
|
} |
|
|
|
if ( true && module.exports) { |
|
classNames.default = classNames; |
|
module.exports = classNames; |
|
} else if (true) { |
|
// register as 'classnames', consistent with npm package name |
|
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { |
|
return classNames; |
|
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), |
|
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); |
|
} else {} |
|
}()); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/copy-to-clipboard/index.js": |
|
/*!**************************************************!*\ |
|
!*** ../node_modules/copy-to-clipboard/index.js ***! |
|
\**************************************************/ |
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
|
|
|
"use strict"; |
|
|
|
|
|
var deselectCurrent = __webpack_require__(/*! toggle-selection */ "../node_modules/toggle-selection/index.js"); |
|
|
|
var clipboardToIE11Formatting = { |
|
"text/plain": "Text", |
|
"text/html": "Url", |
|
"default": "Text" |
|
} |
|
|
|
var defaultMessage = "Copy to clipboard: #{key}, Enter"; |
|
|
|
function format(message) { |
|
var copyKey = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C"; |
|
return message.replace(/#{\s*key\s*}/g, copyKey); |
|
} |
|
|
|
function copy(text, options) { |
|
var debug, |
|
message, |
|
reselectPrevious, |
|
range, |
|
selection, |
|
mark, |
|
success = false; |
|
if (!options) { |
|
options = {}; |
|
} |
|
debug = options.debug || false; |
|
try { |
|
reselectPrevious = deselectCurrent(); |
|
|
|
range = document.createRange(); |
|
selection = document.getSelection(); |
|
|
|
mark = document.createElement("span"); |
|
mark.textContent = text; |
|
// avoid screen readers from reading out loud the text |
|
mark.ariaHidden = "true" |
|
// reset user styles for span element |
|
mark.style.all = "unset"; |
|
// prevents scrolling to the end of the page |
|
mark.style.position = "fixed"; |
|
mark.style.top = 0; |
|
mark.style.clip = "rect(0, 0, 0, 0)"; |
|
// used to preserve spaces and line breaks |
|
mark.style.whiteSpace = "pre"; |
|
// do not inherit user-select (it may be `none`) |
|
mark.style.webkitUserSelect = "text"; |
|
mark.style.MozUserSelect = "text"; |
|
mark.style.msUserSelect = "text"; |
|
mark.style.userSelect = "text"; |
|
mark.addEventListener("copy", function(e) { |
|
e.stopPropagation(); |
|
if (options.format) { |
|
e.preventDefault(); |
|
if (typeof e.clipboardData === "undefined") { // IE 11 |
|
debug && console.warn("unable to use e.clipboardData"); |
|
debug && console.warn("trying IE specific stuff"); |
|
window.clipboardData.clearData(); |
|
var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"] |
|
window.clipboardData.setData(format, text); |
|
} else { // all other browsers |
|
e.clipboardData.clearData(); |
|
e.clipboardData.setData(options.format, text); |
|
} |
|
} |
|
if (options.onCopy) { |
|
e.preventDefault(); |
|
options.onCopy(e.clipboardData); |
|
} |
|
}); |
|
|
|
document.body.appendChild(mark); |
|
|
|
range.selectNodeContents(mark); |
|
selection.addRange(range); |
|
|
|
var successful = document.execCommand("copy"); |
|
if (!successful) { |
|
throw new Error("copy command was unsuccessful"); |
|
} |
|
success = true; |
|
} catch (err) { |
|
debug && console.error("unable to copy using execCommand: ", err); |
|
debug && console.warn("trying IE specific stuff"); |
|
try { |
|
window.clipboardData.setData(options.format || "text", text); |
|
options.onCopy && options.onCopy(window.clipboardData); |
|
success = true; |
|
} catch (err) { |
|
debug && console.error("unable to copy using clipboardData: ", err); |
|
debug && console.error("falling back to prompt"); |
|
message = format("message" in options ? options.message : defaultMessage); |
|
window.prompt(message, text); |
|
} |
|
} finally { |
|
if (selection) { |
|
if (typeof selection.removeRange == "function") { |
|
selection.removeRange(range); |
|
} else { |
|
selection.removeAllRanges(); |
|
} |
|
} |
|
|
|
if (mark) { |
|
document.body.removeChild(mark); |
|
} |
|
reselectPrevious(); |
|
} |
|
|
|
return success; |
|
} |
|
|
|
module.exports = copy; |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./components/PluginConfigPage/parts/ConfigurationForm/ConfigurationForm.module.css": |
|
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ |
|
!*** ../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./components/PluginConfigPage/parts/ConfigurationForm/ConfigurationForm.module.css ***! |
|
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************/ |
|
/***/ ((module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "../node_modules/css-loader/dist/runtime/sourceMaps.js"); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ "../node_modules/css-loader/dist/runtime/api.js"); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); |
|
// Imports |
|
|
|
|
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); |
|
// Module |
|
___CSS_LOADER_EXPORT___.push([module.id, ".hIaTKzSpKwnciwBsbA5g {\n margin-bottom: 24px;\n margin-top: 24px;\n}", "",{"version":3,"sources":["webpack://./components/PluginConfigPage/parts/ConfigurationForm/ConfigurationForm.module.css"],"names":[],"mappings":"AAAA;EACE,mBAAA;EACA,gBAAA;AACF","sourcesContent":[".info-block {\n margin-bottom: 24px;\n margin-top: 24px;\n}\n"],"sourceRoot":""}]); |
|
// Exports |
|
___CSS_LOADER_EXPORT___.locals = { |
|
"info-block": "hIaTKzSpKwnciwBsbA5g" |
|
}; |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./style/global.css": |
|
/*!************************************************************************************************************************************************************************************************************************************************************************!*\ |
|
!*** ../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./style/global.css ***! |
|
\************************************************************************************************************************************************************************************************************************************************************************/ |
|
/***/ ((module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "../node_modules/css-loader/dist/runtime/sourceMaps.js"); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "../node_modules/css-loader/dist/runtime/api.js"); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); |
|
// Imports |
|
|
|
|
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); |
|
// Module |
|
___CSS_LOADER_EXPORT___.push([module.id, ".configure-plugin {\n margin-top: 10px;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n}\n/* Spinner */\n.spin {\n width: 100%;\n margin-top: 200px;\n margin-bottom: 200px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n\n.spin-text {\n margin-top: 20px;\n}\n\n/* Tables */\n.disabled-row {\n background: #f0f0f0;\n}\n\n.highlighted-row {\n background: var(--highlighted-row-bg);\n}\n\n/* Navigation */\n.navbarRootFallback {\n margin-top: 24px;\n}\n\n.page-title {\n margin-bottom: 16px;\n}", "",{"version":3,"sources":["webpack://./style/global.css"],"names":[],"mappings":"AAAA;EACE,gBAAA;AACF;;AAEA;EACE;IACE,UAAA;EACF;AACF;AAEA,YAAA;AAEA;EACE,WAAA;EACA,iBAAA;EACA,oBAAA;EACA,aAAA;EACA,sBAAA;EACA,uBAAA;EACA,mBAAA;AADF;;AAIA;EACE,gBAAA;AADF;;AAIA,WAAA;AAEA;EACE,mBAAA;AAFF;;AAKA;EACE,qCAAA;AAFF;;AAKA,eAAA;AAEA;EACE,gBAAA;AAHF;;AAMA;EACE,mBAAA;AAHF","sourcesContent":[".configure-plugin {\n margin-top: 10px;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n}\n\n/* Spinner */\n\n.spin {\n width: 100%;\n margin-top: 200px;\n margin-bottom: 200px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n\n.spin-text {\n margin-top: 20px;\n}\n\n/* Tables */\n\n.disabled-row {\n background: #f0f0f0;\n}\n\n.highlighted-row {\n background: var(--highlighted-row-bg);\n}\n\n/* Navigation */\n\n.navbarRootFallback {\n margin-top: 24px;\n}\n\n.page-title {\n margin-bottom: 16px;\n}\n"],"sourceRoot":""}]); |
|
// Exports |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./style/vars.css": |
|
/*!**********************************************************************************************************************************************************************************************************************************************************************!*\ |
|
!*** ../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./style/vars.css ***! |
|
\**********************************************************************************************************************************************************************************************************************************************************************/ |
|
/***/ ((module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "../node_modules/css-loader/dist/runtime/sourceMaps.js"); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "../node_modules/css-loader/dist/runtime/api.js"); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); |
|
// Imports |
|
|
|
|
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); |
|
// Module |
|
___CSS_LOADER_EXPORT___.push([module.id, ":root {\n --maintenance-background: repeating-linear-gradient(45deg, #f6ba52, #f6ba52 20px, #ffd180 20px, #ffd180 40px);\n --gren-5: #6ccf8e;\n --green-6: #73d13d;\n --red-5: #ff4d4f;\n --orange-5: #ffa940;\n --blue-2: #bae7ff;\n --gray-5: #d9d9d9;\n --gray-8: #595959;\n --gray-9: #434343;\n --cyan-1: #e6fffb;\n --purple-9: #22075e;\n --border-radius: 2px;\n --gradient-brandHorizontal: linear-gradient(90deg, #f83 0%, #f53e4c 100%);\n --gradient-brandVertical: linear-gradient(0.01deg, #f53e4c -31.2%, #f83 113.07%);\n --always-gray: #ccccdc;\n --title-marginBottom: 16px;\n}\n\n.theme-light {\n --cards-background: var(--blue-2);\n --highlighted-row-bg: var(--cyan-1);\n --disabled-button-color: #bdbdbd;\n --primary-background: rgb(255, 255, 255);\n --secondary-background: rgb(244, 245, 245);\n --border: 1px solid rgba(36, 41, 46, 0.12);\n --primary-text-color: rgb(36, 41, 46);\n --secondary-text-color: rgba(36, 41, 46, 0.75);\n --disabled-text-color: rgba(36, 41, 46, 0.5);\n --warning-text-color: #8a6c00;\n --success-text-color: rgb(10, 118, 78);\n --error-text-color: rgb(207, 14, 91);\n --primary-text-link: #1f62e0;\n --timeline-icon-background: rgba(70, 76, 84, 0);\n --timeline-icon-background-resolution-note: rgba(50, 116, 217, 0);\n --oncall-icon-stroke-color: #fff;\n --hover-selected: #f4f5f5;\n --background-canvas: #f4f5f5;\n --background-primary: #fff;\n --background-secondary: #f4f5f5;\n --border-medium: 1px solid rgba(36, 41, 46, 0.3);\n --border-strong: 1px solid rgba(36, 41, 46, 0.4);\n --border-weak: 1px solid rgba(36, 41, 46, 0.12);\n --shadows-z1: 0 1px 2px rgba(24, 26, 27, 0.2);\n --shadows-z2: 0 4px 8px rgba(24, 26, 27, 0.2);\n --shadows-z3: 0 13px 20px 1px rgba(24, 26, 27, 0.18);\n}\n\n.theme-dark {\n --cards-background: var(--gray-9);\n --highlighted-row-bg: var(--gray-9);\n --disabled-button-color: hsla(0, 0%, 100%, 0.08);\n --primary-background: rgb(24, 27, 31);\n --secondary-background: rgb(34, 37, 43);\n --border: 1px solid rgba(204, 204, 220, 0.15);\n --primary-text-color: rgb(204, 204, 220);\n --secondary-text-color: rgba(204, 204, 220, 0.65);\n --disabled-text-color: rgba(204, 204, 220, 0.4);\n --warning-text-color: #f8d06b;\n --success-text-color: rgb(108, 207, 142);\n --error-text-color: rgb(255, 82, 134);\n --primary-text-link: #6e9fff;\n --timeline-icon-background: rgba(70, 76, 84, 1);\n --timeline-icon-background-resolution-note: rgba(50, 116, 217, 1);\n --focused-box-shadow: rgb(17 18 23) 0 0 0 2px, rgb(61 113 217) 0 0 0 4px;\n --hover-selected: rgba(204, 204, 220, 0.12);\n --hover-selected-hardcoded: #34363d;\n --oncall-icon-stroke-color: #181b1f;\n --background-canvas: #111217;\n --background-primary: #181b1f;\n --background-secondary: #22252b;\n --border-medium: 1px solid rgba(204, 204, 220, 0.15);\n --border-strong: 1px solid rgba(204, 204, 220, 0.25);\n --border-weak: 1px solid rgba(204, 204, 220, 0.07);\n --shadows-z1: 0 1px 2px rgba(24, 26, 27, 0.75);\n --shadows-z2: 0 4px 8px rgba(24, 26, 27, 0.75);\n --shadows-z3: 0 8px 24px rgb(1, 4, 9);\n}", "",{"version":3,"sources":["webpack://./style/vars.css"],"names":[],"mappings":"AAAA;EACE,6GAAA;EACA,iBAAA;EACA,kBAAA;EACA,gBAAA;EACA,mBAAA;EACA,iBAAA;EACA,iBAAA;EACA,iBAAA;EACA,iBAAA;EACA,iBAAA;EACA,mBAAA;EACA,oBAAA;EACA,yEAAA;EACA,gFAAA;EACA,sBAAA;EACA,0BAAA;AACF;;AAEA;EACE,iCAAA;EACA,mCAAA;EACA,gCAAA;EACA,wCAAA;EACA,0CAAA;EACA,0CAAA;EACA,qCAAA;EACA,8CAAA;EACA,4CAAA;EACA,6BAAA;EACA,sCAAA;EACA,oCAAA;EACA,4BAAA;EACA,+CAAA;EACA,iEAAA;EACA,gCAAA;EACA,yBAAA;EACA,4BAAA;EACA,0BAAA;EACA,+BAAA;EACA,gDAAA;EACA,gDAAA;EACA,+CAAA;EACA,6CAAA;EACA,6CAAA;EACA,oDAAA;AACF;;AAEA;EACE,iCAAA;EACA,mCAAA;EACA,gDAAA;EACA,qCAAA;EACA,uCAAA;EACA,6CAAA;EACA,wCAAA;EACA,iDAAA;EACA,+CAAA;EACA,6BAAA;EACA,wCAAA;EACA,qCAAA;EACA,4BAAA;EACA,+CAAA;EACA,iEAAA;EACA,wEAAA;EACA,2CAAA;EACA,mCAAA;EACA,mCAAA;EACA,4BAAA;EACA,6BAAA;EACA,+BAAA;EACA,oDAAA;EACA,oDAAA;EACA,kDAAA;EACA,8CAAA;EACA,8CAAA;EACA,qCAAA;AACF","sourcesContent":[":root {\n --maintenance-background: repeating-linear-gradient(45deg, #f6ba52, #f6ba52 20px, #ffd180 20px, #ffd180 40px);\n --gren-5: #6ccf8e;\n --green-6: #73d13d;\n --red-5: #ff4d4f;\n --orange-5: #ffa940;\n --blue-2: #bae7ff;\n --gray-5: #d9d9d9;\n --gray-8: #595959;\n --gray-9: #434343;\n --cyan-1: #e6fffb;\n --purple-9: #22075e;\n --border-radius: 2px;\n --gradient-brandHorizontal: linear-gradient(90deg, #f83 0%, #f53e4c 100%);\n --gradient-brandVertical: linear-gradient(0.01deg, #f53e4c -31.2%, #f83 113.07%);\n --always-gray: #ccccdc;\n --title-marginBottom: 16px;\n}\n\n.theme-light {\n --cards-background: var(--blue-2);\n --highlighted-row-bg: var(--cyan-1);\n --disabled-button-color: #bdbdbd;\n --primary-background: rgb(255, 255, 255);\n --secondary-background: rgb(244, 245, 245);\n --border: 1px solid rgba(36, 41, 46, 0.12);\n --primary-text-color: rgb(36, 41, 46);\n --secondary-text-color: rgba(36, 41, 46, 0.75);\n --disabled-text-color: rgba(36, 41, 46, 0.5);\n --warning-text-color: #8a6c00;\n --success-text-color: rgb(10, 118, 78);\n --error-text-color: rgb(207, 14, 91);\n --primary-text-link: #1f62e0;\n --timeline-icon-background: rgba(70, 76, 84, 0);\n --timeline-icon-background-resolution-note: rgba(50, 116, 217, 0);\n --oncall-icon-stroke-color: #fff;\n --hover-selected: #f4f5f5;\n --background-canvas: #f4f5f5;\n --background-primary: #fff;\n --background-secondary: #f4f5f5;\n --border-medium: 1px solid rgba(36, 41, 46, 0.3);\n --border-strong: 1px solid rgba(36, 41, 46, 0.4);\n --border-weak: 1px solid rgba(36, 41, 46, 0.12);\n --shadows-z1: 0 1px 2px rgba(24, 26, 27, 0.2);\n --shadows-z2: 0 4px 8px rgba(24, 26, 27, 0.2);\n --shadows-z3: 0 13px 20px 1px rgba(24, 26, 27, 0.18);\n}\n\n.theme-dark {\n --cards-background: var(--gray-9);\n --highlighted-row-bg: var(--gray-9);\n --disabled-button-color: hsla(0, 0%, 100%, 0.08);\n --primary-background: rgb(24, 27, 31);\n --secondary-background: rgb(34, 37, 43);\n --border: 1px solid rgba(204, 204, 220, 0.15);\n --primary-text-color: rgb(204, 204, 220);\n --secondary-text-color: rgba(204, 204, 220, 0.65);\n --disabled-text-color: rgba(204, 204, 220, 0.4);\n --warning-text-color: #f8d06b;\n --success-text-color: rgb(108, 207, 142);\n --error-text-color: rgb(255, 82, 134);\n --primary-text-link: #6e9fff;\n --timeline-icon-background: rgba(70, 76, 84, 1);\n --timeline-icon-background-resolution-note: rgba(50, 116, 217, 1);\n --focused-box-shadow: rgb(17 18 23) 0 0 0 2px, rgb(61 113 217) 0 0 0 4px;\n --hover-selected: rgba(204, 204, 220, 0.12);\n --hover-selected-hardcoded: #34363d;\n --oncall-icon-stroke-color: #181b1f;\n --background-canvas: #111217;\n --background-primary: #181b1f;\n --background-secondary: #22252b;\n --border-medium: 1px solid rgba(204, 204, 220, 0.15);\n --border-strong: 1px solid rgba(204, 204, 220, 0.25);\n --border-weak: 1px solid rgba(204, 204, 220, 0.07);\n --shadows-z1: 0 1px 2px rgba(24, 26, 27, 0.75);\n --shadows-z2: 0 4px 8px rgba(24, 26, 27, 0.75);\n --shadows-z3: 0 8px 24px rgb(1, 4, 9);\n}\n"],"sourceRoot":""}]); |
|
// Exports |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./components/GBlock/Block.module.scss": |
|
/*!*******************************************************************************************************************************************************************************************************************************************************************************************!*\ |
|
!*** ../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./components/GBlock/Block.module.scss ***! |
|
\*******************************************************************************************************************************************************************************************************************************************************************************************/ |
|
/***/ ((module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "../node_modules/css-loader/dist/runtime/sourceMaps.js"); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "../node_modules/css-loader/dist/runtime/api.js"); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); |
|
// Imports |
|
|
|
|
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); |
|
// Module |
|
___CSS_LOADER_EXPORT___.push([module.id, ".L2_Sb6mflEi16_oV2YVG {\n padding: 16px;\n border-radius: 2px;\n}\n.B8sfGqDJhQceAfnXiSy7 {\n background: var(--secondary-background);\n}\n.F0HayptUvv7c52TJhdxs {\n width: 100%;\n}\n.JnsnOIT70ZLiST_XRSdM:hover {\n background: var(--hover-selected);\n}\n\n.theme-dark .RrgUBvnBEvsmQUEhgr8Q {\n border: var(--border-weak);\n}\n\n.theme-light .RrgUBvnBEvsmQUEhgr8Q {\n border: var(--border-weak);\n}\n\n.theme-dark .QyFmu4r6x5RA33haU43n {\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);\n}", "",{"version":3,"sources":["webpack://./components/GBlock/Block.module.scss"],"names":[],"mappings":"AAAA;EACE,aAAA;EACA,kBAAA;AACF;AACE;EACE,uCAAA;AACJ;AAEE;EACE,WAAA;AAAJ;AAGE;EACE,iCAAA;AADJ;;AAKA;EACE,0BAAA;AAFF;;AAKA;EACE,0BAAA;AAFF;;AAKA;EACE,yCAAA;AAFF","sourcesContent":[".root {\n padding: 16px;\n border-radius: 2px;\n\n &--withBackground {\n background: var(--secondary-background);\n }\n\n &--fullWidth {\n width: 100%;\n }\n\n &--hover:hover {\n background: var(--hover-selected);\n }\n}\n\n:global(.theme-dark) .root_bordered {\n border: var(--border-weak);\n}\n\n:global(.theme-light) .root_bordered {\n border: var(--border-weak);\n}\n\n:global(.theme-dark) .root_shadowed {\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);\n}\n"],"sourceRoot":""}]); |
|
// Exports |
|
___CSS_LOADER_EXPORT___.locals = { |
|
"root": "L2_Sb6mflEi16_oV2YVG", |
|
"root--withBackground": "B8sfGqDJhQceAfnXiSy7", |
|
"root--fullWidth": "F0HayptUvv7c52TJhdxs", |
|
"root--hover": "JnsnOIT70ZLiST_XRSdM", |
|
"root_bordered": "RrgUBvnBEvsmQUEhgr8Q", |
|
"root_shadowed": "QyFmu4r6x5RA33haU43n" |
|
}; |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./components/Text/Text.module.scss": |
|
/*!****************************************************************************************************************************************************************************************************************************************************************************************!*\ |
|
!*** ../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./components/Text/Text.module.scss ***! |
|
\****************************************************************************************************************************************************************************************************************************************************************************************/ |
|
/***/ ((module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "../node_modules/css-loader/dist/runtime/sourceMaps.js"); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "../node_modules/css-loader/dist/runtime/api.js"); |
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); |
|
// Imports |
|
|
|
|
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); |
|
// Module |
|
___CSS_LOADER_EXPORT___.push([module.id, ".YmBCZG0ytFRASYjSWp6Z {\n display: inline;\n}\n\n.eMNt3fHNFiSfB1jurc7n {\n color: var(--primary-text-color);\n}\n.mvgBWy5afSepBDglTzcy {\n color: var(--secondary-text-color);\n}\n.cDicaS8fKAStII_0qysw {\n color: var(--disabled-text-color);\n}\n.FyMghElj75iWw1xoQWi_ {\n color: var(--warning-text-color);\n}\n.qllOfYZ6lNLfrsMGpCLu {\n color: var(--primary-text-link);\n}\n.tZWjwO8sDUnYBJZW3rDK {\n color: var(--green-5);\n}\n.jEMET71dZ_TTjp_Kkq1c {\n font-weight: bold;\n}\n.V2smNr_XD9ivxvLAdcQE {\n text-decoration: underline;\n}\n.OYbrS0suYpl7DyLg3d3l {\n font-size: 12px;\n}\n.J5PxsDRmNnI3qnLC5a0Q {\n font-size: 20px;\n}\n\n.ld4DsrSrNyeimbKojC9F {\n white-space: nowrap;\n}\n\n._gfCYlGJGQgDqrow9Uin {\n margin: 0 0.2em;\n padding: 0.15em 0.4em 0.1em;\n font-size: 90%;\n background: hsla(0deg, 0%, 58.8%, 0.06);\n border: solid hsla(0deg, 0%, 39.2%, 0.2);\n border-width: 1px 1px 2px;\n border-radius: 3px;\n}\n\n.wWZC68tCpczBTEqHpKcS {\n margin: 0;\n}\n\n.FOLa6t9YU6bEFWOophNA {\n margin-left: 4px;\n display: none;\n}\n\n.YmBCZG0ytFRASYjSWp6Z:hover .FOLa6t9YU6bEFWOophNA {\n display: inline-block;\n}", "",{"version":3,"sources":["webpack://./components/Text/Text.module.scss"],"names":[],"mappings":"AAAA;EACE,eAAA;AACF;;AAGE;EACE,gCAAA;AAAJ;AAGE;EACE,kCAAA;AADJ;AAIE;EACE,iCAAA;AAFJ;AAKE;EACE,gCAAA;AAHJ;AAME;EACE,+BAAA;AAJJ;AAOE;EACE,qBAAA;AALJ;AAQE;EACE,iBAAA;AANJ;AASE;EACE,0BAAA;AAPJ;AAUE;EACE,eAAA;AARJ;AAWE;EACE,eAAA;AATJ;;AAaA;EACE,mBAAA;AAVF;;AAaA;EACE,eAAA;EACA,2BAAA;EACA,cAAA;EACA,uCAAA;EACA,wCAAA;EACA,yBAAA;EACA,kBAAA;AAVF;;AAaA;EACE,SAAA;AAVF;;AAaA;EACE,gBAAA;EACA,aAAA;AAVF;;AAaA;EACE,qBAAA;AAVF","sourcesContent":[".root {\n display: inline;\n}\n\n.text {\n &--primary {\n color: var(--primary-text-color);\n }\n\n &--secondary {\n color: var(--secondary-text-color);\n }\n\n &--disabled {\n color: var(--disabled-text-color);\n }\n\n &--warning {\n color: var(--warning-text-color);\n }\n\n &--link {\n color: var(--primary-text-link);\n }\n\n &--success {\n color: var(--green-5);\n }\n\n &--strong {\n font-weight: bold;\n }\n\n &--underline {\n text-decoration: underline;\n }\n\n &--small {\n font-size: 12px;\n }\n\n &--large {\n font-size: 20px;\n }\n}\n\n.no-wrap {\n white-space: nowrap;\n}\n\n.keyboard {\n margin: 0 0.2em;\n padding: 0.15em 0.4em 0.1em;\n font-size: 90%;\n background: hsla(0, 0%, 58.8%, 0.06);\n border: solid hsla(0, 0%, 39.2%, 0.2);\n border-width: 1px 1px 2px;\n border-radius: 3px;\n}\n\n.title {\n margin: 0;\n}\n\n.icon-button {\n margin-left: 4px;\n display: none;\n}\n\n.root:hover .icon-button {\n display: inline-block;\n}\n"],"sourceRoot":""}]); |
|
// Exports |
|
___CSS_LOADER_EXPORT___.locals = { |
|
"root": "YmBCZG0ytFRASYjSWp6Z", |
|
"text--primary": "eMNt3fHNFiSfB1jurc7n", |
|
"text--secondary": "mvgBWy5afSepBDglTzcy", |
|
"text--disabled": "cDicaS8fKAStII_0qysw", |
|
"text--warning": "FyMghElj75iWw1xoQWi_", |
|
"text--link": "qllOfYZ6lNLfrsMGpCLu", |
|
"text--success": "tZWjwO8sDUnYBJZW3rDK", |
|
"text--strong": "jEMET71dZ_TTjp_Kkq1c", |
|
"text--underline": "V2smNr_XD9ivxvLAdcQE", |
|
"text--small": "OYbrS0suYpl7DyLg3d3l", |
|
"text--large": "J5PxsDRmNnI3qnLC5a0Q", |
|
"no-wrap": "ld4DsrSrNyeimbKojC9F", |
|
"keyboard": "_gfCYlGJGQgDqrow9Uin", |
|
"title": "wWZC68tCpczBTEqHpKcS", |
|
"icon-button": "FOLa6t9YU6bEFWOophNA" |
|
}; |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/css-loader/dist/runtime/api.js": |
|
/*!******************************************************!*\ |
|
!*** ../node_modules/css-loader/dist/runtime/api.js ***! |
|
\******************************************************/ |
|
/***/ ((module) => { |
|
|
|
"use strict"; |
|
|
|
|
|
/* |
|
MIT License http://www.opensource.org/licenses/mit-license.php |
|
Author Tobias Koppers @sokra |
|
*/ |
|
module.exports = function (cssWithMappingToString) { |
|
var list = []; |
|
|
|
// return the list of modules as css string |
|
list.toString = function toString() { |
|
return this.map(function (item) { |
|
var content = ""; |
|
var needLayer = typeof item[5] !== "undefined"; |
|
if (item[4]) { |
|
content += "@supports (".concat(item[4], ") {"); |
|
} |
|
if (item[2]) { |
|
content += "@media ".concat(item[2], " {"); |
|
} |
|
if (needLayer) { |
|
content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {"); |
|
} |
|
content += cssWithMappingToString(item); |
|
if (needLayer) { |
|
content += "}"; |
|
} |
|
if (item[2]) { |
|
content += "}"; |
|
} |
|
if (item[4]) { |
|
content += "}"; |
|
} |
|
return content; |
|
}).join(""); |
|
}; |
|
|
|
// import a list of modules into the list |
|
list.i = function i(modules, media, dedupe, supports, layer) { |
|
if (typeof modules === "string") { |
|
modules = [[null, modules, undefined]]; |
|
} |
|
var alreadyImportedModules = {}; |
|
if (dedupe) { |
|
for (var k = 0; k < this.length; k++) { |
|
var id = this[k][0]; |
|
if (id != null) { |
|
alreadyImportedModules[id] = true; |
|
} |
|
} |
|
} |
|
for (var _k = 0; _k < modules.length; _k++) { |
|
var item = [].concat(modules[_k]); |
|
if (dedupe && alreadyImportedModules[item[0]]) { |
|
continue; |
|
} |
|
if (typeof layer !== "undefined") { |
|
if (typeof item[5] === "undefined") { |
|
item[5] = layer; |
|
} else { |
|
item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}"); |
|
item[5] = layer; |
|
} |
|
} |
|
if (media) { |
|
if (!item[2]) { |
|
item[2] = media; |
|
} else { |
|
item[1] = "@media ".concat(item[2], " {").concat(item[1], "}"); |
|
item[2] = media; |
|
} |
|
} |
|
if (supports) { |
|
if (!item[4]) { |
|
item[4] = "".concat(supports); |
|
} else { |
|
item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}"); |
|
item[4] = supports; |
|
} |
|
} |
|
list.push(item); |
|
} |
|
}; |
|
return list; |
|
}; |
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/css-loader/dist/runtime/sourceMaps.js": |
|
/*!*************************************************************!*\ |
|
!*** ../node_modules/css-loader/dist/runtime/sourceMaps.js ***! |
|
\*************************************************************/ |
|
/***/ ((module) => { |
|
|
|
"use strict"; |
|
|
|
|
|
module.exports = function (item) { |
|
var content = item[1]; |
|
var cssMapping = item[3]; |
|
if (!cssMapping) { |
|
return content; |
|
} |
|
if (typeof btoa === "function") { |
|
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping)))); |
|
var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64); |
|
var sourceMapping = "/*# ".concat(data, " */"); |
|
return [content].concat([sourceMapping]).join("\n"); |
|
} |
|
return [content].join("\n"); |
|
}; |
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/react-copy-to-clipboard/lib/Component.js": |
|
/*!****************************************************************!*\ |
|
!*** ../node_modules/react-copy-to-clipboard/lib/Component.js ***! |
|
\****************************************************************/ |
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
|
|
|
"use strict"; |
|
|
|
|
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } |
|
|
|
Object.defineProperty(exports, "__esModule", ({ |
|
value: true |
|
})); |
|
exports.CopyToClipboard = void 0; |
|
|
|
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
|
|
|
var _copyToClipboard = _interopRequireDefault(__webpack_require__(/*! copy-to-clipboard */ "../node_modules/copy-to-clipboard/index.js")); |
|
|
|
var _excluded = ["text", "onCopy", "options", "children"]; |
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } |
|
|
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } |
|
|
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } |
|
|
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } |
|
|
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } |
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } |
|
|
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } |
|
|
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } |
|
|
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } |
|
|
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } |
|
|
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } |
|
|
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } |
|
|
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } |
|
|
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } |
|
|
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } |
|
|
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } |
|
|
|
var CopyToClipboard = /*#__PURE__*/function (_React$PureComponent) { |
|
_inherits(CopyToClipboard, _React$PureComponent); |
|
|
|
var _super = _createSuper(CopyToClipboard); |
|
|
|
function CopyToClipboard() { |
|
var _this; |
|
|
|
_classCallCheck(this, CopyToClipboard); |
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
|
args[_key] = arguments[_key]; |
|
} |
|
|
|
_this = _super.call.apply(_super, [this].concat(args)); |
|
|
|
_defineProperty(_assertThisInitialized(_this), "onClick", function (event) { |
|
var _this$props = _this.props, |
|
text = _this$props.text, |
|
onCopy = _this$props.onCopy, |
|
children = _this$props.children, |
|
options = _this$props.options; |
|
|
|
var elem = _react["default"].Children.only(children); |
|
|
|
var result = (0, _copyToClipboard["default"])(text, options); |
|
|
|
if (onCopy) { |
|
onCopy(text, result); |
|
} // Bypass onClick if it was present |
|
|
|
|
|
if (elem && elem.props && typeof elem.props.onClick === 'function') { |
|
elem.props.onClick(event); |
|
} |
|
}); |
|
|
|
return _this; |
|
} |
|
|
|
_createClass(CopyToClipboard, [{ |
|
key: "render", |
|
value: function render() { |
|
var _this$props2 = this.props, |
|
_text = _this$props2.text, |
|
_onCopy = _this$props2.onCopy, |
|
_options = _this$props2.options, |
|
children = _this$props2.children, |
|
props = _objectWithoutProperties(_this$props2, _excluded); |
|
|
|
var elem = _react["default"].Children.only(children); |
|
|
|
return /*#__PURE__*/_react["default"].cloneElement(elem, _objectSpread(_objectSpread({}, props), {}, { |
|
onClick: this.onClick |
|
})); |
|
} |
|
}]); |
|
|
|
return CopyToClipboard; |
|
}(_react["default"].PureComponent); |
|
|
|
exports.CopyToClipboard = CopyToClipboard; |
|
|
|
_defineProperty(CopyToClipboard, "defaultProps", { |
|
onCopy: undefined, |
|
options: undefined |
|
}); |
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/react-copy-to-clipboard/lib/index.js": |
|
/*!************************************************************!*\ |
|
!*** ../node_modules/react-copy-to-clipboard/lib/index.js ***! |
|
\************************************************************/ |
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
|
|
|
"use strict"; |
|
|
|
|
|
var _require = __webpack_require__(/*! ./Component */ "../node_modules/react-copy-to-clipboard/lib/Component.js"), |
|
CopyToClipboard = _require.CopyToClipboard; |
|
|
|
CopyToClipboard.CopyToClipboard = CopyToClipboard; |
|
module.exports = CopyToClipboard; |
|
|
|
/***/ }), |
|
|
|
/***/ "./components/PluginConfigPage/parts/ConfigurationForm/ConfigurationForm.module.css": |
|
/*!******************************************************************************************!*\ |
|
!*** ./components/PluginConfigPage/parts/ConfigurationForm/ConfigurationForm.module.css ***! |
|
\******************************************************************************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "../node_modules/style-loader/dist/runtime/styleDomAPI.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "../node_modules/style-loader/dist/runtime/insertBySelector.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "../node_modules/style-loader/dist/runtime/insertStyleElement.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "../node_modules/style-loader/dist/runtime/styleTagTransform.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__); |
|
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_ConfigurationForm_module_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../../../../../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./ConfigurationForm.module.css */ "../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./components/PluginConfigPage/parts/ConfigurationForm/ConfigurationForm.module.css"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var options = {}; |
|
|
|
options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default()); |
|
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default()); |
|
|
|
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head"); |
|
|
|
options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default()); |
|
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default()); |
|
|
|
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_ConfigurationForm_module_css__WEBPACK_IMPORTED_MODULE_6__["default"], options); |
|
|
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_ConfigurationForm_module_css__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_ConfigurationForm_module_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_ConfigurationForm_module_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "./style/global.css": |
|
/*!**************************!*\ |
|
!*** ./style/global.css ***! |
|
\**************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "../node_modules/style-loader/dist/runtime/styleDomAPI.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "../node_modules/style-loader/dist/runtime/insertBySelector.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "../node_modules/style-loader/dist/runtime/insertStyleElement.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "../node_modules/style-loader/dist/runtime/styleTagTransform.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__); |
|
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_global_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./global.css */ "../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./style/global.css"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var options = {}; |
|
|
|
options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default()); |
|
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default()); |
|
|
|
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head"); |
|
|
|
options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default()); |
|
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default()); |
|
|
|
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_global_css__WEBPACK_IMPORTED_MODULE_6__["default"], options); |
|
|
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_global_css__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_global_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_global_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "./style/vars.css": |
|
/*!************************!*\ |
|
!*** ./style/vars.css ***! |
|
\************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "../node_modules/style-loader/dist/runtime/styleDomAPI.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "../node_modules/style-loader/dist/runtime/insertBySelector.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "../node_modules/style-loader/dist/runtime/insertStyleElement.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "../node_modules/style-loader/dist/runtime/styleTagTransform.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__); |
|
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_vars_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./vars.css */ "../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./style/vars.css"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var options = {}; |
|
|
|
options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default()); |
|
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default()); |
|
|
|
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head"); |
|
|
|
options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default()); |
|
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default()); |
|
|
|
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_vars_css__WEBPACK_IMPORTED_MODULE_6__["default"], options); |
|
|
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_vars_css__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_vars_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_3_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_3_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_vars_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "./components/GBlock/Block.module.scss": |
|
/*!*********************************************!*\ |
|
!*** ./components/GBlock/Block.module.scss ***! |
|
\*********************************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "../node_modules/style-loader/dist/runtime/styleDomAPI.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "../node_modules/style-loader/dist/runtime/insertBySelector.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "../node_modules/style-loader/dist/runtime/insertStyleElement.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "../node_modules/style-loader/dist/runtime/styleTagTransform.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__); |
|
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_Block_module_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../../../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./Block.module.scss */ "../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./components/GBlock/Block.module.scss"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var options = {}; |
|
|
|
options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default()); |
|
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default()); |
|
|
|
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head"); |
|
|
|
options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default()); |
|
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default()); |
|
|
|
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_Block_module_scss__WEBPACK_IMPORTED_MODULE_6__["default"], options); |
|
|
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_Block_module_scss__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_Block_module_scss__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_Block_module_scss__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "./components/Text/Text.module.scss": |
|
/*!******************************************!*\ |
|
!*** ./components/Text/Text.module.scss ***! |
|
\******************************************/ |
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "../node_modules/style-loader/dist/runtime/styleDomAPI.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "../node_modules/style-loader/dist/runtime/insertBySelector.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "../node_modules/style-loader/dist/runtime/insertStyleElement.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "../node_modules/style-loader/dist/runtime/styleTagTransform.js"); |
|
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__); |
|
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_Text_module_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../../../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./Text.module.scss */ "../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../node_modules/@grafana/toolkit/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../node_modules/@grafana/toolkit/node_modules/sass-loader/dist/cjs.js!./components/Text/Text.module.scss"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var options = {}; |
|
|
|
options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default()); |
|
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default()); |
|
|
|
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head"); |
|
|
|
options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default()); |
|
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default()); |
|
|
|
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_Text_module_scss__WEBPACK_IMPORTED_MODULE_6__["default"], options); |
|
|
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_Text_module_scss__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_Text_module_scss__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_4_use_1_node_modules_grafana_toolkit_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_4_use_2_node_modules_grafana_toolkit_node_modules_sass_loader_dist_cjs_js_Text_module_scss__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js": |
|
/*!*****************************************************************************!*\ |
|
!*** ../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***! |
|
\*****************************************************************************/ |
|
/***/ ((module) => { |
|
|
|
"use strict"; |
|
|
|
|
|
var stylesInDOM = []; |
|
|
|
function getIndexByIdentifier(identifier) { |
|
var result = -1; |
|
|
|
for (var i = 0; i < stylesInDOM.length; i++) { |
|
if (stylesInDOM[i].identifier === identifier) { |
|
result = i; |
|
break; |
|
} |
|
} |
|
|
|
return result; |
|
} |
|
|
|
function modulesToDom(list, options) { |
|
var idCountMap = {}; |
|
var identifiers = []; |
|
|
|
for (var i = 0; i < list.length; i++) { |
|
var item = list[i]; |
|
var id = options.base ? item[0] + options.base : item[0]; |
|
var count = idCountMap[id] || 0; |
|
var identifier = "".concat(id, " ").concat(count); |
|
idCountMap[id] = count + 1; |
|
var indexByIdentifier = getIndexByIdentifier(identifier); |
|
var obj = { |
|
css: item[1], |
|
media: item[2], |
|
sourceMap: item[3], |
|
supports: item[4], |
|
layer: item[5] |
|
}; |
|
|
|
if (indexByIdentifier !== -1) { |
|
stylesInDOM[indexByIdentifier].references++; |
|
stylesInDOM[indexByIdentifier].updater(obj); |
|
} else { |
|
var updater = addElementStyle(obj, options); |
|
options.byIndex = i; |
|
stylesInDOM.splice(i, 0, { |
|
identifier: identifier, |
|
updater: updater, |
|
references: 1 |
|
}); |
|
} |
|
|
|
identifiers.push(identifier); |
|
} |
|
|
|
return identifiers; |
|
} |
|
|
|
function addElementStyle(obj, options) { |
|
var api = options.domAPI(options); |
|
api.update(obj); |
|
|
|
var updater = function updater(newObj) { |
|
if (newObj) { |
|
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) { |
|
return; |
|
} |
|
|
|
api.update(obj = newObj); |
|
} else { |
|
api.remove(); |
|
} |
|
}; |
|
|
|
return updater; |
|
} |
|
|
|
module.exports = function (list, options) { |
|
options = options || {}; |
|
list = list || []; |
|
var lastIdentifiers = modulesToDom(list, options); |
|
return function update(newList) { |
|
newList = newList || []; |
|
|
|
for (var i = 0; i < lastIdentifiers.length; i++) { |
|
var identifier = lastIdentifiers[i]; |
|
var index = getIndexByIdentifier(identifier); |
|
stylesInDOM[index].references--; |
|
} |
|
|
|
var newLastIdentifiers = modulesToDom(newList, options); |
|
|
|
for (var _i = 0; _i < lastIdentifiers.length; _i++) { |
|
var _identifier = lastIdentifiers[_i]; |
|
|
|
var _index = getIndexByIdentifier(_identifier); |
|
|
|
if (stylesInDOM[_index].references === 0) { |
|
stylesInDOM[_index].updater(); |
|
|
|
stylesInDOM.splice(_index, 1); |
|
} |
|
} |
|
|
|
lastIdentifiers = newLastIdentifiers; |
|
}; |
|
}; |
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/style-loader/dist/runtime/insertBySelector.js": |
|
/*!*********************************************************************!*\ |
|
!*** ../node_modules/style-loader/dist/runtime/insertBySelector.js ***! |
|
\*********************************************************************/ |
|
/***/ ((module) => { |
|
|
|
"use strict"; |
|
|
|
|
|
var memo = {}; |
|
/* istanbul ignore next */ |
|
|
|
function getTarget(target) { |
|
if (typeof memo[target] === "undefined") { |
|
var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself |
|
|
|
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { |
|
try { |
|
// This will throw an exception if access to iframe is blocked |
|
// due to cross-origin restrictions |
|
styleTarget = styleTarget.contentDocument.head; |
|
} catch (e) { |
|
// istanbul ignore next |
|
styleTarget = null; |
|
} |
|
} |
|
|
|
memo[target] = styleTarget; |
|
} |
|
|
|
return memo[target]; |
|
} |
|
/* istanbul ignore next */ |
|
|
|
|
|
function insertBySelector(insert, style) { |
|
var target = getTarget(insert); |
|
|
|
if (!target) { |
|
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); |
|
} |
|
|
|
target.appendChild(style); |
|
} |
|
|
|
module.exports = insertBySelector; |
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/style-loader/dist/runtime/insertStyleElement.js": |
|
/*!***********************************************************************!*\ |
|
!*** ../node_modules/style-loader/dist/runtime/insertStyleElement.js ***! |
|
\***********************************************************************/ |
|
/***/ ((module) => { |
|
|
|
"use strict"; |
|
|
|
|
|
/* istanbul ignore next */ |
|
function insertStyleElement(options) { |
|
var element = document.createElement("style"); |
|
options.setAttributes(element, options.attributes); |
|
options.insert(element, options.options); |
|
return element; |
|
} |
|
|
|
module.exports = insertStyleElement; |
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js": |
|
/*!***********************************************************************************!*\ |
|
!*** ../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js ***! |
|
\***********************************************************************************/ |
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
|
|
|
"use strict"; |
|
|
|
|
|
/* istanbul ignore next */ |
|
function setAttributesWithoutAttributes(styleElement) { |
|
var nonce = true ? __webpack_require__.nc : 0; |
|
|
|
if (nonce) { |
|
styleElement.setAttribute("nonce", nonce); |
|
} |
|
} |
|
|
|
module.exports = setAttributesWithoutAttributes; |
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/style-loader/dist/runtime/styleDomAPI.js": |
|
/*!****************************************************************!*\ |
|
!*** ../node_modules/style-loader/dist/runtime/styleDomAPI.js ***! |
|
\****************************************************************/ |
|
/***/ ((module) => { |
|
|
|
"use strict"; |
|
|
|
|
|
/* istanbul ignore next */ |
|
function apply(styleElement, options, obj) { |
|
var css = ""; |
|
|
|
if (obj.supports) { |
|
css += "@supports (".concat(obj.supports, ") {"); |
|
} |
|
|
|
if (obj.media) { |
|
css += "@media ".concat(obj.media, " {"); |
|
} |
|
|
|
var needLayer = typeof obj.layer !== "undefined"; |
|
|
|
if (needLayer) { |
|
css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {"); |
|
} |
|
|
|
css += obj.css; |
|
|
|
if (needLayer) { |
|
css += "}"; |
|
} |
|
|
|
if (obj.media) { |
|
css += "}"; |
|
} |
|
|
|
if (obj.supports) { |
|
css += "}"; |
|
} |
|
|
|
var sourceMap = obj.sourceMap; |
|
|
|
if (sourceMap && typeof btoa !== "undefined") { |
|
css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */"); |
|
} // For old IE |
|
|
|
/* istanbul ignore if */ |
|
|
|
|
|
options.styleTagTransform(css, styleElement, options.options); |
|
} |
|
|
|
function removeStyleElement(styleElement) { |
|
// istanbul ignore if |
|
if (styleElement.parentNode === null) { |
|
return false; |
|
} |
|
|
|
styleElement.parentNode.removeChild(styleElement); |
|
} |
|
/* istanbul ignore next */ |
|
|
|
|
|
function domAPI(options) { |
|
var styleElement = options.insertStyleElement(options); |
|
return { |
|
update: function update(obj) { |
|
apply(styleElement, options, obj); |
|
}, |
|
remove: function remove() { |
|
removeStyleElement(styleElement); |
|
} |
|
}; |
|
} |
|
|
|
module.exports = domAPI; |
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/style-loader/dist/runtime/styleTagTransform.js": |
|
/*!**********************************************************************!*\ |
|
!*** ../node_modules/style-loader/dist/runtime/styleTagTransform.js ***! |
|
\**********************************************************************/ |
|
/***/ ((module) => { |
|
|
|
"use strict"; |
|
|
|
|
|
/* istanbul ignore next */ |
|
function styleTagTransform(css, styleElement) { |
|
if (styleElement.styleSheet) { |
|
styleElement.styleSheet.cssText = css; |
|
} else { |
|
while (styleElement.firstChild) { |
|
styleElement.removeChild(styleElement.firstChild); |
|
} |
|
|
|
styleElement.appendChild(document.createTextNode(css)); |
|
} |
|
} |
|
|
|
module.exports = styleTagTransform; |
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/toggle-selection/index.js": |
|
/*!*************************************************!*\ |
|
!*** ../node_modules/toggle-selection/index.js ***! |
|
\*************************************************/ |
|
/***/ ((module) => { |
|
|
|
|
|
module.exports = function () { |
|
var selection = document.getSelection(); |
|
if (!selection.rangeCount) { |
|
return function () {}; |
|
} |
|
var active = document.activeElement; |
|
|
|
var ranges = []; |
|
for (var i = 0; i < selection.rangeCount; i++) { |
|
ranges.push(selection.getRangeAt(i)); |
|
} |
|
|
|
switch (active.tagName.toUpperCase()) { // .toUpperCase handles XHTML |
|
case 'INPUT': |
|
case 'TEXTAREA': |
|
active.blur(); |
|
break; |
|
|
|
default: |
|
active = null; |
|
break; |
|
} |
|
|
|
selection.removeAllRanges(); |
|
return function () { |
|
selection.type === 'Caret' && |
|
selection.removeAllRanges(); |
|
|
|
if (!selection.rangeCount) { |
|
ranges.forEach(function(range) { |
|
selection.addRange(range); |
|
}); |
|
} |
|
|
|
active && |
|
active.focus(); |
|
}; |
|
}; |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "@grafana/data": |
|
/*!********************************!*\ |
|
!*** external "@grafana/data" ***! |
|
\********************************/ |
|
/***/ ((module) => { |
|
|
|
"use strict"; |
|
module.exports = __WEBPACK_EXTERNAL_MODULE__grafana_data__; |
|
|
|
/***/ }), |
|
|
|
/***/ "@grafana/runtime": |
|
/*!***********************************!*\ |
|
!*** external "@grafana/runtime" ***! |
|
\***********************************/ |
|
/***/ ((module) => { |
|
|
|
"use strict"; |
|
module.exports = __WEBPACK_EXTERNAL_MODULE__grafana_runtime__; |
|
|
|
/***/ }), |
|
|
|
/***/ "@grafana/ui": |
|
/*!******************************!*\ |
|
!*** external "@grafana/ui" ***! |
|
\******************************/ |
|
/***/ ((module) => { |
|
|
|
"use strict"; |
|
module.exports = __WEBPACK_EXTERNAL_MODULE__grafana_ui__; |
|
|
|
/***/ }), |
|
|
|
/***/ "grafana/app/core/app_events": |
|
/*!**************************************!*\ |
|
!*** external "app/core/app_events" ***! |
|
\**************************************/ |
|
/***/ ((module) => { |
|
|
|
"use strict"; |
|
module.exports = __WEBPACK_EXTERNAL_MODULE_grafana_app_core_app_events__; |
|
|
|
/***/ }), |
|
|
|
/***/ "lodash": |
|
/*!*************************!*\ |
|
!*** external "lodash" ***! |
|
\*************************/ |
|
/***/ ((module) => { |
|
|
|
"use strict"; |
|
module.exports = __WEBPACK_EXTERNAL_MODULE_lodash__; |
|
|
|
/***/ }), |
|
|
|
/***/ "react": |
|
/*!************************!*\ |
|
!*** external "react" ***! |
|
\************************/ |
|
/***/ ((module) => { |
|
|
|
"use strict"; |
|
module.exports = __WEBPACK_EXTERNAL_MODULE_react__; |
|
|
|
/***/ }), |
|
|
|
/***/ "react-router-dom": |
|
/*!***********************************!*\ |
|
!*** external "react-router-dom" ***! |
|
\***********************************/ |
|
/***/ ((module) => { |
|
|
|
"use strict"; |
|
module.exports = __WEBPACK_EXTERNAL_MODULE_react_router_dom__; |
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/adapters/adapters.js": |
|
/*!******************************************************!*\ |
|
!*** ../node_modules/axios/lib/adapters/adapters.js ***! |
|
\******************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
/* harmony import */ var _http_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./http.js */ "../node_modules/axios/lib/helpers/null.js"); |
|
/* harmony import */ var _xhr_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./xhr.js */ "../node_modules/axios/lib/adapters/xhr.js"); |
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); |
|
|
|
|
|
|
|
|
|
|
|
const knownAdapters = { |
|
http: _http_js__WEBPACK_IMPORTED_MODULE_0__["default"], |
|
xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_1__["default"] |
|
} |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(knownAdapters, (fn, value) => { |
|
if(fn) { |
|
try { |
|
Object.defineProperty(fn, 'name', {value}); |
|
} catch (e) { |
|
// eslint-disable-next-line no-empty |
|
} |
|
Object.defineProperty(fn, 'adapterName', {value}); |
|
} |
|
}); |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ |
|
getAdapter: (adapters) => { |
|
adapters = _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isArray(adapters) ? adapters : [adapters]; |
|
|
|
const {length} = adapters; |
|
let nameOrAdapter; |
|
let adapter; |
|
|
|
for (let i = 0; i < length; i++) { |
|
nameOrAdapter = adapters[i]; |
|
if((adapter = _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter)) { |
|
break; |
|
} |
|
} |
|
|
|
if (!adapter) { |
|
if (adapter === false) { |
|
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"]( |
|
`Adapter ${nameOrAdapter} is not supported by the environment`, |
|
'ERR_NOT_SUPPORT' |
|
); |
|
} |
|
|
|
throw new Error( |
|
_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].hasOwnProp(knownAdapters, nameOrAdapter) ? |
|
`Adapter '${nameOrAdapter}' is not available in the build` : |
|
`Unknown adapter '${nameOrAdapter}'` |
|
); |
|
} |
|
|
|
if (!_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFunction(adapter)) { |
|
throw new TypeError('adapter is not a function'); |
|
} |
|
|
|
return adapter; |
|
}, |
|
adapters: knownAdapters |
|
}); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/adapters/xhr.js": |
|
/*!*************************************************!*\ |
|
!*** ../node_modules/axios/lib/adapters/xhr.js ***! |
|
\*************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../core/settle.js */ "../node_modules/axios/lib/core/settle.js"); |
|
/* harmony import */ var _helpers_cookies_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../helpers/cookies.js */ "../node_modules/axios/lib/helpers/cookies.js"); |
|
/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../helpers/buildURL.js */ "../node_modules/axios/lib/helpers/buildURL.js"); |
|
/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/buildFullPath.js */ "../node_modules/axios/lib/core/buildFullPath.js"); |
|
/* harmony import */ var _helpers_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../helpers/isURLSameOrigin.js */ "../node_modules/axios/lib/helpers/isURLSameOrigin.js"); |
|
/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../defaults/transitional.js */ "../node_modules/axios/lib/defaults/transitional.js"); |
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); |
|
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js"); |
|
/* harmony import */ var _helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../helpers/parseProtocol.js */ "../node_modules/axios/lib/helpers/parseProtocol.js"); |
|
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/browser/index.js"); |
|
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); |
|
/* harmony import */ var _helpers_speedometer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/speedometer.js */ "../node_modules/axios/lib/helpers/speedometer.js"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function progressEventReducer(listener, isDownloadStream) { |
|
let bytesNotified = 0; |
|
const _speedometer = (0,_helpers_speedometer_js__WEBPACK_IMPORTED_MODULE_0__["default"])(50, 250); |
|
|
|
return e => { |
|
const loaded = e.loaded; |
|
const total = e.lengthComputable ? e.total : undefined; |
|
const progressBytes = loaded - bytesNotified; |
|
const rate = _speedometer(progressBytes); |
|
const inRange = loaded <= total; |
|
|
|
bytesNotified = loaded; |
|
|
|
const data = { |
|
loaded, |
|
total, |
|
progress: total ? (loaded / total) : undefined, |
|
bytes: progressBytes, |
|
rate: rate ? rate : undefined, |
|
estimated: rate && total && inRange ? (total - loaded) / rate : undefined, |
|
event: e |
|
}; |
|
|
|
data[isDownloadStream ? 'download' : 'upload'] = true; |
|
|
|
listener(data); |
|
}; |
|
} |
|
|
|
const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined'; |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isXHRAdapterSupported && function (config) { |
|
return new Promise(function dispatchXhrRequest(resolve, reject) { |
|
let requestData = config.data; |
|
const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(config.headers).normalize(); |
|
const responseType = config.responseType; |
|
let onCanceled; |
|
function done() { |
|
if (config.cancelToken) { |
|
config.cancelToken.unsubscribe(onCanceled); |
|
} |
|
|
|
if (config.signal) { |
|
config.signal.removeEventListener('abort', onCanceled); |
|
} |
|
} |
|
|
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFormData(requestData) && (_platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].isStandardBrowserEnv || _platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].isStandardBrowserWebWorkerEnv)) { |
|
requestHeaders.setContentType(false); // Let the browser set it |
|
} |
|
|
|
let request = new XMLHttpRequest(); |
|
|
|
// HTTP basic authentication |
|
if (config.auth) { |
|
const username = config.auth.username || ''; |
|
const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; |
|
requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password)); |
|
} |
|
|
|
const fullPath = (0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config.baseURL, config.url); |
|
|
|
request.open(config.method.toUpperCase(), (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_5__["default"])(fullPath, config.params, config.paramsSerializer), true); |
|
|
|
// Set the request timeout in MS |
|
request.timeout = config.timeout; |
|
|
|
function onloadend() { |
|
if (!request) { |
|
return; |
|
} |
|
// Prepare the response |
|
const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from( |
|
'getAllResponseHeaders' in request && request.getAllResponseHeaders() |
|
); |
|
const responseData = !responseType || responseType === 'text' || responseType === 'json' ? |
|
request.responseText : request.response; |
|
const response = { |
|
data: responseData, |
|
status: request.status, |
|
statusText: request.statusText, |
|
headers: responseHeaders, |
|
config, |
|
request |
|
}; |
|
|
|
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_6__["default"])(function _resolve(value) { |
|
resolve(value); |
|
done(); |
|
}, function _reject(err) { |
|
reject(err); |
|
done(); |
|
}, response); |
|
|
|
// Clean up request |
|
request = null; |
|
} |
|
|
|
if ('onloadend' in request) { |
|
// Use onloadend if available |
|
request.onloadend = onloadend; |
|
} else { |
|
// Listen for ready state to emulate onloadend |
|
request.onreadystatechange = function handleLoad() { |
|
if (!request || request.readyState !== 4) { |
|
return; |
|
} |
|
|
|
// The request errored out and we didn't get a response, this will be |
|
// handled by onerror instead |
|
// With one exception: request that using file: protocol, most browsers |
|
// will return status as 0 even though it's a successful request |
|
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { |
|
return; |
|
} |
|
// readystate handler is calling before onerror or ontimeout handlers, |
|
// so we should call onloadend on the next 'tick' |
|
setTimeout(onloadend); |
|
}; |
|
} |
|
|
|
// Handle browser request cancellation (as opposed to a manual cancellation) |
|
request.onabort = function handleAbort() { |
|
if (!request) { |
|
return; |
|
} |
|
|
|
reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Request aborted', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ECONNABORTED, config, request)); |
|
|
|
// Clean up request |
|
request = null; |
|
}; |
|
|
|
// Handle low level network errors |
|
request.onerror = function handleError() { |
|
// Real errors are hidden from us by the browser |
|
// onerror should only fire if it's a network error |
|
reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ERR_NETWORK, config, request)); |
|
|
|
// Clean up request |
|
request = null; |
|
}; |
|
|
|
// Handle timeout |
|
request.ontimeout = function handleTimeout() { |
|
let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; |
|
const transitional = config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_8__["default"]; |
|
if (config.timeoutErrorMessage) { |
|
timeoutErrorMessage = config.timeoutErrorMessage; |
|
} |
|
reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]( |
|
timeoutErrorMessage, |
|
transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ECONNABORTED, |
|
config, |
|
request)); |
|
|
|
// Clean up request |
|
request = null; |
|
}; |
|
|
|
// Add xsrf header |
|
// This is only done if running in a standard browser environment. |
|
// Specifically not if we're in a web worker, or react-native. |
|
if (_platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].isStandardBrowserEnv) { |
|
// Add xsrf header |
|
const xsrfValue = (config.withCredentials || (0,_helpers_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_9__["default"])(fullPath)) |
|
&& config.xsrfCookieName && _helpers_cookies_js__WEBPACK_IMPORTED_MODULE_10__["default"].read(config.xsrfCookieName); |
|
|
|
if (xsrfValue) { |
|
requestHeaders.set(config.xsrfHeaderName, xsrfValue); |
|
} |
|
} |
|
|
|
// Remove Content-Type if data is undefined |
|
requestData === undefined && requestHeaders.setContentType(null); |
|
|
|
// Add headers to the request |
|
if ('setRequestHeader' in request) { |
|
_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) { |
|
request.setRequestHeader(key, val); |
|
}); |
|
} |
|
|
|
// Add withCredentials to request if needed |
|
if (!_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isUndefined(config.withCredentials)) { |
|
request.withCredentials = !!config.withCredentials; |
|
} |
|
|
|
// Add responseType to request if needed |
|
if (responseType && responseType !== 'json') { |
|
request.responseType = config.responseType; |
|
} |
|
|
|
// Handle progress if needed |
|
if (typeof config.onDownloadProgress === 'function') { |
|
request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true)); |
|
} |
|
|
|
// Not all browsers support upload events |
|
if (typeof config.onUploadProgress === 'function' && request.upload) { |
|
request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress)); |
|
} |
|
|
|
if (config.cancelToken || config.signal) { |
|
// Handle cancellation |
|
// eslint-disable-next-line func-names |
|
onCanceled = cancel => { |
|
if (!request) { |
|
return; |
|
} |
|
reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__["default"](null, config, request) : cancel); |
|
request.abort(); |
|
request = null; |
|
}; |
|
|
|
config.cancelToken && config.cancelToken.subscribe(onCanceled); |
|
if (config.signal) { |
|
config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); |
|
} |
|
} |
|
|
|
const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_12__["default"])(fullPath); |
|
|
|
if (protocol && _platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].protocols.indexOf(protocol) === -1) { |
|
reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Unsupported protocol ' + protocol + ':', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ERR_BAD_REQUEST, config)); |
|
return; |
|
} |
|
|
|
|
|
// Send the request |
|
request.send(requestData || null); |
|
}); |
|
}); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/axios.js": |
|
/*!******************************************!*\ |
|
!*** ../node_modules/axios/lib/axios.js ***! |
|
\******************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils.js */ "../node_modules/axios/lib/utils.js"); |
|
/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/bind.js */ "../node_modules/axios/lib/helpers/bind.js"); |
|
/* harmony import */ var _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core/Axios.js */ "../node_modules/axios/lib/core/Axios.js"); |
|
/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/mergeConfig.js */ "../node_modules/axios/lib/core/mergeConfig.js"); |
|
/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaults/index.js */ "../node_modules/axios/lib/defaults/index.js"); |
|
/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers/formDataToJSON.js */ "../node_modules/axios/lib/helpers/formDataToJSON.js"); |
|
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js"); |
|
/* harmony import */ var _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cancel/CancelToken.js */ "../node_modules/axios/lib/cancel/CancelToken.js"); |
|
/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cancel/isCancel.js */ "../node_modules/axios/lib/cancel/isCancel.js"); |
|
/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./env/data.js */ "../node_modules/axios/lib/env/data.js"); |
|
/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helpers/toFormData.js */ "../node_modules/axios/lib/helpers/toFormData.js"); |
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); |
|
/* harmony import */ var _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helpers/spread.js */ "../node_modules/axios/lib/helpers/spread.js"); |
|
/* harmony import */ var _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers/isAxiosError.js */ "../node_modules/axios/lib/helpers/isAxiosError.js"); |
|
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
* Create an instance of Axios |
|
* |
|
* @param {Object} defaultConfig The default config for the instance |
|
* |
|
* @returns {Axios} A new instance of Axios |
|
*/ |
|
function createInstance(defaultConfig) { |
|
const context = new _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"](defaultConfig); |
|
const instance = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"].prototype.request, context); |
|
|
|
// Copy axios.prototype to instance |
|
_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].extend(instance, _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"].prototype, context, {allOwnKeys: true}); |
|
|
|
// Copy context to instance |
|
_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].extend(instance, context, null, {allOwnKeys: true}); |
|
|
|
// Factory for creating new instances |
|
instance.create = function create(instanceConfig) { |
|
return createInstance((0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"])(defaultConfig, instanceConfig)); |
|
}; |
|
|
|
return instance; |
|
} |
|
|
|
// Create the default instance to be exported |
|
const axios = createInstance(_defaults_index_js__WEBPACK_IMPORTED_MODULE_4__["default"]); |
|
|
|
// Expose Axios class to allow class inheritance |
|
axios.Axios = _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"]; |
|
|
|
// Expose Cancel & CancelToken |
|
axios.CanceledError = _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__["default"]; |
|
axios.CancelToken = _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__["default"]; |
|
axios.isCancel = _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__["default"]; |
|
axios.VERSION = _env_data_js__WEBPACK_IMPORTED_MODULE_8__.VERSION; |
|
axios.toFormData = _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__["default"]; |
|
|
|
// Expose AxiosError class |
|
axios.AxiosError = _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__["default"]; |
|
|
|
// alias for CanceledError for backward compatibility |
|
axios.Cancel = axios.CanceledError; |
|
|
|
// Expose all/spread |
|
axios.all = function all(promises) { |
|
return Promise.all(promises); |
|
}; |
|
|
|
axios.spread = _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__["default"]; |
|
|
|
// Expose isAxiosError |
|
axios.isAxiosError = _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__["default"]; |
|
|
|
// Expose mergeConfig |
|
axios.mergeConfig = _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"]; |
|
|
|
axios.AxiosHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__["default"]; |
|
|
|
axios.formToJSON = thing => (0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__["default"])(_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isHTMLForm(thing) ? new FormData(thing) : thing); |
|
|
|
axios.default = axios; |
|
|
|
// this module should only have a default export |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (axios); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/cancel/CancelToken.js": |
|
/*!*******************************************************!*\ |
|
!*** ../node_modules/axios/lib/cancel/CancelToken.js ***! |
|
\*******************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js"); |
|
|
|
|
|
|
|
|
|
/** |
|
* A `CancelToken` is an object that can be used to request cancellation of an operation. |
|
* |
|
* @param {Function} executor The executor function. |
|
* |
|
* @returns {CancelToken} |
|
*/ |
|
class CancelToken { |
|
constructor(executor) { |
|
if (typeof executor !== 'function') { |
|
throw new TypeError('executor must be a function.'); |
|
} |
|
|
|
let resolvePromise; |
|
|
|
this.promise = new Promise(function promiseExecutor(resolve) { |
|
resolvePromise = resolve; |
|
}); |
|
|
|
const token = this; |
|
|
|
// eslint-disable-next-line func-names |
|
this.promise.then(cancel => { |
|
if (!token._listeners) return; |
|
|
|
let i = token._listeners.length; |
|
|
|
while (i-- > 0) { |
|
token._listeners[i](cancel); |
|
} |
|
token._listeners = null; |
|
}); |
|
|
|
// eslint-disable-next-line func-names |
|
this.promise.then = onfulfilled => { |
|
let _resolve; |
|
// eslint-disable-next-line func-names |
|
const promise = new Promise(resolve => { |
|
token.subscribe(resolve); |
|
_resolve = resolve; |
|
}).then(onfulfilled); |
|
|
|
promise.cancel = function reject() { |
|
token.unsubscribe(_resolve); |
|
}; |
|
|
|
return promise; |
|
}; |
|
|
|
executor(function cancel(message, config, request) { |
|
if (token.reason) { |
|
// Cancellation has already been requested |
|
return; |
|
} |
|
|
|
token.reason = new _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__["default"](message, config, request); |
|
resolvePromise(token.reason); |
|
}); |
|
} |
|
|
|
/** |
|
* Throws a `CanceledError` if cancellation has been requested. |
|
*/ |
|
throwIfRequested() { |
|
if (this.reason) { |
|
throw this.reason; |
|
} |
|
} |
|
|
|
/** |
|
* Subscribe to the cancel signal |
|
*/ |
|
|
|
subscribe(listener) { |
|
if (this.reason) { |
|
listener(this.reason); |
|
return; |
|
} |
|
|
|
if (this._listeners) { |
|
this._listeners.push(listener); |
|
} else { |
|
this._listeners = [listener]; |
|
} |
|
} |
|
|
|
/** |
|
* Unsubscribe from the cancel signal |
|
*/ |
|
|
|
unsubscribe(listener) { |
|
if (!this._listeners) { |
|
return; |
|
} |
|
const index = this._listeners.indexOf(listener); |
|
if (index !== -1) { |
|
this._listeners.splice(index, 1); |
|
} |
|
} |
|
|
|
/** |
|
* Returns an object that contains a new `CancelToken` and a function that, when called, |
|
* cancels the `CancelToken`. |
|
*/ |
|
static source() { |
|
let cancel; |
|
const token = new CancelToken(function executor(c) { |
|
cancel = c; |
|
}); |
|
return { |
|
token, |
|
cancel |
|
}; |
|
} |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CancelToken); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/cancel/CanceledError.js": |
|
/*!*********************************************************!*\ |
|
!*** ../node_modules/axios/lib/cancel/CanceledError.js ***! |
|
\*********************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
* A `CanceledError` is an object that is thrown when an operation is canceled. |
|
* |
|
* @param {string=} message The message. |
|
* @param {Object=} config The config. |
|
* @param {Object=} request The request. |
|
* |
|
* @returns {CanceledError} The created error. |
|
*/ |
|
function CanceledError(message, config, request) { |
|
// eslint-disable-next-line no-eq-null,eqeqeq |
|
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(this, message == null ? 'canceled' : message, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_CANCELED, config, request); |
|
this.name = 'CanceledError'; |
|
} |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].inherits(CanceledError, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"], { |
|
__CANCEL__: true |
|
}); |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CanceledError); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/cancel/isCancel.js": |
|
/*!****************************************************!*\ |
|
!*** ../node_modules/axios/lib/cancel/isCancel.js ***! |
|
\****************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (/* binding */ isCancel) |
|
/* harmony export */ }); |
|
|
|
|
|
function isCancel(value) { |
|
return !!(value && value.__CANCEL__); |
|
} |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/core/Axios.js": |
|
/*!***********************************************!*\ |
|
!*** ../node_modules/axios/lib/core/Axios.js ***! |
|
\***********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helpers/buildURL.js */ "../node_modules/axios/lib/helpers/buildURL.js"); |
|
/* harmony import */ var _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InterceptorManager.js */ "../node_modules/axios/lib/core/InterceptorManager.js"); |
|
/* harmony import */ var _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dispatchRequest.js */ "../node_modules/axios/lib/core/dispatchRequest.js"); |
|
/* harmony import */ var _mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mergeConfig.js */ "../node_modules/axios/lib/core/mergeConfig.js"); |
|
/* harmony import */ var _buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./buildFullPath.js */ "../node_modules/axios/lib/core/buildFullPath.js"); |
|
/* harmony import */ var _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/validator.js */ "../node_modules/axios/lib/helpers/validator.js"); |
|
/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const validators = _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].validators; |
|
|
|
/** |
|
* Create a new instance of Axios |
|
* |
|
* @param {Object} instanceConfig The default config for the instance |
|
* |
|
* @return {Axios} A new instance of Axios |
|
*/ |
|
class Axios { |
|
constructor(instanceConfig) { |
|
this.defaults = instanceConfig; |
|
this.interceptors = { |
|
request: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__["default"](), |
|
response: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__["default"]() |
|
}; |
|
} |
|
|
|
/** |
|
* Dispatch a request |
|
* |
|
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) |
|
* @param {?Object} config |
|
* |
|
* @returns {Promise} The Promise to be fulfilled |
|
*/ |
|
request(configOrUrl, config) { |
|
/*eslint no-param-reassign:0*/ |
|
// Allow for axios('example/url'[, config]) a la fetch API |
|
if (typeof configOrUrl === 'string') { |
|
config = config || {}; |
|
config.url = configOrUrl; |
|
} else { |
|
config = configOrUrl || {}; |
|
} |
|
|
|
config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this.defaults, config); |
|
|
|
const {transitional, paramsSerializer, headers} = config; |
|
|
|
if (transitional !== undefined) { |
|
_helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(transitional, { |
|
silentJSONParsing: validators.transitional(validators.boolean), |
|
forcedJSONParsing: validators.transitional(validators.boolean), |
|
clarifyTimeoutError: validators.transitional(validators.boolean) |
|
}, false); |
|
} |
|
|
|
if (paramsSerializer !== undefined) { |
|
_helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(paramsSerializer, { |
|
encode: validators.function, |
|
serialize: validators.function |
|
}, true); |
|
} |
|
|
|
// Set config.method |
|
config.method = (config.method || this.defaults.method || 'get').toLowerCase(); |
|
|
|
let contextHeaders; |
|
|
|
// Flatten headers |
|
contextHeaders = headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].merge( |
|
headers.common, |
|
headers[config.method] |
|
); |
|
|
|
contextHeaders && _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach( |
|
['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], |
|
(method) => { |
|
delete headers[method]; |
|
} |
|
); |
|
|
|
config.headers = _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].concat(contextHeaders, headers); |
|
|
|
// filter out skipped interceptors |
|
const requestInterceptorChain = []; |
|
let synchronousRequestInterceptors = true; |
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { |
|
if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { |
|
return; |
|
} |
|
|
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; |
|
|
|
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); |
|
}); |
|
|
|
const responseInterceptorChain = []; |
|
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { |
|
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); |
|
}); |
|
|
|
let promise; |
|
let i = 0; |
|
let len; |
|
|
|
if (!synchronousRequestInterceptors) { |
|
const chain = [_dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__["default"].bind(this), undefined]; |
|
chain.unshift.apply(chain, requestInterceptorChain); |
|
chain.push.apply(chain, responseInterceptorChain); |
|
len = chain.length; |
|
|
|
promise = Promise.resolve(config); |
|
|
|
while (i < len) { |
|
promise = promise.then(chain[i++], chain[i++]); |
|
} |
|
|
|
return promise; |
|
} |
|
|
|
len = requestInterceptorChain.length; |
|
|
|
let newConfig = config; |
|
|
|
i = 0; |
|
|
|
while (i < len) { |
|
const onFulfilled = requestInterceptorChain[i++]; |
|
const onRejected = requestInterceptorChain[i++]; |
|
try { |
|
newConfig = onFulfilled(newConfig); |
|
} catch (error) { |
|
onRejected.call(this, error); |
|
break; |
|
} |
|
} |
|
|
|
try { |
|
promise = _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__["default"].call(this, newConfig); |
|
} catch (error) { |
|
return Promise.reject(error); |
|
} |
|
|
|
i = 0; |
|
len = responseInterceptorChain.length; |
|
|
|
while (i < len) { |
|
promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); |
|
} |
|
|
|
return promise; |
|
} |
|
|
|
getUri(config) { |
|
config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this.defaults, config); |
|
const fullPath = (0,_buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__["default"])(config.baseURL, config.url); |
|
return (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__["default"])(fullPath, config.params, config.paramsSerializer); |
|
} |
|
} |
|
|
|
// Provide aliases for supported request methods |
|
_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { |
|
/*eslint func-names:0*/ |
|
Axios.prototype[method] = function(url, config) { |
|
return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(config || {}, { |
|
method, |
|
url, |
|
data: (config || {}).data |
|
})); |
|
}; |
|
}); |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { |
|
/*eslint func-names:0*/ |
|
|
|
function generateHTTPMethod(isForm) { |
|
return function httpMethod(url, data, config) { |
|
return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(config || {}, { |
|
method, |
|
headers: isForm ? { |
|
'Content-Type': 'multipart/form-data' |
|
} : {}, |
|
url, |
|
data |
|
})); |
|
}; |
|
} |
|
|
|
Axios.prototype[method] = generateHTTPMethod(); |
|
|
|
Axios.prototype[method + 'Form'] = generateHTTPMethod(true); |
|
}); |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Axios); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/core/AxiosError.js": |
|
/*!****************************************************!*\ |
|
!*** ../node_modules/axios/lib/core/AxiosError.js ***! |
|
\****************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
|
|
|
|
|
|
|
|
/** |
|
* Create an Error with the specified message, config, error code, request and response. |
|
* |
|
* @param {string} message The error message. |
|
* @param {string} [code] The error code (for example, 'ECONNABORTED'). |
|
* @param {Object} [config] The config. |
|
* @param {Object} [request] The request. |
|
* @param {Object} [response] The response. |
|
* |
|
* @returns {Error} The created error. |
|
*/ |
|
function AxiosError(message, code, config, request, response) { |
|
Error.call(this); |
|
|
|
if (Error.captureStackTrace) { |
|
Error.captureStackTrace(this, this.constructor); |
|
} else { |
|
this.stack = (new Error()).stack; |
|
} |
|
|
|
this.message = message; |
|
this.name = 'AxiosError'; |
|
code && (this.code = code); |
|
config && (this.config = config); |
|
request && (this.request = request); |
|
response && (this.response = response); |
|
} |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].inherits(AxiosError, Error, { |
|
toJSON: function toJSON() { |
|
return { |
|
// Standard |
|
message: this.message, |
|
name: this.name, |
|
// Microsoft |
|
description: this.description, |
|
number: this.number, |
|
// Mozilla |
|
fileName: this.fileName, |
|
lineNumber: this.lineNumber, |
|
columnNumber: this.columnNumber, |
|
stack: this.stack, |
|
// Axios |
|
config: _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toJSONObject(this.config), |
|
code: this.code, |
|
status: this.response && this.response.status ? this.response.status : null |
|
}; |
|
} |
|
}); |
|
|
|
const prototype = AxiosError.prototype; |
|
const descriptors = {}; |
|
|
|
[ |
|
'ERR_BAD_OPTION_VALUE', |
|
'ERR_BAD_OPTION', |
|
'ECONNABORTED', |
|
'ETIMEDOUT', |
|
'ERR_NETWORK', |
|
'ERR_FR_TOO_MANY_REDIRECTS', |
|
'ERR_DEPRECATED', |
|
'ERR_BAD_RESPONSE', |
|
'ERR_BAD_REQUEST', |
|
'ERR_CANCELED', |
|
'ERR_NOT_SUPPORT', |
|
'ERR_INVALID_URL' |
|
// eslint-disable-next-line func-names |
|
].forEach(code => { |
|
descriptors[code] = {value: code}; |
|
}); |
|
|
|
Object.defineProperties(AxiosError, descriptors); |
|
Object.defineProperty(prototype, 'isAxiosError', {value: true}); |
|
|
|
// eslint-disable-next-line func-names |
|
AxiosError.from = (error, code, config, request, response, customProps) => { |
|
const axiosError = Object.create(prototype); |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(error, axiosError, function filter(obj) { |
|
return obj !== Error.prototype; |
|
}, prop => { |
|
return prop !== 'isAxiosError'; |
|
}); |
|
|
|
AxiosError.call(axiosError, error.message, code, config, request, response); |
|
|
|
axiosError.cause = error; |
|
|
|
axiosError.name = error.name; |
|
|
|
customProps && Object.assign(axiosError, customProps); |
|
|
|
return axiosError; |
|
}; |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosError); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/core/AxiosHeaders.js": |
|
/*!******************************************************!*\ |
|
!*** ../node_modules/axios/lib/core/AxiosHeaders.js ***! |
|
\******************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
/* harmony import */ var _helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/parseHeaders.js */ "../node_modules/axios/lib/helpers/parseHeaders.js"); |
|
|
|
|
|
|
|
|
|
|
|
const $internals = Symbol('internals'); |
|
|
|
function normalizeHeader(header) { |
|
return header && String(header).trim().toLowerCase(); |
|
} |
|
|
|
function normalizeValue(value) { |
|
if (value === false || value == null) { |
|
return value; |
|
} |
|
|
|
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.map(normalizeValue) : String(value); |
|
} |
|
|
|
function parseTokens(str) { |
|
const tokens = Object.create(null); |
|
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; |
|
let match; |
|
|
|
while ((match = tokensRE.exec(str))) { |
|
tokens[match[1]] = match[2]; |
|
} |
|
|
|
return tokens; |
|
} |
|
|
|
function isValidHeaderName(str) { |
|
return /^[-_a-zA-Z]+$/.test(str.trim()); |
|
} |
|
|
|
function matchHeaderValue(context, value, header, filter) { |
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(filter)) { |
|
return filter.call(this, value, header); |
|
} |
|
|
|
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(value)) return; |
|
|
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(filter)) { |
|
return value.indexOf(filter) !== -1; |
|
} |
|
|
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isRegExp(filter)) { |
|
return filter.test(value); |
|
} |
|
} |
|
|
|
function formatHeader(header) { |
|
return header.trim() |
|
.toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => { |
|
return char.toUpperCase() + str; |
|
}); |
|
} |
|
|
|
function buildAccessors(obj, header) { |
|
const accessorName = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toCamelCase(' ' + header); |
|
|
|
['get', 'set', 'has'].forEach(methodName => { |
|
Object.defineProperty(obj, methodName + accessorName, { |
|
value: function(arg1, arg2, arg3) { |
|
return this[methodName].call(this, header, arg1, arg2, arg3); |
|
}, |
|
configurable: true |
|
}); |
|
}); |
|
} |
|
|
|
class AxiosHeaders { |
|
constructor(headers) { |
|
headers && this.set(headers); |
|
} |
|
|
|
set(header, valueOrRewrite, rewrite) { |
|
const self = this; |
|
|
|
function setHeader(_value, _header, _rewrite) { |
|
const lHeader = normalizeHeader(_header); |
|
|
|
if (!lHeader) { |
|
throw new Error('header name must be a non-empty string'); |
|
} |
|
|
|
const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(self, lHeader); |
|
|
|
if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) { |
|
self[key || _header] = normalizeValue(_value); |
|
} |
|
} |
|
|
|
const setHeaders = (headers, _rewrite) => |
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite)); |
|
|
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(header) || header instanceof this.constructor) { |
|
setHeaders(header, valueOrRewrite) |
|
} else if(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { |
|
setHeaders((0,_helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"])(header), valueOrRewrite); |
|
} else { |
|
header != null && setHeader(valueOrRewrite, header, rewrite); |
|
} |
|
|
|
return this; |
|
} |
|
|
|
get(header, parser) { |
|
header = normalizeHeader(header); |
|
|
|
if (header) { |
|
const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(this, header); |
|
|
|
if (key) { |
|
const value = this[key]; |
|
|
|
if (!parser) { |
|
return value; |
|
} |
|
|
|
if (parser === true) { |
|
return parseTokens(value); |
|
} |
|
|
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(parser)) { |
|
return parser.call(this, value, key); |
|
} |
|
|
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isRegExp(parser)) { |
|
return parser.exec(value); |
|
} |
|
|
|
throw new TypeError('parser must be boolean|regexp|function'); |
|
} |
|
} |
|
} |
|
|
|
has(header, matcher) { |
|
header = normalizeHeader(header); |
|
|
|
if (header) { |
|
const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(this, header); |
|
|
|
return !!(key && (!matcher || matchHeaderValue(this, this[key], key, matcher))); |
|
} |
|
|
|
return false; |
|
} |
|
|
|
delete(header, matcher) { |
|
const self = this; |
|
let deleted = false; |
|
|
|
function deleteHeader(_header) { |
|
_header = normalizeHeader(_header); |
|
|
|
if (_header) { |
|
const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(self, _header); |
|
|
|
if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) { |
|
delete self[key]; |
|
|
|
deleted = true; |
|
} |
|
} |
|
} |
|
|
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(header)) { |
|
header.forEach(deleteHeader); |
|
} else { |
|
deleteHeader(header); |
|
} |
|
|
|
return deleted; |
|
} |
|
|
|
clear() { |
|
return Object.keys(this).forEach(this.delete.bind(this)); |
|
} |
|
|
|
normalize(format) { |
|
const self = this; |
|
const headers = {}; |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this, (value, header) => { |
|
const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(headers, header); |
|
|
|
if (key) { |
|
self[key] = normalizeValue(value); |
|
delete self[header]; |
|
return; |
|
} |
|
|
|
const normalized = format ? formatHeader(header) : String(header).trim(); |
|
|
|
if (normalized !== header) { |
|
delete self[header]; |
|
} |
|
|
|
self[normalized] = normalizeValue(value); |
|
|
|
headers[normalized] = true; |
|
}); |
|
|
|
return this; |
|
} |
|
|
|
concat(...targets) { |
|
return this.constructor.concat(this, ...targets); |
|
} |
|
|
|
toJSON(asStrings) { |
|
const obj = Object.create(null); |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this, (value, header) => { |
|
value != null && value !== false && (obj[header] = asStrings && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.join(', ') : value); |
|
}); |
|
|
|
return obj; |
|
} |
|
|
|
[Symbol.iterator]() { |
|
return Object.entries(this.toJSON())[Symbol.iterator](); |
|
} |
|
|
|
toString() { |
|
return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n'); |
|
} |
|
|
|
get [Symbol.toStringTag]() { |
|
return 'AxiosHeaders'; |
|
} |
|
|
|
static from(thing) { |
|
return thing instanceof this ? thing : new this(thing); |
|
} |
|
|
|
static concat(first, ...targets) { |
|
const computed = new this(first); |
|
|
|
targets.forEach((target) => computed.set(target)); |
|
|
|
return computed; |
|
} |
|
|
|
static accessor(header) { |
|
const internals = this[$internals] = (this[$internals] = { |
|
accessors: {} |
|
}); |
|
|
|
const accessors = internals.accessors; |
|
const prototype = this.prototype; |
|
|
|
function defineAccessor(_header) { |
|
const lHeader = normalizeHeader(_header); |
|
|
|
if (!accessors[lHeader]) { |
|
buildAccessors(prototype, _header); |
|
accessors[lHeader] = true; |
|
} |
|
} |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); |
|
|
|
return this; |
|
} |
|
} |
|
|
|
AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent']); |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].freezeMethods(AxiosHeaders.prototype); |
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].freezeMethods(AxiosHeaders); |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosHeaders); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/core/InterceptorManager.js": |
|
/*!************************************************************!*\ |
|
!*** ../node_modules/axios/lib/core/InterceptorManager.js ***! |
|
\************************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
|
|
|
|
|
|
|
|
class InterceptorManager { |
|
constructor() { |
|
this.handlers = []; |
|
} |
|
|
|
/** |
|
* Add a new interceptor to the stack |
|
* |
|
* @param {Function} fulfilled The function to handle `then` for a `Promise` |
|
* @param {Function} rejected The function to handle `reject` for a `Promise` |
|
* |
|
* @return {Number} An ID used to remove interceptor later |
|
*/ |
|
use(fulfilled, rejected, options) { |
|
this.handlers.push({ |
|
fulfilled, |
|
rejected, |
|
synchronous: options ? options.synchronous : false, |
|
runWhen: options ? options.runWhen : null |
|
}); |
|
return this.handlers.length - 1; |
|
} |
|
|
|
/** |
|
* Remove an interceptor from the stack |
|
* |
|
* @param {Number} id The ID that was returned by `use` |
|
* |
|
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise |
|
*/ |
|
eject(id) { |
|
if (this.handlers[id]) { |
|
this.handlers[id] = null; |
|
} |
|
} |
|
|
|
/** |
|
* Clear all interceptors from the stack |
|
* |
|
* @returns {void} |
|
*/ |
|
clear() { |
|
if (this.handlers) { |
|
this.handlers = []; |
|
} |
|
} |
|
|
|
/** |
|
* Iterate over all the registered interceptors |
|
* |
|
* This method is particularly useful for skipping over any |
|
* interceptors that may have become `null` calling `eject`. |
|
* |
|
* @param {Function} fn The function to call for each interceptor |
|
* |
|
* @returns {void} |
|
*/ |
|
forEach(fn) { |
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this.handlers, function forEachHandler(h) { |
|
if (h !== null) { |
|
fn(h); |
|
} |
|
}); |
|
} |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InterceptorManager); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/core/buildFullPath.js": |
|
/*!*******************************************************!*\ |
|
!*** ../node_modules/axios/lib/core/buildFullPath.js ***! |
|
\*******************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (/* binding */ buildFullPath) |
|
/* harmony export */ }); |
|
/* harmony import */ var _helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/isAbsoluteURL.js */ "../node_modules/axios/lib/helpers/isAbsoluteURL.js"); |
|
/* harmony import */ var _helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/combineURLs.js */ "../node_modules/axios/lib/helpers/combineURLs.js"); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
* Creates a new URL by combining the baseURL with the requestedURL, |
|
* only when the requestedURL is not already an absolute URL. |
|
* If the requestURL is absolute, this function returns the requestedURL untouched. |
|
* |
|
* @param {string} baseURL The base URL |
|
* @param {string} requestedURL Absolute or relative URL to combine |
|
* |
|
* @returns {string} The combined full path |
|
*/ |
|
function buildFullPath(baseURL, requestedURL) { |
|
if (baseURL && !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__["default"])(requestedURL)) { |
|
return (0,_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__["default"])(baseURL, requestedURL); |
|
} |
|
return requestedURL; |
|
} |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/core/dispatchRequest.js": |
|
/*!*********************************************************!*\ |
|
!*** ../node_modules/axios/lib/core/dispatchRequest.js ***! |
|
\*********************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (/* binding */ dispatchRequest) |
|
/* harmony export */ }); |
|
/* harmony import */ var _transformData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transformData.js */ "../node_modules/axios/lib/core/transformData.js"); |
|
/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../cancel/isCancel.js */ "../node_modules/axios/lib/cancel/isCancel.js"); |
|
/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaults/index.js */ "../node_modules/axios/lib/defaults/index.js"); |
|
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js"); |
|
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); |
|
/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../adapters/adapters.js */ "../node_modules/axios/lib/adapters/adapters.js"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
* Throws a `CanceledError` if cancellation has been requested. |
|
* |
|
* @param {Object} config The config that is to be used for the request |
|
* |
|
* @returns {void} |
|
*/ |
|
function throwIfCancellationRequested(config) { |
|
if (config.cancelToken) { |
|
config.cancelToken.throwIfRequested(); |
|
} |
|
|
|
if (config.signal && config.signal.aborted) { |
|
throw new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__["default"](null, config); |
|
} |
|
} |
|
|
|
/** |
|
* Dispatch a request to the server using the configured adapter. |
|
* |
|
* @param {object} config The config that is to be used for the request |
|
* |
|
* @returns {Promise} The Promise to be fulfilled |
|
*/ |
|
function dispatchRequest(config) { |
|
throwIfCancellationRequested(config); |
|
|
|
config.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(config.headers); |
|
|
|
// Transform request data |
|
config.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call( |
|
config, |
|
config.transformRequest |
|
); |
|
|
|
if (['post', 'put', 'patch'].indexOf(config.method) !== -1) { |
|
config.headers.setContentType('application/x-www-form-urlencoded', false); |
|
} |
|
|
|
const adapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__["default"].getAdapter(config.adapter || _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].adapter); |
|
|
|
return adapter(config).then(function onAdapterResolution(response) { |
|
throwIfCancellationRequested(config); |
|
|
|
// Transform response data |
|
response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call( |
|
config, |
|
config.transformResponse, |
|
response |
|
); |
|
|
|
response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(response.headers); |
|
|
|
return response; |
|
}, function onAdapterRejection(reason) { |
|
if (!(0,_cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__["default"])(reason)) { |
|
throwIfCancellationRequested(config); |
|
|
|
// Transform response data |
|
if (reason && reason.response) { |
|
reason.response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call( |
|
config, |
|
config.transformResponse, |
|
reason.response |
|
); |
|
reason.response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(reason.response.headers); |
|
} |
|
} |
|
|
|
return Promise.reject(reason); |
|
}); |
|
} |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/core/mergeConfig.js": |
|
/*!*****************************************************!*\ |
|
!*** ../node_modules/axios/lib/core/mergeConfig.js ***! |
|
\*****************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (/* binding */ mergeConfig) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); |
|
|
|
|
|
|
|
|
|
|
|
const headersToObject = (thing) => thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? thing.toJSON() : thing; |
|
|
|
/** |
|
* Config-specific merge-function which creates a new config-object |
|
* by merging two configuration objects together. |
|
* |
|
* @param {Object} config1 |
|
* @param {Object} config2 |
|
* |
|
* @returns {Object} New object resulting from merging config2 to config1 |
|
*/ |
|
function mergeConfig(config1, config2) { |
|
// eslint-disable-next-line no-param-reassign |
|
config2 = config2 || {}; |
|
const config = {}; |
|
|
|
function getMergedValue(target, source, caseless) { |
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(source)) { |
|
return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge.call({caseless}, target, source); |
|
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(source)) { |
|
return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge({}, source); |
|
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isArray(source)) { |
|
return source.slice(); |
|
} |
|
return source; |
|
} |
|
|
|
// eslint-disable-next-line consistent-return |
|
function mergeDeepProperties(a, b, caseless) { |
|
if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) { |
|
return getMergedValue(a, b, caseless); |
|
} else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(a)) { |
|
return getMergedValue(undefined, a, caseless); |
|
} |
|
} |
|
|
|
// eslint-disable-next-line consistent-return |
|
function valueFromConfig2(a, b) { |
|
if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) { |
|
return getMergedValue(undefined, b); |
|
} |
|
} |
|
|
|
// eslint-disable-next-line consistent-return |
|
function defaultToConfig2(a, b) { |
|
if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) { |
|
return getMergedValue(undefined, b); |
|
} else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(a)) { |
|
return getMergedValue(undefined, a); |
|
} |
|
} |
|
|
|
// eslint-disable-next-line consistent-return |
|
function mergeDirectKeys(a, b, prop) { |
|
if (prop in config2) { |
|
return getMergedValue(a, b); |
|
} else if (prop in config1) { |
|
return getMergedValue(undefined, a); |
|
} |
|
} |
|
|
|
const mergeMap = { |
|
url: valueFromConfig2, |
|
method: valueFromConfig2, |
|
data: valueFromConfig2, |
|
baseURL: defaultToConfig2, |
|
transformRequest: defaultToConfig2, |
|
transformResponse: defaultToConfig2, |
|
paramsSerializer: defaultToConfig2, |
|
timeout: defaultToConfig2, |
|
timeoutMessage: defaultToConfig2, |
|
withCredentials: defaultToConfig2, |
|
adapter: defaultToConfig2, |
|
responseType: defaultToConfig2, |
|
xsrfCookieName: defaultToConfig2, |
|
xsrfHeaderName: defaultToConfig2, |
|
onUploadProgress: defaultToConfig2, |
|
onDownloadProgress: defaultToConfig2, |
|
decompress: defaultToConfig2, |
|
maxContentLength: defaultToConfig2, |
|
maxBodyLength: defaultToConfig2, |
|
beforeRedirect: defaultToConfig2, |
|
transport: defaultToConfig2, |
|
httpAgent: defaultToConfig2, |
|
httpsAgent: defaultToConfig2, |
|
cancelToken: defaultToConfig2, |
|
socketPath: defaultToConfig2, |
|
responseEncoding: defaultToConfig2, |
|
validateStatus: mergeDirectKeys, |
|
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true) |
|
}; |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) { |
|
const merge = mergeMap[prop] || mergeDeepProperties; |
|
const configValue = merge(config1[prop], config2[prop], prop); |
|
(_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue); |
|
}); |
|
|
|
return config; |
|
} |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/core/settle.js": |
|
/*!************************************************!*\ |
|
!*** ../node_modules/axios/lib/core/settle.js ***! |
|
\************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (/* binding */ settle) |
|
/* harmony export */ }); |
|
/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); |
|
|
|
|
|
|
|
|
|
/** |
|
* Resolve or reject a Promise based on response status. |
|
* |
|
* @param {Function} resolve A function that resolves the promise. |
|
* @param {Function} reject A function that rejects the promise. |
|
* @param {object} response The response. |
|
* |
|
* @returns {object} The response. |
|
*/ |
|
function settle(resolve, reject, response) { |
|
const validateStatus = response.config.validateStatus; |
|
if (!response.status || !validateStatus || validateStatus(response.status)) { |
|
resolve(response); |
|
} else { |
|
reject(new _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"]( |
|
'Request failed with status code ' + response.status, |
|
[_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_BAD_REQUEST, _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], |
|
response.config, |
|
response.request, |
|
response |
|
)); |
|
} |
|
} |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/core/transformData.js": |
|
/*!*******************************************************!*\ |
|
!*** ../node_modules/axios/lib/core/transformData.js ***! |
|
\*******************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (/* binding */ transformData) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../defaults/index.js */ "../node_modules/axios/lib/defaults/index.js"); |
|
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
* Transform the data for a request or a response |
|
* |
|
* @param {Array|Function} fns A single function or Array of functions |
|
* @param {?Object} response The response object |
|
* |
|
* @returns {*} The resulting transformed data |
|
*/ |
|
function transformData(fns, response) { |
|
const config = this || _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__["default"]; |
|
const context = response || config; |
|
const headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(context.headers); |
|
let data = context.data; |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(fns, function transform(fn) { |
|
data = fn.call(config, data, headers.normalize(), response ? response.status : undefined); |
|
}); |
|
|
|
headers.normalize(); |
|
|
|
return data; |
|
} |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/defaults/index.js": |
|
/*!***************************************************!*\ |
|
!*** ../node_modules/axios/lib/defaults/index.js ***! |
|
\***************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); |
|
/* harmony import */ var _transitional_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transitional.js */ "../node_modules/axios/lib/defaults/transitional.js"); |
|
/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/toFormData.js */ "../node_modules/axios/lib/helpers/toFormData.js"); |
|
/* harmony import */ var _helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/toURLEncodedForm.js */ "../node_modules/axios/lib/helpers/toURLEncodedForm.js"); |
|
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/browser/index.js"); |
|
/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/formDataToJSON.js */ "../node_modules/axios/lib/helpers/formDataToJSON.js"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const DEFAULT_CONTENT_TYPE = { |
|
'Content-Type': undefined |
|
}; |
|
|
|
/** |
|
* It takes a string, tries to parse it, and if it fails, it returns the stringified version |
|
* of the input |
|
* |
|
* @param {any} rawValue - The value to be stringified. |
|
* @param {Function} parser - A function that parses a string into a JavaScript object. |
|
* @param {Function} encoder - A function that takes a value and returns a string. |
|
* |
|
* @returns {string} A stringified version of the rawValue. |
|
*/ |
|
function stringifySafely(rawValue, parser, encoder) { |
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(rawValue)) { |
|
try { |
|
(parser || JSON.parse)(rawValue); |
|
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].trim(rawValue); |
|
} catch (e) { |
|
if (e.name !== 'SyntaxError') { |
|
throw e; |
|
} |
|
} |
|
} |
|
|
|
return (encoder || JSON.stringify)(rawValue); |
|
} |
|
|
|
const defaults = { |
|
|
|
transitional: _transitional_js__WEBPACK_IMPORTED_MODULE_1__["default"], |
|
|
|
adapter: ['xhr', 'http'], |
|
|
|
transformRequest: [function transformRequest(data, headers) { |
|
const contentType = headers.getContentType() || ''; |
|
const hasJSONContentType = contentType.indexOf('application/json') > -1; |
|
const isObjectPayload = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(data); |
|
|
|
if (isObjectPayload && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isHTMLForm(data)) { |
|
data = new FormData(data); |
|
} |
|
|
|
const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(data); |
|
|
|
if (isFormData) { |
|
if (!hasJSONContentType) { |
|
return data; |
|
} |
|
return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__["default"])(data)) : data; |
|
} |
|
|
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(data) || |
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBuffer(data) || |
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isStream(data) || |
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFile(data) || |
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(data) |
|
) { |
|
return data; |
|
} |
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBufferView(data)) { |
|
return data.buffer; |
|
} |
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(data)) { |
|
headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false); |
|
return data.toString(); |
|
} |
|
|
|
let isFileList; |
|
|
|
if (isObjectPayload) { |
|
if (contentType.indexOf('application/x-www-form-urlencoded') > -1) { |
|
return (0,_helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__["default"])(data, this.formSerializer).toString(); |
|
} |
|
|
|
if ((isFileList = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) { |
|
const _FormData = this.env && this.env.FormData; |
|
|
|
return (0,_helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__["default"])( |
|
isFileList ? {'files[]': data} : data, |
|
_FormData && new _FormData(), |
|
this.formSerializer |
|
); |
|
} |
|
} |
|
|
|
if (isObjectPayload || hasJSONContentType ) { |
|
headers.setContentType('application/json', false); |
|
return stringifySafely(data); |
|
} |
|
|
|
return data; |
|
}], |
|
|
|
transformResponse: [function transformResponse(data) { |
|
const transitional = this.transitional || defaults.transitional; |
|
const forcedJSONParsing = transitional && transitional.forcedJSONParsing; |
|
const JSONRequested = this.responseType === 'json'; |
|
|
|
if (data && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) { |
|
const silentJSONParsing = transitional && transitional.silentJSONParsing; |
|
const strictJSONParsing = !silentJSONParsing && JSONRequested; |
|
|
|
try { |
|
return JSON.parse(data); |
|
} catch (e) { |
|
if (strictJSONParsing) { |
|
if (e.name === 'SyntaxError') { |
|
throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__["default"].from(e, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__["default"].ERR_BAD_RESPONSE, this, null, this.response); |
|
} |
|
throw e; |
|
} |
|
} |
|
} |
|
|
|
return data; |
|
}], |
|
|
|
/** |
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a |
|
* timeout is not created. |
|
*/ |
|
timeout: 0, |
|
|
|
xsrfCookieName: 'XSRF-TOKEN', |
|
xsrfHeaderName: 'X-XSRF-TOKEN', |
|
|
|
maxContentLength: -1, |
|
maxBodyLength: -1, |
|
|
|
env: { |
|
FormData: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].classes.FormData, |
|
Blob: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].classes.Blob |
|
}, |
|
|
|
validateStatus: function validateStatus(status) { |
|
return status >= 200 && status < 300; |
|
}, |
|
|
|
headers: { |
|
common: { |
|
'Accept': 'application/json, text/plain, */*' |
|
} |
|
} |
|
}; |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { |
|
defaults.headers[method] = {}; |
|
}); |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { |
|
defaults.headers[method] = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge(DEFAULT_CONTENT_TYPE); |
|
}); |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (defaults); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/defaults/transitional.js": |
|
/*!**********************************************************!*\ |
|
!*** ../node_modules/axios/lib/defaults/transitional.js ***! |
|
\**********************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ |
|
silentJSONParsing: true, |
|
forcedJSONParsing: true, |
|
clarifyTimeoutError: false |
|
}); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/env/classes/FormData.js": |
|
/*!*********************************************************!*\ |
|
!*** ../node_modules/axios/lib/env/classes/FormData.js ***! |
|
\*********************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var form_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! form-data */ "../node_modules/axios/node_modules/form-data/lib/browser.js"); |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (form_data__WEBPACK_IMPORTED_MODULE_0__); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/env/data.js": |
|
/*!*********************************************!*\ |
|
!*** ../node_modules/axios/lib/env/data.js ***! |
|
\*********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "VERSION": () => (/* binding */ VERSION) |
|
/* harmony export */ }); |
|
const VERSION = "1.2.1"; |
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/AxiosURLSearchParams.js": |
|
/*!*****************************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/AxiosURLSearchParams.js ***! |
|
\*****************************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ "../node_modules/axios/lib/helpers/toFormData.js"); |
|
|
|
|
|
|
|
|
|
/** |
|
* It encodes a string by replacing all characters that are not in the unreserved set with |
|
* their percent-encoded equivalents |
|
* |
|
* @param {string} str - The string to encode. |
|
* |
|
* @returns {string} The encoded string. |
|
*/ |
|
function encode(str) { |
|
const charMap = { |
|
'!': '%21', |
|
"'": '%27', |
|
'(': '%28', |
|
')': '%29', |
|
'~': '%7E', |
|
'%20': '+', |
|
'%00': '\x00' |
|
}; |
|
return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) { |
|
return charMap[match]; |
|
}); |
|
} |
|
|
|
/** |
|
* It takes a params object and converts it to a FormData object |
|
* |
|
* @param {Object<string, any>} params - The parameters to be converted to a FormData object. |
|
* @param {Object<string, any>} options - The options object passed to the Axios constructor. |
|
* |
|
* @returns {void} |
|
*/ |
|
function AxiosURLSearchParams(params, options) { |
|
this._pairs = []; |
|
|
|
params && (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__["default"])(params, this, options); |
|
} |
|
|
|
const prototype = AxiosURLSearchParams.prototype; |
|
|
|
prototype.append = function append(name, value) { |
|
this._pairs.push([name, value]); |
|
}; |
|
|
|
prototype.toString = function toString(encoder) { |
|
const _encode = encoder ? function(value) { |
|
return encoder.call(this, value, encode); |
|
} : encode; |
|
|
|
return this._pairs.map(function each(pair) { |
|
return _encode(pair[0]) + '=' + _encode(pair[1]); |
|
}, '').join('&'); |
|
}; |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosURLSearchParams); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/bind.js": |
|
/*!*************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/bind.js ***! |
|
\*************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (/* binding */ bind) |
|
/* harmony export */ }); |
|
|
|
|
|
function bind(fn, thisArg) { |
|
return function wrap() { |
|
return fn.apply(thisArg, arguments); |
|
}; |
|
} |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/buildURL.js": |
|
/*!*****************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/buildURL.js ***! |
|
\*****************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (/* binding */ buildURL) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/AxiosURLSearchParams.js */ "../node_modules/axios/lib/helpers/AxiosURLSearchParams.js"); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
* It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their |
|
* URI encoded counterparts |
|
* |
|
* @param {string} val The value to be encoded. |
|
* |
|
* @returns {string} The encoded value. |
|
*/ |
|
function encode(val) { |
|
return encodeURIComponent(val). |
|
replace(/%3A/gi, ':'). |
|
replace(/%24/g, '$'). |
|
replace(/%2C/gi, ','). |
|
replace(/%20/g, '+'). |
|
replace(/%5B/gi, '['). |
|
replace(/%5D/gi, ']'); |
|
} |
|
|
|
/** |
|
* Build a URL by appending params to the end |
|
* |
|
* @param {string} url The base of the url (e.g., http://www.google.com) |
|
* @param {object} [params] The params to be appended |
|
* @param {?object} options |
|
* |
|
* @returns {string} The formatted url |
|
*/ |
|
function buildURL(url, params, options) { |
|
/*eslint no-param-reassign:0*/ |
|
if (!params) { |
|
return url; |
|
} |
|
|
|
const _encode = options && options.encode || encode; |
|
|
|
const serializeFn = options && options.serialize; |
|
|
|
let serializedParams; |
|
|
|
if (serializeFn) { |
|
serializedParams = serializeFn(params, options); |
|
} else { |
|
serializedParams = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(params) ? |
|
params.toString() : |
|
new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__["default"](params, options).toString(_encode); |
|
} |
|
|
|
if (serializedParams) { |
|
const hashmarkIndex = url.indexOf("#"); |
|
|
|
if (hashmarkIndex !== -1) { |
|
url = url.slice(0, hashmarkIndex); |
|
} |
|
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; |
|
} |
|
|
|
return url; |
|
} |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/combineURLs.js": |
|
/*!********************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/combineURLs.js ***! |
|
\********************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (/* binding */ combineURLs) |
|
/* harmony export */ }); |
|
|
|
|
|
/** |
|
* Creates a new URL by combining the specified URLs |
|
* |
|
* @param {string} baseURL The base URL |
|
* @param {string} relativeURL The relative URL |
|
* |
|
* @returns {string} The combined URL |
|
*/ |
|
function combineURLs(baseURL, relativeURL) { |
|
return relativeURL |
|
? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') |
|
: baseURL; |
|
} |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/cookies.js": |
|
/*!****************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/cookies.js ***! |
|
\****************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/browser/index.js"); |
|
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].isStandardBrowserEnv ? |
|
|
|
// Standard browser envs support document.cookie |
|
(function standardBrowserEnv() { |
|
return { |
|
write: function write(name, value, expires, path, domain, secure) { |
|
const cookie = []; |
|
cookie.push(name + '=' + encodeURIComponent(value)); |
|
|
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isNumber(expires)) { |
|
cookie.push('expires=' + new Date(expires).toGMTString()); |
|
} |
|
|
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(path)) { |
|
cookie.push('path=' + path); |
|
} |
|
|
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(domain)) { |
|
cookie.push('domain=' + domain); |
|
} |
|
|
|
if (secure === true) { |
|
cookie.push('secure'); |
|
} |
|
|
|
document.cookie = cookie.join('; '); |
|
}, |
|
|
|
read: function read(name) { |
|
const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); |
|
return (match ? decodeURIComponent(match[3]) : null); |
|
}, |
|
|
|
remove: function remove(name) { |
|
this.write(name, '', Date.now() - 86400000); |
|
} |
|
}; |
|
})() : |
|
|
|
// Non standard browser env (web workers, react-native) lack needed support. |
|
(function nonStandardBrowserEnv() { |
|
return { |
|
write: function write() {}, |
|
read: function read() { return null; }, |
|
remove: function remove() {} |
|
}; |
|
})()); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/formDataToJSON.js": |
|
/*!***********************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/formDataToJSON.js ***! |
|
\***********************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
|
|
|
|
|
|
|
|
/** |
|
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z'] |
|
* |
|
* @param {string} name - The name of the property to get. |
|
* |
|
* @returns An array of strings. |
|
*/ |
|
function parsePropPath(name) { |
|
// foo[x][y][z] |
|
// foo.x.y.z |
|
// foo-x-y-z |
|
// foo x y z |
|
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].matchAll(/\w+|\[(\w*)]/g, name).map(match => { |
|
return match[0] === '[]' ? '' : match[1] || match[0]; |
|
}); |
|
} |
|
|
|
/** |
|
* Convert an array to an object. |
|
* |
|
* @param {Array<any>} arr - The array to convert to an object. |
|
* |
|
* @returns An object with the same keys and values as the array. |
|
*/ |
|
function arrayToObject(arr) { |
|
const obj = {}; |
|
const keys = Object.keys(arr); |
|
let i; |
|
const len = keys.length; |
|
let key; |
|
for (i = 0; i < len; i++) { |
|
key = keys[i]; |
|
obj[key] = arr[key]; |
|
} |
|
return obj; |
|
} |
|
|
|
/** |
|
* It takes a FormData object and returns a JavaScript object |
|
* |
|
* @param {string} formData The FormData object to convert to JSON. |
|
* |
|
* @returns {Object<string, any> | null} The converted object. |
|
*/ |
|
function formDataToJSON(formData) { |
|
function buildPath(path, value, target, index) { |
|
let name = path[index++]; |
|
const isNumericKey = Number.isFinite(+name); |
|
const isLast = index >= path.length; |
|
name = !name && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(target) ? target.length : name; |
|
|
|
if (isLast) { |
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(target, name)) { |
|
target[name] = [target[name], value]; |
|
} else { |
|
target[name] = value; |
|
} |
|
|
|
return !isNumericKey; |
|
} |
|
|
|
if (!target[name] || !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(target[name])) { |
|
target[name] = []; |
|
} |
|
|
|
const result = buildPath(path, value, target[name], index); |
|
|
|
if (result && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(target[name])) { |
|
target[name] = arrayToObject(target[name]); |
|
} |
|
|
|
return !isNumericKey; |
|
} |
|
|
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(formData) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(formData.entries)) { |
|
const obj = {}; |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEachEntry(formData, (name, value) => { |
|
buildPath(parsePropPath(name), value, obj, 0); |
|
}); |
|
|
|
return obj; |
|
} |
|
|
|
return null; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (formDataToJSON); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/isAbsoluteURL.js": |
|
/*!**********************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/isAbsoluteURL.js ***! |
|
\**********************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (/* binding */ isAbsoluteURL) |
|
/* harmony export */ }); |
|
|
|
|
|
/** |
|
* Determines whether the specified URL is absolute |
|
* |
|
* @param {string} url The URL to test |
|
* |
|
* @returns {boolean} True if the specified URL is absolute, otherwise false |
|
*/ |
|
function isAbsoluteURL(url) { |
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL). |
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed |
|
// by any combination of letters, digits, plus, period, or hyphen. |
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); |
|
} |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/isAxiosError.js": |
|
/*!*********************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/isAxiosError.js ***! |
|
\*********************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (/* binding */ isAxiosError) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
|
|
|
|
|
|
|
|
/** |
|
* Determines whether the payload is an error thrown by Axios |
|
* |
|
* @param {*} payload The value to test |
|
* |
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false |
|
*/ |
|
function isAxiosError(payload) { |
|
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(payload) && (payload.isAxiosError === true); |
|
} |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/isURLSameOrigin.js": |
|
/*!************************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/isURLSameOrigin.js ***! |
|
\************************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/browser/index.js"); |
|
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].isStandardBrowserEnv ? |
|
|
|
// Standard browser envs have full support of the APIs needed to test |
|
// whether the request URL is of the same origin as current location. |
|
(function standardBrowserEnv() { |
|
const msie = /(msie|trident)/i.test(navigator.userAgent); |
|
const urlParsingNode = document.createElement('a'); |
|
let originURL; |
|
|
|
/** |
|
* Parse a URL to discover it's components |
|
* |
|
* @param {String} url The URL to be parsed |
|
* @returns {Object} |
|
*/ |
|
function resolveURL(url) { |
|
let href = url; |
|
|
|
if (msie) { |
|
// IE needs attribute set twice to normalize properties |
|
urlParsingNode.setAttribute('href', href); |
|
href = urlParsingNode.href; |
|
} |
|
|
|
urlParsingNode.setAttribute('href', href); |
|
|
|
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils |
|
return { |
|
href: urlParsingNode.href, |
|
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', |
|
host: urlParsingNode.host, |
|
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', |
|
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', |
|
hostname: urlParsingNode.hostname, |
|
port: urlParsingNode.port, |
|
pathname: (urlParsingNode.pathname.charAt(0) === '/') ? |
|
urlParsingNode.pathname : |
|
'/' + urlParsingNode.pathname |
|
}; |
|
} |
|
|
|
originURL = resolveURL(window.location.href); |
|
|
|
/** |
|
* Determine if a URL shares the same origin as the current location |
|
* |
|
* @param {String} requestURL The URL to test |
|
* @returns {boolean} True if URL shares the same origin, otherwise false |
|
*/ |
|
return function isURLSameOrigin(requestURL) { |
|
const parsed = (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(requestURL)) ? resolveURL(requestURL) : requestURL; |
|
return (parsed.protocol === originURL.protocol && |
|
parsed.host === originURL.host); |
|
}; |
|
})() : |
|
|
|
// Non standard browser envs (web workers, react-native) lack needed support. |
|
(function nonStandardBrowserEnv() { |
|
return function isURLSameOrigin() { |
|
return true; |
|
}; |
|
})()); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/null.js": |
|
/*!*************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/null.js ***! |
|
\*************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
// eslint-disable-next-line strict |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (null); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/parseHeaders.js": |
|
/*!*********************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/parseHeaders.js ***! |
|
\*********************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
|
|
|
|
|
|
|
|
// RawAxiosHeaders whose duplicates are ignored by node |
|
// c.f. https://nodejs.org/api/http.html#http_message_headers |
|
const ignoreDuplicateOf = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toObjectSet([ |
|
'age', 'authorization', 'content-length', 'content-type', 'etag', |
|
'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', |
|
'last-modified', 'location', 'max-forwards', 'proxy-authorization', |
|
'referer', 'retry-after', 'user-agent' |
|
]); |
|
|
|
/** |
|
* Parse headers into an object |
|
* |
|
* ``` |
|
* Date: Wed, 27 Aug 2014 08:58:49 GMT |
|
* Content-Type: application/json |
|
* Connection: keep-alive |
|
* Transfer-Encoding: chunked |
|
* ``` |
|
* |
|
* @param {String} rawHeaders Headers needing to be parsed |
|
* |
|
* @returns {Object} Headers parsed into an object |
|
*/ |
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (rawHeaders => { |
|
const parsed = {}; |
|
let key; |
|
let val; |
|
let i; |
|
|
|
rawHeaders && rawHeaders.split('\n').forEach(function parser(line) { |
|
i = line.indexOf(':'); |
|
key = line.substring(0, i).trim().toLowerCase(); |
|
val = line.substring(i + 1).trim(); |
|
|
|
if (!key || (parsed[key] && ignoreDuplicateOf[key])) { |
|
return; |
|
} |
|
|
|
if (key === 'set-cookie') { |
|
if (parsed[key]) { |
|
parsed[key].push(val); |
|
} else { |
|
parsed[key] = [val]; |
|
} |
|
} else { |
|
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; |
|
} |
|
}); |
|
|
|
return parsed; |
|
}); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/parseProtocol.js": |
|
/*!**********************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/parseProtocol.js ***! |
|
\**********************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (/* binding */ parseProtocol) |
|
/* harmony export */ }); |
|
|
|
|
|
function parseProtocol(url) { |
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); |
|
return match && match[1] || ''; |
|
} |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/speedometer.js": |
|
/*!********************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/speedometer.js ***! |
|
\********************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
|
|
|
|
/** |
|
* Calculate data maxRate |
|
* @param {Number} [samplesCount= 10] |
|
* @param {Number} [min= 1000] |
|
* @returns {Function} |
|
*/ |
|
function speedometer(samplesCount, min) { |
|
samplesCount = samplesCount || 10; |
|
const bytes = new Array(samplesCount); |
|
const timestamps = new Array(samplesCount); |
|
let head = 0; |
|
let tail = 0; |
|
let firstSampleTS; |
|
|
|
min = min !== undefined ? min : 1000; |
|
|
|
return function push(chunkLength) { |
|
const now = Date.now(); |
|
|
|
const startedAt = timestamps[tail]; |
|
|
|
if (!firstSampleTS) { |
|
firstSampleTS = now; |
|
} |
|
|
|
bytes[head] = chunkLength; |
|
timestamps[head] = now; |
|
|
|
let i = tail; |
|
let bytesCount = 0; |
|
|
|
while (i !== head) { |
|
bytesCount += bytes[i++]; |
|
i = i % samplesCount; |
|
} |
|
|
|
head = (head + 1) % samplesCount; |
|
|
|
if (head === tail) { |
|
tail = (tail + 1) % samplesCount; |
|
} |
|
|
|
if (now - firstSampleTS < min) { |
|
return; |
|
} |
|
|
|
const passed = startedAt && now - startedAt; |
|
|
|
return passed ? Math.round(bytesCount * 1000 / passed) : undefined; |
|
}; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (speedometer); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/spread.js": |
|
/*!***************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/spread.js ***! |
|
\***************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (/* binding */ spread) |
|
/* harmony export */ }); |
|
|
|
|
|
/** |
|
* Syntactic sugar for invoking a function and expanding an array for arguments. |
|
* |
|
* Common use case would be to use `Function.prototype.apply`. |
|
* |
|
* ```js |
|
* function f(x, y, z) {} |
|
* var args = [1, 2, 3]; |
|
* f.apply(null, args); |
|
* ``` |
|
* |
|
* With `spread` this example can be re-written. |
|
* |
|
* ```js |
|
* spread(function(x, y, z) {})([1, 2, 3]); |
|
* ``` |
|
* |
|
* @param {Function} callback |
|
* |
|
* @returns {Function} |
|
*/ |
|
function spread(callback) { |
|
return function wrap(arr) { |
|
return callback.apply(null, arr); |
|
}; |
|
} |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/toFormData.js": |
|
/*!*******************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/toFormData.js ***! |
|
\*******************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); |
|
/* harmony import */ var _env_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../env/classes/FormData.js */ "../node_modules/axios/lib/env/classes/FormData.js"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
* Determines if the given thing is a array or js object. |
|
* |
|
* @param {string} thing - The object or array to be visited. |
|
* |
|
* @returns {boolean} |
|
*/ |
|
function isVisitable(thing) { |
|
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(thing) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(thing); |
|
} |
|
|
|
/** |
|
* It removes the brackets from the end of a string |
|
* |
|
* @param {string} key - The key of the parameter. |
|
* |
|
* @returns {string} the key without the brackets. |
|
*/ |
|
function removeBrackets(key) { |
|
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '[]') ? key.slice(0, -2) : key; |
|
} |
|
|
|
/** |
|
* It takes a path, a key, and a boolean, and returns a string |
|
* |
|
* @param {string} path - The path to the current key. |
|
* @param {string} key - The key of the current object being iterated over. |
|
* @param {string} dots - If true, the key will be rendered with dots instead of brackets. |
|
* |
|
* @returns {string} The path to the current key. |
|
*/ |
|
function renderKey(path, key, dots) { |
|
if (!path) return key; |
|
return path.concat(key).map(function each(token, i) { |
|
// eslint-disable-next-line no-param-reassign |
|
token = removeBrackets(token); |
|
return !dots && i ? '[' + token + ']' : token; |
|
}).join(dots ? '.' : ''); |
|
} |
|
|
|
/** |
|
* If the array is an array and none of its elements are visitable, then it's a flat array. |
|
* |
|
* @param {Array<any>} arr - The array to check |
|
* |
|
* @returns {boolean} |
|
*/ |
|
function isFlatArray(arr) { |
|
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(arr) && !arr.some(isVisitable); |
|
} |
|
|
|
const predicates = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"], {}, null, function filter(prop) { |
|
return /^is[A-Z]/.test(prop); |
|
}); |
|
|
|
/** |
|
* If the thing is a FormData object, return true, otherwise return false. |
|
* |
|
* @param {unknown} thing - The thing to check. |
|
* |
|
* @returns {boolean} |
|
*/ |
|
function isSpecCompliant(thing) { |
|
return thing && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]; |
|
} |
|
|
|
/** |
|
* Convert a data object to FormData |
|
* |
|
* @param {Object} obj |
|
* @param {?Object} [formData] |
|
* @param {?Object} [options] |
|
* @param {Function} [options.visitor] |
|
* @param {Boolean} [options.metaTokens = true] |
|
* @param {Boolean} [options.dots = false] |
|
* @param {?Boolean} [options.indexes = false] |
|
* |
|
* @returns {Object} |
|
**/ |
|
|
|
/** |
|
* It converts an object into a FormData object |
|
* |
|
* @param {Object<any, any>} obj - The object to convert to form data. |
|
* @param {string} formData - The FormData object to append to. |
|
* @param {Object<string, any>} options |
|
* |
|
* @returns |
|
*/ |
|
function toFormData(obj, formData, options) { |
|
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(obj)) { |
|
throw new TypeError('target must be an object'); |
|
} |
|
|
|
// eslint-disable-next-line no-param-reassign |
|
formData = formData || new (_env_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__["default"] || FormData)(); |
|
|
|
// eslint-disable-next-line no-param-reassign |
|
options = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(options, { |
|
metaTokens: true, |
|
dots: false, |
|
indexes: false |
|
}, false, function defined(option, source) { |
|
// eslint-disable-next-line no-eq-null,eqeqeq |
|
return !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(source[option]); |
|
}); |
|
|
|
const metaTokens = options.metaTokens; |
|
// eslint-disable-next-line no-use-before-define |
|
const visitor = options.visitor || defaultVisitor; |
|
const dots = options.dots; |
|
const indexes = options.indexes; |
|
const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob; |
|
const useBlob = _Blob && isSpecCompliant(formData); |
|
|
|
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(visitor)) { |
|
throw new TypeError('visitor must be a function'); |
|
} |
|
|
|
function convertValue(value) { |
|
if (value === null) return ''; |
|
|
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isDate(value)) { |
|
return value.toISOString(); |
|
} |
|
|
|
if (!useBlob && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(value)) { |
|
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Blob is not supported. Use a Buffer instead.'); |
|
} |
|
|
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isTypedArray(value)) { |
|
return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); |
|
} |
|
|
|
return value; |
|
} |
|
|
|
/** |
|
* Default visitor. |
|
* |
|
* @param {*} value |
|
* @param {String|Number} key |
|
* @param {Array<String|Number>} path |
|
* @this {FormData} |
|
* |
|
* @returns {boolean} return true to visit the each prop of the value recursively |
|
*/ |
|
function defaultVisitor(value, key, path) { |
|
let arr = value; |
|
|
|
if (value && !path && typeof value === 'object') { |
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '{}')) { |
|
// eslint-disable-next-line no-param-reassign |
|
key = metaTokens ? key : key.slice(0, -2); |
|
// eslint-disable-next-line no-param-reassign |
|
value = JSON.stringify(value); |
|
} else if ( |
|
(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) && isFlatArray(value)) || |
|
(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '[]') && (arr = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toArray(value)) |
|
)) { |
|
// eslint-disable-next-line no-param-reassign |
|
key = removeBrackets(key); |
|
|
|
arr.forEach(function each(el, index) { |
|
!(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(el) || el === null) && formData.append( |
|
// eslint-disable-next-line no-nested-ternary |
|
indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'), |
|
convertValue(el) |
|
); |
|
}); |
|
return false; |
|
} |
|
} |
|
|
|
if (isVisitable(value)) { |
|
return true; |
|
} |
|
|
|
formData.append(renderKey(path, key, dots), convertValue(value)); |
|
|
|
return false; |
|
} |
|
|
|
const stack = []; |
|
|
|
const exposedHelpers = Object.assign(predicates, { |
|
defaultVisitor, |
|
convertValue, |
|
isVisitable |
|
}); |
|
|
|
function build(value, path) { |
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(value)) return; |
|
|
|
if (stack.indexOf(value) !== -1) { |
|
throw Error('Circular reference detected in ' + path.join('.')); |
|
} |
|
|
|
stack.push(value); |
|
|
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(value, function each(el, key) { |
|
const result = !(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(el) || el === null) && visitor.call( |
|
formData, el, _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(key) ? key.trim() : key, path, exposedHelpers |
|
); |
|
|
|
if (result === true) { |
|
build(el, path ? path.concat(key) : [key]); |
|
} |
|
}); |
|
|
|
stack.pop(); |
|
} |
|
|
|
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(obj)) { |
|
throw new TypeError('data must be an object'); |
|
} |
|
|
|
build(obj); |
|
|
|
return formData; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (toFormData); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/toURLEncodedForm.js": |
|
/*!*************************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/toURLEncodedForm.js ***! |
|
\*************************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (/* binding */ toURLEncodedForm) |
|
/* harmony export */ }); |
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js"); |
|
/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ "../node_modules/axios/lib/helpers/toFormData.js"); |
|
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/browser/index.js"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
function toURLEncodedForm(data, options) { |
|
return (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__["default"])(data, new _platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].classes.URLSearchParams(), Object.assign({ |
|
visitor: function(value, key, path, helpers) { |
|
if (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].isNode && _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isBuffer(value)) { |
|
this.append(key, value.toString('base64')); |
|
return false; |
|
} |
|
|
|
return helpers.defaultVisitor.apply(this, arguments); |
|
} |
|
}, options)); |
|
} |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/helpers/validator.js": |
|
/*!******************************************************!*\ |
|
!*** ../node_modules/axios/lib/helpers/validator.js ***! |
|
\******************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../env/data.js */ "../node_modules/axios/lib/env/data.js"); |
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js"); |
|
|
|
|
|
|
|
|
|
|
|
const validators = {}; |
|
|
|
// eslint-disable-next-line func-names |
|
['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => { |
|
validators[type] = function validator(thing) { |
|
return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; |
|
}; |
|
}); |
|
|
|
const deprecatedWarnings = {}; |
|
|
|
/** |
|
* Transitional option validator |
|
* |
|
* @param {function|boolean?} validator - set to false if the transitional option has been removed |
|
* @param {string?} version - deprecated version / removed since version |
|
* @param {string?} message - some message with additional info |
|
* |
|
* @returns {function} |
|
*/ |
|
validators.transitional = function transitional(validator, version, message) { |
|
function formatMessage(opt, desc) { |
|
return '[Axios v' + _env_data_js__WEBPACK_IMPORTED_MODULE_0__.VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); |
|
} |
|
|
|
// eslint-disable-next-line func-names |
|
return (value, opt, opts) => { |
|
if (validator === false) { |
|
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]( |
|
formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), |
|
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_DEPRECATED |
|
); |
|
} |
|
|
|
if (version && !deprecatedWarnings[opt]) { |
|
deprecatedWarnings[opt] = true; |
|
// eslint-disable-next-line no-console |
|
console.warn( |
|
formatMessage( |
|
opt, |
|
' has been deprecated since v' + version + ' and will be removed in the near future' |
|
) |
|
); |
|
} |
|
|
|
return validator ? validator(value, opt, opts) : true; |
|
}; |
|
}; |
|
|
|
/** |
|
* Assert object's properties type |
|
* |
|
* @param {object} options |
|
* @param {object} schema |
|
* @param {boolean?} allowUnknown |
|
* |
|
* @returns {object} |
|
*/ |
|
|
|
function assertOptions(options, schema, allowUnknown) { |
|
if (typeof options !== 'object') { |
|
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('options must be an object', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION_VALUE); |
|
} |
|
const keys = Object.keys(options); |
|
let i = keys.length; |
|
while (i-- > 0) { |
|
const opt = keys[i]; |
|
const validator = schema[opt]; |
|
if (validator) { |
|
const value = options[opt]; |
|
const result = value === undefined || validator(value, opt, options); |
|
if (result !== true) { |
|
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('option ' + opt + ' must be ' + result, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION_VALUE); |
|
} |
|
continue; |
|
} |
|
if (allowUnknown !== true) { |
|
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('Unknown option ' + opt, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION); |
|
} |
|
} |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ |
|
assertOptions, |
|
validators |
|
}); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/platform/browser/classes/FormData.js": |
|
/*!**********************************************************************!*\ |
|
!*** ../node_modules/axios/lib/platform/browser/classes/FormData.js ***! |
|
\**********************************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FormData); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js": |
|
/*!*****************************************************************************!*\ |
|
!*** ../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js ***! |
|
\*****************************************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../helpers/AxiosURLSearchParams.js */ "../node_modules/axios/lib/helpers/AxiosURLSearchParams.js"); |
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (typeof URLSearchParams !== 'undefined' ? URLSearchParams : _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__["default"]); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/platform/browser/index.js": |
|
/*!***********************************************************!*\ |
|
!*** ../node_modules/axios/lib/platform/browser/index.js ***! |
|
\***********************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./classes/URLSearchParams.js */ "../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js"); |
|
/* harmony import */ var _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./classes/FormData.js */ "../node_modules/axios/lib/platform/browser/classes/FormData.js"); |
|
|
|
|
|
|
|
/** |
|
* Determine if we're running in a standard browser environment |
|
* |
|
* This allows axios to run in a web worker, and react-native. |
|
* Both environments support XMLHttpRequest, but not fully standard globals. |
|
* |
|
* web workers: |
|
* typeof window -> undefined |
|
* typeof document -> undefined |
|
* |
|
* react-native: |
|
* navigator.product -> 'ReactNative' |
|
* nativescript |
|
* navigator.product -> 'NativeScript' or 'NS' |
|
* |
|
* @returns {boolean} |
|
*/ |
|
const isStandardBrowserEnv = (() => { |
|
let product; |
|
if (typeof navigator !== 'undefined' && ( |
|
(product = navigator.product) === 'ReactNative' || |
|
product === 'NativeScript' || |
|
product === 'NS') |
|
) { |
|
return false; |
|
} |
|
|
|
return typeof window !== 'undefined' && typeof document !== 'undefined'; |
|
})(); |
|
|
|
/** |
|
* Determine if we're running in a standard browser webWorker environment |
|
* |
|
* Although the `isStandardBrowserEnv` method indicates that |
|
* `allows axios to run in a web worker`, the WebWorker will still be |
|
* filtered out due to its judgment standard |
|
* `typeof window !== 'undefined' && typeof document !== 'undefined'`. |
|
* This leads to a problem when axios post `FormData` in webWorker |
|
*/ |
|
const isStandardBrowserWebWorkerEnv = (() => { |
|
return ( |
|
typeof WorkerGlobalScope !== 'undefined' && |
|
self instanceof WorkerGlobalScope && |
|
typeof self.importScripts === 'function' |
|
); |
|
})(); |
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ |
|
isBrowser: true, |
|
classes: { |
|
URLSearchParams: _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__["default"], |
|
FormData: _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__["default"], |
|
Blob |
|
}, |
|
isStandardBrowserEnv, |
|
isStandardBrowserWebWorkerEnv, |
|
protocols: ['http', 'https', 'file', 'blob', 'url', 'data'] |
|
}); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/axios/lib/utils.js": |
|
/*!******************************************!*\ |
|
!*** ../node_modules/axios/lib/utils.js ***! |
|
\******************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers/bind.js */ "../node_modules/axios/lib/helpers/bind.js"); |
|
|
|
|
|
|
|
|
|
// utils is a library of generic helper functions non-specific to axios |
|
|
|
const {toString} = Object.prototype; |
|
const {getPrototypeOf} = Object; |
|
|
|
const kindOf = (cache => thing => { |
|
const str = toString.call(thing); |
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); |
|
})(Object.create(null)); |
|
|
|
const kindOfTest = (type) => { |
|
type = type.toLowerCase(); |
|
return (thing) => kindOf(thing) === type |
|
} |
|
|
|
const typeOfTest = type => thing => typeof thing === type; |
|
|
|
/** |
|
* Determine if a value is an Array |
|
* |
|
* @param {Object} val The value to test |
|
* |
|
* @returns {boolean} True if value is an Array, otherwise false |
|
*/ |
|
const {isArray} = Array; |
|
|
|
/** |
|
* Determine if a value is undefined |
|
* |
|
* @param {*} val The value to test |
|
* |
|
* @returns {boolean} True if the value is undefined, otherwise false |
|
*/ |
|
const isUndefined = typeOfTest('undefined'); |
|
|
|
/** |
|
* Determine if a value is a Buffer |
|
* |
|
* @param {*} val The value to test |
|
* |
|
* @returns {boolean} True if value is a Buffer, otherwise false |
|
*/ |
|
function isBuffer(val) { |
|
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) |
|
&& isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); |
|
} |
|
|
|
/** |
|
* Determine if a value is an ArrayBuffer |
|
* |
|
* @param {*} val The value to test |
|
* |
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false |
|
*/ |
|
const isArrayBuffer = kindOfTest('ArrayBuffer'); |
|
|
|
|
|
/** |
|
* Determine if a value is a view on an ArrayBuffer |
|
* |
|
* @param {*} val The value to test |
|
* |
|
* @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false |
|
*/ |
|
function isArrayBufferView(val) { |
|
let result; |
|
if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { |
|
result = ArrayBuffer.isView(val); |
|
} else { |
|
result = (val) && (val.buffer) && (isArrayBuffer(val.buffer)); |
|
} |
|
return result; |
|
} |
|
|
|
/** |
|
* Determine if a value is a String |
|
* |
|
* @param {*} val The value to test |
|
* |
|
* @returns {boolean} True if value is a String, otherwise false |
|
*/ |
|
const isString = typeOfTest('string'); |
|
|
|
/** |
|
* Determine if a value is a Function |
|
* |
|
* @param {*} val The value to test |
|
* @returns {boolean} True if value is a Function, otherwise false |
|
*/ |
|
const isFunction = typeOfTest('function'); |
|
|
|
/** |
|
* Determine if a value is a Number |
|
* |
|
* @param {*} val The value to test |
|
* |
|
* @returns {boolean} True if value is a Number, otherwise false |
|
*/ |
|
const isNumber = typeOfTest('number'); |
|
|
|
/** |
|
* Determine if a value is an Object |
|
* |
|
* @param {*} thing The value to test |
|
* |
|
* @returns {boolean} True if value is an Object, otherwise false |
|
*/ |
|
const isObject = (thing) => thing !== null && typeof thing === 'object'; |
|
|
|
/** |
|
* Determine if a value is a Boolean |
|
* |
|
* @param {*} thing The value to test |
|
* @returns {boolean} True if value is a Boolean, otherwise false |
|
*/ |
|
const isBoolean = thing => thing === true || thing === false; |
|
|
|
/** |
|
* Determine if a value is a plain Object |
|
* |
|
* @param {*} val The value to test |
|
* |
|
* @returns {boolean} True if value is a plain Object, otherwise false |
|
*/ |
|
const isPlainObject = (val) => { |
|
if (kindOf(val) !== 'object') { |
|
return false; |
|
} |
|
|
|
const prototype = getPrototypeOf(val); |
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); |
|
} |
|
|
|
/** |
|
* Determine if a value is a Date |
|
* |
|
* @param {*} val The value to test |
|
* |
|
* @returns {boolean} True if value is a Date, otherwise false |
|
*/ |
|
const isDate = kindOfTest('Date'); |
|
|
|
/** |
|
* Determine if a value is a File |
|
* |
|
* @param {*} val The value to test |
|
* |
|
* @returns {boolean} True if value is a File, otherwise false |
|
*/ |
|
const isFile = kindOfTest('File'); |
|
|
|
/** |
|
* Determine if a value is a Blob |
|
* |
|
* @param {*} val The value to test |
|
* |
|
* @returns {boolean} True if value is a Blob, otherwise false |
|
*/ |
|
const isBlob = kindOfTest('Blob'); |
|
|
|
/** |
|
* Determine if a value is a FileList |
|
* |
|
* @param {*} val The value to test |
|
* |
|
* @returns {boolean} True if value is a File, otherwise false |
|
*/ |
|
const isFileList = kindOfTest('FileList'); |
|
|
|
/** |
|
* Determine if a value is a Stream |
|
* |
|
* @param {*} val The value to test |
|
* |
|
* @returns {boolean} True if value is a Stream, otherwise false |
|
*/ |
|
const isStream = (val) => isObject(val) && isFunction(val.pipe); |
|
|
|
/** |
|
* Determine if a value is a FormData |
|
* |
|
* @param {*} thing The value to test |
|
* |
|
* @returns {boolean} True if value is an FormData, otherwise false |
|
*/ |
|
const isFormData = (thing) => { |
|
const pattern = '[object FormData]'; |
|
return thing && ( |
|
(typeof FormData === 'function' && thing instanceof FormData) || |
|
toString.call(thing) === pattern || |
|
(isFunction(thing.toString) && thing.toString() === pattern) |
|
); |
|
} |
|
|
|
/** |
|
* Determine if a value is a URLSearchParams object |
|
* |
|
* @param {*} val The value to test |
|
* |
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false |
|
*/ |
|
const isURLSearchParams = kindOfTest('URLSearchParams'); |
|
|
|
/** |
|
* Trim excess whitespace off the beginning and end of a string |
|
* |
|
* @param {String} str The String to trim |
|
* |
|
* @returns {String} The String freed of excess whitespace |
|
*/ |
|
const trim = (str) => str.trim ? |
|
str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); |
|
|
|
/** |
|
* Iterate over an Array or an Object invoking a function for each item. |
|
* |
|
* If `obj` is an Array callback will be called passing |
|
* the value, index, and complete array for each item. |
|
* |
|
* If 'obj' is an Object callback will be called passing |
|
* the value, key, and complete object for each property. |
|
* |
|
* @param {Object|Array} obj The object to iterate |
|
* @param {Function} fn The callback to invoke for each item |
|
* |
|
* @param {Boolean} [allOwnKeys = false] |
|
* @returns {any} |
|
*/ |
|
function forEach(obj, fn, {allOwnKeys = false} = {}) { |
|
// Don't bother if no value provided |
|
if (obj === null || typeof obj === 'undefined') { |
|
return; |
|
} |
|
|
|
let i; |
|
let l; |
|
|
|
// Force an array if not already something iterable |
|
if (typeof obj !== 'object') { |
|
/*eslint no-param-reassign:0*/ |
|
obj = [obj]; |
|
} |
|
|
|
if (isArray(obj)) { |
|
// Iterate over array values |
|
for (i = 0, l = obj.length; i < l; i++) { |
|
fn.call(null, obj[i], i, obj); |
|
} |
|
} else { |
|
// Iterate over object keys |
|
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); |
|
const len = keys.length; |
|
let key; |
|
|
|
for (i = 0; i < len; i++) { |
|
key = keys[i]; |
|
fn.call(null, obj[key], key, obj); |
|
} |
|
} |
|
} |
|
|
|
function findKey(obj, key) { |
|
key = key.toLowerCase(); |
|
const keys = Object.keys(obj); |
|
let i = keys.length; |
|
let _key; |
|
while (i-- > 0) { |
|
_key = keys[i]; |
|
if (key === _key.toLowerCase()) { |
|
return _key; |
|
} |
|
} |
|
return null; |
|
} |
|
|
|
const _global = typeof self === "undefined" ? typeof global === "undefined" ? undefined : global : self; |
|
|
|
const isContextDefined = (context) => !isUndefined(context) && context !== _global; |
|
|
|
/** |
|
* Accepts varargs expecting each argument to be an object, then |
|
* immutably merges the properties of each object and returns result. |
|
* |
|
* When multiple objects contain the same key the later object in |
|
* the arguments list will take precedence. |
|
* |
|
* Example: |
|
* |
|
* ```js |
|
* var result = merge({foo: 123}, {foo: 456}); |
|
* console.log(result.foo); // outputs 456 |
|
* ``` |
|
* |
|
* @param {Object} obj1 Object to merge |
|
* |
|
* @returns {Object} Result of all merge properties |
|
*/ |
|
function merge(/* obj1, obj2, obj3, ... */) { |
|
const {caseless} = isContextDefined(this) && this || {}; |
|
const result = {}; |
|
const assignValue = (val, key) => { |
|
const targetKey = caseless && findKey(result, key) || key; |
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) { |
|
result[targetKey] = merge(result[targetKey], val); |
|
} else if (isPlainObject(val)) { |
|
result[targetKey] = merge({}, val); |
|
} else if (isArray(val)) { |
|
result[targetKey] = val.slice(); |
|
} else { |
|
result[targetKey] = val; |
|
} |
|
} |
|
|
|
for (let i = 0, l = arguments.length; i < l; i++) { |
|
arguments[i] && forEach(arguments[i], assignValue); |
|
} |
|
return result; |
|
} |
|
|
|
/** |
|
* Extends object a by mutably adding to it the properties of object b. |
|
* |
|
* @param {Object} a The object to be extended |
|
* @param {Object} b The object to copy properties from |
|
* @param {Object} thisArg The object to bind function to |
|
* |
|
* @param {Boolean} [allOwnKeys] |
|
* @returns {Object} The resulting value of object a |
|
*/ |
|
const extend = (a, b, thisArg, {allOwnKeys}= {}) => { |
|
forEach(b, (val, key) => { |
|
if (thisArg && isFunction(val)) { |
|
a[key] = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__["default"])(val, thisArg); |
|
} else { |
|
a[key] = val; |
|
} |
|
}, {allOwnKeys}); |
|
return a; |
|
} |
|
|
|
/** |
|
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) |
|
* |
|
* @param {string} content with BOM |
|
* |
|
* @returns {string} content value without BOM |
|
*/ |
|
const stripBOM = (content) => { |
|
if (content.charCodeAt(0) === 0xFEFF) { |
|
content = content.slice(1); |
|
} |
|
return content; |
|
} |
|
|
|
/** |
|
* Inherit the prototype methods from one constructor into another |
|
* @param {function} constructor |
|
* @param {function} superConstructor |
|
* @param {object} [props] |
|
* @param {object} [descriptors] |
|
* |
|
* @returns {void} |
|
*/ |
|
const inherits = (constructor, superConstructor, props, descriptors) => { |
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors); |
|
constructor.prototype.constructor = constructor; |
|
Object.defineProperty(constructor, 'super', { |
|
value: superConstructor.prototype |
|
}); |
|
props && Object.assign(constructor.prototype, props); |
|
} |
|
|
|
/** |
|
* Resolve object with deep prototype chain to a flat object |
|
* @param {Object} sourceObj source object |
|
* @param {Object} [destObj] |
|
* @param {Function|Boolean} [filter] |
|
* @param {Function} [propFilter] |
|
* |
|
* @returns {Object} |
|
*/ |
|
const toFlatObject = (sourceObj, destObj, filter, propFilter) => { |
|
let props; |
|
let i; |
|
let prop; |
|
const merged = {}; |
|
|
|
destObj = destObj || {}; |
|
// eslint-disable-next-line no-eq-null,eqeqeq |
|
if (sourceObj == null) return destObj; |
|
|
|
do { |
|
props = Object.getOwnPropertyNames(sourceObj); |
|
i = props.length; |
|
while (i-- > 0) { |
|
prop = props[i]; |
|
if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { |
|
destObj[prop] = sourceObj[prop]; |
|
merged[prop] = true; |
|
} |
|
} |
|
sourceObj = filter !== false && getPrototypeOf(sourceObj); |
|
} while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); |
|
|
|
return destObj; |
|
} |
|
|
|
/** |
|
* Determines whether a string ends with the characters of a specified string |
|
* |
|
* @param {String} str |
|
* @param {String} searchString |
|
* @param {Number} [position= 0] |
|
* |
|
* @returns {boolean} |
|
*/ |
|
const endsWith = (str, searchString, position) => { |
|
str = String(str); |
|
if (position === undefined || position > str.length) { |
|
position = str.length; |
|
} |
|
position -= searchString.length; |
|
const lastIndex = str.indexOf(searchString, position); |
|
return lastIndex !== -1 && lastIndex === position; |
|
} |
|
|
|
|
|
/** |
|
* Returns new array from array like object or null if failed |
|
* |
|
* @param {*} [thing] |
|
* |
|
* @returns {?Array} |
|
*/ |
|
const toArray = (thing) => { |
|
if (!thing) return null; |
|
if (isArray(thing)) return thing; |
|
let i = thing.length; |
|
if (!isNumber(i)) return null; |
|
const arr = new Array(i); |
|
while (i-- > 0) { |
|
arr[i] = thing[i]; |
|
} |
|
return arr; |
|
} |
|
|
|
/** |
|
* Checking if the Uint8Array exists and if it does, it returns a function that checks if the |
|
* thing passed in is an instance of Uint8Array |
|
* |
|
* @param {TypedArray} |
|
* |
|
* @returns {Array} |
|
*/ |
|
// eslint-disable-next-line func-names |
|
const isTypedArray = (TypedArray => { |
|
// eslint-disable-next-line func-names |
|
return thing => { |
|
return TypedArray && thing instanceof TypedArray; |
|
}; |
|
})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array)); |
|
|
|
/** |
|
* For each entry in the object, call the function with the key and value. |
|
* |
|
* @param {Object<any, any>} obj - The object to iterate over. |
|
* @param {Function} fn - The function to call for each entry. |
|
* |
|
* @returns {void} |
|
*/ |
|
const forEachEntry = (obj, fn) => { |
|
const generator = obj && obj[Symbol.iterator]; |
|
|
|
const iterator = generator.call(obj); |
|
|
|
let result; |
|
|
|
while ((result = iterator.next()) && !result.done) { |
|
const pair = result.value; |
|
fn.call(obj, pair[0], pair[1]); |
|
} |
|
} |
|
|
|
/** |
|
* It takes a regular expression and a string, and returns an array of all the matches |
|
* |
|
* @param {string} regExp - The regular expression to match against. |
|
* @param {string} str - The string to search. |
|
* |
|
* @returns {Array<boolean>} |
|
*/ |
|
const matchAll = (regExp, str) => { |
|
let matches; |
|
const arr = []; |
|
|
|
while ((matches = regExp.exec(str)) !== null) { |
|
arr.push(matches); |
|
} |
|
|
|
return arr; |
|
} |
|
|
|
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */ |
|
const isHTMLForm = kindOfTest('HTMLFormElement'); |
|
|
|
const toCamelCase = str => { |
|
return str.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g, |
|
function replacer(m, p1, p2) { |
|
return p1.toUpperCase() + p2; |
|
} |
|
); |
|
}; |
|
|
|
/* Creating a function that will check if an object has a property. */ |
|
const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype); |
|
|
|
/** |
|
* Determine if a value is a RegExp object |
|
* |
|
* @param {*} val The value to test |
|
* |
|
* @returns {boolean} True if value is a RegExp object, otherwise false |
|
*/ |
|
const isRegExp = kindOfTest('RegExp'); |
|
|
|
const reduceDescriptors = (obj, reducer) => { |
|
const descriptors = Object.getOwnPropertyDescriptors(obj); |
|
const reducedDescriptors = {}; |
|
|
|
forEach(descriptors, (descriptor, name) => { |
|
if (reducer(descriptor, name, obj) !== false) { |
|
reducedDescriptors[name] = descriptor; |
|
} |
|
}); |
|
|
|
Object.defineProperties(obj, reducedDescriptors); |
|
} |
|
|
|
/** |
|
* Makes all methods read-only |
|
* @param {Object} obj |
|
*/ |
|
|
|
const freezeMethods = (obj) => { |
|
reduceDescriptors(obj, (descriptor, name) => { |
|
// skip restricted props in strict mode |
|
if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) { |
|
return false; |
|
} |
|
|
|
const value = obj[name]; |
|
|
|
if (!isFunction(value)) return; |
|
|
|
descriptor.enumerable = false; |
|
|
|
if ('writable' in descriptor) { |
|
descriptor.writable = false; |
|
return; |
|
} |
|
|
|
if (!descriptor.set) { |
|
descriptor.set = () => { |
|
throw Error('Can not rewrite read-only method \'' + name + '\''); |
|
}; |
|
} |
|
}); |
|
} |
|
|
|
const toObjectSet = (arrayOrString, delimiter) => { |
|
const obj = {}; |
|
|
|
const define = (arr) => { |
|
arr.forEach(value => { |
|
obj[value] = true; |
|
}); |
|
} |
|
|
|
isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); |
|
|
|
return obj; |
|
} |
|
|
|
const noop = () => {} |
|
|
|
const toFiniteNumber = (value, defaultValue) => { |
|
value = +value; |
|
return Number.isFinite(value) ? value : defaultValue; |
|
} |
|
|
|
const toJSONObject = (obj) => { |
|
const stack = new Array(10); |
|
|
|
const visit = (source, i) => { |
|
|
|
if (isObject(source)) { |
|
if (stack.indexOf(source) >= 0) { |
|
return; |
|
} |
|
|
|
if(!('toJSON' in source)) { |
|
stack[i] = source; |
|
const target = isArray(source) ? [] : {}; |
|
|
|
forEach(source, (value, key) => { |
|
const reducedValue = visit(value, i + 1); |
|
!isUndefined(reducedValue) && (target[key] = reducedValue); |
|
}); |
|
|
|
stack[i] = undefined; |
|
|
|
return target; |
|
} |
|
} |
|
|
|
return source; |
|
} |
|
|
|
return visit(obj, 0); |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ |
|
isArray, |
|
isArrayBuffer, |
|
isBuffer, |
|
isFormData, |
|
isArrayBufferView, |
|
isString, |
|
isNumber, |
|
isBoolean, |
|
isObject, |
|
isPlainObject, |
|
isUndefined, |
|
isDate, |
|
isFile, |
|
isBlob, |
|
isRegExp, |
|
isFunction, |
|
isStream, |
|
isURLSearchParams, |
|
isTypedArray, |
|
isFileList, |
|
forEach, |
|
merge, |
|
extend, |
|
trim, |
|
stripBOM, |
|
inherits, |
|
toFlatObject, |
|
kindOf, |
|
kindOfTest, |
|
endsWith, |
|
toArray, |
|
forEachEntry, |
|
matchAll, |
|
isHTMLForm, |
|
hasOwnProperty, |
|
hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection |
|
reduceDescriptors, |
|
freezeMethods, |
|
toObjectSet, |
|
toCamelCase, |
|
noop, |
|
toFiniteNumber, |
|
findKey, |
|
global: _global, |
|
isContextDefined, |
|
toJSONObject |
|
}); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_DataView.js": |
|
/*!**********************************************!*\ |
|
!*** ../node_modules/lodash-es/_DataView.js ***! |
|
\**********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _getNative_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_getNative.js */ "../node_modules/lodash-es/_getNative.js"); |
|
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_root.js */ "../node_modules/lodash-es/_root.js"); |
|
|
|
|
|
|
|
/* Built-in method references that are verified to be native. */ |
|
var DataView = (0,_getNative_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_root_js__WEBPACK_IMPORTED_MODULE_1__["default"], 'DataView'); |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DataView); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_Map.js": |
|
/*!*****************************************!*\ |
|
!*** ../node_modules/lodash-es/_Map.js ***! |
|
\*****************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _getNative_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_getNative.js */ "../node_modules/lodash-es/_getNative.js"); |
|
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_root.js */ "../node_modules/lodash-es/_root.js"); |
|
|
|
|
|
|
|
/* Built-in method references that are verified to be native. */ |
|
var Map = (0,_getNative_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_root_js__WEBPACK_IMPORTED_MODULE_1__["default"], 'Map'); |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Map); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_Promise.js": |
|
/*!*********************************************!*\ |
|
!*** ../node_modules/lodash-es/_Promise.js ***! |
|
\*********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _getNative_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_getNative.js */ "../node_modules/lodash-es/_getNative.js"); |
|
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_root.js */ "../node_modules/lodash-es/_root.js"); |
|
|
|
|
|
|
|
/* Built-in method references that are verified to be native. */ |
|
var Promise = (0,_getNative_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_root_js__WEBPACK_IMPORTED_MODULE_1__["default"], 'Promise'); |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Promise); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_Set.js": |
|
/*!*****************************************!*\ |
|
!*** ../node_modules/lodash-es/_Set.js ***! |
|
\*****************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _getNative_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_getNative.js */ "../node_modules/lodash-es/_getNative.js"); |
|
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_root.js */ "../node_modules/lodash-es/_root.js"); |
|
|
|
|
|
|
|
/* Built-in method references that are verified to be native. */ |
|
var Set = (0,_getNative_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_root_js__WEBPACK_IMPORTED_MODULE_1__["default"], 'Set'); |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Set); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_Symbol.js": |
|
/*!********************************************!*\ |
|
!*** ../node_modules/lodash-es/_Symbol.js ***! |
|
\********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_root.js */ "../node_modules/lodash-es/_root.js"); |
|
|
|
|
|
/** Built-in value references. */ |
|
var Symbol = _root_js__WEBPACK_IMPORTED_MODULE_0__["default"].Symbol; |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Symbol); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_WeakMap.js": |
|
/*!*********************************************!*\ |
|
!*** ../node_modules/lodash-es/_WeakMap.js ***! |
|
\*********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _getNative_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_getNative.js */ "../node_modules/lodash-es/_getNative.js"); |
|
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_root.js */ "../node_modules/lodash-es/_root.js"); |
|
|
|
|
|
|
|
/* Built-in method references that are verified to be native. */ |
|
var WeakMap = (0,_getNative_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_root_js__WEBPACK_IMPORTED_MODULE_1__["default"], 'WeakMap'); |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (WeakMap); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_baseGetTag.js": |
|
/*!************************************************!*\ |
|
!*** ../node_modules/lodash-es/_baseGetTag.js ***! |
|
\************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _Symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_Symbol.js */ "../node_modules/lodash-es/_Symbol.js"); |
|
/* harmony import */ var _getRawTag_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_getRawTag.js */ "../node_modules/lodash-es/_getRawTag.js"); |
|
/* harmony import */ var _objectToString_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_objectToString.js */ "../node_modules/lodash-es/_objectToString.js"); |
|
|
|
|
|
|
|
|
|
/** `Object#toString` result references. */ |
|
var nullTag = '[object Null]', |
|
undefinedTag = '[object Undefined]'; |
|
|
|
/** Built-in value references. */ |
|
var symToStringTag = _Symbol_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? _Symbol_js__WEBPACK_IMPORTED_MODULE_0__["default"].toStringTag : undefined; |
|
|
|
/** |
|
* The base implementation of `getTag` without fallbacks for buggy environments. |
|
* |
|
* @private |
|
* @param {*} value The value to query. |
|
* @returns {string} Returns the `toStringTag`. |
|
*/ |
|
function baseGetTag(value) { |
|
if (value == null) { |
|
return value === undefined ? undefinedTag : nullTag; |
|
} |
|
return (symToStringTag && symToStringTag in Object(value)) |
|
? (0,_getRawTag_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value) |
|
: (0,_objectToString_js__WEBPACK_IMPORTED_MODULE_2__["default"])(value); |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (baseGetTag); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_baseIsArguments.js": |
|
/*!*****************************************************!*\ |
|
!*** ../node_modules/lodash-es/_baseIsArguments.js ***! |
|
\*****************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _baseGetTag_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_baseGetTag.js */ "../node_modules/lodash-es/_baseGetTag.js"); |
|
/* harmony import */ var _isObjectLike_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isObjectLike.js */ "../node_modules/lodash-es/isObjectLike.js"); |
|
|
|
|
|
|
|
/** `Object#toString` result references. */ |
|
var argsTag = '[object Arguments]'; |
|
|
|
/** |
|
* The base implementation of `_.isArguments`. |
|
* |
|
* @private |
|
* @param {*} value The value to check. |
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object, |
|
*/ |
|
function baseIsArguments(value) { |
|
return (0,_isObjectLike_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value) && (0,_baseGetTag_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value) == argsTag; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (baseIsArguments); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_baseIsNative.js": |
|
/*!**************************************************!*\ |
|
!*** ../node_modules/lodash-es/_baseIsNative.js ***! |
|
\**************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _isFunction_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isFunction.js */ "../node_modules/lodash-es/isFunction.js"); |
|
/* harmony import */ var _isMasked_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_isMasked.js */ "../node_modules/lodash-es/_isMasked.js"); |
|
/* harmony import */ var _isObject_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isObject.js */ "../node_modules/lodash-es/isObject.js"); |
|
/* harmony import */ var _toSource_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./_toSource.js */ "../node_modules/lodash-es/_toSource.js"); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
* Used to match `RegExp` |
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). |
|
*/ |
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; |
|
|
|
/** Used to detect host constructors (Safari). */ |
|
var reIsHostCtor = /^\[object .+?Constructor\]$/; |
|
|
|
/** Used for built-in method references. */ |
|
var funcProto = Function.prototype, |
|
objectProto = Object.prototype; |
|
|
|
/** Used to resolve the decompiled source of functions. */ |
|
var funcToString = funcProto.toString; |
|
|
|
/** Used to check objects for own properties. */ |
|
var hasOwnProperty = objectProto.hasOwnProperty; |
|
|
|
/** Used to detect if a method is native. */ |
|
var reIsNative = RegExp('^' + |
|
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') |
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' |
|
); |
|
|
|
/** |
|
* The base implementation of `_.isNative` without bad shim checks. |
|
* |
|
* @private |
|
* @param {*} value The value to check. |
|
* @returns {boolean} Returns `true` if `value` is a native function, |
|
* else `false`. |
|
*/ |
|
function baseIsNative(value) { |
|
if (!(0,_isObject_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value) || (0,_isMasked_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value)) { |
|
return false; |
|
} |
|
var pattern = (0,_isFunction_js__WEBPACK_IMPORTED_MODULE_2__["default"])(value) ? reIsNative : reIsHostCtor; |
|
return pattern.test((0,_toSource_js__WEBPACK_IMPORTED_MODULE_3__["default"])(value)); |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (baseIsNative); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_baseIsTypedArray.js": |
|
/*!******************************************************!*\ |
|
!*** ../node_modules/lodash-es/_baseIsTypedArray.js ***! |
|
\******************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _baseGetTag_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_baseGetTag.js */ "../node_modules/lodash-es/_baseGetTag.js"); |
|
/* harmony import */ var _isLength_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isLength.js */ "../node_modules/lodash-es/isLength.js"); |
|
/* harmony import */ var _isObjectLike_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isObjectLike.js */ "../node_modules/lodash-es/isObjectLike.js"); |
|
|
|
|
|
|
|
|
|
/** `Object#toString` result references. */ |
|
var argsTag = '[object Arguments]', |
|
arrayTag = '[object Array]', |
|
boolTag = '[object Boolean]', |
|
dateTag = '[object Date]', |
|
errorTag = '[object Error]', |
|
funcTag = '[object Function]', |
|
mapTag = '[object Map]', |
|
numberTag = '[object Number]', |
|
objectTag = '[object Object]', |
|
regexpTag = '[object RegExp]', |
|
setTag = '[object Set]', |
|
stringTag = '[object String]', |
|
weakMapTag = '[object WeakMap]'; |
|
|
|
var arrayBufferTag = '[object ArrayBuffer]', |
|
dataViewTag = '[object DataView]', |
|
float32Tag = '[object Float32Array]', |
|
float64Tag = '[object Float64Array]', |
|
int8Tag = '[object Int8Array]', |
|
int16Tag = '[object Int16Array]', |
|
int32Tag = '[object Int32Array]', |
|
uint8Tag = '[object Uint8Array]', |
|
uint8ClampedTag = '[object Uint8ClampedArray]', |
|
uint16Tag = '[object Uint16Array]', |
|
uint32Tag = '[object Uint32Array]'; |
|
|
|
/** Used to identify `toStringTag` values of typed arrays. */ |
|
var typedArrayTags = {}; |
|
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = |
|
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = |
|
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = |
|
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = |
|
typedArrayTags[uint32Tag] = true; |
|
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = |
|
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = |
|
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = |
|
typedArrayTags[errorTag] = typedArrayTags[funcTag] = |
|
typedArrayTags[mapTag] = typedArrayTags[numberTag] = |
|
typedArrayTags[objectTag] = typedArrayTags[regexpTag] = |
|
typedArrayTags[setTag] = typedArrayTags[stringTag] = |
|
typedArrayTags[weakMapTag] = false; |
|
|
|
/** |
|
* The base implementation of `_.isTypedArray` without Node.js optimizations. |
|
* |
|
* @private |
|
* @param {*} value The value to check. |
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`. |
|
*/ |
|
function baseIsTypedArray(value) { |
|
return (0,_isObjectLike_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value) && |
|
(0,_isLength_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value.length) && !!typedArrayTags[(0,_baseGetTag_js__WEBPACK_IMPORTED_MODULE_2__["default"])(value)]; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (baseIsTypedArray); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_baseKeys.js": |
|
/*!**********************************************!*\ |
|
!*** ../node_modules/lodash-es/_baseKeys.js ***! |
|
\**********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _isPrototype_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_isPrototype.js */ "../node_modules/lodash-es/_isPrototype.js"); |
|
/* harmony import */ var _nativeKeys_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_nativeKeys.js */ "../node_modules/lodash-es/_nativeKeys.js"); |
|
|
|
|
|
|
|
/** 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 (!(0,_isPrototype_js__WEBPACK_IMPORTED_MODULE_0__["default"])(object)) { |
|
return (0,_nativeKeys_js__WEBPACK_IMPORTED_MODULE_1__["default"])(object); |
|
} |
|
var result = []; |
|
for (var key in Object(object)) { |
|
if (hasOwnProperty.call(object, key) && key != 'constructor') { |
|
result.push(key); |
|
} |
|
} |
|
return result; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (baseKeys); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_baseUnary.js": |
|
/*!***********************************************!*\ |
|
!*** ../node_modules/lodash-es/_baseUnary.js ***! |
|
\***********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/** |
|
* The base implementation of `_.unary` without support for storing metadata. |
|
* |
|
* @private |
|
* @param {Function} func The function to cap arguments for. |
|
* @returns {Function} Returns the new capped function. |
|
*/ |
|
function baseUnary(func) { |
|
return function(value) { |
|
return func(value); |
|
}; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (baseUnary); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_coreJsData.js": |
|
/*!************************************************!*\ |
|
!*** ../node_modules/lodash-es/_coreJsData.js ***! |
|
\************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_root.js */ "../node_modules/lodash-es/_root.js"); |
|
|
|
|
|
/** Used to detect overreaching core-js shims. */ |
|
var coreJsData = _root_js__WEBPACK_IMPORTED_MODULE_0__["default"]["__core-js_shared__"]; |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (coreJsData); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_freeGlobal.js": |
|
/*!************************************************!*\ |
|
!*** ../node_modules/lodash-es/_freeGlobal.js ***! |
|
\************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/** Detect free variable `global` from Node.js. */ |
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (freeGlobal); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_getNative.js": |
|
/*!***********************************************!*\ |
|
!*** ../node_modules/lodash-es/_getNative.js ***! |
|
\***********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _baseIsNative_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_baseIsNative.js */ "../node_modules/lodash-es/_baseIsNative.js"); |
|
/* harmony import */ var _getValue_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_getValue.js */ "../node_modules/lodash-es/_getValue.js"); |
|
|
|
|
|
|
|
/** |
|
* Gets the native function at `key` of `object`. |
|
* |
|
* @private |
|
* @param {Object} object The object to query. |
|
* @param {string} key The key of the method to get. |
|
* @returns {*} Returns the function if it's native, else `undefined`. |
|
*/ |
|
function getNative(object, key) { |
|
var value = (0,_getValue_js__WEBPACK_IMPORTED_MODULE_0__["default"])(object, key); |
|
return (0,_baseIsNative_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value) ? value : undefined; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getNative); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_getRawTag.js": |
|
/*!***********************************************!*\ |
|
!*** ../node_modules/lodash-es/_getRawTag.js ***! |
|
\***********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _Symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_Symbol.js */ "../node_modules/lodash-es/_Symbol.js"); |
|
|
|
|
|
/** Used for built-in method references. */ |
|
var objectProto = Object.prototype; |
|
|
|
/** Used to check objects for own properties. */ |
|
var hasOwnProperty = objectProto.hasOwnProperty; |
|
|
|
/** |
|
* Used to resolve the |
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) |
|
* of values. |
|
*/ |
|
var nativeObjectToString = objectProto.toString; |
|
|
|
/** Built-in value references. */ |
|
var symToStringTag = _Symbol_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? _Symbol_js__WEBPACK_IMPORTED_MODULE_0__["default"].toStringTag : undefined; |
|
|
|
/** |
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. |
|
* |
|
* @private |
|
* @param {*} value The value to query. |
|
* @returns {string} Returns the raw `toStringTag`. |
|
*/ |
|
function getRawTag(value) { |
|
var isOwn = hasOwnProperty.call(value, symToStringTag), |
|
tag = value[symToStringTag]; |
|
|
|
try { |
|
value[symToStringTag] = undefined; |
|
var unmasked = true; |
|
} catch (e) {} |
|
|
|
var result = nativeObjectToString.call(value); |
|
if (unmasked) { |
|
if (isOwn) { |
|
value[symToStringTag] = tag; |
|
} else { |
|
delete value[symToStringTag]; |
|
} |
|
} |
|
return result; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getRawTag); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_getTag.js": |
|
/*!********************************************!*\ |
|
!*** ../node_modules/lodash-es/_getTag.js ***! |
|
\********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _DataView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_DataView.js */ "../node_modules/lodash-es/_DataView.js"); |
|
/* harmony import */ var _Map_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_Map.js */ "../node_modules/lodash-es/_Map.js"); |
|
/* harmony import */ var _Promise_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./_Promise.js */ "../node_modules/lodash-es/_Promise.js"); |
|
/* harmony import */ var _Set_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./_Set.js */ "../node_modules/lodash-es/_Set.js"); |
|
/* harmony import */ var _WeakMap_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./_WeakMap.js */ "../node_modules/lodash-es/_WeakMap.js"); |
|
/* harmony import */ var _baseGetTag_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./_baseGetTag.js */ "../node_modules/lodash-es/_baseGetTag.js"); |
|
/* harmony import */ var _toSource_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_toSource.js */ "../node_modules/lodash-es/_toSource.js"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** `Object#toString` result references. */ |
|
var mapTag = '[object Map]', |
|
objectTag = '[object Object]', |
|
promiseTag = '[object Promise]', |
|
setTag = '[object Set]', |
|
weakMapTag = '[object WeakMap]'; |
|
|
|
var dataViewTag = '[object DataView]'; |
|
|
|
/** Used to detect maps, sets, and weakmaps. */ |
|
var dataViewCtorString = (0,_toSource_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_DataView_js__WEBPACK_IMPORTED_MODULE_1__["default"]), |
|
mapCtorString = (0,_toSource_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_Map_js__WEBPACK_IMPORTED_MODULE_2__["default"]), |
|
promiseCtorString = (0,_toSource_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_Promise_js__WEBPACK_IMPORTED_MODULE_3__["default"]), |
|
setCtorString = (0,_toSource_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_Set_js__WEBPACK_IMPORTED_MODULE_4__["default"]), |
|
weakMapCtorString = (0,_toSource_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_WeakMap_js__WEBPACK_IMPORTED_MODULE_5__["default"]); |
|
|
|
/** |
|
* Gets the `toStringTag` of `value`. |
|
* |
|
* @private |
|
* @param {*} value The value to query. |
|
* @returns {string} Returns the `toStringTag`. |
|
*/ |
|
var getTag = _baseGetTag_js__WEBPACK_IMPORTED_MODULE_6__["default"]; |
|
|
|
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. |
|
if ((_DataView_js__WEBPACK_IMPORTED_MODULE_1__["default"] && getTag(new _DataView_js__WEBPACK_IMPORTED_MODULE_1__["default"](new ArrayBuffer(1))) != dataViewTag) || |
|
(_Map_js__WEBPACK_IMPORTED_MODULE_2__["default"] && getTag(new _Map_js__WEBPACK_IMPORTED_MODULE_2__["default"]) != mapTag) || |
|
(_Promise_js__WEBPACK_IMPORTED_MODULE_3__["default"] && getTag(_Promise_js__WEBPACK_IMPORTED_MODULE_3__["default"].resolve()) != promiseTag) || |
|
(_Set_js__WEBPACK_IMPORTED_MODULE_4__["default"] && getTag(new _Set_js__WEBPACK_IMPORTED_MODULE_4__["default"]) != setTag) || |
|
(_WeakMap_js__WEBPACK_IMPORTED_MODULE_5__["default"] && getTag(new _WeakMap_js__WEBPACK_IMPORTED_MODULE_5__["default"]) != weakMapTag)) { |
|
getTag = function(value) { |
|
var result = (0,_baseGetTag_js__WEBPACK_IMPORTED_MODULE_6__["default"])(value), |
|
Ctor = result == objectTag ? value.constructor : undefined, |
|
ctorString = Ctor ? (0,_toSource_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Ctor) : ''; |
|
|
|
if (ctorString) { |
|
switch (ctorString) { |
|
case dataViewCtorString: return dataViewTag; |
|
case mapCtorString: return mapTag; |
|
case promiseCtorString: return promiseTag; |
|
case setCtorString: return setTag; |
|
case weakMapCtorString: return weakMapTag; |
|
} |
|
} |
|
return result; |
|
}; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getTag); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_getValue.js": |
|
/*!**********************************************!*\ |
|
!*** ../node_modules/lodash-es/_getValue.js ***! |
|
\**********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/** |
|
* Gets the value at `key` of `object`. |
|
* |
|
* @private |
|
* @param {Object} [object] The object to query. |
|
* @param {string} key The key of the property to get. |
|
* @returns {*} Returns the property value. |
|
*/ |
|
function getValue(object, key) { |
|
return object == null ? undefined : object[key]; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getValue); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_isMasked.js": |
|
/*!**********************************************!*\ |
|
!*** ../node_modules/lodash-es/_isMasked.js ***! |
|
\**********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _coreJsData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_coreJsData.js */ "../node_modules/lodash-es/_coreJsData.js"); |
|
|
|
|
|
/** Used to detect methods masquerading as native. */ |
|
var maskSrcKey = (function() { |
|
var uid = /[^.]+$/.exec(_coreJsData_js__WEBPACK_IMPORTED_MODULE_0__["default"] && _coreJsData_js__WEBPACK_IMPORTED_MODULE_0__["default"].keys && _coreJsData_js__WEBPACK_IMPORTED_MODULE_0__["default"].keys.IE_PROTO || ''); |
|
return uid ? ('Symbol(src)_1.' + uid) : ''; |
|
}()); |
|
|
|
/** |
|
* Checks if `func` has its source masked. |
|
* |
|
* @private |
|
* @param {Function} func The function to check. |
|
* @returns {boolean} Returns `true` if `func` is masked, else `false`. |
|
*/ |
|
function isMasked(func) { |
|
return !!maskSrcKey && (maskSrcKey in func); |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isMasked); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_isPrototype.js": |
|
/*!*************************************************!*\ |
|
!*** ../node_modules/lodash-es/_isPrototype.js ***! |
|
\*************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/** Used for built-in method references. */ |
|
var objectProto = Object.prototype; |
|
|
|
/** |
|
* Checks if `value` is likely a prototype object. |
|
* |
|
* @private |
|
* @param {*} value The value to check. |
|
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`. |
|
*/ |
|
function isPrototype(value) { |
|
var Ctor = value && value.constructor, |
|
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; |
|
|
|
return value === proto; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isPrototype); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_nativeKeys.js": |
|
/*!************************************************!*\ |
|
!*** ../node_modules/lodash-es/_nativeKeys.js ***! |
|
\************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _overArg_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_overArg.js */ "../node_modules/lodash-es/_overArg.js"); |
|
|
|
|
|
/* Built-in method references for those with the same name as other `lodash` methods. */ |
|
var nativeKeys = (0,_overArg_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object.keys, Object); |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (nativeKeys); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_nodeUtil.js": |
|
/*!**********************************************!*\ |
|
!*** ../node_modules/lodash-es/_nodeUtil.js ***! |
|
\**********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_freeGlobal.js */ "../node_modules/lodash-es/_freeGlobal.js"); |
|
|
|
|
|
/** Detect free variable `exports`. */ |
|
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; |
|
|
|
/** Detect free variable `module`. */ |
|
var freeModule = freeExports && typeof module == '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_js__WEBPACK_IMPORTED_MODULE_0__["default"].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) {} |
|
}()); |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (nodeUtil); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_objectToString.js": |
|
/*!****************************************************!*\ |
|
!*** ../node_modules/lodash-es/_objectToString.js ***! |
|
\****************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/** Used for built-in method references. */ |
|
var objectProto = Object.prototype; |
|
|
|
/** |
|
* Used to resolve the |
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) |
|
* of values. |
|
*/ |
|
var nativeObjectToString = objectProto.toString; |
|
|
|
/** |
|
* Converts `value` to a string using `Object.prototype.toString`. |
|
* |
|
* @private |
|
* @param {*} value The value to convert. |
|
* @returns {string} Returns the converted string. |
|
*/ |
|
function objectToString(value) { |
|
return nativeObjectToString.call(value); |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (objectToString); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_overArg.js": |
|
/*!*********************************************!*\ |
|
!*** ../node_modules/lodash-es/_overArg.js ***! |
|
\*********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/** |
|
* 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)); |
|
}; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (overArg); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_root.js": |
|
/*!******************************************!*\ |
|
!*** ../node_modules/lodash-es/_root.js ***! |
|
\******************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_freeGlobal.js */ "../node_modules/lodash-es/_freeGlobal.js"); |
|
|
|
|
|
/** Detect free variable `self`. */ |
|
var freeSelf = typeof self == 'object' && self && self.Object === Object && self; |
|
|
|
/** Used as a reference to the global object. */ |
|
var root = _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__["default"] || freeSelf || Function('return this')(); |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (root); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/_toSource.js": |
|
/*!**********************************************!*\ |
|
!*** ../node_modules/lodash-es/_toSource.js ***! |
|
\**********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/** Used for built-in method references. */ |
|
var funcProto = Function.prototype; |
|
|
|
/** Used to resolve the decompiled source of functions. */ |
|
var funcToString = funcProto.toString; |
|
|
|
/** |
|
* Converts `func` to its source code. |
|
* |
|
* @private |
|
* @param {Function} func The function to convert. |
|
* @returns {string} Returns the source code. |
|
*/ |
|
function toSource(func) { |
|
if (func != null) { |
|
try { |
|
return funcToString.call(func); |
|
} catch (e) {} |
|
try { |
|
return (func + ''); |
|
} catch (e) {} |
|
} |
|
return ''; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (toSource); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/isArguments.js": |
|
/*!************************************************!*\ |
|
!*** ../node_modules/lodash-es/isArguments.js ***! |
|
\************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _baseIsArguments_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_baseIsArguments.js */ "../node_modules/lodash-es/_baseIsArguments.js"); |
|
/* harmony import */ var _isObjectLike_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isObjectLike.js */ "../node_modules/lodash-es/isObjectLike.js"); |
|
|
|
|
|
|
|
/** 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 = (0,_baseIsArguments_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function() { return arguments; }()) ? _baseIsArguments_js__WEBPACK_IMPORTED_MODULE_0__["default"] : function(value) { |
|
return (0,_isObjectLike_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value) && hasOwnProperty.call(value, 'callee') && |
|
!propertyIsEnumerable.call(value, 'callee'); |
|
}; |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isArguments); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/isArray.js": |
|
/*!********************************************!*\ |
|
!*** ../node_modules/lodash-es/isArray.js ***! |
|
\********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/** |
|
* Checks if `value` is classified as an `Array` object. |
|
* |
|
* @static |
|
* @memberOf _ |
|
* @since 0.1.0 |
|
* @category Lang |
|
* @param {*} value The value to check. |
|
* @returns {boolean} Returns `true` if `value` is an array, else `false`. |
|
* @example |
|
* |
|
* _.isArray([1, 2, 3]); |
|
* // => true |
|
* |
|
* _.isArray(document.body.children); |
|
* // => false |
|
* |
|
* _.isArray('abc'); |
|
* // => false |
|
* |
|
* _.isArray(_.noop); |
|
* // => false |
|
*/ |
|
var isArray = Array.isArray; |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isArray); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/isArrayLike.js": |
|
/*!************************************************!*\ |
|
!*** ../node_modules/lodash-es/isArrayLike.js ***! |
|
\************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _isFunction_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isFunction.js */ "../node_modules/lodash-es/isFunction.js"); |
|
/* harmony import */ var _isLength_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isLength.js */ "../node_modules/lodash-es/isLength.js"); |
|
|
|
|
|
|
|
/** |
|
* Checks if `value` is array-like. A value is considered array-like if it's |
|
* not a function and has a `value.length` that's an integer greater than or |
|
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. |
|
* |
|
* @static |
|
* @memberOf _ |
|
* @since 4.0.0 |
|
* @category Lang |
|
* @param {*} value The value to check. |
|
* @returns {boolean} Returns `true` if `value` is array-like, else `false`. |
|
* @example |
|
* |
|
* _.isArrayLike([1, 2, 3]); |
|
* // => true |
|
* |
|
* _.isArrayLike(document.body.children); |
|
* // => true |
|
* |
|
* _.isArrayLike('abc'); |
|
* // => true |
|
* |
|
* _.isArrayLike(_.noop); |
|
* // => false |
|
*/ |
|
function isArrayLike(value) { |
|
return value != null && (0,_isLength_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value.length) && !(0,_isFunction_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value); |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isArrayLike); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/isBuffer.js": |
|
/*!*********************************************!*\ |
|
!*** ../node_modules/lodash-es/isBuffer.js ***! |
|
\*********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_root.js */ "../node_modules/lodash-es/_root.js"); |
|
/* harmony import */ var _stubFalse_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stubFalse.js */ "../node_modules/lodash-es/stubFalse.js"); |
|
|
|
|
|
|
|
/** Detect free variable `exports`. */ |
|
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; |
|
|
|
/** Detect free variable `module`. */ |
|
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; |
|
|
|
/** Detect the popular CommonJS extension `module.exports`. */ |
|
var moduleExports = freeModule && freeModule.exports === freeExports; |
|
|
|
/** Built-in value references. */ |
|
var Buffer = moduleExports ? _root_js__WEBPACK_IMPORTED_MODULE_0__["default"].Buffer : undefined; |
|
|
|
/* Built-in method references for those with the same name as other `lodash` methods. */ |
|
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; |
|
|
|
/** |
|
* Checks if `value` is a buffer. |
|
* |
|
* @static |
|
* @memberOf _ |
|
* @since 4.3.0 |
|
* @category Lang |
|
* @param {*} value The value to check. |
|
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`. |
|
* @example |
|
* |
|
* _.isBuffer(new Buffer(2)); |
|
* // => true |
|
* |
|
* _.isBuffer(new Uint8Array(2)); |
|
* // => false |
|
*/ |
|
var isBuffer = nativeIsBuffer || _stubFalse_js__WEBPACK_IMPORTED_MODULE_1__["default"]; |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isBuffer); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/isEmpty.js": |
|
/*!********************************************!*\ |
|
!*** ../node_modules/lodash-es/isEmpty.js ***! |
|
\********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _baseKeys_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./_baseKeys.js */ "../node_modules/lodash-es/_baseKeys.js"); |
|
/* harmony import */ var _getTag_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./_getTag.js */ "../node_modules/lodash-es/_getTag.js"); |
|
/* harmony import */ var _isArguments_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isArguments.js */ "../node_modules/lodash-es/isArguments.js"); |
|
/* harmony import */ var _isArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isArray.js */ "../node_modules/lodash-es/isArray.js"); |
|
/* harmony import */ var _isArrayLike_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isArrayLike.js */ "../node_modules/lodash-es/isArrayLike.js"); |
|
/* harmony import */ var _isBuffer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isBuffer.js */ "../node_modules/lodash-es/isBuffer.js"); |
|
/* harmony import */ var _isPrototype_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./_isPrototype.js */ "../node_modules/lodash-es/_isPrototype.js"); |
|
/* harmony import */ var _isTypedArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isTypedArray.js */ "../node_modules/lodash-es/isTypedArray.js"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** `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 ((0,_isArrayLike_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value) && |
|
((0,_isArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value) || typeof value == 'string' || typeof value.splice == 'function' || |
|
(0,_isBuffer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(value) || (0,_isTypedArray_js__WEBPACK_IMPORTED_MODULE_3__["default"])(value) || (0,_isArguments_js__WEBPACK_IMPORTED_MODULE_4__["default"])(value))) { |
|
return !value.length; |
|
} |
|
var tag = (0,_getTag_js__WEBPACK_IMPORTED_MODULE_5__["default"])(value); |
|
if (tag == mapTag || tag == setTag) { |
|
return !value.size; |
|
} |
|
if ((0,_isPrototype_js__WEBPACK_IMPORTED_MODULE_6__["default"])(value)) { |
|
return !(0,_baseKeys_js__WEBPACK_IMPORTED_MODULE_7__["default"])(value).length; |
|
} |
|
for (var key in value) { |
|
if (hasOwnProperty.call(value, key)) { |
|
return false; |
|
} |
|
} |
|
return true; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isEmpty); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/isFunction.js": |
|
/*!***********************************************!*\ |
|
!*** ../node_modules/lodash-es/isFunction.js ***! |
|
\***********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _baseGetTag_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_baseGetTag.js */ "../node_modules/lodash-es/_baseGetTag.js"); |
|
/* harmony import */ var _isObject_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isObject.js */ "../node_modules/lodash-es/isObject.js"); |
|
|
|
|
|
|
|
/** `Object#toString` result references. */ |
|
var asyncTag = '[object AsyncFunction]', |
|
funcTag = '[object Function]', |
|
genTag = '[object GeneratorFunction]', |
|
proxyTag = '[object Proxy]'; |
|
|
|
/** |
|
* Checks if `value` is classified as a `Function` object. |
|
* |
|
* @static |
|
* @memberOf _ |
|
* @since 0.1.0 |
|
* @category Lang |
|
* @param {*} value The value to check. |
|
* @returns {boolean} Returns `true` if `value` is a function, else `false`. |
|
* @example |
|
* |
|
* _.isFunction(_); |
|
* // => true |
|
* |
|
* _.isFunction(/abc/); |
|
* // => false |
|
*/ |
|
function isFunction(value) { |
|
if (!(0,_isObject_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value)) { |
|
return false; |
|
} |
|
// The use of `Object#toString` avoids issues with the `typeof` operator |
|
// in Safari 9 which returns 'object' for typed arrays and other constructors. |
|
var tag = (0,_baseGetTag_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value); |
|
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isFunction); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/isLength.js": |
|
/*!*********************************************!*\ |
|
!*** ../node_modules/lodash-es/isLength.js ***! |
|
\*********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/** Used as references for various `Number` constants. */ |
|
var MAX_SAFE_INTEGER = 9007199254740991; |
|
|
|
/** |
|
* Checks if `value` is a valid array-like length. |
|
* |
|
* **Note:** This method is loosely based on |
|
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). |
|
* |
|
* @static |
|
* @memberOf _ |
|
* @since 4.0.0 |
|
* @category Lang |
|
* @param {*} value The value to check. |
|
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`. |
|
* @example |
|
* |
|
* _.isLength(3); |
|
* // => true |
|
* |
|
* _.isLength(Number.MIN_VALUE); |
|
* // => false |
|
* |
|
* _.isLength(Infinity); |
|
* // => false |
|
* |
|
* _.isLength('3'); |
|
* // => false |
|
*/ |
|
function isLength(value) { |
|
return typeof value == 'number' && |
|
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isLength); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/isObject.js": |
|
/*!*********************************************!*\ |
|
!*** ../node_modules/lodash-es/isObject.js ***! |
|
\*********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/** |
|
* Checks if `value` is the |
|
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) |
|
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) |
|
* |
|
* @static |
|
* @memberOf _ |
|
* @since 0.1.0 |
|
* @category Lang |
|
* @param {*} value The value to check. |
|
* @returns {boolean} Returns `true` if `value` is an object, else `false`. |
|
* @example |
|
* |
|
* _.isObject({}); |
|
* // => true |
|
* |
|
* _.isObject([1, 2, 3]); |
|
* // => true |
|
* |
|
* _.isObject(_.noop); |
|
* // => true |
|
* |
|
* _.isObject(null); |
|
* // => false |
|
*/ |
|
function isObject(value) { |
|
var type = typeof value; |
|
return value != null && (type == 'object' || type == 'function'); |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isObject); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/isObjectLike.js": |
|
/*!*************************************************!*\ |
|
!*** ../node_modules/lodash-es/isObjectLike.js ***! |
|
\*************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/** |
|
* Checks if `value` is object-like. A value is object-like if it's not `null` |
|
* and has a `typeof` result of "object". |
|
* |
|
* @static |
|
* @memberOf _ |
|
* @since 4.0.0 |
|
* @category Lang |
|
* @param {*} value The value to check. |
|
* @returns {boolean} Returns `true` if `value` is object-like, else `false`. |
|
* @example |
|
* |
|
* _.isObjectLike({}); |
|
* // => true |
|
* |
|
* _.isObjectLike([1, 2, 3]); |
|
* // => true |
|
* |
|
* _.isObjectLike(_.noop); |
|
* // => false |
|
* |
|
* _.isObjectLike(null); |
|
* // => false |
|
*/ |
|
function isObjectLike(value) { |
|
return value != null && typeof value == 'object'; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isObjectLike); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/isTypedArray.js": |
|
/*!*************************************************!*\ |
|
!*** ../node_modules/lodash-es/isTypedArray.js ***! |
|
\*************************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/* harmony import */ var _baseIsTypedArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_baseIsTypedArray.js */ "../node_modules/lodash-es/_baseIsTypedArray.js"); |
|
/* harmony import */ var _baseUnary_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_baseUnary.js */ "../node_modules/lodash-es/_baseUnary.js"); |
|
/* harmony import */ var _nodeUtil_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_nodeUtil.js */ "../node_modules/lodash-es/_nodeUtil.js"); |
|
|
|
|
|
|
|
|
|
/* Node.js helper references. */ |
|
var nodeIsTypedArray = _nodeUtil_js__WEBPACK_IMPORTED_MODULE_0__["default"] && _nodeUtil_js__WEBPACK_IMPORTED_MODULE_0__["default"].isTypedArray; |
|
|
|
/** |
|
* Checks if `value` is classified as a typed array. |
|
* |
|
* @static |
|
* @memberOf _ |
|
* @since 3.0.0 |
|
* @category Lang |
|
* @param {*} value The value to check. |
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`. |
|
* @example |
|
* |
|
* _.isTypedArray(new Uint8Array); |
|
* // => true |
|
* |
|
* _.isTypedArray([]); |
|
* // => false |
|
*/ |
|
var isTypedArray = nodeIsTypedArray ? (0,_baseUnary_js__WEBPACK_IMPORTED_MODULE_1__["default"])(nodeIsTypedArray) : _baseIsTypedArray_js__WEBPACK_IMPORTED_MODULE_2__["default"]; |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isTypedArray); |
|
|
|
|
|
/***/ }), |
|
|
|
/***/ "../node_modules/lodash-es/stubFalse.js": |
|
/*!**********************************************!*\ |
|
!*** ../node_modules/lodash-es/stubFalse.js ***! |
|
\**********************************************/ |
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { |
|
|
|
"use strict"; |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
/* harmony export */ }); |
|
/** |
|
* This method returns `false`. |
|
* |
|
* @static |
|
* @memberOf _ |
|
* @since 4.13.0 |
|
* @category Util |
|
* @returns {boolean} Returns `false`. |
|
* @example |
|
* |
|
* _.times(2, _.stubFalse); |
|
* // => [false, false] |
|
*/ |
|
function stubFalse() { |
|
return false; |
|
} |
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (stubFalse); |
|
|
|
|
|
/***/ }) |
|
|
|
/******/ }); |
|
/************************************************************************/ |
|
/******/ // The module cache |
|
/******/ var __webpack_module_cache__ = {}; |
|
/******/ |
|
/******/ // The require function |
|
/******/ function __webpack_require__(moduleId) { |
|
/******/ // Check if module is in cache |
|
/******/ var cachedModule = __webpack_module_cache__[moduleId]; |
|
/******/ if (cachedModule !== undefined) { |
|
/******/ return cachedModule.exports; |
|
/******/ } |
|
/******/ // Create a new module (and put it into the cache) |
|
/******/ var module = __webpack_module_cache__[moduleId] = { |
|
/******/ id: moduleId, |
|
/******/ // no module.loaded needed |
|
/******/ exports: {} |
|
/******/ }; |
|
/******/ |
|
/******/ // Execute the module function |
|
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); |
|
/******/ |
|
/******/ // Return the exports of the module |
|
/******/ return module.exports; |
|
/******/ } |
|
/******/ |
|
/************************************************************************/ |
|
/******/ /* webpack/runtime/compat get default export */ |
|
/******/ (() => { |
|
/******/ // getDefaultExport function for compatibility with non-harmony modules |
|
/******/ __webpack_require__.n = (module) => { |
|
/******/ var getter = module && module.__esModule ? |
|
/******/ () => (module['default']) : |
|
/******/ () => (module); |
|
/******/ __webpack_require__.d(getter, { a: getter }); |
|
/******/ return getter; |
|
/******/ }; |
|
/******/ })(); |
|
/******/ |
|
/******/ /* webpack/runtime/define property getters */ |
|
/******/ (() => { |
|
/******/ // define getter functions for harmony exports |
|
/******/ __webpack_require__.d = (exports, definition) => { |
|
/******/ for(var key in definition) { |
|
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { |
|
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); |
|
/******/ } |
|
/******/ } |
|
/******/ }; |
|
/******/ })(); |
|
/******/ |
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */ |
|
/******/ (() => { |
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) |
|
/******/ })(); |
|
/******/ |
|
/******/ /* webpack/runtime/make namespace object */ |
|
/******/ (() => { |
|
/******/ // define __esModule on exports |
|
/******/ __webpack_require__.r = (exports) => { |
|
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
|
/******/ } |
|
/******/ Object.defineProperty(exports, '__esModule', { value: true }); |
|
/******/ }; |
|
/******/ })(); |
|
/******/ |
|
/******/ /* webpack/runtime/nonce */ |
|
/******/ (() => { |
|
/******/ __webpack_require__.nc = undefined; |
|
/******/ })(); |
|
/******/ |
|
/************************************************************************/ |
|
var __webpack_exports__ = {}; |
|
// This entry need to be wrapped in an IIFE because it need to be in strict mode. |
|
(() => { |
|
"use strict"; |
|
/*!*******************!*\ |
|
!*** ./module.ts ***! |
|
\*******************/ |
|
__webpack_require__.r(__webpack_exports__); |
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
/* harmony export */ "plugin": () => (/* binding */ plugin) |
|
/* harmony export */ }); |
|
/* harmony import */ var _components_PluginConfigPage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/PluginConfigPage */ "./components/PluginConfigPage/index.tsx"); |
|
/* harmony import */ var _grafana_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @grafana/data */ "@grafana/data"); |
|
/* harmony import */ var _grafana_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_grafana_data__WEBPACK_IMPORTED_MODULE_1__); |
|
|
|
|
|
var plugin = new _grafana_data__WEBPACK_IMPORTED_MODULE_1__.AppPlugin().addConfigPage({ |
|
title: 'Configuration', |
|
icon: 'fa fa-cog', |
|
// @ts-ignore - Would expect a Class component, however works absolutely fine with a functional one |
|
// Implementation: https://github.com/grafana/grafana/blob/fd44c01675e54973370969dfb9e78f173aff7910/public/app/features/plugins/PluginPage.tsx#L157 |
|
body: _components_PluginConfigPage__WEBPACK_IMPORTED_MODULE_0__.PluginConfigPage, |
|
id: 'configuration' |
|
}); |
|
})(); |
|
|
|
/******/ return __webpack_exports__; |
|
/******/ })() |
|
; |
|
});; |
|
//# sourceMappingURL=module.js.map
|