WordPress/wp-includes/js/dist/shortcode.min.js
gziolo 6e4458c935 Build: Use hashed/deterministic moduleIDs in webpack config
Props peterwilsoncc, desrosj.
Fixes #53192.


Built from https://develop.svn.wordpress.org/trunk@50940


git-svn-id: http://core.svn.wordpress.org/trunk@50549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-20 12:20:04 +00:00

2 lines
4.1 KiB
JavaScript

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.shortcode=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./node_modules/@wordpress/shortcode/build-module/index.js")}({"./node_modules/@wordpress/shortcode/build-module/index.js":function(t,e,n){"use strict";n.r(e),n.d(e,"next",(function(){return s})),n.d(e,"replace",(function(){return u})),n.d(e,"string",(function(){return i})),n.d(e,"regexp",(function(){return c})),n.d(e,"attrs",(function(){return a})),n.d(e,"fromMatch",(function(){return l}));var r=n("lodash"),o=n("./node_modules/memize/index.js");function s(t,e,n=0){const r=c(t);r.lastIndex=n;const o=r.exec(e);if(!o)return;if("["===o[1]&&"]"===o[7])return s(t,e,r.lastIndex);const u={index:o.index,content:o[0],shortcode:l(o)};return o[1]&&(u.content=u.content.slice(1),u.index++),o[7]&&(u.content=u.content.slice(0,-1)),u}function u(t,e,n){return e.replace(c(t),(function(t,e,r,o,s,u,i,c){if("["===e&&"]"===c)return t;const a=n(l(arguments));return a||""===a?e+a+c:t}))}function i(t){return new d(t).string()}function c(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}const a=n.n(o)()(t=>{const e={},n=[],r=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;let o;for(t=t.replace(/[\u00a0\u200b]/g," ");o=r.exec(t);)o[1]?e[o[1].toLowerCase()]=o[2]:o[3]?e[o[3].toLowerCase()]=o[4]:o[5]?e[o[5].toLowerCase()]=o[6]:o[7]?n.push(o[7]):o[8]?n.push(o[8]):o[9]&&n.push(o[9]);return{named:e,numeric:n}});function l(t){let e;return e=t[4]?"self-closing":t[6]?"closed":"single",new d({tag:t[2],attrs:t[3],type:e,content:t[5]})}const d=Object(r.extend)((function(t){Object(r.extend)(this,Object(r.pick)(t||{},"tag","attrs","type","content"));const e=this.attrs;this.attrs={named:{},numeric:[]},e&&(Object(r.isString)(e)?this.attrs=a(e):Object(r.isEqual)(Object.keys(e),["named","numeric"])?this.attrs=e:Object(r.forEach)(e,(t,e)=>{this.set(e,t)}))}),{next:s,replace:u,string:i,regexp:c,attrs:a,fromMatch:l});Object(r.extend)(d.prototype,{get(t){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]},set(t,e){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]=e,this},string(){let t="["+this.tag;return Object(r.forEach)(this.attrs.numeric,e=>{/\s/.test(e)?t+=' "'+e+'"':t+=" "+e}),Object(r.forEach)(this.attrs.named,(e,n)=>{t+=" "+n+'="'+e+'"'}),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),e.default=d},"./node_modules/memize/index.js":function(t,e,n){t.exports=function(t,e){var n,r,o=0;function s(){var s,u,i=n,c=arguments.length;t:for(;i;){if(i.args.length===arguments.length){for(u=0;u<c;u++)if(i.args[u]!==arguments[u]){i=i.next;continue t}return i!==n&&(i===r&&(r=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=n,i.prev=null,n.prev=i,n=i),i.val}i=i.next}for(s=new Array(c),u=0;u<c;u++)s[u]=arguments[u];return i={args:s,val:t.apply(null,s)},n?(n.prev=i,i.next=n):r=i,o===e.maxSize?(r=r.prev).next=null:o++,n=i,i.val}return e=e||{},s.clear=function(){n=null,r=null,o=0},s}},lodash:function(t,e){t.exports=window.lodash}}).default;