| 1 |
(window["vcvWebpackJsonp4x"] = window["vcvWebpackJsonp4x"] || []).push([["element"],{ |
| 2 |
|
| 3 |
/***/ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js": |
| 4 |
/*!*********************************************************************!*\ |
| 5 |
!*** ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***! |
| 6 |
\*********************************************************************/ |
| 7 |
/*! exports provided: default */ |
| 8 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 9 |
|
| 10 |
"use strict"; |
| 11 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _arrayLikeToArray; });\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js?"); |
| 12 |
|
| 13 |
/***/ }), |
| 14 |
|
| 15 |
/***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js": |
| 16 |
/*!*******************************************************************!*\ |
| 17 |
!*** ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***! |
| 18 |
\*******************************************************************/ |
| 19 |
/*! exports provided: default */ |
| 20 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 21 |
|
| 22 |
"use strict"; |
| 23 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _arrayWithHoles; });\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js?"); |
| 24 |
|
| 25 |
/***/ }), |
| 26 |
|
| 27 |
/***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js": |
| 28 |
/*!**********************************************************************!*\ |
| 29 |
!*** ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js ***! |
| 30 |
\**********************************************************************/ |
| 31 |
/*! exports provided: default */ |
| 32 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 33 |
|
| 34 |
"use strict"; |
| 35 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _arrayWithoutHoles; });\n/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ \"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return Object(_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(arr);\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js?"); |
| 36 |
|
| 37 |
/***/ }), |
| 38 |
|
| 39 |
/***/ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js": |
| 40 |
/*!*********************************************************************!*\ |
| 41 |
!*** ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js ***! |
| 42 |
\*********************************************************************/ |
| 43 |
/*! exports provided: default */ |
| 44 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 45 |
|
| 46 |
"use strict"; |
| 47 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _asyncToGenerator; });\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js?"); |
| 48 |
|
| 49 |
/***/ }), |
| 50 |
|
| 51 |
/***/ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js": |
| 52 |
/*!*******************************************************************!*\ |
| 53 |
!*** ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***! |
| 54 |
\*******************************************************************/ |
| 55 |
/*! exports provided: default */ |
| 56 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 57 |
|
| 58 |
"use strict"; |
| 59 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _classCallCheck; });\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/classCallCheck.js?"); |
| 60 |
|
| 61 |
/***/ }), |
| 62 |
|
| 63 |
/***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js": |
| 64 |
/*!*******************************************************************!*\ |
| 65 |
!*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***! |
| 66 |
\*******************************************************************/ |
| 67 |
/*! exports provided: default */ |
| 68 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 69 |
|
| 70 |
"use strict"; |
| 71 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _defineProperty; });\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/defineProperty.js?"); |
| 72 |
|
| 73 |
/***/ }), |
| 74 |
|
| 75 |
/***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js": |
| 76 |
/*!********************************************************************!*\ |
| 77 |
!*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***! |
| 78 |
\********************************************************************/ |
| 79 |
/*! exports provided: default */ |
| 80 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 81 |
|
| 82 |
"use strict"; |
| 83 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _iterableToArray; });\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/iterableToArray.js?"); |
| 84 |
|
| 85 |
/***/ }), |
| 86 |
|
| 87 |
/***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js": |
| 88 |
/*!*************************************************************************!*\ |
| 89 |
!*** ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js ***! |
| 90 |
\*************************************************************************/ |
| 91 |
/*! exports provided: default */ |
| 92 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 93 |
|
| 94 |
"use strict"; |
| 95 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _iterableToArrayLimit; });\nfunction _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js?"); |
| 96 |
|
| 97 |
/***/ }), |
| 98 |
|
| 99 |
/***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js": |
| 100 |
/*!********************************************************************!*\ |
| 101 |
!*** ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***! |
| 102 |
\********************************************************************/ |
| 103 |
/*! exports provided: default */ |
| 104 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 105 |
|
| 106 |
"use strict"; |
| 107 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _nonIterableRest; });\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js?"); |
| 108 |
|
| 109 |
/***/ }), |
| 110 |
|
| 111 |
/***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js": |
| 112 |
/*!**********************************************************************!*\ |
| 113 |
!*** ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js ***! |
| 114 |
\**********************************************************************/ |
| 115 |
/*! exports provided: default */ |
| 116 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 117 |
|
| 118 |
"use strict"; |
| 119 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _nonIterableSpread; });\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js?"); |
| 120 |
|
| 121 |
/***/ }), |
| 122 |
|
| 123 |
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js": |
| 124 |
/*!****************************************************************************!*\ |
| 125 |
!*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js ***! |
| 126 |
\****************************************************************************/ |
| 127 |
/*! exports provided: default */ |
| 128 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 129 |
|
| 130 |
"use strict"; |
| 131 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _objectWithoutProperties; });\n/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = Object(_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js?"); |
| 132 |
|
| 133 |
/***/ }), |
| 134 |
|
| 135 |
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js": |
| 136 |
/*!*********************************************************************************!*\ |
| 137 |
!*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***! |
| 138 |
\*********************************************************************************/ |
| 139 |
/*! exports provided: default */ |
| 140 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 141 |
|
| 142 |
"use strict"; |
| 143 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _objectWithoutPropertiesLoose; });\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js?"); |
| 144 |
|
| 145 |
/***/ }), |
| 146 |
|
| 147 |
/***/ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js": |
| 148 |
/*!******************************************************************!*\ |
| 149 |
!*** ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js ***! |
| 150 |
\******************************************************************/ |
| 151 |
/*! exports provided: default */ |
| 152 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 153 |
|
| 154 |
"use strict"; |
| 155 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _slicedToArray; });\n/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ \"./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js\");\n/* harmony import */ var _iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArrayLimit.js */ \"./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js\");\n/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ \"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js\");\n/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ \"./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js\");\n\n\n\n\nfunction _slicedToArray(arr, i) {\n return Object(_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(arr) || Object(_iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(arr, i) || Object(_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(arr, i) || Object(_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])();\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/slicedToArray.js?"); |
| 156 |
|
| 157 |
/***/ }), |
| 158 |
|
| 159 |
/***/ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js": |
| 160 |
/*!**********************************************************************!*\ |
| 161 |
!*** ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js ***! |
| 162 |
\**********************************************************************/ |
| 163 |
/*! exports provided: default */ |
| 164 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 165 |
|
| 166 |
"use strict"; |
| 167 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _toConsumableArray; });\n/* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithoutHoles.js */ \"./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js\");\n/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ \"./node_modules/@babel/runtime/helpers/esm/iterableToArray.js\");\n/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ \"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js\");\n/* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableSpread.js */ \"./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js\");\n\n\n\n\nfunction _toConsumableArray(arr) {\n return Object(_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(arr) || Object(_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(arr) || Object(_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(arr) || Object(_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])();\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js?"); |
| 168 |
|
| 169 |
/***/ }), |
| 170 |
|
| 171 |
/***/ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js": |
| 172 |
/*!*******************************************************************************!*\ |
| 173 |
!*** ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***! |
| 174 |
\*******************************************************************************/ |
| 175 |
/*! exports provided: default */ |
| 176 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 177 |
|
| 178 |
"use strict"; |
| 179 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _unsupportedIterableToArray; });\n/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ \"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return Object(_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(o, minLen);\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js?"); |
| 180 |
|
| 181 |
/***/ }), |
| 182 |
|
| 183 |
/***/ "./node_modules/@babel/runtime/regenerator/index.js": |
| 184 |
/*!**********************************************************!*\ |
| 185 |
!*** ./node_modules/@babel/runtime/regenerator/index.js ***! |
| 186 |
\**********************************************************/ |
| 187 |
/*! no static exports found */ |
| 188 |
/***/ (function(module, exports, __webpack_require__) { |
| 189 |
|
| 190 |
eval("module.exports = __webpack_require__(/*! regenerator-runtime */ \"./node_modules/regenerator-runtime/runtime.js\");\n\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/regenerator/index.js?"); |
| 191 |
|
| 192 |
/***/ }), |
| 193 |
|
| 194 |
/***/ "./node_modules/@tannin/compile/index.js": |
| 195 |
/*!***********************************************!*\ |
| 196 |
!*** ./node_modules/@tannin/compile/index.js ***! |
| 197 |
\***********************************************/ |
| 198 |
/*! exports provided: default */ |
| 199 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 200 |
|
| 201 |
"use strict"; |
| 202 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return compile; });\n/* harmony import */ var _tannin_postfix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tannin/postfix */ \"./node_modules/@tannin/postfix/index.js\");\n/* harmony import */ var _tannin_evaluate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tannin/evaluate */ \"./node_modules/@tannin/evaluate/index.js\");\n\n\n\n/**\n * Given a C expression, returns a function which can be called to evaluate its\n * result.\n *\n * @example\n *\n * ```js\n * import compile from '@tannin/compile';\n *\n * const evaluate = compile( 'n > 1' );\n *\n * evaluate( { n: 2 } );\n * // ⇒ true\n * ```\n *\n * @param {string} expression C expression.\n *\n * @return {(variables?:{[variable:string]:*})=>*} Compiled evaluator.\n */\nfunction compile( expression ) {\n\tvar terms = Object(_tannin_postfix__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( expression );\n\n\treturn function( variables ) {\n\t\treturn Object(_tannin_evaluate__WEBPACK_IMPORTED_MODULE_1__[\"default\"])( terms, variables );\n\t};\n}\n\n\n//# sourceURL=webpack:///./node_modules/@tannin/compile/index.js?"); |
| 203 |
|
| 204 |
/***/ }), |
| 205 |
|
| 206 |
/***/ "./node_modules/@tannin/evaluate/index.js": |
| 207 |
/*!************************************************!*\ |
| 208 |
!*** ./node_modules/@tannin/evaluate/index.js ***! |
| 209 |
\************************************************/ |
| 210 |
/*! exports provided: default */ |
| 211 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 212 |
|
| 213 |
"use strict"; |
| 214 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return evaluate; });\n/**\n * Operator callback functions.\n *\n * @type {Object}\n */\nvar OPERATORS = {\n\t'!': function( a ) {\n\t\treturn ! a;\n\t},\n\t'*': function( a, b ) {\n\t\treturn a * b;\n\t},\n\t'/': function( a, b ) {\n\t\treturn a / b;\n\t},\n\t'%': function( a, b ) {\n\t\treturn a % b;\n\t},\n\t'+': function( a, b ) {\n\t\treturn a + b;\n\t},\n\t'-': function( a, b ) {\n\t\treturn a - b;\n\t},\n\t'<': function( a, b ) {\n\t\treturn a < b;\n\t},\n\t'<=': function( a, b ) {\n\t\treturn a <= b;\n\t},\n\t'>': function( a, b ) {\n\t\treturn a > b;\n\t},\n\t'>=': function( a, b ) {\n\t\treturn a >= b;\n\t},\n\t'==': function( a, b ) {\n\t\treturn a === b;\n\t},\n\t'!=': function( a, b ) {\n\t\treturn a !== b;\n\t},\n\t'&&': function( a, b ) {\n\t\treturn a && b;\n\t},\n\t'||': function( a, b ) {\n\t\treturn a || b;\n\t},\n\t'?:': function( a, b, c ) {\n\t\tif ( a ) {\n\t\t\tthrow b;\n\t\t}\n\n\t\treturn c;\n\t},\n};\n\n/**\n * Given an array of postfix terms and operand variables, returns the result of\n * the postfix evaluation.\n *\n * @example\n *\n * ```js\n * import evaluate from '@tannin/evaluate';\n *\n * // 3 + 4 * 5 / 6 ⇒ '3 4 5 * 6 / +'\n * const terms = [ '3', '4', '5', '*', '6', '/', '+' ];\n *\n * evaluate( terms, {} );\n * // ⇒ 6.333333333333334\n * ```\n *\n * @param {string[]} postfix Postfix terms.\n * @param {Object} variables Operand variables.\n *\n * @return {*} Result of evaluation.\n */\nfunction evaluate( postfix, variables ) {\n\tvar stack = [],\n\t\ti, j, args, getOperatorResult, term, value;\n\n\tfor ( i = 0; i < postfix.length; i++ ) {\n\t\tterm = postfix[ i ];\n\n\t\tgetOperatorResult = OPERATORS[ term ];\n\t\tif ( getOperatorResult ) {\n\t\t\t// Pop from stack by number of function arguments.\n\t\t\tj = getOperatorResult.length;\n\t\t\targs = Array( j );\n\t\t\twhile ( j-- ) {\n\t\t\t\targs[ j ] = stack.pop();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tvalue = getOperatorResult.apply( null, args );\n\t\t\t} catch ( earlyReturn ) {\n\t\t\t\treturn earlyReturn;\n\t\t\t}\n\t\t} else if ( variables.hasOwnProperty( term ) ) {\n\t\t\tvalue = variables[ term ];\n\t\t} else {\n\t\t\tvalue = +term;\n\t\t}\n\n\t\tstack.push( value );\n\t}\n\n\treturn stack[ 0 ];\n}\n\n\n//# sourceURL=webpack:///./node_modules/@tannin/evaluate/index.js?"); |
| 215 |
|
| 216 |
/***/ }), |
| 217 |
|
| 218 |
/***/ "./node_modules/@tannin/plural-forms/index.js": |
| 219 |
/*!****************************************************!*\ |
| 220 |
!*** ./node_modules/@tannin/plural-forms/index.js ***! |
| 221 |
\****************************************************/ |
| 222 |
/*! exports provided: default */ |
| 223 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 224 |
|
| 225 |
"use strict"; |
| 226 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return pluralForms; });\n/* harmony import */ var _tannin_compile__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tannin/compile */ \"./node_modules/@tannin/compile/index.js\");\n\n\n/**\n * Given a C expression, returns a function which, when called with a value,\n * evaluates the result with the value assumed to be the \"n\" variable of the\n * expression. The result will be coerced to its numeric equivalent.\n *\n * @param {string} expression C expression.\n *\n * @return {Function} Evaluator function.\n */\nfunction pluralForms( expression ) {\n\tvar evaluate = Object(_tannin_compile__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( expression );\n\n\treturn function( n ) {\n\t\treturn +evaluate( { n: n } );\n\t};\n}\n\n\n//# sourceURL=webpack:///./node_modules/@tannin/plural-forms/index.js?"); |
| 227 |
|
| 228 |
/***/ }), |
| 229 |
|
| 230 |
/***/ "./node_modules/@tannin/postfix/index.js": |
| 231 |
/*!***********************************************!*\ |
| 232 |
!*** ./node_modules/@tannin/postfix/index.js ***! |
| 233 |
\***********************************************/ |
| 234 |
/*! exports provided: default */ |
| 235 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 236 |
|
| 237 |
"use strict"; |
| 238 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return postfix; });\nvar PRECEDENCE, OPENERS, TERMINATORS, PATTERN;\n\n/**\n * Operator precedence mapping.\n *\n * @type {Object}\n */\nPRECEDENCE = {\n\t'(': 9,\n\t'!': 8,\n\t'*': 7,\n\t'/': 7,\n\t'%': 7,\n\t'+': 6,\n\t'-': 6,\n\t'<': 5,\n\t'<=': 5,\n\t'>': 5,\n\t'>=': 5,\n\t'==': 4,\n\t'!=': 4,\n\t'&&': 3,\n\t'||': 2,\n\t'?': 1,\n\t'?:': 1,\n};\n\n/**\n * Characters which signal pair opening, to be terminated by terminators.\n *\n * @type {string[]}\n */\nOPENERS = [ '(', '?' ];\n\n/**\n * Characters which signal pair termination, the value an array with the\n * opener as its first member. The second member is an optional operator\n * replacement to push to the stack.\n *\n * @type {string[]}\n */\nTERMINATORS = {\n\t')': [ '(' ],\n\t':': [ '?', '?:' ],\n};\n\n/**\n * Pattern matching operators and openers.\n *\n * @type {RegExp}\n */\nPATTERN = /<=|>=|==|!=|&&|\\|\\||\\?:|\\(|!|\\*|\\/|%|\\+|-|<|>|\\?|\\)|:/;\n\n/**\n * Given a C expression, returns the equivalent postfix (Reverse Polish)\n * notation terms as an array.\n *\n * If a postfix string is desired, simply `.join( ' ' )` the result.\n *\n * @example\n *\n * ```js\n * import postfix from '@tannin/postfix';\n *\n * postfix( 'n > 1' );\n * // ⇒ [ 'n', '1', '>' ]\n * ```\n *\n * @param {string} expression C expression.\n *\n * @return {string[]} Postfix terms.\n */\nfunction postfix( expression ) {\n\tvar terms = [],\n\t\tstack = [],\n\t\tmatch, operator, term, element;\n\n\twhile ( ( match = expression.match( PATTERN ) ) ) {\n\t\toperator = match[ 0 ];\n\n\t\t// Term is the string preceding the operator match. It may contain\n\t\t// whitespace, and may be empty (if operator is at beginning).\n\t\tterm = expression.substr( 0, match.index ).trim();\n\t\tif ( term ) {\n\t\t\tterms.push( term );\n\t\t}\n\n\t\twhile ( ( element = stack.pop() ) ) {\n\t\t\tif ( TERMINATORS[ operator ] ) {\n\t\t\t\tif ( TERMINATORS[ operator ][ 0 ] === element ) {\n\t\t\t\t\t// Substitution works here under assumption that because\n\t\t\t\t\t// the assigned operator will no longer be a terminator, it\n\t\t\t\t\t// will be pushed to the stack during the condition below.\n\t\t\t\t\toperator = TERMINATORS[ operator ][ 1 ] || operator;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if ( OPENERS.indexOf( element ) >= 0 || PRECEDENCE[ element ] < PRECEDENCE[ operator ] ) {\n\t\t\t\t// Push to stack if either an opener or when pop reveals an\n\t\t\t\t// element of lower precedence.\n\t\t\t\tstack.push( element );\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// For each popped from stack, push to terms.\n\t\t\tterms.push( element );\n\t\t}\n\n\t\tif ( ! TERMINATORS[ operator ] ) {\n\t\t\tstack.push( operator );\n\t\t}\n\n\t\t// Slice matched fragment from expression to continue match.\n\t\texpression = expression.substr( match.index + operator.length );\n\t}\n\n\t// Push remainder of operand, if exists, to terms.\n\texpression = expression.trim();\n\tif ( expression ) {\n\t\tterms.push( expression );\n\t}\n\n\t// Pop remaining items from stack into terms.\n\treturn terms.concat( stack.reverse() );\n}\n\n\n//# sourceURL=webpack:///./node_modules/@tannin/postfix/index.js?"); |
| 239 |
|
| 240 |
/***/ }), |
| 241 |
|
| 242 |
/***/ "./node_modules/@wordpress/api-fetch/build-module/index.js": |
| 243 |
/*!*****************************************************************!*\ |
| 244 |
!*** ./node_modules/@wordpress/api-fetch/build-module/index.js ***! |
| 245 |
\*****************************************************************/ |
| 246 |
/*! exports provided: default */ |
| 247 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 248 |
|
| 249 |
"use strict"; |
| 250 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"./node_modules/@wordpress/i18n/build-module/index.js\");\n/* harmony import */ var _middlewares_nonce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./middlewares/nonce */ \"./node_modules/@wordpress/api-fetch/build-module/middlewares/nonce.js\");\n/* harmony import */ var _middlewares_root_url__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./middlewares/root-url */ \"./node_modules/@wordpress/api-fetch/build-module/middlewares/root-url.js\");\n/* harmony import */ var _middlewares_preloading__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./middlewares/preloading */ \"./node_modules/@wordpress/api-fetch/build-module/middlewares/preloading.js\");\n/* harmony import */ var _middlewares_fetch_all_middleware__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./middlewares/fetch-all-middleware */ \"./node_modules/@wordpress/api-fetch/build-module/middlewares/fetch-all-middleware.js\");\n/* harmony import */ var _middlewares_namespace_endpoint__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./middlewares/namespace-endpoint */ \"./node_modules/@wordpress/api-fetch/build-module/middlewares/namespace-endpoint.js\");\n/* harmony import */ var _middlewares_http_v1__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./middlewares/http-v1 */ \"./node_modules/@wordpress/api-fetch/build-module/middlewares/http-v1.js\");\n/* harmony import */ var _middlewares_user_locale__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./middlewares/user-locale */ \"./node_modules/@wordpress/api-fetch/build-module/middlewares/user-locale.js\");\n/* harmony import */ var _middlewares_media_upload__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./middlewares/media-upload */ \"./node_modules/@wordpress/api-fetch/build-module/middlewares/media-upload.js\");\n/* harmony import */ var _utils_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/response */ \"./node_modules/@wordpress/api-fetch/build-module/utils/response.js\");\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * WordPress dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\n\n/**\n * Default set of header values which should be sent with every request unless\n * explicitly provided through apiFetch options.\n *\n * @type {Object}\n */\n\nvar DEFAULT_HEADERS = {\n // The backend uses the Accept header as a condition for considering an\n // incoming request as a REST request.\n //\n // See: https://core.trac.wordpress.org/ticket/44534\n Accept: 'application/json, */*;q=0.1'\n};\n/**\n * Default set of fetch option values which should be sent with every request\n * unless explicitly provided through apiFetch options.\n *\n * @type {Object}\n */\n\nvar DEFAULT_OPTIONS = {\n credentials: 'include'\n};\nvar middlewares = [_middlewares_user_locale__WEBPACK_IMPORTED_MODULE_9__[\"default\"], _middlewares_namespace_endpoint__WEBPACK_IMPORTED_MODULE_7__[\"default\"], _middlewares_http_v1__WEBPACK_IMPORTED_MODULE_8__[\"default\"], _middlewares_fetch_all_middleware__WEBPACK_IMPORTED_MODULE_6__[\"default\"]];\n\nfunction registerMiddleware(middleware) {\n middlewares.unshift(middleware);\n}\n\nvar checkStatus = function checkStatus(response) {\n if (response.status >= 200 && response.status < 300) {\n return response;\n }\n\n throw response;\n};\n\nvar defaultFetchHandler = function defaultFetchHandler(nextOptions) {\n var url = nextOptions.url,\n path = nextOptions.path,\n data = nextOptions.data,\n _nextOptions$parse = nextOptions.parse,\n parse = _nextOptions$parse === void 0 ? true : _nextOptions$parse,\n remainingOptions = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(nextOptions, [\"url\", \"path\", \"data\", \"parse\"]);\n\n var body = nextOptions.body,\n headers = nextOptions.headers; // Merge explicitly-provided headers with default values.\n\n headers = _objectSpread(_objectSpread({}, DEFAULT_HEADERS), headers); // The `data` property is a shorthand for sending a JSON body.\n\n if (data) {\n body = JSON.stringify(data);\n headers['Content-Type'] = 'application/json';\n }\n\n var responsePromise = window.fetch(url || path, _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_OPTIONS), remainingOptions), {}, {\n body: body,\n headers: headers\n }));\n return responsePromise // Return early if fetch errors. If fetch error, there is most likely no\n // network connection. Unfortunately fetch just throws a TypeError and\n // the message might depend on the browser.\n .then(function (value) {\n return Promise.resolve(value).then(checkStatus).catch(function (response) {\n return Object(_utils_response__WEBPACK_IMPORTED_MODULE_11__[\"parseAndThrowError\"])(response, parse);\n }).then(function (response) {\n return Object(_utils_response__WEBPACK_IMPORTED_MODULE_11__[\"parseResponseAndNormalizeError\"])(response, parse);\n });\n }, function () {\n throw {\n code: 'fetch_error',\n message: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('You are probably offline.')\n };\n });\n};\n\nvar fetchHandler = defaultFetchHandler;\n/**\n * Defines a custom fetch handler for making the requests that will override\n * the default one using window.fetch\n *\n * @param {Function} newFetchHandler The new fetch handler\n */\n\nfunction setFetchHandler(newFetchHandler) {\n fetchHandler = newFetchHandler;\n}\n\nfunction apiFetch(options) {\n // creates a nested function chain that calls all middlewares and finally the `fetchHandler`,\n // converting `middlewares = [ m1, m2, m3 ]` into:\n // ```\n // opts1 => m1( opts1, opts2 => m2( opts2, opts3 => m3( opts3, fetchHandler ) ) );\n // ```\n var enhancedHandler = middlewares.reduceRight(function (next, middleware) {\n return function (workingOptions) {\n return middleware(workingOptions, next);\n };\n }, fetchHandler);\n return enhancedHandler(options).catch(function (error) {\n if (error.code !== 'rest_cookie_invalid_nonce') {\n return Promise.reject(error);\n } // If the nonce is invalid, refresh it and try again.\n\n\n return window.fetch(apiFetch.nonceEndpoint).then(checkStatus).then(function (data) {\n return data.text();\n }).then(function (text) {\n apiFetch.nonceMiddleware.nonce = text;\n return apiFetch(options);\n });\n });\n}\n\napiFetch.use = registerMiddleware;\napiFetch.setFetchHandler = setFetchHandler;\napiFetch.createNonceMiddleware = _middlewares_nonce__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\napiFetch.createPreloadingMiddleware = _middlewares_preloading__WEBPACK_IMPORTED_MODULE_5__[\"default\"];\napiFetch.createRootURLMiddleware = _middlewares_root_url__WEBPACK_IMPORTED_MODULE_4__[\"default\"];\napiFetch.fetchAllMiddleware = _middlewares_fetch_all_middleware__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\napiFetch.mediaUploadMiddleware = _middlewares_media_upload__WEBPACK_IMPORTED_MODULE_10__[\"default\"];\n/* harmony default export */ __webpack_exports__[\"default\"] = (apiFetch);\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/api-fetch/build-module/index.js?"); |
| 251 |
|
| 252 |
/***/ }), |
| 253 |
|
| 254 |
/***/ "./node_modules/@wordpress/api-fetch/build-module/middlewares/fetch-all-middleware.js": |
| 255 |
/*!********************************************************************************************!*\ |
| 256 |
!*** ./node_modules/@wordpress/api-fetch/build-module/middlewares/fetch-all-middleware.js ***! |
| 257 |
\********************************************************************************************/ |
| 258 |
/*! exports provided: default */ |
| 259 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 260 |
|
| 261 |
"use strict"; |
| 262 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\");\n/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/url */ \"./node_modules/@wordpress/url/build-module/index.js\");\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! .. */ \"./node_modules/@wordpress/api-fetch/build-module/index.js\");\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * WordPress dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n // Apply query arguments to both URL and Path, whichever is present.\n\nvar modifyQuery = function modifyQuery(_ref, queryArgs) {\n var path = _ref.path,\n url = _ref.url,\n options = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(_ref, [\"path\", \"url\"]);\n\n return _objectSpread(_objectSpread({}, options), {}, {\n url: url && Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_4__[\"addQueryArgs\"])(url, queryArgs),\n path: path && Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_4__[\"addQueryArgs\"])(path, queryArgs)\n });\n}; // Duplicates parsing functionality from apiFetch.\n\n\nvar parseResponse = function parseResponse(response) {\n return response.json ? response.json() : Promise.reject(response);\n};\n\nvar parseLinkHeader = function parseLinkHeader(linkHeader) {\n if (!linkHeader) {\n return {};\n }\n\n var match = linkHeader.match(/<([^>]+)>; rel=\"next\"/);\n return match ? {\n next: match[1]\n } : {};\n};\n\nvar getNextPageUrl = function getNextPageUrl(response) {\n var _parseLinkHeader = parseLinkHeader(response.headers.get('link')),\n next = _parseLinkHeader.next;\n\n return next;\n};\n\nvar requestContainsUnboundedQuery = function requestContainsUnboundedQuery(options) {\n var pathIsUnbounded = options.path && options.path.indexOf('per_page=-1') !== -1;\n var urlIsUnbounded = options.url && options.url.indexOf('per_page=-1') !== -1;\n return pathIsUnbounded || urlIsUnbounded;\n}; // The REST API enforces an upper limit on the per_page option. To handle large\n// collections, apiFetch consumers can pass `per_page=-1`; this middleware will\n// then recursively assemble a full response array from all available pages.\n\n\nvar fetchAllMiddleware = /*#__PURE__*/function () {\n var _ref2 = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__[\"default\"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(options, next) {\n var response, results, nextPage, mergedResults, nextResponse, nextResults;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!(options.parse === false)) {\n _context.next = 2;\n break;\n }\n\n return _context.abrupt(\"return\", next(options));\n\n case 2:\n if (requestContainsUnboundedQuery(options)) {\n _context.next = 4;\n break;\n }\n\n return _context.abrupt(\"return\", next(options));\n\n case 4:\n _context.next = 6;\n return Object(___WEBPACK_IMPORTED_MODULE_5__[\"default\"])(_objectSpread(_objectSpread({}, modifyQuery(options, {\n per_page: 100\n })), {}, {\n // Ensure headers are returned for page 1.\n parse: false\n }));\n\n case 6:\n response = _context.sent;\n _context.next = 9;\n return parseResponse(response);\n\n case 9:\n results = _context.sent;\n\n if (Array.isArray(results)) {\n _context.next = 12;\n break;\n }\n\n return _context.abrupt(\"return\", results);\n\n case 12:\n nextPage = getNextPageUrl(response);\n\n if (nextPage) {\n _context.next = 15;\n break;\n }\n\n return _context.abrupt(\"return\", results);\n\n case 15:\n // Iteratively fetch all remaining pages until no \"next\" header is found.\n mergedResults = [].concat(results);\n\n case 16:\n if (!nextPage) {\n _context.next = 27;\n break;\n }\n\n _context.next = 19;\n return Object(___WEBPACK_IMPORTED_MODULE_5__[\"default\"])(_objectSpread(_objectSpread({}, options), {}, {\n // Ensure the URL for the next page is used instead of any provided path.\n path: undefined,\n url: nextPage,\n // Ensure we still get headers so we can identify the next page.\n parse: false\n }));\n\n case 19:\n nextResponse = _context.sent;\n _context.next = 22;\n return parseResponse(nextResponse);\n\n case 22:\n nextResults = _context.sent;\n mergedResults = mergedResults.concat(nextResults);\n nextPage = getNextPageUrl(nextResponse);\n _context.next = 16;\n break;\n\n case 27:\n return _context.abrupt(\"return\", mergedResults);\n\n case 28:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function fetchAllMiddleware(_x, _x2) {\n return _ref2.apply(this, arguments);\n };\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (fetchAllMiddleware);\n//# sourceMappingURL=fetch-all-middleware.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/api-fetch/build-module/middlewares/fetch-all-middleware.js?"); |
| 263 |
|
| 264 |
/***/ }), |
| 265 |
|
| 266 |
/***/ "./node_modules/@wordpress/api-fetch/build-module/middlewares/http-v1.js": |
| 267 |
/*!*******************************************************************************!*\ |
| 268 |
!*** ./node_modules/@wordpress/api-fetch/build-module/middlewares/http-v1.js ***! |
| 269 |
\*******************************************************************************/ |
| 270 |
/*! exports provided: default */ |
| 271 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 272 |
|
| 273 |
"use strict"; |
| 274 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * Set of HTTP methods which are eligible to be overridden.\n *\n * @type {Set}\n */\nvar OVERRIDE_METHODS = new Set(['PATCH', 'PUT', 'DELETE']);\n/**\n * Default request method.\n *\n * \"A request has an associated method (a method). Unless stated otherwise it\n * is `GET`.\"\n *\n * @see https://fetch.spec.whatwg.org/#requests\n *\n * @type {string}\n */\n\nvar DEFAULT_METHOD = 'GET';\n/**\n * API Fetch middleware which overrides the request method for HTTP v1\n * compatibility leveraging the REST API X-HTTP-Method-Override header.\n *\n * @param {Object} options Fetch options.\n * @param {Function} next [description]\n *\n * @return {*} The evaluated result of the remaining middleware chain.\n */\n\nfunction httpV1Middleware(options, next) {\n var _options = options,\n _options$method = _options.method,\n method = _options$method === void 0 ? DEFAULT_METHOD : _options$method;\n\n if (OVERRIDE_METHODS.has(method.toUpperCase())) {\n options = _objectSpread(_objectSpread({}, options), {}, {\n headers: _objectSpread(_objectSpread({}, options.headers), {}, {\n 'X-HTTP-Method-Override': method,\n 'Content-Type': 'application/json'\n }),\n method: 'POST'\n });\n }\n\n return next(options);\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (httpV1Middleware);\n//# sourceMappingURL=http-v1.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/api-fetch/build-module/middlewares/http-v1.js?"); |
| 275 |
|
| 276 |
/***/ }), |
| 277 |
|
| 278 |
/***/ "./node_modules/@wordpress/api-fetch/build-module/middlewares/media-upload.js": |
| 279 |
/*!************************************************************************************!*\ |
| 280 |
!*** ./node_modules/@wordpress/api-fetch/build-module/middlewares/media-upload.js ***! |
| 281 |
\************************************************************************************/ |
| 282 |
/*! exports provided: default */ |
| 283 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 284 |
|
| 285 |
"use strict"; |
| 286 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"./node_modules/@wordpress/i18n/build-module/index.js\");\n/* harmony import */ var _utils_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/response */ \"./node_modules/@wordpress/api-fetch/build-module/utils/response.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * WordPress dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\n/**\n * Middleware handling media upload failures and retries.\n *\n * @param {Object} options Fetch options.\n * @param {Function} next [description]\n *\n * @return {*} The evaluated result of the remaining middleware chain.\n */\n\nfunction mediaUploadMiddleware(options, next) {\n var isMediaUploadRequest = options.path && options.path.indexOf('/wp/v2/media') !== -1 || options.url && options.url.indexOf('/wp/v2/media') !== -1;\n\n if (!isMediaUploadRequest) {\n return next(options, next);\n }\n\n var retries = 0;\n var maxRetries = 5;\n\n var postProcess = function postProcess(attachmentId) {\n retries++;\n return next({\n path: \"/wp/v2/media/\".concat(attachmentId, \"/post-process\"),\n method: 'POST',\n data: {\n action: 'create-image-subsizes'\n },\n parse: false\n }).catch(function () {\n if (retries < maxRetries) {\n return postProcess(attachmentId);\n }\n\n next({\n path: \"/wp/v2/media/\".concat(attachmentId, \"?force=true\"),\n method: 'DELETE'\n });\n return Promise.reject();\n });\n };\n\n return next(_objectSpread(_objectSpread({}, options), {}, {\n parse: false\n })).catch(function (response) {\n var attachmentId = response.headers.get('x-wp-upload-attachment-id');\n\n if (response.status >= 500 && response.status < 600 && attachmentId) {\n return postProcess(attachmentId).catch(function () {\n if (options.parse !== false) {\n return Promise.reject({\n code: 'post_process',\n message: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Media upload failed. If this is a photo or a large image, please scale it down and try again.')\n });\n }\n\n return Promise.reject(response);\n });\n }\n\n return Object(_utils_response__WEBPACK_IMPORTED_MODULE_2__[\"parseAndThrowError\"])(response, options.parse);\n }).then(function (response) {\n return Object(_utils_response__WEBPACK_IMPORTED_MODULE_2__[\"parseResponseAndNormalizeError\"])(response, options.parse);\n });\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (mediaUploadMiddleware);\n//# sourceMappingURL=media-upload.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/api-fetch/build-module/middlewares/media-upload.js?"); |
| 287 |
|
| 288 |
/***/ }), |
| 289 |
|
| 290 |
/***/ "./node_modules/@wordpress/api-fetch/build-module/middlewares/namespace-endpoint.js": |
| 291 |
/*!******************************************************************************************!*\ |
| 292 |
!*** ./node_modules/@wordpress/api-fetch/build-module/middlewares/namespace-endpoint.js ***! |
| 293 |
\******************************************************************************************/ |
| 294 |
/*! exports provided: default */ |
| 295 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 296 |
|
| 297 |
"use strict"; |
| 298 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar namespaceAndEndpointMiddleware = function namespaceAndEndpointMiddleware(options, next) {\n var path = options.path;\n var namespaceTrimmed, endpointTrimmed;\n\n if (typeof options.namespace === 'string' && typeof options.endpoint === 'string') {\n namespaceTrimmed = options.namespace.replace(/^\\/|\\/$/g, '');\n endpointTrimmed = options.endpoint.replace(/^\\//, '');\n\n if (endpointTrimmed) {\n path = namespaceTrimmed + '/' + endpointTrimmed;\n } else {\n path = namespaceTrimmed;\n }\n }\n\n delete options.namespace;\n delete options.endpoint;\n return next(_objectSpread(_objectSpread({}, options), {}, {\n path: path\n }));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (namespaceAndEndpointMiddleware);\n//# sourceMappingURL=namespace-endpoint.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/api-fetch/build-module/middlewares/namespace-endpoint.js?"); |
| 299 |
|
| 300 |
/***/ }), |
| 301 |
|
| 302 |
/***/ "./node_modules/@wordpress/api-fetch/build-module/middlewares/nonce.js": |
| 303 |
/*!*****************************************************************************!*\ |
| 304 |
!*** ./node_modules/@wordpress/api-fetch/build-module/middlewares/nonce.js ***! |
| 305 |
\*****************************************************************************/ |
| 306 |
/*! exports provided: default */ |
| 307 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 308 |
|
| 309 |
"use strict"; |
| 310 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction createNonceMiddleware(nonce) {\n function middleware(options, next) {\n var _options$headers = options.headers,\n headers = _options$headers === void 0 ? {} : _options$headers; // If an 'X-WP-Nonce' header (or any case-insensitive variation\n // thereof) was specified, no need to add a nonce header.\n\n for (var headerName in headers) {\n if (headerName.toLowerCase() === 'x-wp-nonce' && headers[headerName] === middleware.nonce) {\n return next(options);\n }\n }\n\n return next(_objectSpread(_objectSpread({}, options), {}, {\n headers: _objectSpread(_objectSpread({}, headers), {}, {\n 'X-WP-Nonce': middleware.nonce\n })\n }));\n }\n\n middleware.nonce = nonce;\n return middleware;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createNonceMiddleware);\n//# sourceMappingURL=nonce.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/api-fetch/build-module/middlewares/nonce.js?"); |
| 311 |
|
| 312 |
/***/ }), |
| 313 |
|
| 314 |
/***/ "./node_modules/@wordpress/api-fetch/build-module/middlewares/preloading.js": |
| 315 |
/*!**********************************************************************************!*\ |
| 316 |
!*** ./node_modules/@wordpress/api-fetch/build-module/middlewares/preloading.js ***! |
| 317 |
\**********************************************************************************/ |
| 318 |
/*! exports provided: getStablePath, default */ |
| 319 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 320 |
|
| 321 |
"use strict"; |
| 322 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getStablePath\", function() { return getStablePath; });\n/**\n * Given a path, returns a normalized path where equal query parameter values\n * will be treated as identical, regardless of order they appear in the original\n * text.\n *\n * @param {string} path Original path.\n *\n * @return {string} Normalized path.\n */\nfunction getStablePath(path) {\n var splitted = path.split('?');\n var query = splitted[1];\n var base = splitted[0];\n\n if (!query) {\n return base;\n } // 'b=1&c=2&a=5'\n\n\n return base + '?' + query // [ 'b=1', 'c=2', 'a=5' ]\n .split('&') // [ [ 'b, '1' ], [ 'c', '2' ], [ 'a', '5' ] ]\n .map(function (entry) {\n return entry.split('=');\n }) // [ [ 'a', '5' ], [ 'b, '1' ], [ 'c', '2' ] ]\n .sort(function (a, b) {\n return a[0].localeCompare(b[0]);\n }) // [ 'a=5', 'b=1', 'c=2' ]\n .map(function (pair) {\n return pair.join('=');\n }) // 'a=5&b=1&c=2'\n .join('&');\n}\n\nfunction createPreloadingMiddleware(preloadedData) {\n var cache = Object.keys(preloadedData).reduce(function (result, path) {\n result[getStablePath(path)] = preloadedData[path];\n return result;\n }, {});\n return function (options, next) {\n var _options$parse = options.parse,\n parse = _options$parse === void 0 ? true : _options$parse;\n\n if (typeof options.path === 'string') {\n var method = options.method || 'GET';\n var path = getStablePath(options.path);\n\n if ('GET' === method && cache[path]) {\n var cacheData = cache[path]; // Unsetting the cache key ensures that the data is only preloaded a single time\n\n delete cache[path];\n return Promise.resolve(parse ? cacheData.body : new window.Response(JSON.stringify(cacheData.body), {\n status: 200,\n statusText: 'OK',\n headers: cacheData.headers\n }));\n } else if ('OPTIONS' === method && cache[method] && cache[method][path]) {\n return Promise.resolve(cache[method][path]);\n }\n }\n\n return next(options);\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createPreloadingMiddleware);\n//# sourceMappingURL=preloading.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/api-fetch/build-module/middlewares/preloading.js?"); |
| 323 |
|
| 324 |
/***/ }), |
| 325 |
|
| 326 |
/***/ "./node_modules/@wordpress/api-fetch/build-module/middlewares/root-url.js": |
| 327 |
/*!********************************************************************************!*\ |
| 328 |
!*** ./node_modules/@wordpress/api-fetch/build-module/middlewares/root-url.js ***! |
| 329 |
\********************************************************************************/ |
| 330 |
/*! exports provided: default */ |
| 331 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 332 |
|
| 333 |
"use strict"; |
| 334 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var _namespace_endpoint__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./namespace-endpoint */ \"./node_modules/@wordpress/api-fetch/build-module/middlewares/namespace-endpoint.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * Internal dependencies\n */\n\n\nvar createRootURLMiddleware = function createRootURLMiddleware(rootURL) {\n return function (options, next) {\n return Object(_namespace_endpoint__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(options, function (optionsWithPath) {\n var url = optionsWithPath.url;\n var path = optionsWithPath.path;\n var apiRoot;\n\n if (typeof path === 'string') {\n apiRoot = rootURL;\n\n if (-1 !== rootURL.indexOf('?')) {\n path = path.replace('?', '&');\n }\n\n path = path.replace(/^\\//, ''); // API root may already include query parameter prefix if site is\n // configured to use plain permalinks.\n\n if ('string' === typeof apiRoot && -1 !== apiRoot.indexOf('?')) {\n path = path.replace('?', '&');\n }\n\n url = apiRoot + path;\n }\n\n return next(_objectSpread(_objectSpread({}, optionsWithPath), {}, {\n url: url\n }));\n });\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createRootURLMiddleware);\n//# sourceMappingURL=root-url.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/api-fetch/build-module/middlewares/root-url.js?"); |
| 335 |
|
| 336 |
/***/ }), |
| 337 |
|
| 338 |
/***/ "./node_modules/@wordpress/api-fetch/build-module/middlewares/user-locale.js": |
| 339 |
/*!***********************************************************************************!*\ |
| 340 |
!*** ./node_modules/@wordpress/api-fetch/build-module/middlewares/user-locale.js ***! |
| 341 |
\***********************************************************************************/ |
| 342 |
/*! exports provided: default */ |
| 343 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 344 |
|
| 345 |
"use strict"; |
| 346 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/url */ \"./node_modules/@wordpress/url/build-module/index.js\");\n/**\n * WordPress dependencies\n */\n\n\nfunction userLocaleMiddleware(options, next) {\n if (typeof options.url === 'string' && !Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_0__[\"hasQueryArg\"])(options.url, '_locale')) {\n options.url = Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_0__[\"addQueryArgs\"])(options.url, {\n _locale: 'user'\n });\n }\n\n if (typeof options.path === 'string' && !Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_0__[\"hasQueryArg\"])(options.path, '_locale')) {\n options.path = Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_0__[\"addQueryArgs\"])(options.path, {\n _locale: 'user'\n });\n }\n\n return next(options);\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (userLocaleMiddleware);\n//# sourceMappingURL=user-locale.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/api-fetch/build-module/middlewares/user-locale.js?"); |
| 347 |
|
| 348 |
/***/ }), |
| 349 |
|
| 350 |
/***/ "./node_modules/@wordpress/api-fetch/build-module/utils/response.js": |
| 351 |
/*!**************************************************************************!*\ |
| 352 |
!*** ./node_modules/@wordpress/api-fetch/build-module/utils/response.js ***! |
| 353 |
\**************************************************************************/ |
| 354 |
/*! exports provided: parseResponseAndNormalizeError, parseAndThrowError */ |
| 355 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 356 |
|
| 357 |
"use strict"; |
| 358 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseResponseAndNormalizeError\", function() { return parseResponseAndNormalizeError; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseAndThrowError\", function() { return parseAndThrowError; });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"./node_modules/@wordpress/i18n/build-module/index.js\");\n/**\n * WordPress dependencies\n */\n\n/**\n * Parses the apiFetch response.\n *\n * @param {Response} response\n * @param {boolean} shouldParseResponse\n *\n * @return {Promise} Parsed response\n */\n\nvar parseResponse = function parseResponse(response) {\n var shouldParseResponse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (shouldParseResponse) {\n if (response.status === 204) {\n return null;\n }\n\n return response.json ? response.json() : Promise.reject(response);\n }\n\n return response;\n};\n\nvar parseJsonAndNormalizeError = function parseJsonAndNormalizeError(response) {\n var invalidJsonError = {\n code: 'invalid_json',\n message: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('The response is not a valid JSON response.')\n };\n\n if (!response || !response.json) {\n throw invalidJsonError;\n }\n\n return response.json().catch(function () {\n throw invalidJsonError;\n });\n};\n/**\n * Parses the apiFetch response properly and normalize response errors.\n *\n * @param {Response} response\n * @param {boolean} shouldParseResponse\n *\n * @return {Promise} Parsed response.\n */\n\n\nvar parseResponseAndNormalizeError = function parseResponseAndNormalizeError(response) {\n var shouldParseResponse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n return Promise.resolve(parseResponse(response, shouldParseResponse)).catch(function (res) {\n return parseAndThrowError(res, shouldParseResponse);\n });\n};\nfunction parseAndThrowError(response) {\n var shouldParseResponse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (!shouldParseResponse) {\n throw response;\n }\n\n return parseJsonAndNormalizeError(response).then(function (error) {\n var unknownError = {\n code: 'unknown_error',\n message: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('An unknown error occurred.')\n };\n throw error || unknownError;\n });\n}\n//# sourceMappingURL=response.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/api-fetch/build-module/utils/response.js?"); |
| 359 |
|
| 360 |
/***/ }), |
| 361 |
|
| 362 |
/***/ "./node_modules/@wordpress/hooks/build-module/createAddHook.js": |
| 363 |
/*!*********************************************************************!*\ |
| 364 |
!*** ./node_modules/@wordpress/hooks/build-module/createAddHook.js ***! |
| 365 |
\*********************************************************************/ |
| 366 |
/*! exports provided: default */ |
| 367 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 368 |
|
| 369 |
"use strict"; |
| 370 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateNamespace.js */ \"./node_modules/@wordpress/hooks/build-module/validateNamespace.js\");\n/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validateHookName.js */ \"./node_modules/@wordpress/hooks/build-module/validateHookName.js\");\n/**\n * Internal dependencies\n */\n\n\n/**\n * @callback AddHook\n *\n * Adds the hook to the appropriate hooks container.\n *\n * @param {string} hookName Name of hook to add\n * @param {string} namespace The unique namespace identifying the callback in the form `vendor/plugin/function`.\n * @param {import('.').Callback} callback Function to call when the hook is run\n * @param {number} [priority=10] Priority of this hook\n */\n\n/**\n * Returns a function which, when invoked, will add a hook.\n *\n * @param {import('.').Hooks} hooks Hooks instance.\n * @param {import('.').StoreKey} storeKey\n *\n * @return {AddHook} Function that adds a new hook.\n */\n\nfunction createAddHook(hooks, storeKey) {\n return function addHook(hookName, namespace, callback) {\n var priority = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 10;\n var hooksStore = hooks[storeKey];\n\n if (!Object(_validateHookName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(hookName)) {\n return;\n }\n\n if (!Object(_validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(namespace)) {\n return;\n }\n\n if ('function' !== typeof callback) {\n // eslint-disable-next-line no-console\n console.error('The hook callback must be a function.');\n return;\n } // Validate numeric priority\n\n\n if ('number' !== typeof priority) {\n // eslint-disable-next-line no-console\n console.error('If specified, the hook priority must be a number.');\n return;\n }\n\n var handler = {\n callback: callback,\n priority: priority,\n namespace: namespace\n };\n\n if (hooksStore[hookName]) {\n // Find the correct insert index of the new hook.\n var handlers = hooksStore[hookName].handlers;\n /** @type {number} */\n\n var i;\n\n for (i = handlers.length; i > 0; i--) {\n if (priority >= handlers[i - 1].priority) {\n break;\n }\n }\n\n if (i === handlers.length) {\n // If append, operate via direct assignment.\n handlers[i] = handler;\n } else {\n // Otherwise, insert before index via splice.\n handlers.splice(i, 0, handler);\n } // We may also be currently executing this hook. If the callback\n // we're adding would come after the current callback, there's no\n // problem; otherwise we need to increase the execution index of\n // any other runs by 1 to account for the added element.\n\n\n hooksStore.__current.forEach(function (hookInfo) {\n if (hookInfo.name === hookName && hookInfo.currentIndex >= i) {\n hookInfo.currentIndex++;\n }\n });\n } else {\n // This is the first hook of its type.\n hooksStore[hookName] = {\n handlers: [handler],\n runs: 0\n };\n }\n\n if (hookName !== 'hookAdded') {\n hooks.doAction('hookAdded', hookName, namespace, callback, priority);\n }\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createAddHook);\n//# sourceMappingURL=createAddHook.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createAddHook.js?"); |
| 371 |
|
| 372 |
/***/ }), |
| 373 |
|
| 374 |
/***/ "./node_modules/@wordpress/hooks/build-module/createCurrentHook.js": |
| 375 |
/*!*************************************************************************!*\ |
| 376 |
!*** ./node_modules/@wordpress/hooks/build-module/createCurrentHook.js ***! |
| 377 |
\*************************************************************************/ |
| 378 |
/*! exports provided: default */ |
| 379 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 380 |
|
| 381 |
"use strict"; |
| 382 |
eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Returns a function which, when invoked, will return the name of the\n * currently running hook, or `null` if no hook of the given type is currently\n * running.\n *\n * @param {import('.').Hooks} hooks Hooks instance.\n * @param {import('.').StoreKey} storeKey\n *\n * @return {() => string | null} Function that returns the current hook name or null.\n */\nfunction createCurrentHook(hooks, storeKey) {\n return function currentHook() {\n var _hooksStore$__current, _hooksStore$__current2;\n\n var hooksStore = hooks[storeKey];\n return (_hooksStore$__current = (_hooksStore$__current2 = hooksStore.__current[hooksStore.__current.length - 1]) === null || _hooksStore$__current2 === void 0 ? void 0 : _hooksStore$__current2.name) !== null && _hooksStore$__current !== void 0 ? _hooksStore$__current : null;\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createCurrentHook);\n//# sourceMappingURL=createCurrentHook.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createCurrentHook.js?"); |
| 383 |
|
| 384 |
/***/ }), |
| 385 |
|
| 386 |
/***/ "./node_modules/@wordpress/hooks/build-module/createDidHook.js": |
| 387 |
/*!*********************************************************************!*\ |
| 388 |
!*** ./node_modules/@wordpress/hooks/build-module/createDidHook.js ***! |
| 389 |
\*********************************************************************/ |
| 390 |
/*! exports provided: default */ |
| 391 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 392 |
|
| 393 |
"use strict"; |
| 394 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateHookName.js */ \"./node_modules/@wordpress/hooks/build-module/validateHookName.js\");\n/**\n * Internal dependencies\n */\n\n/**\n * @callback DidHook\n *\n * Returns the number of times an action has been fired.\n *\n * @param {string} hookName The hook name to check.\n *\n * @return {number | undefined} The number of times the hook has run.\n */\n\n/**\n * Returns a function which, when invoked, will return the number of times a\n * hook has been called.\n *\n * @param {import('.').Hooks} hooks Hooks instance.\n * @param {import('.').StoreKey} storeKey\n *\n * @return {DidHook} Function that returns a hook's call count.\n */\n\nfunction createDidHook(hooks, storeKey) {\n return function didHook(hookName) {\n var hooksStore = hooks[storeKey];\n\n if (!Object(_validateHookName_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(hookName)) {\n return;\n }\n\n return hooksStore[hookName] && hooksStore[hookName].runs ? hooksStore[hookName].runs : 0;\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createDidHook);\n//# sourceMappingURL=createDidHook.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createDidHook.js?"); |
| 395 |
|
| 396 |
/***/ }), |
| 397 |
|
| 398 |
/***/ "./node_modules/@wordpress/hooks/build-module/createDoingHook.js": |
| 399 |
/*!***********************************************************************!*\ |
| 400 |
!*** ./node_modules/@wordpress/hooks/build-module/createDoingHook.js ***! |
| 401 |
\***********************************************************************/ |
| 402 |
/*! exports provided: default */ |
| 403 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 404 |
|
| 405 |
"use strict"; |
| 406 |
eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @callback DoingHook\n * Returns whether a hook is currently being executed.\n *\n * @param {string} [hookName] The name of the hook to check for. If\n * omitted, will check for any hook being executed.\n *\n * @return {boolean} Whether the hook is being executed.\n */\n\n/**\n * Returns a function which, when invoked, will return whether a hook is\n * currently being executed.\n *\n * @param {import('.').Hooks} hooks Hooks instance.\n * @param {import('.').StoreKey} storeKey\n *\n * @return {DoingHook} Function that returns whether a hook is currently\n * being executed.\n */\nfunction createDoingHook(hooks, storeKey) {\n return function doingHook(hookName) {\n var hooksStore = hooks[storeKey]; // If the hookName was not passed, check for any current hook.\n\n if ('undefined' === typeof hookName) {\n return 'undefined' !== typeof hooksStore.__current[0];\n } // Return the __current hook.\n\n\n return hooksStore.__current[0] ? hookName === hooksStore.__current[0].name : false;\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createDoingHook);\n//# sourceMappingURL=createDoingHook.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createDoingHook.js?"); |
| 407 |
|
| 408 |
/***/ }), |
| 409 |
|
| 410 |
/***/ "./node_modules/@wordpress/hooks/build-module/createHasHook.js": |
| 411 |
/*!*********************************************************************!*\ |
| 412 |
!*** ./node_modules/@wordpress/hooks/build-module/createHasHook.js ***! |
| 413 |
\*********************************************************************/ |
| 414 |
/*! exports provided: default */ |
| 415 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 416 |
|
| 417 |
"use strict"; |
| 418 |
eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @callback HasHook\n *\n * Returns whether any handlers are attached for the given hookName and optional namespace.\n *\n * @param {string} hookName The name of the hook to check for.\n * @param {string} [namespace] Optional. The unique namespace identifying the callback\n * in the form `vendor/plugin/function`.\n *\n * @return {boolean} Whether there are handlers that are attached to the given hook.\n */\n\n/**\n * Returns a function which, when invoked, will return whether any handlers are\n * attached to a particular hook.\n *\n * @param {import('.').Hooks} hooks Hooks instance.\n * @param {import('.').StoreKey} storeKey\n *\n * @return {HasHook} Function that returns whether any handlers are\n * attached to a particular hook and optional namespace.\n */\nfunction createHasHook(hooks, storeKey) {\n return function hasHook(hookName, namespace) {\n var hooksStore = hooks[storeKey]; // Use the namespace if provided.\n\n if ('undefined' !== typeof namespace) {\n return hookName in hooksStore && hooksStore[hookName].handlers.some(function (hook) {\n return hook.namespace === namespace;\n });\n }\n\n return hookName in hooksStore;\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createHasHook);\n//# sourceMappingURL=createHasHook.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createHasHook.js?"); |
| 419 |
|
| 420 |
/***/ }), |
| 421 |
|
| 422 |
/***/ "./node_modules/@wordpress/hooks/build-module/createHooks.js": |
| 423 |
/*!*******************************************************************!*\ |
| 424 |
!*** ./node_modules/@wordpress/hooks/build-module/createHooks.js ***! |
| 425 |
\*******************************************************************/ |
| 426 |
/*! exports provided: _Hooks, default */ |
| 427 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 428 |
|
| 429 |
"use strict"; |
| 430 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"_Hooks\", function() { return _Hooks; });\n/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ \"./node_modules/@babel/runtime/helpers/esm/classCallCheck.js\");\n/* harmony import */ var _createAddHook__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createAddHook */ \"./node_modules/@wordpress/hooks/build-module/createAddHook.js\");\n/* harmony import */ var _createRemoveHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createRemoveHook */ \"./node_modules/@wordpress/hooks/build-module/createRemoveHook.js\");\n/* harmony import */ var _createHasHook__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createHasHook */ \"./node_modules/@wordpress/hooks/build-module/createHasHook.js\");\n/* harmony import */ var _createRunHook__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./createRunHook */ \"./node_modules/@wordpress/hooks/build-module/createRunHook.js\");\n/* harmony import */ var _createCurrentHook__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createCurrentHook */ \"./node_modules/@wordpress/hooks/build-module/createCurrentHook.js\");\n/* harmony import */ var _createDoingHook__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./createDoingHook */ \"./node_modules/@wordpress/hooks/build-module/createDoingHook.js\");\n/* harmony import */ var _createDidHook__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./createDidHook */ \"./node_modules/@wordpress/hooks/build-module/createDidHook.js\");\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n/**\n * Internal class for constructing hooks. Use `createHooks()` function\n *\n * Note, it is necessary to expose this class to make its type public.\n *\n * @private\n */\n\nvar _Hooks = function _Hooks() {\n Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this, _Hooks);\n\n /** @type {import('.').Store} actions */\n this.actions = Object.create(null);\n this.actions.__current = [];\n /** @type {import('.').Store} filters */\n\n this.filters = Object.create(null);\n this.filters.__current = [];\n this.addAction = Object(_createAddHook__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(this, 'actions');\n this.addFilter = Object(_createAddHook__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(this, 'filters');\n this.removeAction = Object(_createRemoveHook__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this, 'actions');\n this.removeFilter = Object(_createRemoveHook__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this, 'filters');\n this.hasAction = Object(_createHasHook__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, 'actions');\n this.hasFilter = Object(_createHasHook__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, 'filters');\n this.removeAllActions = Object(_createRemoveHook__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this, 'actions', true);\n this.removeAllFilters = Object(_createRemoveHook__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this, 'filters', true);\n this.doAction = Object(_createRunHook__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(this, 'actions');\n this.applyFilters = Object(_createRunHook__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(this, 'filters', true);\n this.currentAction = Object(_createCurrentHook__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(this, 'actions');\n this.currentFilter = Object(_createCurrentHook__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(this, 'filters');\n this.doingAction = Object(_createDoingHook__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(this, 'actions');\n this.doingFilter = Object(_createDoingHook__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(this, 'filters');\n this.didAction = Object(_createDidHook__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(this, 'actions');\n this.didFilter = Object(_createDidHook__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(this, 'filters');\n};\n/** @typedef {_Hooks} Hooks */\n\n/**\n * Returns an instance of the hooks object.\n *\n * @return {Hooks} A Hooks instance.\n */\n\nfunction createHooks() {\n return new _Hooks();\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createHooks);\n//# sourceMappingURL=createHooks.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createHooks.js?"); |
| 431 |
|
| 432 |
/***/ }), |
| 433 |
|
| 434 |
/***/ "./node_modules/@wordpress/hooks/build-module/createRemoveHook.js": |
| 435 |
/*!************************************************************************!*\ |
| 436 |
!*** ./node_modules/@wordpress/hooks/build-module/createRemoveHook.js ***! |
| 437 |
\************************************************************************/ |
| 438 |
/*! exports provided: default */ |
| 439 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 440 |
|
| 441 |
"use strict"; |
| 442 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateNamespace.js */ \"./node_modules/@wordpress/hooks/build-module/validateNamespace.js\");\n/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validateHookName.js */ \"./node_modules/@wordpress/hooks/build-module/validateHookName.js\");\n/**\n * Internal dependencies\n */\n\n\n/**\n * @callback RemoveHook\n * Removes the specified callback (or all callbacks) from the hook with a given hookName\n * and namespace.\n *\n * @param {string} hookName The name of the hook to modify.\n * @param {string} namespace The unique namespace identifying the callback in the\n * form `vendor/plugin/function`.\n *\n * @return {number | undefined} The number of callbacks removed.\n */\n\n/**\n * Returns a function which, when invoked, will remove a specified hook or all\n * hooks by the given name.\n *\n * @param {import('.').Hooks} hooks Hooks instance.\n * @param {import('.').StoreKey} storeKey\n * @param {boolean} [removeAll=false] Whether to remove all callbacks for a hookName,\n * without regard to namespace. Used to create\n * `removeAll*` functions.\n *\n * @return {RemoveHook} Function that removes hooks.\n */\n\nfunction createRemoveHook(hooks, storeKey) {\n var removeAll = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n return function removeHook(hookName, namespace) {\n var hooksStore = hooks[storeKey];\n\n if (!Object(_validateHookName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(hookName)) {\n return;\n }\n\n if (!removeAll && !Object(_validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(namespace)) {\n return;\n } // Bail if no hooks exist by this name\n\n\n if (!hooksStore[hookName]) {\n return 0;\n }\n\n var handlersRemoved = 0;\n\n if (removeAll) {\n handlersRemoved = hooksStore[hookName].handlers.length;\n hooksStore[hookName] = {\n runs: hooksStore[hookName].runs,\n handlers: []\n };\n } else {\n // Try to find the specified callback to remove.\n var handlers = hooksStore[hookName].handlers;\n\n var _loop = function _loop(i) {\n if (handlers[i].namespace === namespace) {\n handlers.splice(i, 1);\n handlersRemoved++; // This callback may also be part of a hook that is\n // currently executing. If the callback we're removing\n // comes after the current callback, there's no problem;\n // otherwise we need to decrease the execution index of any\n // other runs by 1 to account for the removed element.\n\n hooksStore.__current.forEach(function (hookInfo) {\n if (hookInfo.name === hookName && hookInfo.currentIndex >= i) {\n hookInfo.currentIndex--;\n }\n });\n }\n };\n\n for (var i = handlers.length - 1; i >= 0; i--) {\n _loop(i);\n }\n }\n\n if (hookName !== 'hookRemoved') {\n hooks.doAction('hookRemoved', hookName, namespace);\n }\n\n return handlersRemoved;\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createRemoveHook);\n//# sourceMappingURL=createRemoveHook.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createRemoveHook.js?"); |
| 443 |
|
| 444 |
/***/ }), |
| 445 |
|
| 446 |
/***/ "./node_modules/@wordpress/hooks/build-module/createRunHook.js": |
| 447 |
/*!*********************************************************************!*\ |
| 448 |
!*** ./node_modules/@wordpress/hooks/build-module/createRunHook.js ***! |
| 449 |
\*********************************************************************/ |
| 450 |
/*! exports provided: default */ |
| 451 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 452 |
|
| 453 |
"use strict"; |
| 454 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\");\n\n\n/**\n * Returns a function which, when invoked, will execute all callbacks\n * registered to a hook of the specified type, optionally returning the final\n * value of the call chain.\n *\n * @param {import('.').Hooks} hooks Hooks instance.\n * @param {import('.').StoreKey} storeKey\n * @param {boolean} [returnFirstArg=false] Whether each hook callback is expected to\n * return its first argument.\n *\n * @return {(hookName:string, ...args: unknown[]) => unknown} Function that runs hook callbacks.\n */\nfunction createRunHook(hooks, storeKey) {\n var returnFirstArg = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n return function runHooks(hookName) {\n var hooksStore = hooks[storeKey];\n\n if (!hooksStore[hookName]) {\n hooksStore[hookName] = {\n handlers: [],\n runs: 0\n };\n }\n\n hooksStore[hookName].runs++;\n var handlers = hooksStore[hookName].handlers; // The following code is stripped from production builds.\n\n if (true) {\n // Handle any 'all' hooks registered.\n if ('hookAdded' !== hookName && hooksStore.all) {\n handlers.push.apply(handlers, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(hooksStore.all.handlers));\n }\n }\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n if (!handlers || !handlers.length) {\n return returnFirstArg ? args[0] : undefined;\n }\n\n var hookInfo = {\n name: hookName,\n currentIndex: 0\n };\n\n hooksStore.__current.push(hookInfo);\n\n while (hookInfo.currentIndex < handlers.length) {\n var handler = handlers[hookInfo.currentIndex];\n var result = handler.callback.apply(null, args);\n\n if (returnFirstArg) {\n args[0] = result;\n }\n\n hookInfo.currentIndex++;\n }\n\n hooksStore.__current.pop();\n\n if (returnFirstArg) {\n return args[0];\n }\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createRunHook);\n//# sourceMappingURL=createRunHook.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createRunHook.js?"); |
| 455 |
|
| 456 |
/***/ }), |
| 457 |
|
| 458 |
/***/ "./node_modules/@wordpress/hooks/build-module/index.js": |
| 459 |
/*!*************************************************************!*\ |
| 460 |
!*** ./node_modules/@wordpress/hooks/build-module/index.js ***! |
| 461 |
\*************************************************************/ |
| 462 |
/*! exports provided: createHooks, addAction, addFilter, removeAction, removeFilter, hasAction, hasFilter, removeAllActions, removeAllFilters, doAction, applyFilters, currentAction, currentFilter, doingAction, doingFilter, didAction, didFilter, actions, filters */ |
| 463 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 464 |
|
| 465 |
"use strict"; |
| 466 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addAction\", function() { return addAction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addFilter\", function() { return addFilter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeAction\", function() { return removeAction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeFilter\", function() { return removeFilter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hasAction\", function() { return hasAction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hasFilter\", function() { return hasFilter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeAllActions\", function() { return removeAllActions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeAllFilters\", function() { return removeAllFilters; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"doAction\", function() { return doAction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"applyFilters\", function() { return applyFilters; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"currentAction\", function() { return currentAction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"currentFilter\", function() { return currentFilter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"doingAction\", function() { return doingAction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"doingFilter\", function() { return doingFilter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"didAction\", function() { return didAction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"didFilter\", function() { return didFilter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"filters\", function() { return filters; });\n/* harmony import */ var _createHooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createHooks */ \"./node_modules/@wordpress/hooks/build-module/createHooks.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createHooks\", function() { return _createHooks__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/**\n * Internal dependencies\n */\n\n/** @typedef {(...args: any[])=>any} Callback */\n\n/**\n * @typedef Handler\n * @property {Callback} callback The callback\n * @property {string} namespace The namespace\n * @property {number} priority The namespace\n */\n\n/**\n * @typedef Hook\n * @property {Handler[]} handlers Array of handlers\n * @property {number} runs Run counter\n */\n\n/**\n * @typedef Current\n * @property {string} name Hook name\n * @property {number} currentIndex The index\n */\n\n/**\n * @typedef {Record<string, Hook> & {__current: Current[]}} Store\n */\n\n/**\n * @typedef {'actions' | 'filters'} StoreKey\n */\n\n/**\n * @typedef {import('./createHooks').Hooks} Hooks\n */\n\nvar _createHooks = Object(_createHooks__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(),\n addAction = _createHooks.addAction,\n addFilter = _createHooks.addFilter,\n removeAction = _createHooks.removeAction,\n removeFilter = _createHooks.removeFilter,\n hasAction = _createHooks.hasAction,\n hasFilter = _createHooks.hasFilter,\n removeAllActions = _createHooks.removeAllActions,\n removeAllFilters = _createHooks.removeAllFilters,\n doAction = _createHooks.doAction,\n applyFilters = _createHooks.applyFilters,\n currentAction = _createHooks.currentAction,\n currentFilter = _createHooks.currentFilter,\n doingAction = _createHooks.doingAction,\n doingFilter = _createHooks.doingFilter,\n didAction = _createHooks.didAction,\n didFilter = _createHooks.didFilter,\n actions = _createHooks.actions,\n filters = _createHooks.filters;\n\n\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/index.js?"); |
| 467 |
|
| 468 |
/***/ }), |
| 469 |
|
| 470 |
/***/ "./node_modules/@wordpress/hooks/build-module/validateHookName.js": |
| 471 |
/*!************************************************************************!*\ |
| 472 |
!*** ./node_modules/@wordpress/hooks/build-module/validateHookName.js ***! |
| 473 |
\************************************************************************/ |
| 474 |
/*! exports provided: default */ |
| 475 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 476 |
|
| 477 |
"use strict"; |
| 478 |
eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Validate a hookName string.\n *\n * @param {string} hookName The hook name to validate. Should be a non empty string containing\n * only numbers, letters, dashes, periods and underscores. Also,\n * the hook name cannot begin with `__`.\n *\n * @return {boolean} Whether the hook name is valid.\n */\nfunction validateHookName(hookName) {\n if ('string' !== typeof hookName || '' === hookName) {\n // eslint-disable-next-line no-console\n console.error('The hook name must be a non-empty string.');\n return false;\n }\n\n if (/^__/.test(hookName)) {\n // eslint-disable-next-line no-console\n console.error('The hook name cannot begin with `__`.');\n return false;\n }\n\n if (!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(hookName)) {\n // eslint-disable-next-line no-console\n console.error('The hook name can only contain numbers, letters, dashes, periods and underscores.');\n return false;\n }\n\n return true;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (validateHookName);\n//# sourceMappingURL=validateHookName.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/validateHookName.js?"); |
| 479 |
|
| 480 |
/***/ }), |
| 481 |
|
| 482 |
/***/ "./node_modules/@wordpress/hooks/build-module/validateNamespace.js": |
| 483 |
/*!*************************************************************************!*\ |
| 484 |
!*** ./node_modules/@wordpress/hooks/build-module/validateNamespace.js ***! |
| 485 |
\*************************************************************************/ |
| 486 |
/*! exports provided: default */ |
| 487 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 488 |
|
| 489 |
"use strict"; |
| 490 |
eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Validate a namespace string.\n *\n * @param {string} namespace The namespace to validate - should take the form\n * `vendor/plugin/function`.\n *\n * @return {boolean} Whether the namespace is valid.\n */\nfunction validateNamespace(namespace) {\n if ('string' !== typeof namespace || '' === namespace) {\n // eslint-disable-next-line no-console\n console.error('The namespace must be a non-empty string.');\n return false;\n }\n\n if (!/^[a-zA-Z][a-zA-Z0-9_.\\-\\/]*$/.test(namespace)) {\n // eslint-disable-next-line no-console\n console.error('The namespace can only contain numbers, letters, dashes, periods, underscores and slashes.');\n return false;\n }\n\n return true;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (validateNamespace);\n//# sourceMappingURL=validateNamespace.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/validateNamespace.js?"); |
| 491 |
|
| 492 |
/***/ }), |
| 493 |
|
| 494 |
/***/ "./node_modules/@wordpress/i18n/build-module/create-i18n.js": |
| 495 |
/*!******************************************************************!*\ |
| 496 |
!*** ./node_modules/@wordpress/i18n/build-module/create-i18n.js ***! |
| 497 |
\******************************************************************/ |
| 498 |
/*! exports provided: createI18n */ |
| 499 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 500 |
|
| 501 |
"use strict"; |
| 502 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createI18n\", function() { return createI18n; });\n/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var tannin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tannin */ \"./node_modules/tannin/index.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * External dependencies\n */\n\n/**\n * @typedef {Record<string,any>} LocaleData\n */\n\n/**\n * Default locale data to use for Tannin domain when not otherwise provided.\n * Assumes an English plural forms expression.\n *\n * @type {LocaleData}\n */\n\nvar DEFAULT_LOCALE_DATA = {\n '': {\n /** @param {number} n */\n plural_forms: function plural_forms(n) {\n return n === 1 ? 0 : 1;\n }\n }\n};\n/* eslint-disable jsdoc/valid-types */\n\n/**\n * @typedef {(data?: LocaleData, domain?: string) => void} SetLocaleData\n * Merges locale data into the Tannin instance by domain. Accepts data in a\n * Jed-formatted JSON object shape.\n *\n * @see http://messageformat.github.io/Jed/\n */\n\n/**\n * @typedef {(domain?: string) => string} GetFilterDomain\n * Retrieve the domain to use when calling domain-specific filters.\n */\n\n/**\n * @typedef {(text: string, domain?: string) => string} __\n *\n * Retrieve the translation of text.\n *\n * @see https://developer.wordpress.org/reference/functions/__/\n */\n\n/**\n * @typedef {(text: string, context: string, domain?: string) => string} _x\n *\n * Retrieve translated string with gettext context.\n *\n * @see https://developer.wordpress.org/reference/functions/_x/\n */\n\n/**\n * @typedef {(single: string, plural: string, number: number, domain?: string) => string} _n\n *\n * Translates and retrieves the singular or plural form based on the supplied\n * number.\n *\n * @see https://developer.wordpress.org/reference/functions/_n/\n */\n\n/**\n * @typedef {(single: string, plural: string, number: number, context: string, domain?: string) => string} _nx\n *\n * Translates and retrieves the singular or plural form based on the supplied\n * number, with gettext context.\n *\n * @see https://developer.wordpress.org/reference/functions/_nx/\n */\n\n/**\n * @typedef {() => boolean} IsRtl\n *\n * Check if current locale is RTL.\n *\n * **RTL (Right To Left)** is a locale property indicating that text is written from right to left.\n * For example, the `he` locale (for Hebrew) specifies right-to-left. Arabic (ar) is another common\n * language written RTL. The opposite of RTL, LTR (Left To Right) is used in other languages,\n * including English (`en`, `en-US`, `en-GB`, etc.), Spanish (`es`), and French (`fr`).\n */\n\n/**\n * @typedef {{ applyFilters: (hookName:string, ...args: unknown[]) => unknown}} ApplyFiltersInterface\n */\n\n/* eslint-enable jsdoc/valid-types */\n\n/**\n * An i18n instance\n *\n * @typedef I18n\n * @property {SetLocaleData} setLocaleData Merges locale data into the Tannin instance by domain. Accepts data in a\n * Jed-formatted JSON object shape.\n * @property {__} __ Retrieve the translation of text.\n * @property {_x} _x Retrieve translated string with gettext context.\n * @property {_n} _n Translates and retrieves the singular or plural form based on the supplied\n * number.\n * @property {_nx} _nx Translates and retrieves the singular or plural form based on the supplied\n * number, with gettext context.\n * @property {IsRtl} isRTL Check if current locale is RTL.\n */\n\n/**\n * Create an i18n instance\n *\n * @param {LocaleData} [initialData] Locale data configuration.\n * @param {string} [initialDomain] Domain for which configuration applies.\n * @param {ApplyFiltersInterface} [hooks] Hooks implementation.\n * @return {I18n} I18n instance\n */\n\nvar createI18n = function createI18n(initialData, initialDomain, hooks) {\n /**\n * The underlying instance of Tannin to which exported functions interface.\n *\n * @type {Tannin}\n */\n var tannin = new tannin__WEBPACK_IMPORTED_MODULE_1__[\"default\"]({});\n /** @type {SetLocaleData} */\n\n var setLocaleData = function setLocaleData(data) {\n var domain = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';\n tannin.data[domain] = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_LOCALE_DATA), tannin.data[domain]), data); // Populate default domain configuration (supported locale date which omits\n // a plural forms expression).\n\n tannin.data[domain][''] = _objectSpread(_objectSpread({}, DEFAULT_LOCALE_DATA['']), tannin.data[domain]['']);\n };\n /**\n * Wrapper for Tannin's `dcnpgettext`. Populates default locale data if not\n * otherwise previously assigned.\n *\n * @param {string|undefined} domain Domain to retrieve the translated text.\n * @param {string|undefined} context Context information for the translators.\n * @param {string} single Text to translate if non-plural. Used as\n * fallback return value on a caught error.\n * @param {string} [plural] The text to be used if the number is\n * plural.\n * @param {number} [number] The number to compare against to use\n * either the singular or plural form.\n *\n * @return {string} The translated string.\n */\n\n\n var dcnpgettext = function dcnpgettext() {\n var domain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'default';\n var context = arguments.length > 1 ? arguments[1] : undefined;\n var single = arguments.length > 2 ? arguments[2] : undefined;\n var plural = arguments.length > 3 ? arguments[3] : undefined;\n var number = arguments.length > 4 ? arguments[4] : undefined;\n\n if (!tannin.data[domain]) {\n setLocaleData(undefined, domain);\n }\n\n return tannin.dcnpgettext(domain, context, single, plural, number);\n };\n /** @type {GetFilterDomain} */\n\n\n var getFilterDomain = function getFilterDomain(domain) {\n if (typeof domain === 'undefined') {\n return 'default';\n }\n\n return domain;\n };\n /** @type {__} */\n\n\n var __ = function __(text, domain) {\n var translation = dcnpgettext(domain, undefined, text);\n /**\n * Filters text with its translation.\n *\n * @param {string} translation Translated text.\n * @param {string} text Text to translate.\n * @param {string} domain Text domain. Unique identifier for retrieving translated strings.\n */\n\n if (typeof hooks === 'undefined') {\n return translation;\n }\n\n translation =\n /** @type {string} */\n\n /** @type {*} */\n hooks.applyFilters('i18n.gettext', translation, text, domain);\n return (\n /** @type {string} */\n\n /** @type {*} */\n hooks.applyFilters('i18n.gettext_' + getFilterDomain(domain), translation, text, domain)\n );\n };\n /** @type {_x} */\n\n\n var _x = function _x(text, context, domain) {\n var translation = dcnpgettext(domain, context, text);\n /**\n * Filters text with its translation based on context information.\n *\n * @param {string} translation Translated text.\n * @param {string} text Text to translate.\n * @param {string} context Context information for the translators.\n * @param {string} domain Text domain. Unique identifier for retrieving translated strings.\n */\n\n if (typeof hooks === 'undefined') {\n return translation;\n }\n\n translation =\n /** @type {string} */\n\n /** @type {*} */\n hooks.applyFilters('i18n.gettext_with_context', translation, text, context, domain);\n return (\n /** @type {string} */\n\n /** @type {*} */\n hooks.applyFilters('i18n.gettext_with_context_' + getFilterDomain(domain), translation, text, context, domain)\n );\n };\n /** @type {_n} */\n\n\n var _n = function _n(single, plural, number, domain) {\n var translation = dcnpgettext(domain, undefined, single, plural, number);\n\n if (typeof hooks === 'undefined') {\n return translation;\n }\n /**\n * Filters the singular or plural form of a string.\n *\n * @param {string} translation Translated text.\n * @param {string} single The text to be used if the number is singular.\n * @param {string} plural The text to be used if the number is plural.\n * @param {string} number The number to compare against to use either the singular or plural form.\n * @param {string} domain Text domain. Unique identifier for retrieving translated strings.\n */\n\n\n translation =\n /** @type {string} */\n\n /** @type {*} */\n hooks.applyFilters('i18n.ngettext', translation, single, plural, number, domain);\n return (\n /** @type {string} */\n\n /** @type {*} */\n hooks.applyFilters('i18n.ngettext_' + getFilterDomain(domain), translation, single, plural, number, domain)\n );\n };\n /** @type {_nx} */\n\n\n var _nx = function _nx(single, plural, number, context, domain) {\n var translation = dcnpgettext(domain, context, single, plural, number);\n\n if (typeof hooks === 'undefined') {\n return translation;\n }\n /**\n * Filters the singular or plural form of a string with gettext context.\n *\n * @param {string} translation Translated text.\n * @param {string} single The text to be used if the number is singular.\n * @param {string} plural The text to be used if the number is plural.\n * @param {string} number The number to compare against to use either the singular or plural form.\n * @param {string} context Context information for the translators.\n * @param {string} domain Text domain. Unique identifier for retrieving translated strings.\n */\n\n\n translation =\n /** @type {string} */\n\n /** @type {*} */\n hooks.applyFilters('i18n.ngettext_with_context', translation, single, plural, number, context, domain);\n return (\n /** @type {string} */\n\n /** @type {*} */\n hooks.applyFilters('i18n.ngettext_with_context_' + getFilterDomain(domain), translation, single, plural, number, context, domain)\n );\n };\n /** @type {IsRtl} */\n\n\n var isRTL = function isRTL() {\n return 'rtl' === _x('ltr', 'text direction');\n };\n\n if (initialData) {\n setLocaleData(initialData, initialDomain);\n }\n\n return {\n setLocaleData: setLocaleData,\n __: __,\n _x: _x,\n _n: _n,\n _nx: _nx,\n isRTL: isRTL\n };\n};\n//# sourceMappingURL=create-i18n.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/i18n/build-module/create-i18n.js?"); |
| 503 |
|
| 504 |
/***/ }), |
| 505 |
|
| 506 |
/***/ "./node_modules/@wordpress/i18n/build-module/default-i18n.js": |
| 507 |
/*!*******************************************************************!*\ |
| 508 |
!*** ./node_modules/@wordpress/i18n/build-module/default-i18n.js ***! |
| 509 |
\*******************************************************************/ |
| 510 |
/*! exports provided: setLocaleData, __, _x, _n, _nx, isRTL */ |
| 511 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 512 |
|
| 513 |
"use strict"; |
| 514 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setLocaleData\", function() { return setLocaleData; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__\", function() { return __; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"_x\", function() { return _x; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"_n\", function() { return _n; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"_nx\", function() { return _nx; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isRTL\", function() { return isRTL; });\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/hooks */ \"./node_modules/@wordpress/hooks/build-module/index.js\");\n/* harmony import */ var _create_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create-i18n */ \"./node_modules/@wordpress/i18n/build-module/create-i18n.js\");\n/**\n * WordPress dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\nvar i18n = Object(_create_i18n__WEBPACK_IMPORTED_MODULE_1__[\"createI18n\"])(undefined, undefined, {\n applyFilters: _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__[\"applyFilters\"]\n});\n/*\n * Comments in this file are duplicated from ./i18n due to\n * https://github.com/WordPress/gutenberg/pull/20318#issuecomment-590837722\n */\n\n/**\n * @typedef {import('./create-i18n').LocaleData} LocaleData\n */\n\n/**\n * Merges locale data into the Tannin instance by domain. Accepts data in a\n * Jed-formatted JSON object shape.\n *\n * @see http://messageformat.github.io/Jed/\n *\n * @param {LocaleData} [data] Locale data configuration.\n * @param {string} [domain] Domain for which configuration applies.\n */\n\nvar setLocaleData = i18n.setLocaleData.bind(i18n);\n/**\n * Retrieve the translation of text.\n *\n * @see https://developer.wordpress.org/reference/functions/__/\n *\n * @param {string} text Text to translate.\n * @param {string} [domain] Domain to retrieve the translated text.\n *\n * @return {string} Translated text.\n */\n\nvar __ = i18n.__.bind(i18n);\n/**\n * Retrieve translated string with gettext context.\n *\n * @see https://developer.wordpress.org/reference/functions/_x/\n *\n * @param {string} text Text to translate.\n * @param {string} context Context information for the translators.\n * @param {string} [domain] Domain to retrieve the translated text.\n *\n * @return {string} Translated context string without pipe.\n */\n\nvar _x = i18n._x.bind(i18n);\n/**\n * Translates and retrieves the singular or plural form based on the supplied\n * number.\n *\n * @see https://developer.wordpress.org/reference/functions/_n/\n *\n * @param {string} single The text to be used if the number is singular.\n * @param {string} plural The text to be used if the number is plural.\n * @param {number} number The number to compare against to use either the\n * singular or plural form.\n * @param {string} [domain] Domain to retrieve the translated text.\n *\n * @return {string} The translated singular or plural form.\n */\n\nvar _n = i18n._n.bind(i18n);\n/**\n * Translates and retrieves the singular or plural form based on the supplied\n * number, with gettext context.\n *\n * @see https://developer.wordpress.org/reference/functions/_nx/\n *\n * @param {string} single The text to be used if the number is singular.\n * @param {string} plural The text to be used if the number is plural.\n * @param {number} number The number to compare against to use either the\n * singular or plural form.\n * @param {string} context Context information for the translators.\n * @param {string} [domain] Domain to retrieve the translated text.\n *\n * @return {string} The translated singular or plural form.\n */\n\nvar _nx = i18n._nx.bind(i18n);\n/**\n * Check if current locale is RTL.\n *\n * **RTL (Right To Left)** is a locale property indicating that text is written from right to left.\n * For example, the `he` locale (for Hebrew) specifies right-to-left. Arabic (ar) is another common\n * language written RTL. The opposite of RTL, LTR (Left To Right) is used in other languages,\n * including English (`en`, `en-US`, `en-GB`, etc.), Spanish (`es`), and French (`fr`).\n *\n * @return {boolean} Whether locale is RTL.\n */\n\nvar isRTL = i18n.isRTL.bind(i18n);\n//# sourceMappingURL=default-i18n.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/i18n/build-module/default-i18n.js?"); |
| 515 |
|
| 516 |
/***/ }), |
| 517 |
|
| 518 |
/***/ "./node_modules/@wordpress/i18n/build-module/index.js": |
| 519 |
/*!************************************************************!*\ |
| 520 |
!*** ./node_modules/@wordpress/i18n/build-module/index.js ***! |
| 521 |
\************************************************************/ |
| 522 |
/*! exports provided: sprintf, setLocaleData, __, _x, _n, _nx, isRTL, createI18n */ |
| 523 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 524 |
|
| 525 |
"use strict"; |
| 526 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _sprintf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sprintf */ \"./node_modules/@wordpress/i18n/build-module/sprintf.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"sprintf\", function() { return _sprintf__WEBPACK_IMPORTED_MODULE_0__[\"sprintf\"]; });\n\n/* harmony import */ var _create_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create-i18n */ \"./node_modules/@wordpress/i18n/build-module/create-i18n.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createI18n\", function() { return _create_i18n__WEBPACK_IMPORTED_MODULE_1__[\"createI18n\"]; });\n\n/* harmony import */ var _default_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./default-i18n */ \"./node_modules/@wordpress/i18n/build-module/default-i18n.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"setLocaleData\", function() { return _default_i18n__WEBPACK_IMPORTED_MODULE_2__[\"setLocaleData\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__\", function() { return _default_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"_x\", function() { return _default_i18n__WEBPACK_IMPORTED_MODULE_2__[\"_x\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"_n\", function() { return _default_i18n__WEBPACK_IMPORTED_MODULE_2__[\"_n\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"_nx\", function() { return _default_i18n__WEBPACK_IMPORTED_MODULE_2__[\"_nx\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isRTL\", function() { return _default_i18n__WEBPACK_IMPORTED_MODULE_2__[\"isRTL\"]; });\n\n\n\n\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/i18n/build-module/index.js?"); |
| 527 |
|
| 528 |
/***/ }), |
| 529 |
|
| 530 |
/***/ "./node_modules/@wordpress/i18n/build-module/sprintf.js": |
| 531 |
/*!**************************************************************!*\ |
| 532 |
!*** ./node_modules/@wordpress/i18n/build-module/sprintf.js ***! |
| 533 |
\**************************************************************/ |
| 534 |
/*! exports provided: sprintf */ |
| 535 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 536 |
|
| 537 |
"use strict"; |
| 538 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"sprintf\", function() { return sprintf; });\n/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! memize */ \"./node_modules/memize/index.js\");\n/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(memize__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var sprintf_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sprintf-js */ \"./node_modules/sprintf-js/src/sprintf.js\");\n/* harmony import */ var sprintf_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sprintf_js__WEBPACK_IMPORTED_MODULE_1__);\n/**\n * External dependencies\n */\n\n\n/**\n * Log to console, once per message; or more precisely, per referentially equal\n * argument set. Because Jed throws errors, we log these to the console instead\n * to avoid crashing the application.\n *\n * @param {...*} args Arguments to pass to `console.error`\n */\n\nvar logErrorOnce = memize__WEBPACK_IMPORTED_MODULE_0___default()(console.error); // eslint-disable-line no-console\n\n/**\n * Returns a formatted string. If an error occurs in applying the format, the\n * original format string is returned.\n *\n * @param {string} format The format of the string to generate.\n * @param {...*} args Arguments to apply to the format.\n *\n * @see http://www.diveintojavascript.com/projects/javascript-sprintf\n *\n * @return {string} The formatted string.\n */\n\nfunction sprintf(format) {\n try {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return sprintf_js__WEBPACK_IMPORTED_MODULE_1___default.a.sprintf.apply(sprintf_js__WEBPACK_IMPORTED_MODULE_1___default.a, [format].concat(args));\n } catch (error) {\n logErrorOnce('sprintf error: \\n\\n' + error.toString());\n return format;\n }\n}\n//# sourceMappingURL=sprintf.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/i18n/build-module/sprintf.js?"); |
| 539 |
|
| 540 |
/***/ }), |
| 541 |
|
| 542 |
/***/ "./node_modules/@wordpress/url/build-module/add-query-args.js": |
| 543 |
/*!********************************************************************!*\ |
| 544 |
!*** ./node_modules/@wordpress/url/build-module/add-query-args.js ***! |
| 545 |
\********************************************************************/ |
| 546 |
/*! exports provided: addQueryArgs */ |
| 547 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 548 |
|
| 549 |
"use strict"; |
| 550 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addQueryArgs\", function() { return addQueryArgs; });\n/* harmony import */ var _get_query_args__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-query-args */ \"./node_modules/@wordpress/url/build-module/get-query-args.js\");\n/* harmony import */ var _build_query_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./build-query-string */ \"./node_modules/@wordpress/url/build-module/build-query-string.js\");\n/**\n * Internal dependencies\n */\n\n\n/**\n * Appends arguments as querystring to the provided URL. If the URL already\n * includes query arguments, the arguments are merged with (and take precedent\n * over) the existing set.\n *\n * @param {string} [url=''] URL to which arguments should be appended. If omitted,\n * only the resulting querystring is returned.\n * @param {Object} [args] Query arguments to apply to URL.\n *\n * @example\n * ```js\n * const newURL = addQueryArgs( 'https://google.com', { q: 'test' } ); // https://google.com/?q=test\n * ```\n *\n * @return {string} URL with arguments applied.\n */\n\nfunction addQueryArgs() {\n var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var args = arguments.length > 1 ? arguments[1] : undefined;\n\n // If no arguments are to be appended, return original URL.\n if (!args || !Object.keys(args).length) {\n return url;\n }\n\n var baseUrl = url; // Determine whether URL already had query arguments.\n\n var queryStringIndex = url.indexOf('?');\n\n if (queryStringIndex !== -1) {\n // Merge into existing query arguments.\n args = Object.assign(Object(_get_query_args__WEBPACK_IMPORTED_MODULE_0__[\"getQueryArgs\"])(url), args); // Change working base URL to omit previous query arguments.\n\n baseUrl = baseUrl.substr(0, queryStringIndex);\n }\n\n return baseUrl + '?' + Object(_build_query_string__WEBPACK_IMPORTED_MODULE_1__[\"buildQueryString\"])(args);\n}\n//# sourceMappingURL=add-query-args.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/add-query-args.js?"); |
| 551 |
|
| 552 |
/***/ }), |
| 553 |
|
| 554 |
/***/ "./node_modules/@wordpress/url/build-module/build-query-string.js": |
| 555 |
/*!************************************************************************!*\ |
| 556 |
!*** ./node_modules/@wordpress/url/build-module/build-query-string.js ***! |
| 557 |
\************************************************************************/ |
| 558 |
/*! exports provided: buildQueryString */ |
| 559 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 560 |
|
| 561 |
"use strict"; |
| 562 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"buildQueryString\", function() { return buildQueryString; });\n/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ \"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js\");\n\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _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); }\n\nfunction _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; }\n\n/**\n * Generates URL-encoded query string using input query data.\n *\n * It is intended to behave equivalent as PHP's `http_build_query`, configured\n * with encoding type PHP_QUERY_RFC3986 (spaces as `%20`).\n *\n * @example\n * ```js\n * const queryString = buildQueryString( {\n * simple: 'is ok',\n * arrays: [ 'are', 'fine', 'too' ],\n * objects: {\n * evenNested: {\n * ok: 'yes',\n * },\n * },\n * } );\n * // \"simple=is%20ok&arrays%5B0%5D=are&arrays%5B1%5D=fine&arrays%5B2%5D=too&objects%5BevenNested%5D%5Bok%5D=yes\"\n * ```\n *\n * @param {Record<string,*>} data Data to encode.\n *\n * @return {string} Query string.\n */\nfunction buildQueryString(data) {\n var string = '';\n var stack = Object.entries(data);\n var pair;\n\n while (pair = stack.shift()) {\n var _pair = pair,\n _pair2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_pair, 2),\n key = _pair2[0],\n value = _pair2[1]; // Support building deeply nested data, from array or object values.\n\n\n var hasNestedData = Array.isArray(value) || value && value.constructor === Object;\n\n if (hasNestedData) {\n // Push array or object values onto the stack as composed of their\n // original key and nested index or key, retaining order by a\n // combination of Array#reverse and Array#unshift onto the stack.\n var valuePairs = Object.entries(value).reverse();\n\n var _iterator = _createForOfIteratorHelper(valuePairs),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _step$value = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_step.value, 2),\n member = _step$value[0],\n memberValue = _step$value[1];\n\n stack.unshift([\"\".concat(key, \"[\").concat(member, \"]\"), memberValue]);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n } else if (value !== undefined) {\n // Null is treated as special case, equivalent to empty string.\n if (value === null) {\n value = '';\n }\n\n string += '&' + [key, value].map(encodeURIComponent).join('=');\n }\n } // Loop will concatenate with leading `&`, but it's only expected for all\n // but the first query parameter. This strips the leading `&`, while still\n // accounting for the case that the string may in-fact be empty.\n\n\n return string.substr(1);\n}\n//# sourceMappingURL=build-query-string.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/build-query-string.js?"); |
| 563 |
|
| 564 |
/***/ }), |
| 565 |
|
| 566 |
/***/ "./node_modules/@wordpress/url/build-module/clean-for-slug.js": |
| 567 |
/*!********************************************************************!*\ |
| 568 |
!*** ./node_modules/@wordpress/url/build-module/clean-for-slug.js ***! |
| 569 |
\********************************************************************/ |
| 570 |
/*! exports provided: cleanForSlug */ |
| 571 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 572 |
|
| 573 |
"use strict"; |
| 574 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"cleanForSlug\", function() { return cleanForSlug; });\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * External dependencies\n */\n\n/**\n * Performs some basic cleanup of a string for use as a post slug.\n *\n * This replicates some of what `sanitize_title()` does in WordPress core, but\n * is only designed to approximate what the slug will be.\n *\n * Converts Latin-1 Supplement and Latin Extended-A letters to basic Latin\n * letters. Removes combining diacritical marks. Converts whitespace, periods,\n * and forward slashes to hyphens. Removes any remaining non-word characters\n * except hyphens. Converts remaining string to lowercase. It does not account\n * for octets, HTML entities, or other encoded characters.\n *\n * @param {string} string Title or slug to be processed.\n *\n * @return {string} Processed string.\n */\n\nfunction cleanForSlug(string) {\n if (!string) {\n return '';\n }\n\n return Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"trim\"])(Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"deburr\"])(string).replace(/[\\s\\./]+/g, '-').replace(/[^\\w-]+/g, '').toLowerCase(), '-');\n}\n//# sourceMappingURL=clean-for-slug.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/clean-for-slug.js?"); |
| 575 |
|
| 576 |
/***/ }), |
| 577 |
|
| 578 |
/***/ "./node_modules/@wordpress/url/build-module/filter-url-for-display.js": |
| 579 |
/*!****************************************************************************!*\ |
| 580 |
!*** ./node_modules/@wordpress/url/build-module/filter-url-for-display.js ***! |
| 581 |
\****************************************************************************/ |
| 582 |
/*! exports provided: filterURLForDisplay */ |
| 583 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 584 |
|
| 585 |
"use strict"; |
| 586 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"filterURLForDisplay\", function() { return filterURLForDisplay; });\n/**\n * Returns a URL for display.\n *\n * @param {string} url Original URL.\n * @param {number|null} maxLength URL length.\n *\n * @example\n * ```js\n * const displayUrl = filterURLForDisplay( 'https://www.wordpress.org/gutenberg/' ); // wordpress.org/gutenberg\n * const imageUrl = filterURLForDisplay( 'https://www.wordpress.org/wp-content/uploads/img.png', 20 ); // …ent/uploads/img.png\n * ```\n *\n * @return {string} Displayed URL.\n */\nfunction filterURLForDisplay(url) {\n var maxLength = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n // Remove protocol and www prefixes.\n var filteredURL = url.replace(/^(?:https?:)\\/\\/(?:www\\.)?/, ''); // Ends with / and only has that single slash, strip it.\n\n if (filteredURL.match(/^[^\\/]+\\/$/)) {\n filteredURL = filteredURL.replace('/', '');\n }\n\n var mediaRegexp = /([\\w|:])*\\.(?:jpg|jpeg|gif|png|svg)/;\n\n if (!maxLength || filteredURL.length <= maxLength || !filteredURL.match(mediaRegexp)) {\n return filteredURL;\n } // If the file is not greater than max length, return last portion of URL.\n\n\n filteredURL = filteredURL.split('?')[0];\n var urlPieces = filteredURL.split('/');\n var file = urlPieces[urlPieces.length - 1];\n\n if (file.length <= maxLength) {\n return '…' + filteredURL.slice(-maxLength);\n } // If the file is greater than max length, truncate the file.\n\n\n var index = file.lastIndexOf('.');\n var _ref = [file.slice(0, index), file.slice(index + 1)],\n fileName = _ref[0],\n extension = _ref[1];\n var truncatedFile = fileName.slice(-3) + '.' + extension;\n return file.slice(0, maxLength - truncatedFile.length - 1) + '…' + truncatedFile;\n}\n//# sourceMappingURL=filter-url-for-display.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/filter-url-for-display.js?"); |
| 587 |
|
| 588 |
/***/ }), |
| 589 |
|
| 590 |
/***/ "./node_modules/@wordpress/url/build-module/get-authority.js": |
| 591 |
/*!*******************************************************************!*\ |
| 592 |
!*** ./node_modules/@wordpress/url/build-module/get-authority.js ***! |
| 593 |
\*******************************************************************/ |
| 594 |
/*! exports provided: getAuthority */ |
| 595 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 596 |
|
| 597 |
"use strict"; |
| 598 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getAuthority\", function() { return getAuthority; });\n/**\n * Returns the authority part of the URL.\n *\n * @param {string} url The full URL.\n *\n * @example\n * ```js\n * const authority1 = getAuthority( 'https://wordpress.org/help/' ); // 'wordpress.org'\n * const authority2 = getAuthority( 'https://localhost:8080/test/' ); // 'localhost:8080'\n * ```\n *\n * @return {string|void} The authority part of the URL.\n */\nfunction getAuthority(url) {\n var matches = /^[^\\/\\s:]+:(?:\\/\\/)?\\/?([^\\/\\s#?]+)[\\/#?]{0,1}\\S*$/.exec(url);\n\n if (matches) {\n return matches[1];\n }\n}\n//# sourceMappingURL=get-authority.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/get-authority.js?"); |
| 599 |
|
| 600 |
/***/ }), |
| 601 |
|
| 602 |
/***/ "./node_modules/@wordpress/url/build-module/get-fragment.js": |
| 603 |
/*!******************************************************************!*\ |
| 604 |
!*** ./node_modules/@wordpress/url/build-module/get-fragment.js ***! |
| 605 |
\******************************************************************/ |
| 606 |
/*! exports provided: getFragment */ |
| 607 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 608 |
|
| 609 |
"use strict"; |
| 610 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getFragment\", function() { return getFragment; });\n/**\n * Returns the fragment part of the URL.\n *\n * @param {string} url The full URL\n *\n * @example\n * ```js\n * const fragment1 = getFragment( 'http://localhost:8080/this/is/a/test?query=true#fragment' ); // '#fragment'\n * const fragment2 = getFragment( 'https://wordpress.org#another-fragment?query=true' ); // '#another-fragment'\n * ```\n *\n * @return {string|void} The fragment part of the URL.\n */\nfunction getFragment(url) {\n var matches = /^\\S+?(#[^\\s\\?]*)/.exec(url);\n\n if (matches) {\n return matches[1];\n }\n}\n//# sourceMappingURL=get-fragment.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/get-fragment.js?"); |
| 611 |
|
| 612 |
/***/ }), |
| 613 |
|
| 614 |
/***/ "./node_modules/@wordpress/url/build-module/get-path-and-query-string.js": |
| 615 |
/*!*******************************************************************************!*\ |
| 616 |
!*** ./node_modules/@wordpress/url/build-module/get-path-and-query-string.js ***! |
| 617 |
\*******************************************************************************/ |
| 618 |
/*! exports provided: getPathAndQueryString */ |
| 619 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 620 |
|
| 621 |
"use strict"; |
| 622 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getPathAndQueryString\", function() { return getPathAndQueryString; });\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! . */ \"./node_modules/@wordpress/url/build-module/index.js\");\n/**\n * Internal dependencies\n */\n\n/**\n * Returns the path part and query string part of the URL.\n *\n * @param {string} url The full URL.\n *\n * @example\n * ```js\n * const pathAndQueryString1 = getPathAndQueryString( 'http://localhost:8080/this/is/a/test?query=true' ); // '/this/is/a/test?query=true'\n * const pathAndQueryString2 = getPathAndQueryString( 'https://wordpress.org/help/faq/' ); // '/help/faq'\n * ```\n *\n * @return {string} The path part and query string part of the URL.\n */\n\nfunction getPathAndQueryString(url) {\n var path = Object(___WEBPACK_IMPORTED_MODULE_0__[\"getPath\"])(url);\n var queryString = Object(___WEBPACK_IMPORTED_MODULE_0__[\"getQueryString\"])(url);\n var value = '/';\n if (path) value += path;\n if (queryString) value += \"?\".concat(queryString);\n return value;\n}\n//# sourceMappingURL=get-path-and-query-string.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/get-path-and-query-string.js?"); |
| 623 |
|
| 624 |
/***/ }), |
| 625 |
|
| 626 |
/***/ "./node_modules/@wordpress/url/build-module/get-path.js": |
| 627 |
/*!**************************************************************!*\ |
| 628 |
!*** ./node_modules/@wordpress/url/build-module/get-path.js ***! |
| 629 |
\**************************************************************/ |
| 630 |
/*! exports provided: getPath */ |
| 631 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 632 |
|
| 633 |
"use strict"; |
| 634 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getPath\", function() { return getPath; });\n/**\n * Returns the path part of the URL.\n *\n * @param {string} url The full URL.\n *\n * @example\n * ```js\n * const path1 = getPath( 'http://localhost:8080/this/is/a/test?query=true' ); // 'this/is/a/test'\n * const path2 = getPath( 'https://wordpress.org/help/faq/' ); // 'help/faq'\n * ```\n *\n * @return {string|void} The path part of the URL.\n */\nfunction getPath(url) {\n var matches = /^[^\\/\\s:]+:(?:\\/\\/)?[^\\/\\s#?]+[\\/]([^\\s#?]+)[#?]{0,1}\\S*$/.exec(url);\n\n if (matches) {\n return matches[1];\n }\n}\n//# sourceMappingURL=get-path.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/get-path.js?"); |
| 635 |
|
| 636 |
/***/ }), |
| 637 |
|
| 638 |
/***/ "./node_modules/@wordpress/url/build-module/get-protocol.js": |
| 639 |
/*!******************************************************************!*\ |
| 640 |
!*** ./node_modules/@wordpress/url/build-module/get-protocol.js ***! |
| 641 |
\******************************************************************/ |
| 642 |
/*! exports provided: getProtocol */ |
| 643 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 644 |
|
| 645 |
"use strict"; |
| 646 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getProtocol\", function() { return getProtocol; });\n/**\n * Returns the protocol part of the URL.\n *\n * @param {string} url The full URL.\n *\n * @example\n * ```js\n * const protocol1 = getProtocol( 'tel:012345678' ); // 'tel:'\n * const protocol2 = getProtocol( 'https://wordpress.org' ); // 'https:'\n * ```\n *\n * @return {string|void} The protocol part of the URL.\n */\nfunction getProtocol(url) {\n var matches = /^([^\\s:]+:)/.exec(url);\n\n if (matches) {\n return matches[1];\n }\n}\n//# sourceMappingURL=get-protocol.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/get-protocol.js?"); |
| 647 |
|
| 648 |
/***/ }), |
| 649 |
|
| 650 |
/***/ "./node_modules/@wordpress/url/build-module/get-query-arg.js": |
| 651 |
/*!*******************************************************************!*\ |
| 652 |
!*** ./node_modules/@wordpress/url/build-module/get-query-arg.js ***! |
| 653 |
\*******************************************************************/ |
| 654 |
/*! exports provided: getQueryArg */ |
| 655 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 656 |
|
| 657 |
"use strict"; |
| 658 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getQueryArg\", function() { return getQueryArg; });\n/* harmony import */ var _get_query_args__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-query-args */ \"./node_modules/@wordpress/url/build-module/get-query-args.js\");\n/**\n * Internal dependencies\n */\n\n/* eslint-disable jsdoc/valid-types */\n\n/**\n * @typedef {{[key: string]: QueryArgParsed}} QueryArgObject\n */\n\n/* eslint-enable */\n\n/**\n * @typedef {string|string[]|QueryArgObject} QueryArgParsed\n */\n\n/**\n * Returns a single query argument of the url\n *\n * @param {string} url URL.\n * @param {string} arg Query arg name.\n *\n * @example\n * ```js\n * const foo = getQueryArg( 'https://wordpress.org?foo=bar&bar=baz', 'foo' ); // bar\n * ```\n *\n * @return {QueryArgParsed|void} Query arg value.\n */\n\nfunction getQueryArg(url, arg) {\n return Object(_get_query_args__WEBPACK_IMPORTED_MODULE_0__[\"getQueryArgs\"])(url)[arg];\n}\n//# sourceMappingURL=get-query-arg.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/get-query-arg.js?"); |
| 659 |
|
| 660 |
/***/ }), |
| 661 |
|
| 662 |
/***/ "./node_modules/@wordpress/url/build-module/get-query-args.js": |
| 663 |
/*!********************************************************************!*\ |
| 664 |
!*** ./node_modules/@wordpress/url/build-module/get-query-args.js ***! |
| 665 |
\********************************************************************/ |
| 666 |
/*! exports provided: getQueryArgs */ |
| 667 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 668 |
|
| 669 |
"use strict"; |
| 670 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getQueryArgs\", function() { return getQueryArgs; });\n/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ \"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var _get_query_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./get-query-string */ \"./node_modules/@wordpress/url/build-module/get-query-string.js\");\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * Internal dependencies\n */\n\n/** @typedef {import('./get-query-arg').QueryArgParsed} QueryArgParsed */\n\n/**\n * @typedef {Record<string,QueryArgParsed>} QueryArgs\n */\n\n/**\n * Sets a value in object deeply by a given array of path segments. Mutates the\n * object reference.\n *\n * @param {Record<string,*>} object Object in which to assign.\n * @param {string[]} path Path segment at which to set value.\n * @param {*} value Value to set.\n */\n\nfunction setPath(object, path, value) {\n var length = path.length;\n var lastIndex = length - 1;\n\n for (var i = 0; i < length; i++) {\n var key = path[i];\n\n if (!key && Array.isArray(object)) {\n // If key is empty string and next value is array, derive key from\n // the current length of the array.\n key = object.length.toString();\n } // If the next key in the path is numeric (or empty string), it will be\n // created as an array. Otherwise, it will be created as an object.\n\n\n var isNextKeyArrayIndex = !isNaN(Number(path[i + 1]));\n object[key] = i === lastIndex ? // If at end of path, assign the intended value.\n value : // Otherwise, advance to the next object in the path, creating\n // it if it does not yet exist.\n object[key] || (isNextKeyArrayIndex ? [] : {});\n\n if (Array.isArray(object[key]) && !isNextKeyArrayIndex) {\n // If we current key is non-numeric, but the next value is an\n // array, coerce the value to an object.\n object[key] = _objectSpread({}, object[key]);\n } // Update working reference object to the next in the path.\n\n\n object = object[key];\n }\n}\n/**\n * Returns an object of query arguments of the given URL. If the given URL is\n * invalid or has no querystring, an empty object is returned.\n *\n * @param {string} url URL.\n *\n * @example\n * ```js\n * const foo = getQueryArgs( 'https://wordpress.org?foo=bar&bar=baz' );\n * // { \"foo\": \"bar\", \"bar\": \"baz\" }\n * ```\n *\n * @return {QueryArgs} Query args object.\n */\n\n\nfunction getQueryArgs(url) {\n return (Object(_get_query_string__WEBPACK_IMPORTED_MODULE_2__[\"getQueryString\"])(url) || ''). // Normalize space encoding, accounting for PHP URL encoding\n // corresponding to `application/x-www-form-urlencoded`.\n //\n // See: https://tools.ietf.org/html/rfc1866#section-8.2.1\n replace(/\\+/g, '%20').split('&').reduce(function (accumulator, keyValue) {\n var _keyValue$split$filte = keyValue.split('=') // Filtering avoids decoding as `undefined` for value, where\n // default is restored in destructuring assignment.\n .filter(Boolean).map(decodeURIComponent),\n _keyValue$split$filte2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_keyValue$split$filte, 2),\n key = _keyValue$split$filte2[0],\n _keyValue$split$filte3 = _keyValue$split$filte2[1],\n value = _keyValue$split$filte3 === void 0 ? '' : _keyValue$split$filte3;\n\n if (key) {\n var segments = key.replace(/\\]/g, '').split('[');\n setPath(accumulator, segments, value);\n }\n\n return accumulator;\n }, {});\n}\n//# sourceMappingURL=get-query-args.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/get-query-args.js?"); |
| 671 |
|
| 672 |
/***/ }), |
| 673 |
|
| 674 |
/***/ "./node_modules/@wordpress/url/build-module/get-query-string.js": |
| 675 |
/*!**********************************************************************!*\ |
| 676 |
!*** ./node_modules/@wordpress/url/build-module/get-query-string.js ***! |
| 677 |
\**********************************************************************/ |
| 678 |
/*! exports provided: getQueryString */ |
| 679 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 680 |
|
| 681 |
"use strict"; |
| 682 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getQueryString\", function() { return getQueryString; });\n/**\n * Returns the query string part of the URL.\n *\n * @param {string} url The full URL.\n *\n * @example\n * ```js\n * const queryString = getQueryString( 'http://localhost:8080/this/is/a/test?query=true#fragment' ); // 'query=true'\n * ```\n *\n * @return {string|void} The query string part of the URL.\n */\nfunction getQueryString(url) {\n var query;\n\n try {\n query = new URL(url, 'http://example.com').search.substring(1);\n } catch (error) {}\n\n if (query) {\n return query;\n }\n}\n//# sourceMappingURL=get-query-string.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/get-query-string.js?"); |
| 683 |
|
| 684 |
/***/ }), |
| 685 |
|
| 686 |
/***/ "./node_modules/@wordpress/url/build-module/has-query-arg.js": |
| 687 |
/*!*******************************************************************!*\ |
| 688 |
!*** ./node_modules/@wordpress/url/build-module/has-query-arg.js ***! |
| 689 |
\*******************************************************************/ |
| 690 |
/*! exports provided: hasQueryArg */ |
| 691 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 692 |
|
| 693 |
"use strict"; |
| 694 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hasQueryArg\", function() { return hasQueryArg; });\n/* harmony import */ var _get_query_arg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-query-arg */ \"./node_modules/@wordpress/url/build-module/get-query-arg.js\");\n/**\n * Internal dependencies\n */\n\n/**\n * Determines whether the URL contains a given query arg.\n *\n * @param {string} url URL.\n * @param {string} arg Query arg name.\n *\n * @example\n * ```js\n * const hasBar = hasQueryArg( 'https://wordpress.org?foo=bar&bar=baz', 'bar' ); // true\n * ```\n *\n * @return {boolean} Whether or not the URL contains the query arg.\n */\n\nfunction hasQueryArg(url, arg) {\n return Object(_get_query_arg__WEBPACK_IMPORTED_MODULE_0__[\"getQueryArg\"])(url, arg) !== undefined;\n}\n//# sourceMappingURL=has-query-arg.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/has-query-arg.js?"); |
| 695 |
|
| 696 |
/***/ }), |
| 697 |
|
| 698 |
/***/ "./node_modules/@wordpress/url/build-module/index.js": |
| 699 |
/*!***********************************************************!*\ |
| 700 |
!*** ./node_modules/@wordpress/url/build-module/index.js ***! |
| 701 |
\***********************************************************/ |
| 702 |
/*! exports provided: isURL, isEmail, getProtocol, isValidProtocol, getAuthority, isValidAuthority, getPath, isValidPath, getQueryString, buildQueryString, isValidQueryString, getPathAndQueryString, getFragment, isValidFragment, addQueryArgs, getQueryArg, getQueryArgs, hasQueryArg, removeQueryArgs, prependHTTP, safeDecodeURI, safeDecodeURIComponent, filterURLForDisplay, cleanForSlug */ |
| 703 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 704 |
|
| 705 |
"use strict"; |
| 706 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./is-url */ \"./node_modules/@wordpress/url/build-module/is-url.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isURL\", function() { return _is_url__WEBPACK_IMPORTED_MODULE_0__[\"isURL\"]; });\n\n/* harmony import */ var _is_email__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./is-email */ \"./node_modules/@wordpress/url/build-module/is-email.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isEmail\", function() { return _is_email__WEBPACK_IMPORTED_MODULE_1__[\"isEmail\"]; });\n\n/* harmony import */ var _get_protocol__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./get-protocol */ \"./node_modules/@wordpress/url/build-module/get-protocol.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getProtocol\", function() { return _get_protocol__WEBPACK_IMPORTED_MODULE_2__[\"getProtocol\"]; });\n\n/* harmony import */ var _is_valid_protocol__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./is-valid-protocol */ \"./node_modules/@wordpress/url/build-module/is-valid-protocol.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidProtocol\", function() { return _is_valid_protocol__WEBPACK_IMPORTED_MODULE_3__[\"isValidProtocol\"]; });\n\n/* harmony import */ var _get_authority__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get-authority */ \"./node_modules/@wordpress/url/build-module/get-authority.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getAuthority\", function() { return _get_authority__WEBPACK_IMPORTED_MODULE_4__[\"getAuthority\"]; });\n\n/* harmony import */ var _is_valid_authority__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./is-valid-authority */ \"./node_modules/@wordpress/url/build-module/is-valid-authority.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidAuthority\", function() { return _is_valid_authority__WEBPACK_IMPORTED_MODULE_5__[\"isValidAuthority\"]; });\n\n/* harmony import */ var _get_path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./get-path */ \"./node_modules/@wordpress/url/build-module/get-path.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getPath\", function() { return _get_path__WEBPACK_IMPORTED_MODULE_6__[\"getPath\"]; });\n\n/* harmony import */ var _is_valid_path__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./is-valid-path */ \"./node_modules/@wordpress/url/build-module/is-valid-path.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidPath\", function() { return _is_valid_path__WEBPACK_IMPORTED_MODULE_7__[\"isValidPath\"]; });\n\n/* harmony import */ var _get_query_string__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./get-query-string */ \"./node_modules/@wordpress/url/build-module/get-query-string.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getQueryString\", function() { return _get_query_string__WEBPACK_IMPORTED_MODULE_8__[\"getQueryString\"]; });\n\n/* harmony import */ var _build_query_string__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./build-query-string */ \"./node_modules/@wordpress/url/build-module/build-query-string.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"buildQueryString\", function() { return _build_query_string__WEBPACK_IMPORTED_MODULE_9__[\"buildQueryString\"]; });\n\n/* harmony import */ var _is_valid_query_string__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./is-valid-query-string */ \"./node_modules/@wordpress/url/build-module/is-valid-query-string.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidQueryString\", function() { return _is_valid_query_string__WEBPACK_IMPORTED_MODULE_10__[\"isValidQueryString\"]; });\n\n/* harmony import */ var _get_path_and_query_string__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./get-path-and-query-string */ \"./node_modules/@wordpress/url/build-module/get-path-and-query-string.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getPathAndQueryString\", function() { return _get_path_and_query_string__WEBPACK_IMPORTED_MODULE_11__[\"getPathAndQueryString\"]; });\n\n/* harmony import */ var _get_fragment__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./get-fragment */ \"./node_modules/@wordpress/url/build-module/get-fragment.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getFragment\", function() { return _get_fragment__WEBPACK_IMPORTED_MODULE_12__[\"getFragment\"]; });\n\n/* harmony import */ var _is_valid_fragment__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./is-valid-fragment */ \"./node_modules/@wordpress/url/build-module/is-valid-fragment.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidFragment\", function() { return _is_valid_fragment__WEBPACK_IMPORTED_MODULE_13__[\"isValidFragment\"]; });\n\n/* harmony import */ var _add_query_args__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./add-query-args */ \"./node_modules/@wordpress/url/build-module/add-query-args.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"addQueryArgs\", function() { return _add_query_args__WEBPACK_IMPORTED_MODULE_14__[\"addQueryArgs\"]; });\n\n/* harmony import */ var _get_query_arg__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./get-query-arg */ \"./node_modules/@wordpress/url/build-module/get-query-arg.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getQueryArg\", function() { return _get_query_arg__WEBPACK_IMPORTED_MODULE_15__[\"getQueryArg\"]; });\n\n/* harmony import */ var _get_query_args__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./get-query-args */ \"./node_modules/@wordpress/url/build-module/get-query-args.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getQueryArgs\", function() { return _get_query_args__WEBPACK_IMPORTED_MODULE_16__[\"getQueryArgs\"]; });\n\n/* harmony import */ var _has_query_arg__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./has-query-arg */ \"./node_modules/@wordpress/url/build-module/has-query-arg.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"hasQueryArg\", function() { return _has_query_arg__WEBPACK_IMPORTED_MODULE_17__[\"hasQueryArg\"]; });\n\n/* harmony import */ var _remove_query_args__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./remove-query-args */ \"./node_modules/@wordpress/url/build-module/remove-query-args.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"removeQueryArgs\", function() { return _remove_query_args__WEBPACK_IMPORTED_MODULE_18__[\"removeQueryArgs\"]; });\n\n/* harmony import */ var _prepend_http__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./prepend-http */ \"./node_modules/@wordpress/url/build-module/prepend-http.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"prependHTTP\", function() { return _prepend_http__WEBPACK_IMPORTED_MODULE_19__[\"prependHTTP\"]; });\n\n/* harmony import */ var _safe_decode_uri__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./safe-decode-uri */ \"./node_modules/@wordpress/url/build-module/safe-decode-uri.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"safeDecodeURI\", function() { return _safe_decode_uri__WEBPACK_IMPORTED_MODULE_20__[\"safeDecodeURI\"]; });\n\n/* harmony import */ var _safe_decode_uri_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./safe-decode-uri-component */ \"./node_modules/@wordpress/url/build-module/safe-decode-uri-component.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"safeDecodeURIComponent\", function() { return _safe_decode_uri_component__WEBPACK_IMPORTED_MODULE_21__[\"safeDecodeURIComponent\"]; });\n\n/* harmony import */ var _filter_url_for_display__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./filter-url-for-display */ \"./node_modules/@wordpress/url/build-module/filter-url-for-display.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"filterURLForDisplay\", function() { return _filter_url_for_display__WEBPACK_IMPORTED_MODULE_22__[\"filterURLForDisplay\"]; });\n\n/* harmony import */ var _clean_for_slug__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./clean-for-slug */ \"./node_modules/@wordpress/url/build-module/clean-for-slug.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"cleanForSlug\", function() { return _clean_for_slug__WEBPACK_IMPORTED_MODULE_23__[\"cleanForSlug\"]; });\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/index.js?"); |
| 707 |
|
| 708 |
/***/ }), |
| 709 |
|
| 710 |
/***/ "./node_modules/@wordpress/url/build-module/is-email.js": |
| 711 |
/*!**************************************************************!*\ |
| 712 |
!*** ./node_modules/@wordpress/url/build-module/is-email.js ***! |
| 713 |
\**************************************************************/ |
| 714 |
/*! exports provided: isEmail */ |
| 715 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 716 |
|
| 717 |
"use strict"; |
| 718 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isEmail\", function() { return isEmail; });\nvar EMAIL_REGEXP = /^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\\.[a-z]{2,63}$/i;\n/**\n * Determines whether the given string looks like an email.\n *\n * @param {string} email The string to scrutinise.\n *\n * @example\n * ```js\n * const isEmail = isEmail( 'hello@wordpress.org' ); // true\n * ```\n *\n * @return {boolean} Whether or not it looks like an email.\n */\n\nfunction isEmail(email) {\n return EMAIL_REGEXP.test(email);\n}\n//# sourceMappingURL=is-email.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/is-email.js?"); |
| 719 |
|
| 720 |
/***/ }), |
| 721 |
|
| 722 |
/***/ "./node_modules/@wordpress/url/build-module/is-url.js": |
| 723 |
/*!************************************************************!*\ |
| 724 |
!*** ./node_modules/@wordpress/url/build-module/is-url.js ***! |
| 725 |
\************************************************************/ |
| 726 |
/*! exports provided: isURL */ |
| 727 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 728 |
|
| 729 |
"use strict"; |
| 730 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isURL\", function() { return isURL; });\n/**\n * Determines whether the given string looks like a URL.\n *\n * @param {string} url The string to scrutinise.\n *\n * @example\n * ```js\n * const isURL = isURL( 'https://wordpress.org' ); // true\n * ```\n *\n * @see https://url.spec.whatwg.org/\n * @see https://url.spec.whatwg.org/#valid-url-string\n *\n * @return {boolean} Whether or not it looks like a URL.\n */\nfunction isURL(url) {\n // A URL can be considered value if the `URL` constructor is able to parse\n // it. The constructor throws an error for an invalid URL.\n try {\n new URL(url);\n return true;\n } catch (_unused) {\n return false;\n }\n}\n//# sourceMappingURL=is-url.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/is-url.js?"); |
| 731 |
|
| 732 |
/***/ }), |
| 733 |
|
| 734 |
/***/ "./node_modules/@wordpress/url/build-module/is-valid-authority.js": |
| 735 |
/*!************************************************************************!*\ |
| 736 |
!*** ./node_modules/@wordpress/url/build-module/is-valid-authority.js ***! |
| 737 |
\************************************************************************/ |
| 738 |
/*! exports provided: isValidAuthority */ |
| 739 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 740 |
|
| 741 |
"use strict"; |
| 742 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidAuthority\", function() { return isValidAuthority; });\n/**\n * Checks for invalid characters within the provided authority.\n *\n * @param {string} authority A string containing the URL authority.\n *\n * @example\n * ```js\n * const isValid = isValidAuthority( 'wordpress.org' ); // true\n * const isNotValid = isValidAuthority( 'wordpress#org' ); // false\n * ```\n *\n * @return {boolean} True if the argument contains a valid authority.\n */\nfunction isValidAuthority(authority) {\n if (!authority) {\n return false;\n }\n\n return /^[^\\s#?]+$/.test(authority);\n}\n//# sourceMappingURL=is-valid-authority.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/is-valid-authority.js?"); |
| 743 |
|
| 744 |
/***/ }), |
| 745 |
|
| 746 |
/***/ "./node_modules/@wordpress/url/build-module/is-valid-fragment.js": |
| 747 |
/*!***********************************************************************!*\ |
| 748 |
!*** ./node_modules/@wordpress/url/build-module/is-valid-fragment.js ***! |
| 749 |
\***********************************************************************/ |
| 750 |
/*! exports provided: isValidFragment */ |
| 751 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 752 |
|
| 753 |
"use strict"; |
| 754 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidFragment\", function() { return isValidFragment; });\n/**\n * Checks for invalid characters within the provided fragment.\n *\n * @param {string} fragment The url fragment.\n *\n * @example\n * ```js\n * const isValid = isValidFragment( '#valid-fragment' ); // true\n * const isNotValid = isValidFragment( '#invalid-#fragment' ); // false\n * ```\n *\n * @return {boolean} True if the argument contains a valid fragment.\n */\nfunction isValidFragment(fragment) {\n if (!fragment) {\n return false;\n }\n\n return /^#[^\\s#?\\/]*$/.test(fragment);\n}\n//# sourceMappingURL=is-valid-fragment.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/is-valid-fragment.js?"); |
| 755 |
|
| 756 |
/***/ }), |
| 757 |
|
| 758 |
/***/ "./node_modules/@wordpress/url/build-module/is-valid-path.js": |
| 759 |
/*!*******************************************************************!*\ |
| 760 |
!*** ./node_modules/@wordpress/url/build-module/is-valid-path.js ***! |
| 761 |
\*******************************************************************/ |
| 762 |
/*! exports provided: isValidPath */ |
| 763 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 764 |
|
| 765 |
"use strict"; |
| 766 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidPath\", function() { return isValidPath; });\n/**\n * Checks for invalid characters within the provided path.\n *\n * @param {string} path The URL path.\n *\n * @example\n * ```js\n * const isValid = isValidPath( 'test/path/' ); // true\n * const isNotValid = isValidPath( '/invalid?test/path/' ); // false\n * ```\n *\n * @return {boolean} True if the argument contains a valid path\n */\nfunction isValidPath(path) {\n if (!path) {\n return false;\n }\n\n return /^[^\\s#?]+$/.test(path);\n}\n//# sourceMappingURL=is-valid-path.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/is-valid-path.js?"); |
| 767 |
|
| 768 |
/***/ }), |
| 769 |
|
| 770 |
/***/ "./node_modules/@wordpress/url/build-module/is-valid-protocol.js": |
| 771 |
/*!***********************************************************************!*\ |
| 772 |
!*** ./node_modules/@wordpress/url/build-module/is-valid-protocol.js ***! |
| 773 |
\***********************************************************************/ |
| 774 |
/*! exports provided: isValidProtocol */ |
| 775 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 776 |
|
| 777 |
"use strict"; |
| 778 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidProtocol\", function() { return isValidProtocol; });\n/**\n * Tests if a url protocol is valid.\n *\n * @param {string} protocol The url protocol.\n *\n * @example\n * ```js\n * const isValid = isValidProtocol( 'https:' ); // true\n * const isNotValid = isValidProtocol( 'https :' ); // false\n * ```\n *\n * @return {boolean} True if the argument is a valid protocol (e.g. http:, tel:).\n */\nfunction isValidProtocol(protocol) {\n if (!protocol) {\n return false;\n }\n\n return /^[a-z\\-.\\+]+[0-9]*:$/i.test(protocol);\n}\n//# sourceMappingURL=is-valid-protocol.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/is-valid-protocol.js?"); |
| 779 |
|
| 780 |
/***/ }), |
| 781 |
|
| 782 |
/***/ "./node_modules/@wordpress/url/build-module/is-valid-query-string.js": |
| 783 |
/*!***************************************************************************!*\ |
| 784 |
!*** ./node_modules/@wordpress/url/build-module/is-valid-query-string.js ***! |
| 785 |
\***************************************************************************/ |
| 786 |
/*! exports provided: isValidQueryString */ |
| 787 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 788 |
|
| 789 |
"use strict"; |
| 790 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidQueryString\", function() { return isValidQueryString; });\n/**\n * Checks for invalid characters within the provided query string.\n *\n * @param {string} queryString The query string.\n *\n * @example\n * ```js\n * const isValid = isValidQueryString( 'query=true&another=false' ); // true\n * const isNotValid = isValidQueryString( 'query=true?another=false' ); // false\n * ```\n *\n * @return {boolean} True if the argument contains a valid query string.\n */\nfunction isValidQueryString(queryString) {\n if (!queryString) {\n return false;\n }\n\n return /^[^\\s#?\\/]+$/.test(queryString);\n}\n//# sourceMappingURL=is-valid-query-string.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/is-valid-query-string.js?"); |
| 791 |
|
| 792 |
/***/ }), |
| 793 |
|
| 794 |
/***/ "./node_modules/@wordpress/url/build-module/prepend-http.js": |
| 795 |
/*!******************************************************************!*\ |
| 796 |
!*** ./node_modules/@wordpress/url/build-module/prepend-http.js ***! |
| 797 |
\******************************************************************/ |
| 798 |
/*! exports provided: prependHTTP */ |
| 799 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 800 |
|
| 801 |
"use strict"; |
| 802 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"prependHTTP\", function() { return prependHTTP; });\n/* harmony import */ var _is_email__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./is-email */ \"./node_modules/@wordpress/url/build-module/is-email.js\");\n/**\n * Internal dependencies\n */\n\nvar USABLE_HREF_REGEXP = /^(?:[a-z]+:|#|\\?|\\.|\\/)/i;\n/**\n * Prepends \"http://\" to a url, if it looks like something that is meant to be a TLD.\n *\n * @param {string} url The URL to test.\n *\n * @example\n * ```js\n * const actualURL = prependHTTP( 'wordpress.org' ); // http://wordpress.org\n * ```\n *\n * @return {string} The updated URL.\n */\n\nfunction prependHTTP(url) {\n if (!url) {\n return url;\n }\n\n url = url.trim();\n\n if (!USABLE_HREF_REGEXP.test(url) && !Object(_is_email__WEBPACK_IMPORTED_MODULE_0__[\"isEmail\"])(url)) {\n return 'http://' + url;\n }\n\n return url;\n}\n//# sourceMappingURL=prepend-http.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/prepend-http.js?"); |
| 803 |
|
| 804 |
/***/ }), |
| 805 |
|
| 806 |
/***/ "./node_modules/@wordpress/url/build-module/remove-query-args.js": |
| 807 |
/*!***********************************************************************!*\ |
| 808 |
!*** ./node_modules/@wordpress/url/build-module/remove-query-args.js ***! |
| 809 |
\***********************************************************************/ |
| 810 |
/*! exports provided: removeQueryArgs */ |
| 811 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 812 |
|
| 813 |
"use strict"; |
| 814 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeQueryArgs\", function() { return removeQueryArgs; });\n/* harmony import */ var _get_query_args__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-query-args */ \"./node_modules/@wordpress/url/build-module/get-query-args.js\");\n/* harmony import */ var _build_query_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./build-query-string */ \"./node_modules/@wordpress/url/build-module/build-query-string.js\");\n/**\n * Internal dependencies\n */\n\n\n/**\n * Removes arguments from the query string of the url\n *\n * @param {string} url URL.\n * @param {...string} args Query Args.\n *\n * @example\n * ```js\n * const newUrl = removeQueryArgs( 'https://wordpress.org?foo=bar&bar=baz&baz=foobar', 'foo', 'bar' ); // https://wordpress.org?baz=foobar\n * ```\n *\n * @return {string} Updated URL.\n */\n\nfunction removeQueryArgs(url) {\n var queryStringIndex = url.indexOf('?');\n\n if (queryStringIndex === -1) {\n return url;\n }\n\n var query = Object(_get_query_args__WEBPACK_IMPORTED_MODULE_0__[\"getQueryArgs\"])(url);\n var baseURL = url.substr(0, queryStringIndex);\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n args.forEach(function (arg) {\n return delete query[arg];\n });\n var queryString = Object(_build_query_string__WEBPACK_IMPORTED_MODULE_1__[\"buildQueryString\"])(query);\n return queryString ? baseURL + '?' + queryString : baseURL;\n}\n//# sourceMappingURL=remove-query-args.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/remove-query-args.js?"); |
| 815 |
|
| 816 |
/***/ }), |
| 817 |
|
| 818 |
/***/ "./node_modules/@wordpress/url/build-module/safe-decode-uri-component.js": |
| 819 |
/*!*******************************************************************************!*\ |
| 820 |
!*** ./node_modules/@wordpress/url/build-module/safe-decode-uri-component.js ***! |
| 821 |
\*******************************************************************************/ |
| 822 |
/*! exports provided: safeDecodeURIComponent */ |
| 823 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 824 |
|
| 825 |
"use strict"; |
| 826 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"safeDecodeURIComponent\", function() { return safeDecodeURIComponent; });\n/**\n * Safely decodes a URI component with `decodeURIComponent`. Returns the URI component unmodified if\n * `decodeURIComponent` throws an error.\n *\n * @param {string} uriComponent URI component to decode.\n *\n * @return {string} Decoded URI component if possible.\n */\nfunction safeDecodeURIComponent(uriComponent) {\n try {\n return decodeURIComponent(uriComponent);\n } catch (uriComponentError) {\n return uriComponent;\n }\n}\n//# sourceMappingURL=safe-decode-uri-component.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/safe-decode-uri-component.js?"); |
| 827 |
|
| 828 |
/***/ }), |
| 829 |
|
| 830 |
/***/ "./node_modules/@wordpress/url/build-module/safe-decode-uri.js": |
| 831 |
/*!*********************************************************************!*\ |
| 832 |
!*** ./node_modules/@wordpress/url/build-module/safe-decode-uri.js ***! |
| 833 |
\*********************************************************************/ |
| 834 |
/*! exports provided: safeDecodeURI */ |
| 835 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 836 |
|
| 837 |
"use strict"; |
| 838 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"safeDecodeURI\", function() { return safeDecodeURI; });\n/**\n * Safely decodes a URI with `decodeURI`. Returns the URI unmodified if\n * `decodeURI` throws an error.\n *\n * @param {string} uri URI to decode.\n *\n * @example\n * ```js\n * const badUri = safeDecodeURI( '%z' ); // does not throw an Error, simply returns '%z'\n * ```\n *\n * @return {string} Decoded URI if possible.\n */\nfunction safeDecodeURI(uri) {\n try {\n return decodeURI(uri);\n } catch (uriError) {\n return uri;\n }\n}\n//# sourceMappingURL=safe-decode-uri.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/url/build-module/safe-decode-uri.js?"); |
| 839 |
|
| 840 |
/***/ }), |
| 841 |
|
| 842 |
/***/ "./node_modules/memize/index.js": |
| 843 |
/*!**************************************!*\ |
| 844 |
!*** ./node_modules/memize/index.js ***! |
| 845 |
\**************************************/ |
| 846 |
/*! no static exports found */ |
| 847 |
/***/ (function(module, exports, __webpack_require__) { |
| 848 |
|
| 849 |
eval("/**\n * Memize options object.\n *\n * @typedef MemizeOptions\n *\n * @property {number} [maxSize] Maximum size of the cache.\n */\n\n/**\n * Internal cache entry.\n *\n * @typedef MemizeCacheNode\n *\n * @property {?MemizeCacheNode|undefined} [prev] Previous node.\n * @property {?MemizeCacheNode|undefined} [next] Next node.\n * @property {Array<*>} args Function arguments for cache\n * entry.\n * @property {*} val Function result.\n */\n\n/**\n * Properties of the enhanced function for controlling cache.\n *\n * @typedef MemizeMemoizedFunction\n *\n * @property {()=>void} clear Clear the cache.\n */\n\n/**\n * Accepts a function to be memoized, and returns a new memoized function, with\n * optional options.\n *\n * @template {Function} F\n *\n * @param {F} fn Function to memoize.\n * @param {MemizeOptions} [options] Options object.\n *\n * @return {F & MemizeMemoizedFunction} Memoized function.\n */\nfunction memize( fn, options ) {\n\tvar size = 0;\n\n\t/** @type {?MemizeCacheNode|undefined} */\n\tvar head;\n\n\t/** @type {?MemizeCacheNode|undefined} */\n\tvar tail;\n\n\toptions = options || {};\n\n\tfunction memoized( /* ...args */ ) {\n\t\tvar node = head,\n\t\t\tlen = arguments.length,\n\t\t\targs, i;\n\n\t\tsearchCache: while ( node ) {\n\t\t\t// Perform a shallow equality test to confirm that whether the node\n\t\t\t// under test is a candidate for the arguments passed. Two arrays\n\t\t\t// are shallowly equal if their length matches and each entry is\n\t\t\t// strictly equal between the two sets. Avoid abstracting to a\n\t\t\t// function which could incur an arguments leaking deoptimization.\n\n\t\t\t// Check whether node arguments match arguments length\n\t\t\tif ( node.args.length !== arguments.length ) {\n\t\t\t\tnode = node.next;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Check whether node arguments match arguments values\n\t\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\t\tif ( node.args[ i ] !== arguments[ i ] ) {\n\t\t\t\t\tnode = node.next;\n\t\t\t\t\tcontinue searchCache;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// At this point we can assume we've found a match\n\n\t\t\t// Surface matched node to head if not already\n\t\t\tif ( node !== head ) {\n\t\t\t\t// As tail, shift to previous. Must only shift if not also\n\t\t\t\t// head, since if both head and tail, there is no previous.\n\t\t\t\tif ( node === tail ) {\n\t\t\t\t\ttail = node.prev;\n\t\t\t\t}\n\n\t\t\t\t// Adjust siblings to point to each other. If node was tail,\n\t\t\t\t// this also handles new tail's empty `next` assignment.\n\t\t\t\t/** @type {MemizeCacheNode} */ ( node.prev ).next = node.next;\n\t\t\t\tif ( node.next ) {\n\t\t\t\t\tnode.next.prev = node.prev;\n\t\t\t\t}\n\n\t\t\t\tnode.next = head;\n\t\t\t\tnode.prev = null;\n\t\t\t\t/** @type {MemizeCacheNode} */ ( head ).prev = node;\n\t\t\t\thead = node;\n\t\t\t}\n\n\t\t\t// Return immediately\n\t\t\treturn node.val;\n\t\t}\n\n\t\t// No cached value found. Continue to insertion phase:\n\n\t\t// Create a copy of arguments (avoid leaking deoptimization)\n\t\targs = new Array( len );\n\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\targs[ i ] = arguments[ i ];\n\t\t}\n\n\t\tnode = {\n\t\t\targs: args,\n\n\t\t\t// Generate the result from original function\n\t\t\tval: fn.apply( null, args ),\n\t\t};\n\n\t\t// Don't need to check whether node is already head, since it would\n\t\t// have been returned above already if it was\n\n\t\t// Shift existing head down list\n\t\tif ( head ) {\n\t\t\thead.prev = node;\n\t\t\tnode.next = head;\n\t\t} else {\n\t\t\t// If no head, follows that there's no tail (at initial or reset)\n\t\t\ttail = node;\n\t\t}\n\n\t\t// Trim tail if we're reached max size and are pending cache insertion\n\t\tif ( size === /** @type {MemizeOptions} */ ( options ).maxSize ) {\n\t\t\ttail = /** @type {MemizeCacheNode} */ ( tail ).prev;\n\t\t\t/** @type {MemizeCacheNode} */ ( tail ).next = null;\n\t\t} else {\n\t\t\tsize++;\n\t\t}\n\n\t\thead = node;\n\n\t\treturn node.val;\n\t}\n\n\tmemoized.clear = function() {\n\t\thead = null;\n\t\ttail = null;\n\t\tsize = 0;\n\t};\n\n\tif ( false ) {}\n\n\t// Ignore reason: There's not a clear solution to create an intersection of\n\t// the function with additional properties, where the goal is to retain the\n\t// function signature of the incoming argument and add control properties\n\t// on the return value.\n\n\t// @ts-ignore\n\treturn memoized;\n}\n\nmodule.exports = memize;\n\n\n//# sourceURL=webpack:///./node_modules/memize/index.js?"); |
| 850 |
|
| 851 |
/***/ }), |
| 852 |
|
| 853 |
/***/ "./node_modules/raw-loader/index.js!./wpvrelement/editor.css": |
| 854 |
/*!**********************************************************!*\ |
| 855 |
!*** ./node_modules/raw-loader!./wpvrelement/editor.css ***! |
| 856 |
\**********************************************************/ |
| 857 |
/*! no static exports found */ |
| 858 |
/***/ (function(module, exports) { |
| 859 |
|
| 860 |
eval("module.exports = \".vce-text-block {\\n min-height: 1em;\\n}\\n\"\n\n//# sourceURL=webpack:///./wpvrelement/editor.css?./node_modules/raw-loader"); |
| 861 |
|
| 862 |
/***/ }), |
| 863 |
|
| 864 |
/***/ "./node_modules/regenerator-runtime/runtime.js": |
| 865 |
/*!*****************************************************!*\ |
| 866 |
!*** ./node_modules/regenerator-runtime/runtime.js ***! |
| 867 |
\*****************************************************/ |
| 868 |
/*! no static exports found */ |
| 869 |
/***/ (function(module, exports, __webpack_require__) { |
| 870 |
|
| 871 |
eval("/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunction.displayName = define(\n GeneratorFunctionPrototype,\n toStringTagSymbol,\n \"GeneratorFunction\"\n );\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n define(prototype, method, function(arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n define(Gp, toStringTagSymbol, \"Generator\");\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n true ? module.exports : undefined\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n\n\n//# sourceURL=webpack:///./node_modules/regenerator-runtime/runtime.js?"); |
| 872 |
|
| 873 |
/***/ }), |
| 874 |
|
| 875 |
/***/ "./node_modules/sprintf-js/src/sprintf.js": |
| 876 |
/*!************************************************!*\ |
| 877 |
!*** ./node_modules/sprintf-js/src/sprintf.js ***! |
| 878 |
\************************************************/ |
| 879 |
/*! no static exports found */ |
| 880 |
/***/ (function(module, exports, __webpack_require__) { |
| 881 |
|
| 882 |
eval("/* global window, exports, define */\n\n!function() {\n 'use strict'\n\n var re = {\n not_string: /[^s]/,\n not_bool: /[^t]/,\n not_type: /[^T]/,\n not_primitive: /[^v]/,\n number: /[diefg]/,\n numeric_arg: /[bcdiefguxX]/,\n json: /[j]/,\n not_json: /[^j]/,\n text: /^[^\\x25]+/,\n modulo: /^\\x25{2}/,\n placeholder: /^\\x25(?:([1-9]\\d*)\\$|\\(([^)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-gijostTuvxX])/,\n key: /^([a-z_][a-z_\\d]*)/i,\n key_access: /^\\.([a-z_][a-z_\\d]*)/i,\n index_access: /^\\[(\\d+)\\]/,\n sign: /^[+-]/\n }\n\n function sprintf(key) {\n // `arguments` is not an array, but should be fine for this call\n return sprintf_format(sprintf_parse(key), arguments)\n }\n\n function vsprintf(fmt, argv) {\n return sprintf.apply(null, [fmt].concat(argv || []))\n }\n\n function sprintf_format(parse_tree, argv) {\n var cursor = 1, tree_length = parse_tree.length, arg, output = '', i, k, ph, pad, pad_character, pad_length, is_positive, sign\n for (i = 0; i < tree_length; i++) {\n if (typeof parse_tree[i] === 'string') {\n output += parse_tree[i]\n }\n else if (typeof parse_tree[i] === 'object') {\n ph = parse_tree[i] // convenience purposes only\n if (ph.keys) { // keyword argument\n arg = argv[cursor]\n for (k = 0; k < ph.keys.length; k++) {\n if (arg == undefined) {\n throw new Error(sprintf('[sprintf] Cannot access property \"%s\" of undefined value \"%s\"', ph.keys[k], ph.keys[k-1]))\n }\n arg = arg[ph.keys[k]]\n }\n }\n else if (ph.param_no) { // positional argument (explicit)\n arg = argv[ph.param_no]\n }\n else { // positional argument (implicit)\n arg = argv[cursor++]\n }\n\n if (re.not_type.test(ph.type) && re.not_primitive.test(ph.type) && arg instanceof Function) {\n arg = arg()\n }\n\n if (re.numeric_arg.test(ph.type) && (typeof arg !== 'number' && isNaN(arg))) {\n throw new TypeError(sprintf('[sprintf] expecting number but found %T', arg))\n }\n\n if (re.number.test(ph.type)) {\n is_positive = arg >= 0\n }\n\n switch (ph.type) {\n case 'b':\n arg = parseInt(arg, 10).toString(2)\n break\n case 'c':\n arg = String.fromCharCode(parseInt(arg, 10))\n break\n case 'd':\n case 'i':\n arg = parseInt(arg, 10)\n break\n case 'j':\n arg = JSON.stringify(arg, null, ph.width ? parseInt(ph.width) : 0)\n break\n case 'e':\n arg = ph.precision ? parseFloat(arg).toExponential(ph.precision) : parseFloat(arg).toExponential()\n break\n case 'f':\n arg = ph.precision ? parseFloat(arg).toFixed(ph.precision) : parseFloat(arg)\n break\n case 'g':\n arg = ph.precision ? String(Number(arg.toPrecision(ph.precision))) : parseFloat(arg)\n break\n case 'o':\n arg = (parseInt(arg, 10) >>> 0).toString(8)\n break\n case 's':\n arg = String(arg)\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 't':\n arg = String(!!arg)\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'T':\n arg = Object.prototype.toString.call(arg).slice(8, -1).toLowerCase()\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'u':\n arg = parseInt(arg, 10) >>> 0\n break\n case 'v':\n arg = arg.valueOf()\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'x':\n arg = (parseInt(arg, 10) >>> 0).toString(16)\n break\n case 'X':\n arg = (parseInt(arg, 10) >>> 0).toString(16).toUpperCase()\n break\n }\n if (re.json.test(ph.type)) {\n output += arg\n }\n else {\n if (re.number.test(ph.type) && (!is_positive || ph.sign)) {\n sign = is_positive ? '+' : '-'\n arg = arg.toString().replace(re.sign, '')\n }\n else {\n sign = ''\n }\n pad_character = ph.pad_char ? ph.pad_char === '0' ? '0' : ph.pad_char.charAt(1) : ' '\n pad_length = ph.width - (sign + arg).length\n pad = ph.width ? (pad_length > 0 ? pad_character.repeat(pad_length) : '') : ''\n output += ph.align ? sign + arg + pad : (pad_character === '0' ? sign + pad + arg : pad + sign + arg)\n }\n }\n }\n return output\n }\n\n var sprintf_cache = Object.create(null)\n\n function sprintf_parse(fmt) {\n if (sprintf_cache[fmt]) {\n return sprintf_cache[fmt]\n }\n\n var _fmt = fmt, match, parse_tree = [], arg_names = 0\n while (_fmt) {\n if ((match = re.text.exec(_fmt)) !== null) {\n parse_tree.push(match[0])\n }\n else if ((match = re.modulo.exec(_fmt)) !== null) {\n parse_tree.push('%')\n }\n else if ((match = re.placeholder.exec(_fmt)) !== null) {\n if (match[2]) {\n arg_names |= 1\n var field_list = [], replacement_field = match[2], field_match = []\n if ((field_match = re.key.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {\n if ((field_match = re.key_access.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n }\n else if ((field_match = re.index_access.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n }\n else {\n throw new SyntaxError('[sprintf] failed to parse named argument key')\n }\n }\n }\n else {\n throw new SyntaxError('[sprintf] failed to parse named argument key')\n }\n match[2] = field_list\n }\n else {\n arg_names |= 2\n }\n if (arg_names === 3) {\n throw new Error('[sprintf] mixing positional and named placeholders is not (yet) supported')\n }\n\n parse_tree.push(\n {\n placeholder: match[0],\n param_no: match[1],\n keys: match[2],\n sign: match[3],\n pad_char: match[4],\n align: match[5],\n width: match[6],\n precision: match[7],\n type: match[8]\n }\n )\n }\n else {\n throw new SyntaxError('[sprintf] unexpected placeholder')\n }\n _fmt = _fmt.substring(match[0].length)\n }\n return sprintf_cache[fmt] = parse_tree\n }\n\n /**\n * export to either browser or node.js\n */\n /* eslint-disable quote-props */\n if (true) {\n exports['sprintf'] = sprintf\n exports['vsprintf'] = vsprintf\n }\n if (typeof window !== 'undefined') {\n window['sprintf'] = sprintf\n window['vsprintf'] = vsprintf\n\n if (typeof define === 'function' && define['amd']) {\n define(function() {\n return {\n 'sprintf': sprintf,\n 'vsprintf': vsprintf\n }\n })\n }\n }\n /* eslint-enable quote-props */\n}(); // eslint-disable-line\n\n\n//# sourceURL=webpack:///./node_modules/sprintf-js/src/sprintf.js?"); |
| 883 |
|
| 884 |
/***/ }), |
| 885 |
|
| 886 |
/***/ "./node_modules/tannin/index.js": |
| 887 |
/*!**************************************!*\ |
| 888 |
!*** ./node_modules/tannin/index.js ***! |
| 889 |
\**************************************/ |
| 890 |
/*! exports provided: default */ |
| 891 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 892 |
|
| 893 |
"use strict"; |
| 894 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Tannin; });\n/* harmony import */ var _tannin_plural_forms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tannin/plural-forms */ \"./node_modules/@tannin/plural-forms/index.js\");\n\n\n/**\n * Tannin constructor options.\n *\n * @typedef {Object} TanninOptions\n *\n * @property {string} [contextDelimiter] Joiner in string lookup with context.\n * @property {Function} [onMissingKey] Callback to invoke when key missing.\n */\n\n/**\n * Domain metadata.\n *\n * @typedef {Object} TanninDomainMetadata\n *\n * @property {string} [domain] Domain name.\n * @property {string} [lang] Language code.\n * @property {(string|Function)} [plural_forms] Plural forms expression or\n * function evaluator.\n */\n\n/**\n * Domain translation pair respectively representing the singular and plural\n * translation.\n *\n * @typedef {[string,string]} TanninTranslation\n */\n\n/**\n * Locale data domain. The key is used as reference for lookup, the value an\n * array of two string entries respectively representing the singular and plural\n * translation.\n *\n * @typedef {{[key:string]:TanninDomainMetadata|TanninTranslation,'':TanninDomainMetadata|TanninTranslation}} TanninLocaleDomain\n */\n\n/**\n * Jed-formatted locale data.\n *\n * @see http://messageformat.github.io/Jed/\n *\n * @typedef {{[domain:string]:TanninLocaleDomain}} TanninLocaleData\n */\n\n/**\n * Default Tannin constructor options.\n *\n * @type {TanninOptions}\n */\nvar DEFAULT_OPTIONS = {\n\tcontextDelimiter: '\\u0004',\n\tonMissingKey: null,\n};\n\n/**\n * Given a specific locale data's config `plural_forms` value, returns the\n * expression.\n *\n * @example\n *\n * ```\n * getPluralExpression( 'nplurals=2; plural=(n != 1);' ) === '(n != 1)'\n * ```\n *\n * @param {string} pf Locale data plural forms.\n *\n * @return {string} Plural forms expression.\n */\nfunction getPluralExpression( pf ) {\n\tvar parts, i, part;\n\n\tparts = pf.split( ';' );\n\n\tfor ( i = 0; i < parts.length; i++ ) {\n\t\tpart = parts[ i ].trim();\n\t\tif ( part.indexOf( 'plural=' ) === 0 ) {\n\t\t\treturn part.substr( 7 );\n\t\t}\n\t}\n}\n\n/**\n * Tannin constructor.\n *\n * @class\n *\n * @param {TanninLocaleData} data Jed-formatted locale data.\n * @param {TanninOptions} [options] Tannin options.\n */\nfunction Tannin( data, options ) {\n\tvar key;\n\n\t/**\n\t * Jed-formatted locale data.\n\t *\n\t * @name Tannin#data\n\t * @type {TanninLocaleData}\n\t */\n\tthis.data = data;\n\n\t/**\n\t * Plural forms function cache, keyed by plural forms string.\n\t *\n\t * @name Tannin#pluralForms\n\t * @type {Object<string,Function>}\n\t */\n\tthis.pluralForms = {};\n\n\t/**\n\t * Effective options for instance, including defaults.\n\t *\n\t * @name Tannin#options\n\t * @type {TanninOptions}\n\t */\n\tthis.options = {};\n\n\tfor ( key in DEFAULT_OPTIONS ) {\n\t\tthis.options[ key ] = options !== undefined && key in options\n\t\t\t? options[ key ]\n\t\t\t: DEFAULT_OPTIONS[ key ];\n\t}\n}\n\n/**\n * Returns the plural form index for the given domain and value.\n *\n * @param {string} domain Domain on which to calculate plural form.\n * @param {number} n Value for which plural form is to be calculated.\n *\n * @return {number} Plural form index.\n */\nTannin.prototype.getPluralForm = function( domain, n ) {\n\tvar getPluralForm = this.pluralForms[ domain ],\n\t\tconfig, plural, pf;\n\n\tif ( ! getPluralForm ) {\n\t\tconfig = this.data[ domain ][ '' ];\n\n\t\tpf = (\n\t\t\tconfig[ 'Plural-Forms' ] ||\n\t\t\tconfig[ 'plural-forms' ] ||\n\t\t\t// Ignore reason: As known, there's no way to document the empty\n\t\t\t// string property on a key to guarantee this as metadata.\n\t\t\t// @ts-ignore\n\t\t\tconfig.plural_forms\n\t\t);\n\n\t\tif ( typeof pf !== 'function' ) {\n\t\t\tplural = getPluralExpression(\n\t\t\t\tconfig[ 'Plural-Forms' ] ||\n\t\t\t\tconfig[ 'plural-forms' ] ||\n\t\t\t\t// Ignore reason: As known, there's no way to document the empty\n\t\t\t\t// string property on a key to guarantee this as metadata.\n\t\t\t\t// @ts-ignore\n\t\t\t\tconfig.plural_forms\n\t\t\t);\n\n\t\t\tpf = Object(_tannin_plural_forms__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( plural );\n\t\t}\n\n\t\tgetPluralForm = this.pluralForms[ domain ] = pf;\n\t}\n\n\treturn getPluralForm( n );\n};\n\n/**\n * Translate a string.\n *\n * @param {string} domain Translation domain.\n * @param {string|void} context Context distinguishing terms of the same name.\n * @param {string} singular Primary key for translation lookup.\n * @param {string=} plural Fallback value used for non-zero plural\n * form index.\n * @param {number=} n Value to use in calculating plural form.\n *\n * @return {string} Translated string.\n */\nTannin.prototype.dcnpgettext = function( domain, context, singular, plural, n ) {\n\tvar index, key, entry;\n\n\tif ( n === undefined ) {\n\t\t// Default to singular.\n\t\tindex = 0;\n\t} else {\n\t\t// Find index by evaluating plural form for value.\n\t\tindex = this.getPluralForm( domain, n );\n\t}\n\n\tkey = singular;\n\n\t// If provided, context is prepended to key with delimiter.\n\tif ( context ) {\n\t\tkey = context + this.options.contextDelimiter + singular;\n\t}\n\n\tentry = this.data[ domain ][ key ];\n\n\t// Verify not only that entry exists, but that the intended index is within\n\t// range and non-empty.\n\tif ( entry && entry[ index ] ) {\n\t\treturn entry[ index ];\n\t}\n\n\tif ( this.options.onMissingKey ) {\n\t\tthis.options.onMissingKey( singular, domain );\n\t}\n\n\t// If entry not found, fall back to singular vs. plural with zero index\n\t// representing the singular value.\n\treturn index === 0 ? singular : plural;\n};\n\n\n//# sourceURL=webpack:///./node_modules/tannin/index.js?"); |
| 895 |
|
| 896 |
/***/ }), |
| 897 |
|
| 898 |
/***/ "./wpvrelement/component.js": |
| 899 |
/*!**********************************!*\ |
| 900 |
!*** ./wpvrelement/component.js ***! |
| 901 |
\**********************************/ |
| 902 |
/*! exports provided: default */ |
| 903 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 904 |
|
| 905 |
"use strict"; |
| 906 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return WpvrElement; });\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var vc_cake__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vc-cake */ \"./node_modules/vc-cake/index.js\");\n/* harmony import */ var vc_cake__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(vc_cake__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/api-fetch */ \"./node_modules/@wordpress/api-fetch/build-module/index.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n\n\n\nvar vcvAPI = Object(vc_cake__WEBPACK_IMPORTED_MODULE_6__[\"getService\"])('api');\n\nvar WpvrElement = /*#__PURE__*/function (_vcvAPI$elementCompon) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(WpvrElement, _vcvAPI$elementCompon);\n\n var _super = _createSuper(WpvrElement);\n\n function WpvrElement() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, WpvrElement);\n\n return _super.apply(this, arguments);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(WpvrElement, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n id = _this$props.id,\n atts = _this$props.atts,\n editor = _this$props.editor;\n var wpvr_id = atts.wpvr_id,\n wpvr_height = atts.wpvr_height,\n wpvr_width = atts.wpvr_width,\n wpvr_radius = atts.wpvr_radius,\n wpvr_width_unit = atts.wpvr_width_unit,\n wpvr_height_unit = atts.wpvr_height_unit,\n wpvr_radius_unit = atts.wpvr_radius_unit,\n fullwidth = atts.fullwidth; // destructuring assignment for attributes from settings.json with access public\n\n var vrshortcode = '[wpvr id=\"' + wpvr_id + '\" width=\"' + wpvr_width + wpvr_width_unit + '\" height=\"' + wpvr_height + wpvr_height_unit + '\" radius=\"' + wpvr_radius + wpvr_radius_unit + '\"]';\n\n if (fullwidth == 'fullwidth') {\n vrshortcode = '[wpvr id=\"' + wpvr_id + '\" width=\"' + fullwidth + '\" height=\"' + wpvr_height + wpvr_height_unit + '\" radius=\"' + wpvr_radius + wpvr_radius_unit + '\"]';\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(\"div\", null, vrshortcode));\n }\n }]);\n\n return WpvrElement;\n}(vcvAPI.elementComponent);\n\n\n\n//# sourceURL=webpack:///./wpvrelement/component.js?"); |
| 907 |
|
| 908 |
/***/ }), |
| 909 |
|
| 910 |
/***/ "./wpvrelement/index.js": |
| 911 |
/*!******************************!*\ |
| 912 |
!*** ./wpvrelement/index.js ***! |
| 913 |
\******************************/ |
| 914 |
/*! no exports provided */ |
| 915 |
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 916 |
|
| 917 |
"use strict"; |
| 918 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vc_cake__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vc-cake */ \"./node_modules/vc-cake/index.js\");\n/* harmony import */ var vc_cake__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vc_cake__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./component */ \"./wpvrelement/component.js\");\n/* eslint-disable import/no-webpack-loader-syntax */\n\n\nvar vcvAddElement = Object(vc_cake__WEBPACK_IMPORTED_MODULE_0__[\"getService\"])('cook').add;\nvcvAddElement(__webpack_require__(/*! ./settings.json */ \"./wpvrelement/settings.json\"), // Component callback\nfunction (component) {\n component.add(_component__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n}, // css settings // css for element\n{\n css: false,\n editorCss: __webpack_require__(/*! raw-loader!./editor.css */ \"./node_modules/raw-loader/index.js!./wpvrelement/editor.css\")\n});\n\n//# sourceURL=webpack:///./wpvrelement/index.js?"); |
| 919 |
|
| 920 |
/***/ }), |
| 921 |
|
| 922 |
/***/ "./wpvrelement/settings.json": |
| 923 |
/*!***********************************!*\ |
| 924 |
!*** ./wpvrelement/settings.json ***! |
| 925 |
\***********************************/ |
| 926 |
/*! exports provided: output, wpvr_id, wpvr_height, wpvr_height_unit, wpvr_width, wpvr_width_unit, wpvr_radius, wpvr_radius_unit, fullwidth, darkTextSkin, designOptions, editFormTab1, metaEditFormTabs, relatedTo, customClass, metaCustomId, tag, default */ |
| 927 |
/***/ (function(module) { |
| 928 |
|
| 929 |
eval("module.exports = JSON.parse(\"{\\\"output\\\":{\\\"type\\\":\\\"string\\\",\\\"access\\\":\\\"public\\\",\\\"value\\\":\\\"<p>Testing Elements API. HTML editor also the part of the editor</p>\\\",\\\"options\\\":{\\\"label\\\":\\\"Content\\\",\\\"description\\\":\\\"Content for text block\\\",\\\"inline\\\":true,\\\"skinToggle\\\":\\\"darkTextSkin\\\"}},\\\"wpvr_id\\\":{\\\"type\\\":\\\"dropdown\\\",\\\"access\\\":\\\"public\\\",\\\"value\\\":\\\"0\\\",\\\"options\\\":{\\\"label\\\":\\\"WP VR ID\\\",\\\"values\\\":[],\\\"global\\\":\\\"wpvr_id_options\\\"}},\\\"wpvr_height\\\":{\\\"type\\\":\\\"inputIcon\\\",\\\"access\\\":\\\"public\\\",\\\"value\\\":\\\"400\\\",\\\"options\\\":{\\\"label\\\":\\\"WP VR Height\\\",\\\"iconClasses\\\":\\\"vcv-ui-icon vcv-ui-icon-desktop\\\",\\\"inputType\\\":\\\"number\\\"}},\\\"wpvr_height_unit\\\":{\\\"type\\\":\\\"dropdown\\\",\\\"access\\\":\\\"public\\\",\\\"value\\\":\\\"px\\\",\\\"options\\\":{\\\"label\\\":\\\"WP VR Height Unit\\\",\\\"values\\\":[{\\\"label\\\":\\\"PX\\\",\\\"value\\\":\\\"px\\\"},{\\\"label\\\":\\\"vh\\\",\\\"value\\\":\\\"vh\\\"}]}},\\\"wpvr_width\\\":{\\\"type\\\":\\\"inputIcon\\\",\\\"access\\\":\\\"public\\\",\\\"value\\\":\\\"600\\\",\\\"options\\\":{\\\"label\\\":\\\"WP VR Width\\\",\\\"iconClasses\\\":\\\"vcv-ui-icon vcv-ui-icon-desktop\\\",\\\"inputType\\\":\\\"number\\\"}},\\\"wpvr_width_unit\\\":{\\\"type\\\":\\\"dropdown\\\",\\\"access\\\":\\\"public\\\",\\\"value\\\":\\\"px\\\",\\\"options\\\":{\\\"label\\\":\\\"WP VR Width Unit\\\",\\\"values\\\":[{\\\"label\\\":\\\"PX\\\",\\\"value\\\":\\\"px\\\"},{\\\"label\\\":\\\"%\\\",\\\"value\\\":\\\"%\\\"},{\\\"label\\\":\\\"vw\\\",\\\"value\\\":\\\"vw\\\"}]}},\\\"wpvr_radius\\\":{\\\"type\\\":\\\"inputIcon\\\",\\\"access\\\":\\\"public\\\",\\\"value\\\":\\\"0\\\",\\\"options\\\":{\\\"label\\\":\\\"WP VR Radius\\\",\\\"iconClasses\\\":\\\"vcv-ui-icon vcv-ui-icon-desktop\\\",\\\"inputType\\\":\\\"number\\\"}},\\\"wpvr_radius_unit\\\":{\\\"type\\\":\\\"dropdown\\\",\\\"access\\\":\\\"public\\\",\\\"value\\\":\\\"px\\\",\\\"options\\\":{\\\"label\\\":\\\"WP VR Radius Unit\\\",\\\"values\\\":[{\\\"label\\\":\\\"PX\\\",\\\"value\\\":\\\"px\\\"},{\\\"label\\\":\\\"%\\\",\\\"value\\\":\\\"%\\\"}]}},\\\"fullwidth\\\":{\\\"type\\\":\\\"checkbox\\\",\\\"access\\\":\\\"public\\\",\\\"value\\\":[],\\\"options\\\":{\\\"label\\\":\\\"Enable Fullwidth\\\",\\\"values\\\":[{\\\"label\\\":\\\"Yes\\\",\\\"value\\\":\\\"fullwidth\\\"}]}},\\\"darkTextSkin\\\":{\\\"type\\\":\\\"toggleSmall\\\",\\\"access\\\":\\\"public\\\",\\\"value\\\":false},\\\"designOptions\\\":{\\\"type\\\":\\\"designOptions\\\",\\\"access\\\":\\\"public\\\",\\\"value\\\":{},\\\"options\\\":{\\\"label\\\":\\\"Design Options\\\"}},\\\"editFormTab1\\\":{\\\"type\\\":\\\"group\\\",\\\"access\\\":\\\"protected\\\",\\\"value\\\":[\\\"wpvr_id\\\",\\\"wpvr_width\\\",\\\"wpvr_width_unit\\\",\\\"fullwidth\\\",\\\"wpvr_height\\\",\\\"wpvr_height_unit\\\",\\\"wpvr_radius\\\",\\\"wpvr_radius_unit\\\"],\\\"options\\\":{\\\"label\\\":\\\"General\\\"}},\\\"metaEditFormTabs\\\":{\\\"type\\\":\\\"group\\\",\\\"access\\\":\\\"protected\\\",\\\"value\\\":[\\\"editFormTab1\\\"]},\\\"relatedTo\\\":{\\\"type\\\":\\\"group\\\",\\\"access\\\":\\\"protected\\\",\\\"value\\\":[\\\"General\\\"]},\\\"customClass\\\":{\\\"type\\\":\\\"string\\\",\\\"access\\\":\\\"public\\\",\\\"value\\\":\\\"\\\",\\\"options\\\":{\\\"label\\\":\\\"Extra class name\\\",\\\"description\\\":\\\"Add an extra class name to the element and refer to it from Custom CSS option.\\\"}},\\\"metaCustomId\\\":{\\\"type\\\":\\\"customId\\\",\\\"access\\\":\\\"public\\\",\\\"value\\\":\\\"\\\",\\\"options\\\":{\\\"label\\\":\\\"Element ID\\\",\\\"description\\\":\\\"Apply unique ID to element to link directly to it by using #your_id (for element ID use lowercase input only).\\\"}},\\\"tag\\\":{\\\"access\\\":\\\"protected\\\",\\\"type\\\":\\\"string\\\",\\\"value\\\":\\\"wpvrelement\\\"}}\");\n\n//# sourceURL=webpack:///./wpvrelement/settings.json?"); |
| 930 |
|
| 931 |
/***/ }) |
| 932 |
|
| 933 |
},[['./wpvrelement/index.js']]]); |