WordPress/wp-includes/js/dist/components.min.js

45 lines
770 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
Update @wordpress packages for Beta 4 Update packages with these bug fixes from Gutenberg: Navigation: Remove hardcoded typography units Handle parsed request Navigation: Refactor modal padding to be simpler and more flexible Show notice on save in site editor Add aria-pressed true/false to Toggle navigation button based on state Components FontSizePicker: Use incremental sequence of numbers Custom keys from theme.json: fix kebabCase conversion Template Part: Fix 'isMissing' condition check Multi-Entity Saving: Decode HTML entities in item titles Font sizes: update default values Query Loop: Add useBlockPreview, fix Query Loop wide alignment Only add dialog role to navigation when modal is open Fix navigation appender Show a UI warning when user does not have permission to update/edit a Navigation block Block editor: Fix Enter handling for nested blocks Update: Use subtitle styles for the palette names Allow publishing a post while not saving changes to non-post entities Update: Block top level useSetting paths Fix Site Logo block alignment issues Editor: when Toggle navigation receives state false, focus ToolsPanel: Allow items to register when panelId is null Block Support Panels - Make block support tools panels compatible Gallery: Fix block registration hook priority Navigation: Fix page list issues in overlay Ensure the overlay menu works when inserting navigation block pattern Restrict Navigation permissions and show UI warning if cannot create Add block gap support for group blocks Try cascading nav styles through classnames Fix: Impossible to edit theme and default colors Fix: Color editor discards colors with default name Site Editor: Fix template author avatar check Template Editing Mode: Fix options dropdown Avoid undo issues when reset parent blocks for controlled blocks Add comment-form and comment-list to html5 theme support and fix comment layout Props hellofromtonya. See #54487. Built from https://develop.svn.wordpress.org/trunk@52402 git-svn-id: http://core.svn.wordpress.org/trunk@51994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-12-21 08:02:34 +01:00
this.wp=this.wp||{},this.wp.components=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="SB3u")}({"+1VY":function(e,t,n){"use strict";var r=n("ep+1"),o="-ms-",a="-moz-",i="-webkit-",c="comm",s="rule",l="decl",u="@keyframes",d=Math.abs,f=String.fromCharCode,p=Object.assign;function b(e){return e.trim()}function h(e,t,n){return e.replace(t,n)}function m(e,t){return e.indexOf(t)}function v(e,t){return 0|e.charCodeAt(t)}function g(e,t,n){return e.slice(t,n)}function y(e){return e.length}function O(e){return e.length}function j(e,t){return t.push(e),e}function w(e,t){return e.map(t).join("")}var x=1,_=1,E=0,k=0,S=0,C="";function P(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:x,column:_,length:i,return:""}}function T(e,t){return p(P("",null,null,"",null,null,0),e,{length:-e.length},t)}function M(){return S=k>0?v(C,--k):0,_--,10===S&&(_=1,x--),S}function D(){return S=k<E?v(C,k++):0,_++,10===S&&(_=1,x++),S}function I(){return v(C,k)}function R(){return k}function A(e,t){return g(C,e,t)}function N(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function L(e){return x=_=1,E=y(C=e),k=0,[]}function F(e){return C="",e}function z(e){return b(A(k-1,function e(t){for(;D();)switch(S){case t:return k;case 34:case 39:34!==t&&39!==t&&e(S);break;case 40:41===t&&e(t);break;case 92:D()}return k}(91===e?e+2:40===e?e+1:e)))}function B(e){for(;(S=I())&&S<33;)D();return N(e)>2||N(S)>3?"":" "}function H(e,t){for(;--t&&D()&&!(S<48||S>102||S>57&&S<65||S>70&&S<97););return A(e,R()+(t<6&&32==I()&&32==D()))}function V(e,t){for(;D()&&e+S!==57&&(e+S!==84||47!==I()););return"/*"+A(t,k-1)+"*"+f(47===e?e:D())}function W(e){for(;!N(I());)D();return A(e,k)}function U(e){return F(function e(t,n,r,o,a,i,c,s,l){var u=0,d=0,p=c,b=0,v=0,g=0,O=1,w=1,x=1,_=0,E="",k=a,S=i,C=o,P=E;for(;w;)switch(g=_,_=D()){case 40:if(108!=g&&58==P.charCodeAt(p-1)){-1!=m(P+=h(z(_),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:P+=z(_);break;case 9:case 10:case 13:case 32:P+=B(g);break;case 92:P+=H(R()-1,7);continue;case 47:switch(I()){case 42:case 47:j(G(V(D(),R()),n,r),l);break;default:P+="/"}break;case 123*O:s[u++]=y(P)*x;case 125*O:case 59:case 0:switch(_){case 0:case 125:w=0;case 59+d:v>0&&y(P)-p&&j(v>32?$(P+";",o,r,p-1):$(h(P," ","")+";",o,r,p-2),l);break;case 59:P+=";";default:if(j(C=K(P,n,r,u,d,a,s,E,k=[],S=[],p),i),123===_)if(0===d)e(P,n,C,C,k,i,p,s,S);else switch(b){case 100:case 109:case 115:e(t,C,C,o&&j(K(t,C,C,0,0,a,s,E,a,k=[],p),S),a,S,p,s,o?k:S);break;default:e(P,C,C,C,[""],S,0,s,S)}}u=d=v=0,O=x=1,E=P="",p=c;break;case 58:p=1+y(P),v=g;default:if(O<1)if(123==_)--O;else if(125==_&&0==O++&&125==M())continue;switch(P+=f(_),_*O){case 38:x=d>0?1:(P+="\f",-1);break;case 44:s[u++]=(y(P)-1)*x,x=1;break;case 64:45===I()&&(P+=z(D())),b=I(),d=p=y(E=P+=W(R())),_++;break;case 45:45===g&&2==y(P)&&(O=0)}}return i}("",null,null,null,[""],e=L(e),0,[0],e))}function K(e,t,n,r,o,a,i,c,l,u,f){for(var p=o-1,m=0===o?a:[""],v=O(m),y=0,j=0,w=0;y<r;++y)for(var x=0,_=g(e,p+1,p=d(j=i[y])),E=e;x<v;++x)(E=b(j>0?m[x]+" "+_:
/** @license React v17.0.2
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
Update @wordpress packages for Beta 4 Update packages with these bug fixes from Gutenberg: Navigation: Remove hardcoded typography units Handle parsed request Navigation: Refactor modal padding to be simpler and more flexible Show notice on save in site editor Add aria-pressed true/false to Toggle navigation button based on state Components FontSizePicker: Use incremental sequence of numbers Custom keys from theme.json: fix kebabCase conversion Template Part: Fix 'isMissing' condition check Multi-Entity Saving: Decode HTML entities in item titles Font sizes: update default values Query Loop: Add useBlockPreview, fix Query Loop wide alignment Only add dialog role to navigation when modal is open Fix navigation appender Show a UI warning when user does not have permission to update/edit a Navigation block Block editor: Fix Enter handling for nested blocks Update: Use subtitle styles for the palette names Allow publishing a post while not saving changes to non-post entities Update: Block top level useSetting paths Fix Site Logo block alignment issues Editor: when Toggle navigation receives state false, focus ToolsPanel: Allow items to register when panelId is null Block Support Panels - Make block support tools panels compatible Gallery: Fix block registration hook priority Navigation: Fix page list issues in overlay Ensure the overlay menu works when inserting navigation block pattern Restrict Navigation permissions and show UI warning if cannot create Add block gap support for group blocks Try cascading nav styles through classnames Fix: Impossible to edit theme and default colors Fix: Color editor discards colors with default name Site Editor: Fix template author avatar check Template Editing Mode: Fix options dropdown Avoid undo issues when reset parent blocks for controlled blocks Add comment-form and comment-list to html5 theme support and fix comment layout Props hellofromtonya. See #54487. Built from https://develop.svn.wordpress.org/trunk@52402 git-svn-id: http://core.svn.wordpress.org/trunk@51994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-12-21 08:02:34 +01:00
*/var r=60103,o=60106,a=60107,i=60108,c=60114,s=60109,l=60110,u=60112,d=60113,f=60120,p=60115,b=60116,h=60121,m=60122,v=60117,g=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var O=Symbol.for;r=O("react.element"),o=O("react.portal"),a=O("react.fragment"),i=O("react.strict_mode"),c=O("react.profiler"),s=O("react.provider"),l=O("react.context"),u=O("react.forward_ref"),d=O("react.suspense"),f=O("react.suspense_list"),p=O("react.memo"),b=O("react.lazy"),h=O("react.block"),m=O("react.server.block"),v=O("react.fundamental"),g=O("react.debug_trace_mode"),y=O("react.legacy_hidden")}function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case c:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case l:case u:case b:case p:case s:return e;default:return t}}case o:return t}}}var w=s,x=r,_=u,E=a,k=b,S=p,C=o,P=c,T=i,M=d;t.ContextConsumer=l,t.ContextProvider=w,t.Element=x,t.ForwardRef=_,t.Fragment=E,t.Lazy=k,t.Memo=S,t.Portal=C,t.Profiler=P,t.StrictMode=T,t.Suspense=M,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return j(e)===l},t.isContextProvider=function(e){return j(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return j(e)===u},t.isFragment=function(e){return j(e)===a},t.isLazy=function(e){return j(e)===b},t.isMemo=function(e){return j(e)===p},t.isPortal=function(e){return j(e)===o},t.isProfiler=function(e){return j(e)===c},t.isStrictMode=function(e){return j(e)===i},t.isSuspense=function(e){return j(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===c||e===g||e===i||e===d||e===f||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===u||e.$$typeof===v||e.$$typeof===h||e[0]===m)},t.typeOf=j},"5yQQ":function(e,t,n){"use strict";var r=n("nRDI");e.exports=function(){if("undefined"!=typeof document){if(document.contains)return document.contains;if(document.body&&document.body.contains)try{if("boolean"==typeof document.body.contains.call(document,""))return document.body.contains}catch(e){}}return r}},"6/BL":function(e,t,n){"use strict";var r=n("oNNP"),o=n("10Kj"),a=n("PoQ0");e.exports=function(e){return void 0!==e&&(o(a,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},"60zJ":function(e,t,n){"use strict";e.exports=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}},"6Ehn":function(e,t,n){"use strict";var r=n("j1Hc"),o=r("%Array.prototype%"),a=r("%RangeError%"),i=r("%SyntaxError%"),c=r("%TypeError%"),s=n("J2ba"),l=Math.pow(2,32)-1,u=r("%Object.setPrototypeOf%",!0)||([].__proto__!==o?null:function(e,t){return e.__proto__=t,e});e.exports=function(e){if(!s(e)||e<0)throw new c("Assertion failed: `length` must be an integer Number >= 0");if(e>l)throw new a("length is greater than (2**32 - 1)");var t=arguments.length>1?arguments[1]:o,n=[];if(t!==o){if(!u)throw new i("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");u(n,t)}return 0!==e&&(n.length=e),n}},"6HWY":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(0,o.default)(e.clone().add(1,"month"),t)};var r=a(n("wy2R")),o=a(n("ulUS"));function a(e){return e&&e.__esModule?e:{default:e}}},"6I5v":function(e,t,n){"use strict";e.exports=function(e){return e>=0?1:-1}},"6XE+":function(e,t,n){"use strict";var r=n("j1Hc"),o=n("knm9"),a=r("%TypeError%"),i=n("qeuH")("Object.prototype.propertyIsEnumerable"),c=n("oNNP"),s=n("Bl8U"),l=n("nR7C"),u=n("a73V"),d=n("6orR"),f=n("PoQ0");e.exports=function(e,t){if("Object"!==f(e))throw new a("Assertion failed: O must be an Object");if(!l(t))throw new a("Assertion failed: P must be a P
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function at(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ot(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var it=function(){return(it=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}).apply(this,arguments)};function ct(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function st(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function lt(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var ut=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},dt={measureLayout:ut(["layout","layoutId","drag","_layoutResetTransform"]),animation:ut(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:ut(["exit"]),drag:ut(["drag","dragControls"]),focus:ut(["whileFocus"]),hover:ut(["whileHover","onHoverStart","onHoverEnd"]),tap:ut(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ut(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:ut(["layout","layoutId"])};var ft=Object(q.createContext)({strict:!1}),pt=Object.keys(dt),bt=pt.length;var ht=Object(q.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),mt=Object(q.createContext)({});var vt=Object(q.createContext)(null);function gt(e){var t=Object(q.useRef)(null);return null===t.current&&(t.current=e()),t.current}function yt(){var e=Object(q.useContext)(vt);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=xt();Object(q.useEffect)((function(){return r(o)}),[]);return!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function Ot(e){return null===e||e.isPresent}var jt=0,wt=function(){return jt++},xt=function(){return gt(wt)},_t=Object(q.createContext)(null),Et="undefined"!=typeof window,kt=Et?q.useLayoutEffect:q.useEffect;function St(e,t,n,r){var o=Object(q.useContext)(ht),a=Object(q.useContext)(ft),i=Object(q.useContext)(mt).visualElement,c=Object(q.useContext)(vt),s=function(e){var t=e.layoutId,n=Object(q.useContext)(_t);return n&&void 0!==t?n+"-"+t:t}(n),l=Object(q.useRef)(void 0);r||(r=a.renderer),!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:it(it({},n),{layoutId:s}),presenceId:null==c?void 0:c.id,blockInitialAnimation:!1===(null==c?void 0:c.initial)}));var u=l.current;return kt((function(){u&&(u.setProps(it(it(it({},o),n),{layoutId:s})),u.isPresent=Ot(c),u.isPresenceRoot=!i||i.presenceId!==(null==c?void 0:c.id),u.syncRender())})),Object(q.useEffect)((function(){var e;u&&(null===(e=u.animationState)||void 0===e||e.animateChanges())})),kt((function(){return function(){return null==u?void 0:u.notifyUnmount()}}),[]),u}function Ct(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Pt(e){return Array.isArray(e)}function Tt(e){return"string"==typeof e||Pt(e)}function Mt(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t?t(null!=n?n:e.custom,r,o):t}function Dt(e,t,n){var r=e.getProps();return Mt(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEac
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
Update @wordpress packages Update packages to include these bug fixes from Gutenberg: - Site Logo: Add option to set site icon from Site Logo block - Navigation: Enable even more compact setup state. - Remove template parts from post content inserter an __unstable filter - Template Editor Mode: Hide editor mode switcher - Avoid using CSS variables for block gap styles - Try to fix auto resizing in template part focus mode - Lower the specificity of font size CSS Custom Properties in the editor - Site icon: Fix site icon styling to display non-square site icons within a square button - [Site Editor]: Register block editor shortcuts - Update regex to handle 404 template slug - Site Editor: Remove dead code - [Block Editor]: Restrict delete multi selected blocks shortcut - Fix: Gradients are not being applied by class - Update: Make the global styles subtitles font smaller - Post Content/Title: Reflect changes when previewing post - ServerSideRender: Fix loading state - [Block Library]: Fix editable post blocks in Query Loop with zero queryId - Post Excerpt: Fix previews - WP59: Contextualize "Export" string to differentiate it from other occurrences in WP Core - Tools Panel: Fix race conditions caused by conditionally displayed ToolsPanelItems - ToolsPanel: Allow items to register when panelId is null - Font Size Picker: Allow non-integers as simple CSS values and in hints - [Components - FontSizePicker]: Use incremental sequence of numbers as labels for the available font-sizes at the segmented control (conditionally) See #54487. Built from https://develop.svn.wordpress.org/trunk@52434 git-svn-id: http://core.svn.wordpress.org/trunk@52026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-04 06:39:28 +01:00
`,ak=`calc( ( ${Vs.spinnerSize} - ${Vs.spinnerSize} * ( 2 / 3 ) ) / 2 )`,ik=Object(w.a)("span",{target:"e1s472tg0"})("display:inline-block;background-color:",L.gray[600],";width:",Vs.spinnerSize,";height:",Vs.spinnerSize,";opacity:0.7;margin:5px 11px 0;border-radius:100%;position:relative;&::before{content:'';position:absolute;background-color:",L.white,";top:",ak,";left:",ak,";width:calc( ",Vs.spinnerSize," / 4.5 );height:calc( ",Vs.spinnerSize," / 4.5 );border-radius:100%;transform-origin:calc( ",Vs.spinnerSize," / 3 ) calc( ",Vs.spinnerSize," / 3 );animation:",ok," 1s infinite linear;}");function ck(){return Object(s.createElement)(ik,{className:"components-spinner"})}var sk=Object(ts.a)((function(e,t){const n=Sp(e);return Object(s.createElement)(ns.a,Object(c.a)({},n,{ref:t}))}),"Surface");const lk=e=>{let{tabId:t,onClick:n,children:r,selected:o,...a}=e;return Object(s.createElement)(id.a,Object(c.a)({role:"tab",tabIndex:o?null:-1,"aria-selected":o,id:t,onClick:n},a),r)};function uk(e){var t;let{className:n,children:r,tabs:o,initialTabName:a,orientation:i="horizontal",activeClass:c="is-active",onSelect:u=l.noop}=e;const f=Object(p.useInstanceId)(uk,"tab-panel"),[b,h]=Object(s.useState)(null),m=e=>{h(e),u(e)},v=Object(l.find)(o,{name:b}),g=`${f}-${null!==(t=null==v?void 0:v.name)&&void 0!==t?t:"none"}`;return Object(s.useEffect)(()=>{Object(l.find)(o,{name:b})||h(a||(o.length>0?o[0].name:null))},[o]),Object(s.createElement)("div",{className:n},Object(s.createElement)(Mg,{role:"tablist",orientation:i,onNavigate:(e,t)=>{t.click()},className:"components-tab-panel__tabs"},o.map(e=>Object(s.createElement)(lk,{className:d()("components-tab-panel__tabs-item",e.className,{[c]:e.name===b}),tabId:`${f}-${e.name}`,"aria-controls":`${f}-${e.name}-view`,selected:e.name===b,key:e.name,onClick:Object(l.partial)(m,e.name)},e.title))),v&&Object(s.createElement)("div",{key:g,"aria-labelledby":g,role:"tabpanel",id:g+"-view",className:"components-tab-panel__tab-content"},r(v)))}var dk=Object(s.forwardRef)((function e(t,n){let{label:r,hideLabelFromVision:o,value:a,help:i,className:l,onChange:u,type:d="text",...f}=t;const b="inspector-text-control-"+Object(p.useInstanceId)(e);return Object(s.createElement)(gd,{label:r,hideLabelFromVision:o,id:b,help:i,className:l},Object(s.createElement)("input",Object(c.a)({className:"components-text-control__input",type:d,id:b,value:a,onChange:e=>u(e.target.value),"aria-describedby":i?b+"__help":void 0,ref:n},f)))}));const fk=Object(x.a)("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Vs.radiusBlockUi,";border:",Vs.borderWidth," solid ",L.ui.border,";",""),pk=Object(x.a)("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",Vs.borderWidthFocus," - ",Vs.borderWidth," ) var( --wp-admin-theme-color );outline:2px solid transparent;","");var bk={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"};const hk=Object(x.a)("font-family:",fd("default.fontFamily"),";padding:6px 8px;",fk,";font-size:",fd("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${bk["small"]})`,"{font-size:",fd("default.fontSize"),";line-height:normal;}&:focus{",pk,";}&::-webkit-input-placeholder{color:",L.darkGray.placeholder,";}&::-moz-placeholder{opacity:1;color:",L.darkGray.placeholder,";}&:-ms-input-placeholder{color:",L.darkGray.placeholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",L.lightGray.placeholder,";}&::-moz-placeholder{opacity:1;color:",L.lightGray.placeholder,";}&:-ms-input-placeholder{color:",L.lightGray.placeholder,";}}","");const mk=Object(w.a)("textarea",{target:"ebk7yr50"})("width:100%;",hk,";");function vk(e){let{label:t,hideLabelFromVision:n,value:r,help:o,onChange:a,rows:i=4,className:l,...u}=e;const d="inspector-textarea-control-"+Object(p.useInstanceId)(vk);return Object(s.createElement)(gd,{label:t,hideLabelFromVision:n,id:d,help:o,className:l},Object(s.createElement)(mk,Object(c.a)({className:"components-textarea-control__input",id:d,rows:i,onChange:e=>a(e.target
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
Update @wordpress packages for Beta 4 Update packages with these bug fixes from Gutenberg: Navigation: Remove hardcoded typography units Handle parsed request Navigation: Refactor modal padding to be simpler and more flexible Show notice on save in site editor Add aria-pressed true/false to Toggle navigation button based on state Components FontSizePicker: Use incremental sequence of numbers Custom keys from theme.json: fix kebabCase conversion Template Part: Fix 'isMissing' condition check Multi-Entity Saving: Decode HTML entities in item titles Font sizes: update default values Query Loop: Add useBlockPreview, fix Query Loop wide alignment Only add dialog role to navigation when modal is open Fix navigation appender Show a UI warning when user does not have permission to update/edit a Navigation block Block editor: Fix Enter handling for nested blocks Update: Use subtitle styles for the palette names Allow publishing a post while not saving changes to non-post entities Update: Block top level useSetting paths Fix Site Logo block alignment issues Editor: when Toggle navigation receives state false, focus ToolsPanel: Allow items to register when panelId is null Block Support Panels - Make block support tools panels compatible Gallery: Fix block registration hook priority Navigation: Fix page list issues in overlay Ensure the overlay menu works when inserting navigation block pattern Restrict Navigation permissions and show UI warning if cannot create Add block gap support for group blocks Try cascading nav styles through classnames Fix: Impossible to edit theme and default colors Fix: Color editor discards colors with default name Site Editor: Fix template author avatar check Template Editing Mode: Fix options dropdown Avoid undo issues when reset parent blocks for controlled blocks Add comment-form and comment-list to html5 theme support and fix comment layout Props hellofromtonya. See #54487. Built from https://develop.svn.wordpress.org/trunk@52402 git-svn-id: http://core.svn.wordpress.org/trunk@51994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-12-21 08:02:34 +01:00
*/!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)){if(r.length){var i=o.apply(null,r);i&&e.push(i)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},TUyu:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){(0,o.default)(r.default)};var r=a(n("lzPt")),o=a(n("WI5Z"));function a(e){return e&&e.__esModule?e:{default:e}}},Teho:function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},Thzv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=S(n("Koq/")),i=S(n("cDcd")),c=S(n("17x9")),s=S(n("YZDV")),l=S(n("XGBb")),u=n("Hsqg"),d=n("TG4+"),f=S(n("wy2R")),p=n("1TsT"),b=n("vV+G"),h=S(n("yc2e")),m=S(n("mMiH")),v=S(n("dRQD")),g=S(n("q86A")),y=S(n("m2ax")),O=S(n("jenk")),j=S(n("Pq96")),w=S(n("6HWY")),x=S(n("J7JS")),_=S(n("aE6U")),E=S(n("2S2E")),k=n("Fv1B");function S(e){return e&&e.__esModule?e:{default:e}}var C=(0,u.forbidExtraProps)((0,a.default)({},d.withStylesPropTypes,{enableOutsideDays:c.default.bool,firstVisibleMonthIndex:c.default.number,horizontalMonthPadding:u.nonNegativeInteger,initialMonth:l.default.momentObj,isAnimating:c.default.bool,numberOfMonths:c.default.number,modifiers:c.default.objectOf(c.default.objectOf(x.default)),orientation:_.default,onDayClick:c.default.func,onDayMouseEnter:c.default.func,onDayMouseLeave:c.default.func,onMonthTransitionEnd:c.default.func,onMonthChange:c.default.func,onYearChange:c.default.func,renderMonthText:(0,u.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),renderCalendarDay:c.default.func,renderDayContents:c.default.func,translationValue:c.default.number,renderMonthElement:(0,u.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),daySize:u.nonNegativeInteger,focusedDate:l.default.momentObj,isFocused:c.default.bool,firstDayOfWeek:E.default,setMonthTitleHeight:c.default.func,isRTL:c.default.bool,transitionDuration:u.nonNegativeInteger,verticalBorderSpacing:u.nonNegativeInteger,monthFormat:c.default.string,phrases:c.default.shape((0,h.default)(b.CalendarDayPhrases)),dayAriaLabelFormat:c.default.string})),P={enableOutsideDays:!1,firstVisibleMonthIndex:0,horizontalMonthPadding:13,initialMonth:(0,f.default)(),isAnimating:!1,numberOfMonths:1,modifiers:{},orientation:k.HORIZONTAL_ORIENTATION,onDayClick:function(){},onDayMouseEnter:function(){},onDayMouseLeave:function(){},onMonthChange:function(){},onYearChange:function(){},onMonthTransitionEnd:function(){},renderMonthText:null,renderCalendarDay:void 0,renderDayContents:null,translationValue:null,renderMonthElement:null,daySize:k.DAY_SIZE,focusedDate:null,isFocused:!1,firstDayOfWeek:null,setMonthTitleHeight:null,isRTL:!1,transitionDuration:200,verticalBorderSpacing:void 0,monthFormat:"MMMM YYYY",phrases:b.CalendarDayPhrases,dayAriaLabelFormat:void 0};function T(e,t,n){var r=e.clone();n||(r=r.subtract(1,"month"));for(var o=[],a=0;a<(n?t:t+2);a+=1)o.push(r),r=r.clone().add(1,"month");return o}var M=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__pro
/** @license React v16.13.1
Block Editor: Update the WordPress Packages to the ones used in the Gutenberg 6.5 release Updated Packages: In version 6.2: @wordpress/a11y@2.5.0 @wordpress/annotations@1.5.0 @wordpress/api-fetch@3.4.0 @wordpress/autop@2.4.0 @wordpress/babel-plugin-import-jsx-pragma@2.3.0 @wordpress/babel-plugin-makepot@3.2.0 @wordpress/babel-preset-default@4.4.0 @wordpress/blob@2.5.0 @wordpress/block-editor@3.0.0 @wordpress/block-library@2.7.0 @wordpress/block-serialization-default-parser@3.3.0 @wordpress/block-serialization-spec-parser@3.2.0 @wordpress/blocks@6.5.0 @wordpress/browserslist-config@2.6.0 @wordpress/components@8.1.0 @wordpress/compose@3.5.0 @wordpress/core-data@2.5.0 @wordpress/custom-templated-path-webpack-plugin@1.5.0 @wordpress/data-controls@1.1.0 @wordpress/data@4.7.0 @wordpress/date@3.4.0 @wordpress/dependency-extraction-webpack-plugin@1.1.0 @wordpress/deprecated@2.5.0 @wordpress/docgen@1.3.0 @wordpress/dom-ready@2.5.0 @wordpress/dom@2.4.0 @wordpress/e2e-test-utils@2.2.0 @wordpress/e2e-tests@1.4.0 @wordpress/edit-post@3.6.0 @wordpress/editor@9.5.0 @wordpress/element@2.6.0 @wordpress/escape-html@1.5.0 @wordpress/eslint-plugin@2.4.0 @wordpress/format-library@1.7.0 @wordpress/hooks@2.5.0 @wordpress/html-entities@2.5.0 @wordpress/i18n@3.6.0 @wordpress/is-shallow-equal@1.5.0 @wordpress/jest-console@3.2.0 @wordpress/jest-preset-default@4.3.0 @wordpress/jest-puppeteer-axe@1.2.0 @wordpress/keycodes@2.5.0 @wordpress/library-export-default-webpack-plugin@1.4.0 @wordpress/list-reusable-blocks@1.6.0 @wordpress/media-utils@1.0.0 @wordpress/notices@1.6.0 @wordpress/npm-package-json-lint-config@2.1.0 @wordpress/nux@3.5.0 @wordpress/plugins@2.5.0 @wordpress/postcss-themes@2.2.0 @wordpress/priority-queue@1.3.0 @wordpress/redux-routine@3.5.0 @wordpress/rich-text@3.5.0 @wordpress/scripts@3.4.0 @wordpress/server-side-render@1.1.0 @wordpress/shortcode@2.4.0 @wordpress/token-list@1.5.0 @wordpress/url@2.7.0 @wordpress/viewport@2.6.0 @wordpress/wordcount@2.5.0 In version 6.4: @wordpress/annotations@1.6.0 @wordpress/api-fetch@3.5.0 @wordpress/autop@2.5.0 @wordpress/babel-preset-default@4.5.0 @wordpress/block-editor@3.1.0 @wordpress/block-library@2.8.0 @wordpress/block-serialization-default-parser@3.4.0 @wordpress/block-serialization-spec-parser@3.3.0 @wordpress/blocks@6.6.0 @wordpress/components@8.2.0 @wordpress/compose@3.6.0 @wordpress/core-data@2.6.0 @wordpress/data-controls@1.2.0 @wordpress/data@4.8.0 @wordpress/date@3.5.0 @wordpress/dependency-extraction-webpack-plugin@1.2.0 @wordpress/deprecated@2.6.0 @wordpress/docgen@1.4.0 @wordpress/dom@2.5.0 @wordpress/e2e-test-utils@2.3.0 @wordpress/e2e-tests@1.5.0 @wordpress/edit-post@3.7.0 @wordpress/editor@9.6.0 @wordpress/element@2.7.0 @wordpress/eslint-plugin@3.0.0 @wordpress/format-library@1.8.0 @wordpress/hooks@2.6.0 @wordpress/is-shallow-equal@1.6.0 @wordpress/jest-console@3.3.0 @wordpress/jest-preset-default@5.0.0 @wordpress/jest-puppeteer-axe@1.3.0 @wordpress/keycodes@2.6.0 @wordpress/list-reusable-blocks@1.7.0 @wordpress/media-utils@1.1.0 @wordpress/notices@1.7.0 @wordpress/nux@3.6.0 @wordpress/plugins@2.6.0 @wordpress/project-management-automation@1.0.0 @wordpress/redux-routine@3.6.0 @wordpress/rich-text@3.6.0 @wordpress/scripts@4.0.0 @wordpress/server-side-render@1.2.0 @wordpress/token-list@1.6.0 @wordpress/viewport@2.7.0 @wordpress/wordcount@2.6.0 In version 6.5: @wordpress/annotations@1.7.0 @wordpress/api-fetch@3.6.0 @wordpress/babel-preset-default@4.6.0 @wordpress/block-directory@1.0.0 @wordpress/block-editor@3.2.0 @wordpress/block-library@2.9.0 @wordpress/blocks@6.7.0 @wordpress/components@8.3.0 @wordpress/compose@3.7.0 @wordpress/core-data@2.7.0 @wordpress/data-controls@1.3.0 @wordpress/data@4.9.0 @wordpress/dependency-extraction-webpack-plugin@2.0.0 @wordpress/e2e-test-utils@2.4.0 @wordpress/e2e-tests@1.7.0 @wordpress/edit-post@3.8.0 @wordpress/editor@9.7.0 @wordpress/element@2.8.0 @wordpress/eslint-plugin@3.1.0 @wordpress/format-library@1.9.0 @wordpress/list-reusable-blocks@1.8.0 @wordpress/media-utils@1.2.0 @wordpress/notices@1.8.0 @wordpress/nux@3.7.0 @wordpress/plugins@2.7.0 @wordpress/rich-text@3.7.0 @wordpress/scripts@5.0.0 @wordpress/server-side-render@1.3.0 @wordpress/url@2.8.0 @wordpress/viewport@2.8.0 Props youknowriad desrosj noisysocks pento jorgefilipecosta iseulde Fixes: #47843 Built from https://develop.svn.wordpress.org/trunk@46189 git-svn-id: http://core.svn.wordpress.org/trunk@46001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-19 17:19:18 +02:00
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
Update @wordpress packages Update packages to include these bug fixes from Gutenberg: - Update Pattern block category and add documentation - Fix non existent menu handling in nav block - Make Reusable blocks available in the Site Editor - Add caching to WP_Theme_JSON_Resolver_Gutenberg::get_user_data_from_custom_post_type() - theme.json: add appearanceTools flag to opt-in into appearance UI controls - Update the block theme folders to templates and parts - Remove reference to gutenberg_, swap with wp_ - Use table layout in templates list screen - Update featured image placeholder graphic. - [Inserter]: Adjust order of theme blocks and reorder inserter items - Implement suitable fallback for Nav block on front end of site when no menu selected - Toggle Group Control: add tooltip - Use first non-empty Nav post as primary fallback for Nav block - Change .nvmrc and documentation for Node.js version (LTS to 14.18.1) - Update: Migrate global styles user database data on the rest endpoint - Update global styles public API - Update: Rename user preset origin to custom - Try always generating navigation post title - Show all templates and template parts on the site editor list screens - Highlight "Site" in the navigation panel - Fix template part slug generation when creating through the block placeholder - [Block Library - Post Title]: Fix render error when setting Page to homepage - Add 'Clear customizations' button to template list page - Gallery v1: Allow clicks within replace media placeholder state - Site Editor: Set the <title> on the list page to be same as the CPT name - Gallery: Fix stuck image size options loader - Cover: Fix undo trap - Add success and error snackbars to the templates list page - Fix: theme colors cannot override defaults - Fix: Color palette is not being stored - Add elements support to the typography panel in global styles - Make links plural in global styles - Add: Gradient palette editor - Update some small style regressions in the template list - Add: Transparency support on global styles colors - Fix: apply by slug on all origins - Render empty Nav block if no fallback block can be utilised - Allow filtering of Nav block fallback - Fix Nav block fallback DB query to match on full block grammar start tag - Remove unstable max pages attribute from Nav block - DateTimePicker: set PM hours correctly - Update delete template button - Site Editor: Template list add rename action - Fix Nav block editing wrong entity on creation of new Menu - [REST] Restore the missing double slash in the ID received by /templates - Add icons to navigation sidebar items - Update function names for the public global styles API functions - Templates Controller: Add missing 'is_custom' prop - Rename gutenberg_ to wp_ for some functions that land in WordPress 5.9 - [Block Library - Template Part]:Remove support for conversion to Reusable block - Global Styles: Call "palettes" and not "color palettes" on panel label - Add button text when no colors found - Update: Global Styes: Count all color palette origins on the palette counter - Rename navigationMenuId to ref - Offset the parent iframe when computing Popover position - Fix: Failing PHPUnit test - Show theme, plugin or author in Added By column with appropriate icon or avatar - Add origin and author to template rest api See #54487. Props talldanwp, mamaduka, oandregal. Built from https://develop.svn.wordpress.org/trunk@52275 git-svn-id: http://core.svn.wordpress.org/trunk@51867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-30 01:24:27 +01:00
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,b=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,j=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case i:case s:case c:case b:return e;default:switch(e=e&&e.$$typeof){case u:case p:case v:case m:case l:return e;default:return t}}case a:return t}}}function x(e){return w(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=a,t.Profiler=s,t.StrictMode=c,t.Suspense=b,t.isAsyncMode=function(e){return x(e)||w(e)===d},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===c},t.isSuspense=function(e){return w(e)===b},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===c||e===b||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===O||e.$$typeof===j||e.$$typeof===g)},t.typeOf=w},qdes:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("cDcd"),o=n("eUCI");function a(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var i=n("RDTF");var c=n("uqqE");function s(e){var t,n,o,s=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),l=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var c=a(o);return c?Object(i.a)(Object(i.a)({},t),c(t,n)):t}(e.name,t,n)),e.compose)for(var o,c=Object(i.c)(s);!(o=c()).done;){t=o.value.__useOptions(t,n)}return t},u=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=l(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var i=a(o);return i?i(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var c,u=Object(i.c)(s);!(c=u()).done;){n=(0,c.value)(t,n,!0)}var d={},f=n||{};for(var p in f)void 0!==f[p]&&(d[p]=f[p]);return d};u.__useOptions=l;var d=s.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return u.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),u.unstable_propsAreEqual=e.propsAreEqual||(null===(n=s[0])||void 0===n?void 0:n.unstable_propsAreEqual)||c.a,u}},qeuH:function(e,t,n){"use strict";var r=n("AM7I"),o=n("SLit"),a=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?o(n):n}},rQBh:function(e,t,n){"use strict";var r=n("10Kj"),o=n("PoQ0");e.exports=function(e){if(void 0===e)return e;r(o,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]