KOTH_wordpress/wp_data/wp-includes/js/dist/element.min.js

9 lines
12 KiB
JavaScript
Raw Normal View History

2023-02-19 18:03:46 -05:00
/*! 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 v},RawHTML:function(){return A},StrictMode:function(){return n.StrictMode},Suspense:function(){return n.Suspense},cloneElement:function(){return n.cloneElement},concatChildren:function(){return h},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},hydrate:function(){return g.hydrate},isEmptyElement:function(){return y},isValidElement:function(){return n.isValidElement},lazy:function(){return n.lazy},memo:function(){return n.memo},render:function(){return g.render},renderToString:function(){return J},switchChildrenNodeName:function(){return m},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,i,a;const u=/<(\/)?(\w+)\s*(\/)?>/g;function s(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}const l=e=>{const t="object"==typeof e,r=t&&Object.values(e);return t&&r.length&&r.every((e=>(0,n.isValidElement)(e)))};function c(e){const t=function(){const e=u.exec(r);if(null===e)return["no-more-tokens"];const t=e.index,[n,o,i,a]=e,s=n.length;if(a)return["self-closed",i,t,s];if(o)return["closer",i,t,s];return["opener",i,t,s]}(),[l,c,p,h]=t,m=a.length,g=p>o?o:null;if(!e[c])return f(),!1;switch(l){case"no-more-tokens":if(0!==m){const{leadingTextStart:e,tokenStart:t}=a.pop();i.push(r.substr(e,t))}return f(),!1;case"self-closed":return 0===m?(null!==g&&i.push(r.substr(g,p-g)),i.push(e[c]),o=p+h,!0):(d(s(e[c],p,h)),o=p+h,!0);case"opener":return a.push(s(e[c],p,h,p+h,g)),o=p+h,!0;case"closer":if(1===m)return function(e){const{element:t,leadingTextStart:o,prevOffset:u,tokenStart:s,children:l}=a.pop(),c=e?r.substr(u,e-u):r.substr(u);c&&l.push(c);null!==o&&i.push(r.substr(o,s-o));i.push((0,n.cloneElement)(t,null,...l))}(p),o=p+h,!0;const t=a.pop(),u=r.substr(t.prevOffset,p-t.prevOffset);t.children.push(u),t.prevOffset=p+h;const l=s(t.element,t.tokenStart,t.tokenLength,p+h);return l.children=t.children,d(l),o=p+h,!0;default:return f(),!1}}function f(){const e=r.length-o;0!==e&&i.push(r.substr(o,e))}function d(e){const{element:t,tokenStart:o,tokenLength:i,prevOffset:u,children:s}=e,l=a[a.length-1],c=r.substr(l.prevOffset,o-l.prevOffset);c&&l.children.push(c),l.children.push((0,n.cloneElement)(t,null,...s)),l.prevOffset=u||o+i}var p=(e,t)=>{if(r=e,o=0,i=[],a=[],u.lastIndex=0,!l(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(c(t));return(0,n.createElement)(n.Fragment,null,...i)};function h(){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 m(e,t){return e&&n.Children.map(e,((e,r)=>{if("string"==typeof(null==e?void 0:e.valueOf()))return(0,n.createElement)(t,{key:r}
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function b(e){return"[object Object]"===Object.prototype.toString.call(e)}var k=function(){return k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},k.apply(this,arguments)};Object.create;Object.create;function w(e){return e.toLowerCase()}var S=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],O=/[^A-Z0-9]+/gi;function x(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function C(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?S:n,o=t.stripRegexp,i=void 0===o?O:o,a=t.transform,u=void 0===a?w:a,s=t.delimiter,l=void 0===s?" ":s,c=x(x(e,r,"$1\0$2"),i,"\0"),f=0,d=c.length;"\0"===c.charAt(f);)f++;for(;"\0"===c.charAt(d-1);)d--;return c.slice(f,d).split("\0").map(u).join(l)}(e,k({delimiter:"."},t))}function E(e,t){return void 0===t&&(t={}),C(e,k({delimiter:"-"},t))}var R=window.wp.escapeHtml;function A(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:M,Consumer:T}=(0,n.createContext)(void 0),L=(0,n.forwardRef)((()=>null)),P=new Set(["string","boolean","number"]),j=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),I=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"]),H=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"]),z=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 D(e,t){return t.some((t=>0===e.indexOf(t)))}function W(e){return"key"===e||"children"===e}function _(e,t){return"style"===e?function(e){if(t=e,!1===b(t)||void 0!==(n=t.constructor)&&(!1===b(r=n.prototype)||!1===r.hasOwnProperty("isPrototypeOf")))return e;var t,n,r;let o;for(const t in e){const n=e[t];if(null==n)continue;o?o+=";":o="";o+=$(t)+":"+q(t,n)}return o}(t):t}const F=["accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","dominantBaseline","enableBackground","fillOpacity","fillRule","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","panose1","pointerEvents","renderingIntent","shapeRendering","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","textAnchor","textDecoration","textRendering","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","wordSpacing","writingMode","xmlnsXlink","xHeight"].red