2 lines
8.2 KiB
JavaScript
2 lines
8.2 KiB
JavaScript
/*! This file is auto-generated */
|
|
!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{Children:function(){return n.Children},Component:function(){return n.Component},Fragment:function(){return n.Fragment},Platform:function(){return w},RawHTML:function(){return S},StrictMode:function(){return n.StrictMode},Suspense:function(){return n.Suspense},cloneElement:function(){return n.cloneElement},concatChildren:function(){return m},createContext:function(){return n.createContext},createElement:function(){return n.createElement},createInterpolateElement:function(){return p},createPortal:function(){return g.createPortal},createRef:function(){return n.createRef},findDOMNode:function(){return g.findDOMNode},forwardRef:function(){return n.forwardRef},isEmptyElement:function(){return b},isValidElement:function(){return n.isValidElement},lazy:function(){return n.lazy},memo:function(){return n.memo},render:function(){return g.render},renderToString:function(){return V},switchChildrenNodeName:function(){return y},unmountComponentAtNode:function(){return g.unmountComponentAtNode},useCallback:function(){return n.useCallback},useContext:function(){return n.useContext},useDebugValue:function(){return n.useDebugValue},useEffect:function(){return n.useEffect},useImperativeHandle:function(){return n.useImperativeHandle},useLayoutEffect:function(){return n.useLayoutEffect},useMemo:function(){return n.useMemo},useReducer:function(){return n.useReducer},useRef:function(){return n.useRef},useState:function(){return n.useState}});var n=window.React;let r,o,u,i;const c=/<(\/)?(\w+)\s*(\/)?>/g;function s(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}const a=e=>{const t="object"==typeof e,r=t&&Object.values(e);return t&&r.length&&r.every((e=>(0,n.isValidElement)(e)))};function l(e){const t=function(){const e=c.exec(r);if(null===e)return["no-more-tokens"];const t=e.index,[n,o,u,i]=e,s=n.length;if(i)return["self-closed",u,t,s];if(o)return["closer",u,t,s];return["opener",u,t,s]}(),[a,l,p,h]=t,m=i.length,y=p>o?o:null;if(!e[l])return f(),!1;switch(a){case"no-more-tokens":if(0!==m){const{leadingTextStart:e,tokenStart:t}=i.pop();u.push(r.substr(e,t))}return f(),!1;case"self-closed":return 0===m?(null!==y&&u.push(r.substr(y,p-y)),u.push(e[l]),o=p+h,!0):(d(s(e[l],p,h)),o=p+h,!0);case"opener":return i.push(s(e[l],p,h,p+h,y)),o=p+h,!0;case"closer":if(1===m)return function(e){const{element:t,leadingTextStart:o,prevOffset:c,tokenStart:s,children:a}=i.pop(),l=e?r.substr(c,e-c):r.substr(c);l&&a.push(l);null!==o&&u.push(r.substr(o,s-o));u.push((0,n.cloneElement)(t,null,...a))}(p),o=p+h,!0;const t=i.pop(),c=r.substr(t.prevOffset,p-t.prevOffset);t.children.push(c),t.prevOffset=p+h;const a=s(t.element,t.tokenStart,t.tokenLength,p+h);return a.children=t.children,d(a),o=p+h,!0;default:return f(),!1}}function f(){const e=r.length-o;0!==e&&u.push(r.substr(o,e))}function d(e){const{element:t,tokenStart:o,tokenLength:u,prevOffset:c,children:s}=e,a=i[i.length-1],l=r.substr(a.prevOffset,o-a.prevOffset);l&&a.children.push(l),a.children.push((0,n.cloneElement)(t,null,...s)),a.prevOffset=c||o+u}var p=(e,t)=>{if(r=e,o=0,u=[],i=[],c.lastIndex=0,!a(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(l(t));return(0,n.createElement)(n.Fragment,null,...u)},h=window.lodash;function m(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(((e,t,r)=>(n.Children.forEach(t,((t,o)=>{t&&"string"!=typeof t&&(t=(0,n.cloneElement)(t,{key:[r,o].join()})),e.push(t)})),e)),[])}function y(e,t){return e&&n.Children.map(e,((e,r)=>{if((0,h.isString)(e))return(0,n.createElement)(t,{key:r},e);const{children:o,...u}=e.props;return(0,n.createElement)(t,{key:r,...u},o)}))}var g=window.ReactDOM;const b=e=>!(0,h.isNumber)(e)&&((0,h.isString)(e)||(0,h.isArray)(e)?!e.length:!e);var w={OS:"web",select:e=>"web"in e?e.web:e.default,isWeb:!0},v=window.wp.escapeHtml;function S(e){let{children:t,...r}=e,o="";return n.Children.toArray(t).forEach((e=>{"string"==typeof e&&""!==e.trim()&&(o+=e)})),(0,n.createElement)("div",{dangerouslySetInnerHTML:{__html:o},...r})}const{Provider:k,Consumer:C}=(0,n.createContext)(void 0),O=(0,n.forwardRef)((()=>null)),E=new Set(["string","boolean","number"]),x=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),M=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),I=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),T=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function R(e,t){return t.some((t=>0===e.indexOf(t)))}function L(e){return"key"===e||"children"===e}function H(e,t){return"style"===e?function(e){if(!(0,h.isPlainObject)(e))return e;let t;for(const n in e){const r=e[n];if(null==r)continue;t?t+=";":t="";t+=_(n)+":"+j(n,r)}return t}(t):t}function P(e){switch(e){case"htmlFor":return"for";case"className":return"class"}return e.toLowerCase()}function _(e){return(0,h.startsWith)(e,"--")?e:R(e,["ms","O","Moz","Webkit"])?"-"+(0,h.kebabCase)(e):(0,h.kebabCase)(e)}function j(e,t){return"number"!=typeof t||0===t||T.has(e)?t:t+"px"}function A(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==e||!1===e)return"";if(Array.isArray(e))return z(e,t,r);switch(typeof e){case"string":return(0,v.escapeHTML)(e);case"number":return e.toString()}const{type:o,props:u}=e;switch(o){case n.StrictMode:case n.Fragment:return z(u.children,t,r);case S:const{children:e,...o}=u;return N((0,h.isEmpty)(o)?null:"div",{...o,dangerouslySetInnerHTML:{__html:e}},t,r)}switch(typeof o){case"string":return N(o,u,t,r);case"function":return o.prototype&&"function"==typeof o.prototype.render?$(o,u,t,r):A(o(u,r),t,r)}switch(o&&o.$$typeof){case k.$$typeof:return z(u.children,u.value,r);case C.$$typeof:return A(u.children(t||o._currentValue),t,r);case O.$$typeof:return A(o.render(u),t,r)}return""}function N(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="";if("textarea"===e&&t.hasOwnProperty("value")?(o=z(t.value,n,r),t=(0,h.omit)(t,"value")):t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=z(t.children,n,r)),!e)return o;const u=D(t);return x.has(e)?"<"+e+u+"/>":"<"+e+u+">"+o+"</"+e+">"}function $(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=new e(t,r);"function"==typeof o.getChildContext&&Object.assign(r,o.getChildContext());const u=A(o.render(),n,r);return u}function z(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="";e=(0,h.castArray)(e);for(let o=0;o<e.length;o++){r+=A(e[o],t,n)}return r}function D(e){let t="";for(const n in e){const r=P(n);if(!(0,v.isValidAttributeName)(r))continue;let o=H(n,e[n]);if(!E.has(typeof o))continue;if(L(n))continue;const u=M.has(r);if(u&&!1===o)continue;const i=u||R(n,["data-","aria-"])||I.has(r);("boolean"!=typeof o||i)&&(t+=" "+r,u||("string"==typeof o&&(o=(0,v.escapeAttribute)(o)),t+='="'+o+'"'))}return t}var V=A;(window.wp=window.wp||{}).element=t}(); |