WordPress/wp-includes/js/dist/block-library.min.js

23 lines
195 KiB
JavaScript
Raw Normal View History

this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=289)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},100:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},101:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},102:function(e,t,n){"use strict";t.decode=t.parse=n(103),t.encode=t.stringify=n(104)},103:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var c={};if("string"!=typeof e||0===e.length)return c;var i=/\+/g;e=e.split(t);var l=1e3;a&&"number"==typeof a.maxKeys&&(l=a.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u<s;++u){var b,m,d,h,p=e[u].replace(i,"%20"),g=p.indexOf(n);g>=0?(b=p.substr(0,g),m=p.substr(g+1)):(b=p,m=""),d=decodeURIComponent(b),h=decodeURIComponent(m),r(c,d)?o(c[d])?c[d].push(h):c[d]=[c[d],h]:c[d]=h}return c};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},104:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,i){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?a(c(e),function(c){var i=encodeURIComponent(r(c))+n;return o(e[c])?a(e[c],function(e){return i+encodeURIComponent(r(e))}).join(t):i+encodeURIComponent(r(e[c]))}).join(t):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var c=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},11:function(e,t){!function(){e.exports=this.wp.blocks}()},12:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(29),o=n(3);function a(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},13:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return r})},14:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a"
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var c=o.apply(null,r);c&&e.push(c)}else if("object"===a)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}void 0!==e&&e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},17:function(e,t){!function(){e.exports=this.wp.keycodes}()},18:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",function(){return r})},19:function(e,t,n){"use strict";var r=n(33);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",function(){return o})},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",function(){return r})},21:function(e,t){!function(){e.exports=this.wp.richText}()},24:function(e,t,n){"use strict";var r=n(36);var o=n(37);function a(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}(e,t)||Object(o.a)()}n.d(t,"a",function(){return a})},27:function(e,t){!function(){e.exports=this.wp.deprecated}()},289:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"name",function(){return be}),n.d(r,"settings",function(){return me});var o={};n.r(o),n.d(o,"name",function(){return Ce}),n.d(o,"settings",function(){return xe});var a={};n.r(a),n.d(a,"getLevelFromHeadingNodeName",function(){return Ne}),n.d(a,"name",function(){return Re}),n.d(a,"settings",function(){return Ie});var c={};n.r(c),n.d(c,"name",function(){return Me}),n.d(c,"settings",function(){return Pe});var i={};n.r(i),n.d(i,"name",function(){return Qe}),n.d(i,"settings",function(){return Ye});var l={};n.r(l),n.d(l,"name",function(){return Ze}),n.d(l,"settings",function(){return Je});var s={};n.r(s),n.d(s,"name",function(){return nt}),n.d(s,"settings",function(){return rt});var u={};n.r(u),n.d(u,"name",function(){return st}),n.d(u,"settings",function(){return bt});var b={};n.r(b),n.d(b,"name",function(){return ht}),n.d(b,"settings",function(){return pt});var m={};n.r(m),n.d(m,"name",function(){return gt}),n.d(m,"settings",function(){return Ot});var d={};n.r(d),n.d(d,"name",function(){return yt}),n.d(d,"settings",function(){return wt});var h={};n.r(h),n.d(h,"name",function(){return Ct}),n.d(h,"settings",function(){return kt});var p={};n.r(p),n.d(p,"name",function(){return xt}),n.d(p,"settings",function(){return Tt});var g={};n.r(g),n.d(g,"getEmbedEdit",function(){return Ht}),n.d(g,"name",function(){return Ut}),n.d(g,"settings",function(){return Gt}),n.d(g,"common",function(){return $t}),n.d(g,"others",function(){return Qt});var O={};n.r(O),n.d(O,"name",function(){return en}),n.d(O,"settings",function(){return tn});var f={};n.r(f),n.d(f,"name",function(){return nn}),n.d(f,"settings",function(){return rn});var j={};n.r(j),n.d(j,"name",function(){return bn}),n.d(j,"settings",function(){return mn});var v={};n.r(v),n.d(v,"name",function(){return hn}),n.d(v,"settings",function(){return pn});var y={};n.r(y),n.d(y,"name",function(){return vn}),n.d(y,"settings",function(){return yn});var w={};n.r(w),n.d(w,"name",function(){
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)o(e,t[r])}e.prototype=Object.create(null);var n={}.hasOwnProperty;var r=/\s+/;function o(e,o){if(o){var a=typeof o;"string"===a?function(e,t){for(var n=t.split(r),o=n.length,a=0;a<o;++a)e[n[a]]=!0}(e,o):Array.isArray(o)?t(e,o):"object"===a?function(e,t){for(var r in t)n.call(t,r)&&(e[r]=!!t[r])}(e,o):"number"===a&&function(e,t){e[t]=!0}(e,o)}}return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=new e;t(a,r);var c=[];for(var i in a)a[i]&&c.push(i);return c.join(" ")}}();void 0!==e&&e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},7:function(e,t){!function(){e.exports=this.wp.editor}()},74:function(e,t,n){"use strict";var r=n(99),o=n(101);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=j,t.resolve=function(e,t){return j(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?j(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=j(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var c=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),m=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},f=n(102);function j(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),i=-1!==a&&a<e.indexOf("#")?"?":"#",s=e.split(i);s[0]=s[0].replace(/\\/g,"/");var j=e=s.join(i);if(j=j.trim(),!n&&1===e.split("#").length){var v=l.exec(j);if(v)return this.path=j,this.href=j,this.pathname=v[1],v[2]?(this.search=v[2],this.query=t?f.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var y=c.exec(j);if(y){var w=(y=y[0]).toLowerCase();this.protocol=w,j=j.substr(y.length)}if(n||y||j.match(/^\/\/[^@\/]+@[^@\/]+/)){var C="//"===j.substr(0,2);!C||y&&g[y]||(j=j.substr(2),this.slashes=!0)}if(!g[y]&&(C||y&&!O[y])){for(var k,E,_=-1,x=0;x<m.length;x++){-1!==(S=j.indexOf(m[x]))&&(-1===_||S<_)&&(_=S)}-1!==(E=-1===_?j.lastIndexOf("@"):j.lastIndexOf("@",_))&&(k=j.slice(0,E),j=j.slice(E+1),this.auth=decodeURIComponent(k)),_=-1;for(x=0;x<b.length;x++){var S;-1!==(S=j.indexOf(b[x]))&&(-1===_||S<_)&&(_=S)}-1===_&&(_=j.length),this.host=j.slice(0,_),j=j.slice(_),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var N=this.hostname.split(/\./),B=(x=0,N.length);x<B;x++){var A=N[x];if(A&&!A.match(d)){for(var R="",I=0,L=A.length;I<L;I++)A.charCodeAt(I)>127?R+="x":R+=A[I];if(!R.match(d)){var z=N.slice(0,x),M=N.slice(x+1),P=A.match(h);P&&(z.push(P[1]),M.unshift(P[2])),M.length&&(j="/"+M.join(".")+j),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var H=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+H,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==j[0]&&(j="/"+j))}if(!p[w])for(x=0,B=u.length;x<B;x++){var F=u[x];if(-1!==j.indexOf(F)){var U=encodeURIComponent(F);U===F&&(U=escape(F)),j=j.split(F).join(U)}}var V=j.indexOf("#");-1!==V&&(this.hash=j.substr(V),j=j.slice(0,V));var W=j.indexOf("?");if(-1!==W?(this.search=j.substr(W),this.query=j.substr(W+1),t&&(this.query=f.parse(this.query)),j=j.slice(0,W)):t&&(this.search="",this.query={}),j&&(this.pathname=j),O[w]&&this.hostname&&!this.