wp/wp-includes/js/dist/block-serialization-default-parser.js
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
    80 /******/ 	// __webpack_public_path__
    80 /******/ 	// __webpack_public_path__
    81 /******/ 	__webpack_require__.p = "";
    81 /******/ 	__webpack_require__.p = "";
    82 /******/
    82 /******/
    83 /******/
    83 /******/
    84 /******/ 	// Load entry module and return exports
    84 /******/ 	// Load entry module and return exports
    85 /******/ 	return __webpack_require__(__webpack_require__.s = 258);
    85 /******/ 	return __webpack_require__(__webpack_require__.s = 303);
    86 /******/ })
    86 /******/ })
    87 /************************************************************************/
    87 /************************************************************************/
    88 /******/ ({
    88 /******/ ({
    89 
    89 
    90 /***/ 258:
    90 /***/ 14:
       
    91 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
    92 
       
    93 "use strict";
       
    94 
       
    95 // EXPORTS
       
    96 __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
       
    97 
       
    98 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
       
    99 var arrayWithHoles = __webpack_require__(38);
       
   100 
       
   101 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
       
   102 function _iterableToArrayLimit(arr, i) {
       
   103   if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
       
   104   var _arr = [];
       
   105   var _n = true;
       
   106   var _d = false;
       
   107   var _e = undefined;
       
   108 
       
   109   try {
       
   110     for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
       
   111       _arr.push(_s.value);
       
   112 
       
   113       if (i && _arr.length === i) break;
       
   114     }
       
   115   } catch (err) {
       
   116     _d = true;
       
   117     _e = err;
       
   118   } finally {
       
   119     try {
       
   120       if (!_n && _i["return"] != null) _i["return"]();
       
   121     } finally {
       
   122       if (_d) throw _e;
       
   123     }
       
   124   }
       
   125 
       
   126   return _arr;
       
   127 }
       
   128 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
       
   129 var unsupportedIterableToArray = __webpack_require__(29);
       
   130 
       
   131 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
       
   132 var nonIterableRest = __webpack_require__(39);
       
   133 
       
   134 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
       
   135 
       
   136 
       
   137 
       
   138 
       
   139 function _slicedToArray(arr, i) {
       
   140   return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(unsupportedIterableToArray["a" /* default */])(arr, i) || Object(nonIterableRest["a" /* default */])();
       
   141 }
       
   142 
       
   143 /***/ }),
       
   144 
       
   145 /***/ 26:
       
   146 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
   147 
       
   148 "use strict";
       
   149 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; });
       
   150 function _arrayLikeToArray(arr, len) {
       
   151   if (len == null || len > arr.length) len = arr.length;
       
   152 
       
   153   for (var i = 0, arr2 = new Array(len); i < len; i++) {
       
   154     arr2[i] = arr[i];
       
   155   }
       
   156 
       
   157   return arr2;
       
   158 }
       
   159 
       
   160 /***/ }),
       
   161 
       
   162 /***/ 29:
       
   163 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
   164 
       
   165 "use strict";
       
   166 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
       
   167 /* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26);
       
   168 
       
   169 function _unsupportedIterableToArray(o, minLen) {
       
   170   if (!o) return;
       
   171   if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
       
   172   var n = Object.prototype.toString.call(o).slice(8, -1);
       
   173   if (n === "Object" && o.constructor) n = o.constructor.name;
       
   174   if (n === "Map" || n === "Set") return Array.from(o);
       
   175   if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
       
   176 }
       
   177 
       
   178 /***/ }),
       
   179 
       
   180 /***/ 303:
    91 /***/ (function(module, __webpack_exports__, __webpack_require__) {
   181 /***/ (function(module, __webpack_exports__, __webpack_require__) {
    92 
   182 
    93 "use strict";
   183 "use strict";
    94 __webpack_require__.r(__webpack_exports__);
   184 __webpack_require__.r(__webpack_exports__);
    95 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; });
   185 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; });
    96 /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
   186 /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
    97 
   187 
    98 var document;
   188 var document;
    99 var offset;
   189 var offset;
   100 var output;
   190 var output;
   101 var stack;
   191 var stack;
   126  *    if we use /((?=(a+))\1)*c/ then we get the same behavior as the atomic group
   216  *    if we use /((?=(a+))\1)*c/ then we get the same behavior as the atomic group
   127  *    or possessive and prevent the backtracking because the `a+` is matched but
   217  *    or possessive and prevent the backtracking because the `a+` is matched but
   128  *    not captured. thus, we find the long string of `a`s and remember it, then
   218  *    not captured. thus, we find the long string of `a`s and remember it, then
   129  *    reference it as a whole unit inside our pattern
   219  *    reference it as a whole unit inside our pattern
   130  *
   220  *
   131  *    @cite http://instanceof.me/post/52245507631/regex-emulate-atomic-grouping-with-lookahead
   221  *    @see http://instanceof.me/post/52245507631/regex-emulate-atomic-grouping-with-lookahead
   132  *    @cite http://blog.stevenlevithan.com/archives/mimic-atomic-groups
   222  *    @see http://blog.stevenlevithan.com/archives/mimic-atomic-groups
   133  *    @cite https://javascript.info/regexp-infinite-backtracking-problem
   223  *    @see https://javascript.info/regexp-infinite-backtracking-problem
   134  *
   224  *
   135  *    once browsers reliably support atomic grouping or possessive
   225  *    once browsers reliably support atomic grouping or possessive
   136  *    quantifiers natively we should remove this trick and simplify
   226  *    quantifiers natively we should remove this trick and simplify
   137  *
   227  *
   138  * @type RegExp
   228  * @type {RegExp}
   139  *
   229  *
   140  * @since 3.8.0
   230  * @since 3.8.0
   141  * @since 4.6.1 added optimization to prevent backtracking on attribute parsing
   231  * @since 4.6.1 added optimization to prevent backtracking on attribute parsing
   142  */
   232  */
   143 
   233 
   398   var _matches = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(matches, 7),
   488   var _matches = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(matches, 7),
   399       match = _matches[0],
   489       match = _matches[0],
   400       closerMatch = _matches[1],
   490       closerMatch = _matches[1],
   401       namespaceMatch = _matches[2],
   491       namespaceMatch = _matches[2],
   402       nameMatch = _matches[3],
   492       nameMatch = _matches[3],
   403       attrsMatch = _matches[4],
   493       attrsMatch
   404 
       
   405   /* internal/unused */
   494   /* internal/unused */
   406   voidMatch = _matches[6];
   495   = _matches[4],
       
   496       voidMatch = _matches[6];
   407 
   497 
   408   var length = match.length;
   498   var length = match.length;
   409   var isCloser = !!closerMatch;
   499   var isCloser = !!closerMatch;
   410   var isVoid = !!voidMatch;
   500   var isVoid = !!voidMatch;
   411   var namespace = namespaceMatch || 'core/';
   501   var namespace = namespaceMatch || 'core/';
   475 }
   565 }
   476 
   566 
   477 
   567 
   478 /***/ }),
   568 /***/ }),
   479 
   569 
   480 /***/ 28:
   570 /***/ 38:
   481 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
   482 
       
   483 "use strict";
       
   484 
       
   485 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
       
   486 var arrayWithHoles = __webpack_require__(37);
       
   487 
       
   488 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
       
   489 function _iterableToArrayLimit(arr, i) {
       
   490   var _arr = [];
       
   491   var _n = true;
       
   492   var _d = false;
       
   493   var _e = undefined;
       
   494 
       
   495   try {
       
   496     for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
       
   497       _arr.push(_s.value);
       
   498 
       
   499       if (i && _arr.length === i) break;
       
   500     }
       
   501   } catch (err) {
       
   502     _d = true;
       
   503     _e = err;
       
   504   } finally {
       
   505     try {
       
   506       if (!_n && _i["return"] != null) _i["return"]();
       
   507     } finally {
       
   508       if (_d) throw _e;
       
   509     }
       
   510   }
       
   511 
       
   512   return _arr;
       
   513 }
       
   514 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
       
   515 var nonIterableRest = __webpack_require__(38);
       
   516 
       
   517 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
       
   518 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; });
       
   519 
       
   520 
       
   521 
       
   522 function _slicedToArray(arr, i) {
       
   523   return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(nonIterableRest["a" /* default */])();
       
   524 }
       
   525 
       
   526 /***/ }),
       
   527 
       
   528 /***/ 37:
       
   529 /***/ (function(module, __webpack_exports__, __webpack_require__) {
   571 /***/ (function(module, __webpack_exports__, __webpack_require__) {
   530 
   572 
   531 "use strict";
   573 "use strict";
   532 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; });
   574 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; });
   533 function _arrayWithHoles(arr) {
   575 function _arrayWithHoles(arr) {
   534   if (Array.isArray(arr)) return arr;
   576   if (Array.isArray(arr)) return arr;
   535 }
   577 }
   536 
   578 
   537 /***/ }),
   579 /***/ }),
   538 
   580 
   539 /***/ 38:
   581 /***/ 39:
   540 /***/ (function(module, __webpack_exports__, __webpack_require__) {
   582 /***/ (function(module, __webpack_exports__, __webpack_require__) {
   541 
   583 
   542 "use strict";
   584 "use strict";
   543 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; });
   585 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; });
   544 function _nonIterableRest() {
   586 function _nonIterableRest() {
   545   throw new TypeError("Invalid attempt to destructure non-iterable instance");
   587   throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   546 }
   588 }
   547 
   589 
   548 /***/ })
   590 /***/ })
   549 
   591 
   550 /******/ });
   592 /******/ });