- md5
- a9b43ad81159b7f6c16bc412564d8c46
- sha1
- 19efb851cc829dc863607fac242dfe32365bffb5
- sha256
- 16630fa80c7e5f8fa63b1b71b6d23c39e2b8a4ecd3e60af0b069b24a2b0524f2
/*! This file is auto-generated */
(function() {
"use strict";var wp;(wp||={}).blockSerializationDefaultParser=(()=>{var C=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var E=Object.prototype.hasOwnProperty;var w=(t,e)=>{for(var s in e)C(t,s,{get:e[s],enumerable:!0})},z=(t,e,s,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of T(e))!E.call(t,l)&&l!==s&&C(t,l,{get:()=>e[l],enumerable:!(n=P(e,l))||n.enumerable});return t};var F=t=>z(C({},"__esModule",{value:!0}),t);var $={};w($,{parse:()=>N});var o,i,x,p,k=/[ \t\f\r\n]+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)[ \t\f\r\n]+/y,H=/}[ \t\f\r\n]+$/g,a=/<!--/g,O=/-*>/y,f=/--!?>/g;function b(t,e,s,n,l){return{blockName:t,attrs:e,innerBlocks:s,innerHTML:n,innerContent:l}}function m(t){return b(null,{},[],t,[t])}function M(t,e,s,n,l){return{block:t,tokenStart:e,tokenLength:s,prevOffset:n||e+s,leadingHtmlStart:l}}var N=t=>{o=t,i=0,x=[],p=[],a.lastIndex=0;do;while(D());return x};function D(){let t=p.length,e=_(),[s,n,l,r,c]=e,d=r>i?i:null;switch(s){case"no-more-tokens":return t===0?(A(),!1):(V(),!1);case"void-block":return t===0?(d!==null&&x.push(m(o.substr(d,r-d))),x.push(b(n,l,[],"",[])),i=r+c,!0):(L(b(n,l,[],"",[]),r,c),i=r+c,!0);case"block-opener":return p.push(M(b(n,l,[],"",[]),r,c,r+c,d)),i=r+c,!0;case"block-closer":if(t===0)return A(),!1;if(t===1)return j(r),i=r+c,!0;let u=p.pop(),h=o.substr(u.prevOffset,r-u.prevOffset);return h&&(u.block.innerHTML+=h,u.block.innerContent.push(h)),u.prevOffset=r+c,L(u.block,u.tokenStart,u.tokenLength,r+c),i=r+c,!0;default:return A(),!1}}function J(t){try{return JSON.parse(t)}catch{return null}}function _(){for(;a.lastIndex<o.length;){let t=a.exec(o);if(t===null){a.lastIndex=o.length;break}if(O.lastIndex=a.lastIndex,O.exec(o)!==null){a.lastIndex=O.lastIndex;continue}f.lastIndex=a.lastIndex;let s=f.exec(o);if(s===null){a.lastIndex=o.length;break}if(o[f.lastIndex-2]==="!"){a.lastIndex=f.lastIndex;continue}if(s.index<a.lastIndex+6){a.lastIndex=f.lastIndex;continue}k.lastIndex=a.lastIndex;let n=k.exec(o);if(n===null){a.lastIndex=f.lastIndex;continue}let l=o[s.index-1]==="/",r=l?1:0,d=s.index-r-k.lastIndex>0;if(d&&o[k.lastIndex]!=="{"){a.lastIndex=f.lastIndex;continue}let u=o.slice(k.lastIndex,s.index-r);H.lastIndex=1;let h=d?H.exec(u):null;if(d&&h===null){a.lastIndex=f.lastIndex;continue}let y=h?u.slice(0,h.index+1):null,I=t.index;a.lastIndex=f.lastIndex;let g=f.lastIndex-t.index,B=n[1]==="/",v=(n[2]||"core/")+n[3],S=y?J(y):{};return l?["void-block",v,S,I,g]:B?["block-closer",v,null,I,g]:["block-opener",v,S,I,g]}return["no-more-tokens","",null,0,0]}function A(t){let e=t||o.length-i;e!==0&&x.push(m(o.substr(i,e)))}function L(t,e,s,n){let l=p[p.length-1];l.block.innerBlocks.push(t);let r=o.substr(l.prevOffset,e-l.prevOffset);r&&(l.block.innerHTML+=r,l.block.innerContent.push(r)),l.block.innerContent.push(null),l.prevOffset=n||e+s}function j(t){let{block:e,leadingHtmlStart:s,prevOffset:n,tokenStart:l}=p.pop(),r=t?o.substr(n,t-n):o.substr(n);r&&(e.innerHTML+=r,e.innerContent.push(r)),s!==null&&x.push(m(o.substr(s,l-s))),x.push(e)}function V(){let t=null,e=o.length,s=null;for(;p.length>0;){let n=p.pop(),l,r=e-n.prevOffset;r>0&&(l=o.substr(n.prevOffset,r),n.block.innerHTML+=l,n.block.innerContent.push(l)),t!==null&&(n.block.innerContent.push(null),n.block.innerBlocks.push(t)),t=n.block,e=n.tokenStart,s=n.leadingHtmlStart}if(s!==null&&e>s){let n=o.substr(s,e-s);x.push(m(n))}t!==null&&x.push(t),i=o.length}return F($);})();
(window.wp ||= {}).blockSerializationDefaultParser = wp.blockSerializationDefaultParser;
})();
The same content is in 2 releases, WordPress 7.2-RC1 to 7.2-RC2. See them all, or every version of this file.