Plugin Directory

Changeset 2423026

Timestamp:
11/22/2020 01:33:58 PM (4 years ago)
Author:
ediamin
Message:

Release version 2.2.0

Location:
wp-console
Files:
6 added
20 edited

Legend:

Unmodified
Added
Removed
  • wp-console/trunk/README.md

    r2209682 r2423026  
    1010WP Console requires WordPress v5.0 or later.
    1111
     12
     13
    1214### Features
    1315- Powerful code editor powered by Ace Editor.
     
    1517- `_dump` as the alternative to `var_dump` which uses Symfony VarDumper.
    1618- Get debug.log contents and clear them right from your browser.
    17 - Advanced shell powered by psySH for `wp shell`
    18 - Custom code snippet(coming soon).
    19 - Change editor theme(coming soon).
    20 - WordPress function definition docblock(coming soon).
    21 - Customized editor key bindings(coming soon).
     19- Advanced shell powered by psySH for `wp shell`.
     20- Custom code snippet. Supports VS Code supported code snippets. For example you can use [this WooCommerce snippets](https://github.com/claudiosanches/vscode-woocommerce/blob/master/snippets/functions.json).
    2221
    2322Please note that, currently PsySH commands like `ls`, `doc`, `show` etc and Magic variables like `$_`, `$__class` etc are not supported in browser console.
  • wp-console/trunk/assets/css/wp-console.css

    r2282658 r2423026  
    1 body.wp-console-active{overflow:hidden}body.wp-console-active .ace_tooltip{white-space:normal;max-width:370px;line-height:1.6}#wp-console{display:none;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;color:#444;background-color:#f1f1f1;font-size:13px;line-height:1.4}#wp-console .clearfix::after{display:block;clear:both;content:""}#wp-console .display-flex{display:flex}#wp-console .display-flex .align-self-center{align-self:center}#wp-console .float-left{float:left !important}#wp-console .float-right{float:right !important}#wp-console .list-inline{padding:0;margin:0;list-style:none}#wp-console .list-inline .list-inline-item{display:inline-block;margin-bottom:0}#wp-console .list-inline .list-inline-item:not(:last-child){margin-right:5px}#wp-console .wp-console-button-no-style{color:#444;line-height:1.9}#wp-console .wp-console-button-no-style:not(.is-busy){background:none;border:0;box-shadow:none}#wp-console .wp-console-button-no-style:active{box-shadow:inset 0 0 3px 1px #999}#wp-console .wp-console-button-no-style:hover:not([disabled]):not(:active){box-shadow:0 0 0 1px rgba(153,153,153,0.37)}#wp-console .wp-console-button-no-style:focus:not(.is-busy):not(:active){box-shadow:inset 0 -1px 0 #999, 0 0 0 2px #bfe7f3}#wp-console .wp-console-button-no-style svg{margin-right:4px;fill:#555}#wp-console .wp-console-button-no-style[disabled]{color:#848484}#wp-console .wp-console-button-no-style[disabled] svg{fill:#848484}#wp-console .wp-console-spinner{position:relative;text-align:center;padding-top:50px}#wp-console .wp-console-spinner .components-spinner{position:absolute;top:15px;left:calc(50% - 29px)}#wp-console .panel-title{margin:0;border-bottom:1px solid #ccc;padding:15px 20px;font-size:15px;font-weight:400}#wp-console #wp-console-navbar{height:50px;padding:0 15px;align-items:center;border:1px solid #ccc}#wp-console #wp-console-navbar .wp-console-navbar-left{width:50%;height:100%}#wp-console #wp-console-navbar .wp-console-navbar-right{width:50%;height:100%;justify-content:flex-end}#wp-console #wp-console-navbar .wp-console-navbar-right .wp-console-nav-buttons{margin-left:70px}#wp-console #wp-console-navbar .wp-console-navbar-right .button-close{width:25px;height:25px;opacity:0.6}#wp-console #wp-console-logo{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;margin:0 40px 0 0;font-size:16px;font-weight:400}#wp-console #wp-console-panel-names{margin:0;padding:0;list-style:none}#wp-console #wp-console-panel-names li{margin:0;padding:12px;border-bottom:3px solid #f1f1f1;cursor:default}#wp-console #wp-console-panel-names li.active{border-bottom:3px solid #444}#wp-console #wp-console-panel-names li svg{background-color:#444;fill:#fff;border-radius:3px;padding:4px;height:16px;width:16px;position:relative;top:3px;margin-right:2px}#wp-console .wp-console-color-black{color:#424242}#wp-console .wp-console-color-red{color:#c62828}#wp-console .wp-console-color-green{color:#2e7d32}#wp-console .wp-console-color-yellow{color:#f9a825}#wp-console .wp-console-color-blue{color:#1565c0}#wp-console .wp-console-color-magenta{color:#ad1457}#wp-console .wp-console-color-cyan{color:#00838f}#wp-console .wp-console-color-white{color:#fafafa}#wp-console .wp-console-color-default{color:#424242}#wp-console .wp-console-color-bold{font-weight:700}#wp-console .wp-console-color-underscore{text-decoration:underline}#wp-console .wp-console-color-blink{animation:blink_text 1s linear infinite}#wp-console .wp-console-color-conceal{opacity:0.3}@keyframes blink_text{50%{opacity:0}}#wp-console pre.sf-dump,#wp-console pre.sf-dump .sf-dump-default{background-color:#18171b;color:#ff8400;line-height:1.6;font-family:Menlo, Monaco, Consolas, monospace;font-size:12px;word-wrap:break-word;white-space:pre-wrap;position:relative;z-index:99999;word-break:break-all}#wp-console .sf-dump-num{font-weight:600;color:#1299da}#wp-console .sf-dump-const{font-weight:600}#wp-console .sf-dump-str{font-weight:600;color:#56db3a}#wp-console .sf-dump-note{color:#1299da}#wp-console .sf-dump-ref{color:#a0a0a0}#wp-console .sf-dump-public{color:#fff}#wp-console .sf-dump-protected{color:#fff}#wp-console .sf-dump-private{color:#fff}#wp-console .sf-dump-meta{color:#b729d9}#wp-console .sf-dump-key{color:#56db3a}#wp-console .sf-dump-index{color:#1299da}#wp-console .sf-dump-ellipsis{color:#ff8400}#wp-console pre.sf-dump{display:block;white-space:pre;padding:5px;border-radius:0;border:0;font-family:monospace;font-size:12px}#wp-console pre.sf-dump::after{content:"";visibility:hidden;display:block;height:0;clear:both}#wp-console pre.sf-dump span{display:inline}#wp-console pre.sf-dump .sf-dump-compact{display:none}#wp-console pre.sf-dump abbr{text-decoration:none;border:none;cursor:help}#wp-console pre.sf-dump a{text-decoration:none;cursor:pointer;border:0;outline:none;color:inherit}#wp-console pre.sf-dump .sf-dump-ellipsis{display:inline-block;overflow:visible;text-overflow:ellipsis;max-width:5em;white-space:nowrap;vertical-align:top}#wp-console pre.sf-dump .sf-dump-ellipsis+.sf-dump-ellipsis{max-width:none}#wp-console pre.sf-dump code{display:inline;padding:0;background:none}#wp-console .sf-dump-str-collapse .sf-dump-str-collapse{display:none}#wp-console .sf-dump-str-expand .sf-dump-str-expand{display:none}#wp-console .sf-dump-public.sf-dump-highlight,#wp-console .sf-dump-protected.sf-dump-highlight,#wp-console .sf-dump-private.sf-dump-highlight,#wp-console .sf-dump-str.sf-dump-highlight,#wp-console .sf-dump-key.sf-dump-highlight{background:rgba(111,172,204,0.3);border:1px solid #7da0b1;border-radius:3px}#wp-console .sf-dump-public.sf-dump-highlight-active,#wp-console .sf-dump-protected.sf-dump-highlight-active,#wp-console .sf-dump-private.sf-dump-highlight-active,#wp-console .sf-dump-str.sf-dump-highlight-active,#wp-console .sf-dump-key.sf-dump-highlight-active{background:rgba(253,175,0,0.4);border:1px solid #ffa500;border-radius:3px}#wp-console pre.sf-dump .sf-dump-search-hidden{display:none}#wp-console pre.sf-dump .sf-dump-search-wrapper{float:right;font-size:0;white-space:nowrap;max-width:100%;text-align:right}#wp-console pre.sf-dump .sf-dump-search-wrapper>*{vertical-align:top;box-sizing:border-box;height:21px;font-weight:400;border-radius:0;background:#fff;color:#757575;border:1px solid #bbb}#wp-console pre.sf-dump .sf-dump-search-wrapper>input.sf-dump-search-input{padding:3px;height:21px;font-size:12px;border-right:none;width:140px;border-top-left-radius:3px;border-bottom-left-radius:3px;color:#000}#wp-console pre.sf-dump .sf-dump-search-wrapper>.sf-dump-search-input-next,#wp-console pre.sf-dump .sf-dump-search-wrapper>.sf-dump-search-input-previous{background:#f2f2f2;outline:none;border-left:none;font-size:0;line-height:0}#wp-console pre.sf-dump .sf-dump-search-wrapper>.sf-dump-search-input-next{border-top-right-radius:3px;border-bottom-right-radius:3px}#wp-console pre.sf-dump .sf-dump-search-wrapper>.sf-dump-search-input-next>svg,#wp-console pre.sf-dump .sf-dump-search-wrapper>.sf-dump-search-input-previous>svg{pointer-events:none;width:12px;height:12px}#wp-console pre.sf-dump .sf-dump-search-wrapper>.sf-dump-search-count{display:inline-block;padding:0 5px;margin:0;border-left:none;line-height:21px;font-size:12px}#wp-console.active{display:block;width:100%;height:calc(100vh - 32px);position:fixed;top:32px;left:0;z-index:99999}#wp-console *,#wp-console *::before,#wp-console *::after{box-sizing:border-box}#wp-console a{text-decoration:none;color:#0073aa}#wp-console .components-notice{width:500px;position:absolute;top:5px;left:calc(50% - 250px);z-index:3;padding-right:12px;box-shadow:0 0 2px 1px rgba(0,0,0,0.25)}#wp-console .empty-content{margin-top:50px;text-align:center;color:rgba(68,68,68,0.7)}#wp-console .empty-content span{position:relative}#wp-console .empty-content span svg{position:absolute;fill:#fff;background-color:#444;border:1px solid #111;padding:3px 5px;border-radius:3px;width:29px;height:29px;top:-6px;left:-35px}#wp-console #wp-console-editor-output{border-bottom:1px solid #ccc}#wp-console #wp-console-editor-output pre{width:calc(100vw - 20px);height:calc(100vh - (32px + 50px + 301px + 49px));overflow:auto;padding:10px 20px 10px 10px;margin:0 0 0 20px;border-left:1px solid #ccc}#wp-console #wp-console-editor-output pre.wp-console-output{font-size:13px;background-color:#fff}#wp-console #wp-console-editor-output pre.wp-console-error-trace{width:100%;padding-right:10px;margin-left:0;border-left:15px solid #d94f4f;background-color:#f9e2e2}#wp-console #wp-console-panel-debug-log pre{font-family:monospace;width:100%;height:calc(100vh - (32px + 50px));overflow:auto;background-color:#fff;border-top:0;border-left:20px solid #f1f1f1;border-bottom:20px solid #f1f1f1;padding:10px;margin:0;line-height:1.6;border-radius:0}#wp-console #wp-console-panel-debug-log .extra-info{width:100%;font-family:monospace;position:absolute;bottom:0;left:0;padding:0 20px;font-size:11px;opacity:0.7;text-align:right;line-height:1.7}#wp-console #wp-console-panel-debug-log .extra-info .wp-console-separator{margin:0 10px}#wp-console #wp-console-panel-debug-log .extra-info .wp-console-separator::after{content:"·"}#wp-console-code-editor-wrapper{position:relative;border-bottom:1px solid #ccc}#wp-console-code-editor{width:100%;height:300px}#wp-console-code-editor .ace_content .ace_text-layer .ace_line:first-child{opacity:0.4}#wp-console-panel-console.is-vertical #wp-console-code-editor-wrapper{border-bottom:0}#wp-console-panel-console.is-vertical #wp-console-code-editor-wrapper,#wp-console-panel-console.is-vertical #wp-console-panel-console-results{width:50%;height:calc(100vh - (32px + 50px))}#wp-console-panel-console.is-vertical #wp-console-panel-console-results{border-left:1px solid #ccc}#wp-console-panel-console.is-vertical #wp-console-code-editor{height:100%}#wp-console-panel-console.is-vertical #wp-console-editor-output pre{height:calc(100vh - (32px + 50px + 52px));margin-left:0;border-left:0}body.wp-console-wp-lt-5-4 #wp-console .wp-console-button-no-style svg{position:relative;top:4px}
     1body.wp-console-active{overflow:hidden}body.wp-console-active .ace_tooltip{white-space:normal;max-width:370px;line-height:1.6}#wp-console{display:none;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;color:#444;background-color:#f1f1f1;font-size:13px;line-height:1.4}#wp-console .clearfix::after{display:block;clear:both;content:""}#wp-console .display-flex{display:flex}#wp-console .display-flex .align-self-center{}body.wp-console-wp-lt-5-4 #wp-console .wp-console-button-no-style svg{position:relative;top:4px}
    22
  • wp-console/trunk/assets/js/wp-console.asset.php

    r2282658 r2423026  
    1 <?php return array('dependencies' => array('jquery', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '3c65194040efac2b29462cbfbb0fe817');
     1<?php return array('dependencies' => array('jquery', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '');
  • wp-console/trunk/assets/js/wp-console.js

    r2282658 r2423026  
    1 !function(e){function t(t){for(var n,o,c=t[0],i=t[1],a=0,l=[];a<c.length;a++)o=c[a],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&l.push(r[o][0]),r[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(s&&s(t);l.length;)l.shift()()}var n={},r={0:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise((function(t,o){n=r[e]=[t,o]}));t.push(n[2]=c);var i,a=document.createElement("script");a.charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.src=function(e){return o.p+"chunks/"+{1:"9d1c70ba644a3f530257",2:"bfb6c96f7b63c626b5ef"}[e]+".js"}(e);var s=new Error;i=function(t){a.onerror=a.onload=null,clearTimeout(l);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+c+")",s.name="ChunkLoadError",s.type=o,s.request=c,n[1](s)}r[e]=void 0}};var l=setTimeout((function(){i({type:"timeout",target:a})}),12e4);a.onerror=a.onload=i,document.head.appendChild(a)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var c=window.wpConsoleWebpack=window.wpConsoleWebpack||[],i=c.push.bind(c);c.push=t,c=c.slice();for(var a=0;a<c.length;a++)t(c[a]);var s=i;o(o.s=22)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t,n){"use strict";n.d(t,"f",(function(){return b})),n.d(t,"a",(function(){return O})),n.d(t,"g",(function(){return h})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return y}));var r=n(2),o=n.n(r),c=n(0),i=n(4),a=n(14),s=n(15),l=n(16),u=n(17),p=(n(18),n(19));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){return Object(c.createElement)(i.SVG,{className:"wp-console-icon icon-".concat(e.iconName),xmlns:"http://www.w3.org/2000/svg",width:e.width||13,height:e.height||13,viewBox:"0 0 ".concat(e.icon[0]," ").concat(e.icon[1])},Object(c.createElement)(i.Path,{d:e.icon[4]}))},b=function(e){return d(g({},e,{},a.faTerminal))},O=function(e){return d(g({},e,{},s.faBug))},h=function(e){return d(g({},e,{},l.faTimes))},v=function(e){return d(g({},e,{},u.faPlay))},m=function(e){return d(g({},e,{},p.faEraser))},E=function(e){return d(g({},e,{},{iconName:"split-window-horizontal",icon:["468.062","468.062",null,null,"M431.379,0.222h-394.7C16.456,0.222,0,16.671,0,36.895v394.268c0,20.221,16.456,36.677,36.679,36.677h394.7 c20.228,0,36.683-16.456,36.683-36.677V36.895C468.062,16.665,451.606,0.222,431.379,0.222z M406.519,41.966 c8.689,0,15.723,7.04,15.723,15.72c0,8.683-7.033,15.717-15.723,15.717c-8.688,0-15.723-7.04-15.723-15.717 C390.796,49.006,397.83,41.966,406.519,41.966z M350.189,41.966c8.688,0,15.723,7.04,15.723,15.72 c0,8.683-7.034,15.717-15.723,15.717c-8.684,0-15.711-7.04-15.711-15.717C334.479,49.006,341.506,41.966,350.189,41.966z M41.913,112.426h184.055v313.495H41.913V112.426z M426.148,425.921H242.104V112.426h184.044V425.921z"]}))},y=function(e){return d(g({},e,{},{iconName:"split-window-vertical",icon:["468.067","468.067",null,null,"M431.38,0.225H36.685C16.458,0.225,0,16.674,0,36.898v394.268c0,20.221,16.458,36.677,36.685,36.677H431.38 c20.232,0,36.688-16.456,36.688-36.677V36.898C468.062,16.668,451.606,0.225,431.38,0.225z M406.519,41.969 c8.678,0,15.711,7.04,15.711,15.72c0,8.683-7.033,15.717-15.711,15.717c-8.688,0-15.723-7.04-15.723-15.717 C390.796,49.009,397.83,41.969,406.519,41.969z M350.189,41.969c8.688,0,15.723,7.04,15.723,15.72 c0,8.683-7.034,15.717-15.723,15.717c-8.684,0-15.711-7.04-15.711-15.717C334.479,49.009,341.513,41.969,350.189,41.969z M426.143,112.429v143.519H41.919V112.429H426.143z M41.919,425.924V272.09h384.224v153.84H41.919V425.924z"]}))}},function(e,t){function n(e,t,n,r,o,c,i){try{var a=e[c](i),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var i=e.apply(t,r);function a(e){n(i,o,c,a,s,"next",e)}function s(e){n(i,o,c,a,s,"throw",e)}a(void 0)}))}}},function(e,t){!function(){e.exports=this.jQuery}()},function(e,t,n){"use strict";var r=n(20),o=n(10);t.a=function(e){var t=e.select,n=void 0===t?[]:t,c=e.dispatch,i=void 0===c?[]:c;return Object(r.compose)(Object(o.withSelect)((function(e){for(var t={},r=e("wp-console"),o=0;o<n.length;o++){var c=n[o];t[c]=r[c]()}return t})),Object(o.withDispatch)((function(e){for(var t={},n=e("wp-console"),r=0;r<i.length;r++)t[i[r]]=n[i[r]];return t})))}},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";var r=n(3),o=n.n(r),c=n(6),i=n.n(c),a=n(9),s=n.n(a),l=function(){var e=i()(o.a.mark((function e(t,n){var r,c,i,a,l,u,p,f,g;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.setNotice,c=n.setOutput,i=n.setDump,a=n.setErrorTrace,l=n.resetConsoleResponses,u=n.startExecuting,p=n.finishExecuting,t=t.replace(/^\<\?php/,"").trim(),u(l),r(""),e.prev=4,e.next=7,s()({path:"/wp-console/v1/console",method:"post",data:{input:t},headers:{"X-WP-Console":!0}});case 7:(f=e.sent).output&&c(f.output),f.dump&&i(f.dump),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),e.t0.message&&r(e.t0.message),(null===e.t0||void 0===e.t0||null===(g=e.t0.data)||void 0===g?void 0:g.trace)&&a(e.t0.data.trace);case 16:return e.prev=16,p(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,12,16,19]])})));return function(t,n){return e.apply(this,arguments)}}();t.a=l},function(e,t,n){"use strict";var r=n(3),o=n.n(r),c=n(6),i=n.n(c),a=n(9),s=n.n(a),l=function(){var e=i()(o.a.mark((function e(t){var n,r,c,i,a,l,u,p,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.setNotice,r=t.startFetchingLog,c=t.finishFetchingLog,i=t.setLog,a=t.setExtraInfo,r(),n(""),i(""),a({}),e.prev=5,e.next=8,s()({path:"/wp-console/v1/debug-log",method:"get",parse:!1,headers:{"X-WP-Console":!0}});case 8:return l=e.sent,e.next=11,l.json();case 11:u=e.sent,p=JSON.parse(l.headers.get("X-WP-Console-Debug-Log-Extra-Info")),i(u.trim()),a(p),e.next=24;break;case 17:return e.prev=17,e.t0=e.catch(5),e.next=21,e.t0.json();case 21:(f=e.sent).message&&n(f.message),i("API_ERROR");case 24:return e.prev=24,c(),e.finish(24);case 27:case"end":return e.stop()}}),e,null,[[5,17,24,27]])})));return function(t){return e.apply(this,arguments)}}();t.a=l},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z";t.definition={prefix:"fas",iconName:"terminal",icon:[640,512,r,"f120",o]},t.faTerminal=t.definition,t.prefix="fas",t.iconName="terminal",t.width=640,t.height=512,t.ligatures=r,t.unicode="f120",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z";t.definition={prefix:"fas",iconName:"bug",icon:[512,512,r,"f188",o]},t.faBug=t.definition,t.prefix="fas",t.iconName="bug",t.width=512,t.height=512,t.ligatures=r,t.unicode="f188",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z";t.definition={prefix:"fas",iconName:"times",icon:[352,512,r,"f00d",o]},t.faTimes=t.definition,t.prefix="fas",t.iconName="times",t.width=352,t.height=512,t.ligatures=r,t.unicode="f00d",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z";t.definition={prefix:"fas",iconName:"play",icon:[448,512,r,"f04b",o]},t.faPlay=t.definition,t.prefix="fas",t.iconName="play",t.width=448,t.height=512,t.ligatures=r,t.unicode="f04b",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z";t.definition={prefix:"fas",iconName:"history",icon:[512,512,r,"f1da",o]},t.faHistory=t.definition,t.prefix="fas",t.iconName="history",t.width=512,t.height=512,t.ligatures=r,t.unicode="f1da",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z";t.definition={prefix:"fas",iconName:"eraser",icon:[512,512,r,"f12d",o]},t.faEraser=t.definition,t.prefix="fas",t.iconName="eraser",t.width=512,t.height=512,t.ligatures=r,t.unicode="f12d",t.svgPathData=o},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(7),c=n.n(o),i=n(13),a=n(2),s=n.n(a),l=n(10),u=n(1),p=n(5),f=n(3),g=n.n(f),d=n(6),b=n.n(d),O=n(4),h=n(8),v=n(11),m=Object(h.a)({select:["userSettings","code","isExecuting"],dispatch:["setUserSettings","setNotice","setOutput","setDump","setErrorTrace","resetConsoleResponses","startExecuting","finishExecuting"]})((function(e){var t=e.userSettings,n=e.code,o=e.isExecuting,c=e.setUserSettings,i=e.setNotice,a=t.console.window_split,s="horizontal"===a?p.d:p.e,l=function(){var e=b()(g.a.mark((function e(){var t;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="horizontal"===a?"vertical":"horizontal",e.next=3,c("console","window_split",t,i);case 3:wpConsole.hooks.doAction("wp_console_console_toggle_window_split",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(r.createElement)("ul",{className:"list-inline"},Object(r.createElement)("li",{className:"list-inline-item"},Object(r.createElement)(O.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,onClick:function(){return l()}},Object(r.createElement)(s,null)," ",Object(u.__)("Split","wp-console"))),Object(r.createElement)("li",{className:"list-inline-item"},Object(r.createElement)(O.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,isBusy:o,disabled:o,onClick:function(){return Object(v.a)(n,e)}},Object(r.createElement)(p.c,null)," ",Object(u.__)("Run","wp-console"))))})),E=Object(r.lazy)((function(){return n.e(1).then(n.bind(null,31))})),y={id:"console",name:Object(u.__)("Console","wp-console"),icon:Object(r.createElement)(p.f,null),PanelButtons:m,Panel:E},w=n(12),j=n(9),P=n.n(j),S=function(){var e=b()(g.a.mark((function e(t){var n,r,o,c,i;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.setNotice,r=t.startClearingLog,o=t.finishClearingLog,c=t.setLog,i=t.setExtraInfo,r(),n(""),c(""),i({}),e.prev=5,e.next=8,P()({path:"/wp-console/v1/debug-log",method:"delete",headers:{"X-WP-Console":!0}});case 8:n(Object(u.__)("Cleared debug.log.","wp-console"),"success"),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(5),c("API_ERROR"),e.t0.message&&n(e.t0.message);case 15:return e.prev=15,o(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[5,11,15,18]])})));return function(t){return e.apply(this,arguments)}}(),_=Object(h.a)({select:["clearingLog","fetchingLog"],dispatch:["setNotice","startFetchingLog","finishFetchingLog","setLog","setExtraInfo","startClearingLog","finishClearingLog"]})((function(e){var t=e.clearingLog,n=e.fetchingLog,o=t?"".concat(Object(u.__)("Clearing Log","wp-console"),"..."):Object(u.__)("Clear Log","wp-console"),c=n?"".concat(Object(u.__)("Fetching Log","wp-console"),"..."):Object(u.__)("Fetch Log","wp-console");return Object(r.createElement)("ul",{className:"list-inline"},Object(r.createElement)("li",{className:"list-inline-item"},Object(r.createElement)(O.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,isBusy:t,disabled:t||n,onClick:function(){return S(e)}},Object(r.createElement)(p.b,null)," ",o)),Object(r.createElement)("li",{className:"list-inline-item"},Object(r.createElement)(O.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,isBusy:n,disabled:n||t,onClick:function(){return Object(w.a)(e)}},Object(r.createElement)(p.a,null)," ",c)))})),L=Object(r.lazy)((function(){return n.e(2).then(n.bind(null,30))})),T={id:"debug-log",name:Object(u.__)("Debug Log","wp-console"),icon:Object(r.createElement)(p.a,null),PanelButtons:_,Panel:L};function C(){return(C=b()(g.a.mark((function e(t,n,r,o){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P()({path:"/wp-console/v1/user-settings",method:"post",data:s()({},t,s()({},n,r)),headers:{"X-WP-Console":!0}});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),e.t0.message&&o(e.t0.message);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})))).apply(this,arguments)}var N=function(e,t,n,r){return C.apply(this,arguments)};function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k={userSettings:wpConsole.user_settings,panels:[y,T],activePanelId:"console",notice:{message:"",type:"error"}},R={actions:{setUserSettings:function(e,t,n,r){return N(e,t,n,r),{type:"SET_USER_SETTINGS",section:e,option:t,value:n}},setActivePanelId:function(e){return{type:"SET_ACTIVE_PANEL",activePanelId:e}},setNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";return{type:"SET_NOTICE",notice:{message:e,type:t}}}},reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_USER_SETTINGS":e=I({},e,{userSettings:I({},e.userSettings,s()({},t.section,I({},t.section,s()({},t.option,t.value))))});break;case"SET_ACTIVE_PANEL":e=I({},e,{activePanelId:t.activePanelId});break;case"SET_NOTICE":e=I({},e,{notice:t.notice})}return e},selectors:{userSettings:function(e){return e.globalStore.userSettings},panels:function(e){return e.globalStore.panels},activePanelId:function(e){return e.globalStore.activePanelId},activePanel:function(e){var t=e.globalStore;return t.panels.filter((function(e){return e.id===t.activePanelId}))[0]},notice:function(e){return e.globalStore.notice}}};function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A={code:"<?php\n",output:null,dump:null,errorTrace:null,isExecuting:!1,settings:{horizontalSplit:!0},keyBindings:{execCode:function(e,t){return{win:e,mac:t}}("Ctrl-Enter","Cmd-Enter")}},M={actions:{updateCode:function(e){return{type:"UPDATE_CODE",code:e}},setOutput:function(e){return{type:"SET_OUTPUT",output:e}},setDump:function(e){return{type:"SET_DUMP",dump:e}},setErrorTrace:function(e){return{type:"SET_ERROR_TRACE",errorTrace:e}},resetConsoleResponses:function(){return{type:"RESET_CONSOLE_RESPONSES"}},startExecuting:function(e){return e(),{type:"START_EXECUTING"}},finishExecuting:function(){return{type:"FINISH_EXECUTING"}},toggleHorizontalSplit:function(){return{type:"TOGGLE_HORIZONTAL_SPLIT"}}},reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_CODE":e=z({},e,{code:t.code});break;case"SET_OUTPUT":e=z({},e,{output:t.output});break;case"SET_DUMP":e=z({},e,{dump:t.dump});break;case"SET_ERROR_TRACE":e=z({},e,{errorTrace:t.errorTrace});break;case"RESET_CONSOLE_RESPONSES":e=z({},e,{output:A.output,dump:A.dump,errorTrace:A.errorTrace});break;case"START_EXECUTING":e=z({},e,{isExecuting:!0});break;case"FINISH_EXECUTING":e=z({},e,{isExecuting:!1});break;case"TOGGLE_HORIZONTAL_SPLIT":e=z({},e,{settings:z({},e.settings,{horizontalSplit:!e.settings.horizontalSplit})})}return e},selectors:{code:function(e){return e.consoleStore.code},output:function(e){return e.consoleStore.output},dump:function(e){return e.consoleStore.dump},errorTrace:function(e){return e.consoleStore.errorTrace},isExecuting:function(e){return e.consoleStore.isExecuting},horizontalSplit:function(e){return e.consoleStore.settings.horizontalSplit},keyBindings:function(e){return e.consoleStore.keyBindings}}};function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F={clearingLog:!1,fetchingLog:!1,log:null,extraInfo:{}},B={actions:{startClearingLog:function(){return{type:"START_CLEARING_LOG"}},finishClearingLog:function(){return{type:"FINISH_CLEARING_LOG"}},startFetchingLog:function(){return{type:"START_FETCHING_LOG"}},finishFetchingLog:function(){return{type:"FINISH_FETCHING_LOG"}},setLog:function(e){return{type:"SET_LOG",log:e}},setExtraInfo:function(e){return{type:"SET_EXTRA_INFO",extraInfo:e}}},reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_CLEARING_LOG":e=H({},e,{clearingLog:!0});break;case"FINISH_CLEARING_LOG":e=H({},e,{clearingLog:!1});break;case"START_FETCHING_LOG":e=H({},e,{fetchingLog:!0});break;case"FINISH_FETCHING_LOG":e=H({},e,{fetchingLog:!1});break;case"SET_LOG":e=H({},e,{log:t.log});break;case"SET_EXTRA_INFO":e=H({},e,{extraInfo:t.extraInfo})}return e},selectors:{clearingLog:function(e){return e.debugLogStore.clearingLog},fetchingLog:function(e){return e.debugLogStore.fetchingLog},log:function(e){return e.debugLogStore.log},extraInfo:function(e){return e.debugLogStore.extraInfo}}};function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var X={actions:V({},R.actions,{},M.actions,{},B.actions),reducer:Object(l.combineReducers)({globalStore:R.reducer,consoleStore:M.reducer,debugLogStore:B.reducer}),selectors:V({},R.selectors,{},M.selectors,{},B.selectors)};Object(l.registerStore)("wp-console",X);n(21);var W=Object(h.a)({select:["panels","activePanel","activePanelId"],dispatch:["setActivePanelId","resetConsoleResponses"]})((function(e){var t=e.panels,n=e.activePanel,o=e.activePanelId,i=e.setActivePanelId,a=e.resetConsoleResponses,s=n.PanelButtons;return Object(r.createElement)("nav",{id:"wp-console-navbar",className:"display-flex"},Object(r.createElement)("div",{className:"wp-console-navbar-left display-flex"},Object(r.createElement)("h3",{id:"wp-console-logo",className:"align-self-center"},Object(u.__)("WP Console","wp-console")),Object(r.createElement)("ul",{id:"wp-console-panel-names",className:"display-flex"},t.map((function(e){return Object(r.createElement)("li",{key:e.id,role:"presentation",className:o===e.id?"active":"",onClick:function(){return i(e.id)}},e.icon," ",e.name)})))),Object(r.createElement)("div",{className:"wp-console-navbar-right display-flex"},Object(r.createElement)("div",{className:"wp-console-panel-buttons align-self-center"},Object(r.createElement)(s,null)),Object(r.createElement)("div",{className:"wp-console-nav-buttons align-self-center"},Object(r.createElement)(O.Button,{className:"button-close",onClick:function(e){return function(e,t){e.preventDefault(),c()("body").removeClass("wp-console-active"),c()("#wp-console").removeClass("active").trigger("wp-console:close"),t()}(e,a)}},Object(r.createElement)(p.g,null)))))})),Z=Object(h.a)({select:["notice","activePanel"],dispatch:["setNotice"]})((function(e){var t=e.notice,n=e.activePanel,o=e.setNotice,c=n.Panel,i=Object(r.createElement)("div",{className:"wp-console-spinner"},Object(r.createElement)(O.Spinner,null));return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(W,null),Object(r.createElement)("div",{id:"wp-console-panel"},Object(r.createElement)(r.Suspense,{fallback:i},Object(r.createElement)(c,null))),t.message&&Object(r.createElement)(O.Notice,{status:t.type,onRemove:function(){return o("")}},t.message))}));n.p="".concat(wpConsole.url.assests,"/js/"),wpConsole.hooks=Object(i.createHooks)(),c()(document).ready((function(){c()("#wp-console").length&&c()(".ab-item","#wp-admin-bar-wp-console").on("click",(function(e){e.preventDefault(),c()("body").addClass("wp-console-active"),c()("#wp-console").addClass("active"),c()("#wp-console").children().length||Object(r.render)(Object(r.createElement)(Z,null),document.getElementById("wp-console"))}))}))}]);
     1!function(e){function t(t){for(var n,o,c=t[0],i=t[1],s=0,l=[];s<c.length;s++)o=c[s],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&l.push(r[o][0]),r[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(a&&a(t);l.length;)l.shift()()}var n={},r={0:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise((function(t,o){n=r[e]=[t,o]}));t.push(n[2]=c);var i,s=document.createElement("script");s.charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.src=function(e){return o.p+"chunks/"+{1:"d5699b7b31f65ceb5842",2:"052c93828e3d38f17bb5"}[e]+".js"}(e);var a=new Error;i=function(t){s.onerror=s.onload=null,clearTimeout(l);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+c+")",a.name="ChunkLoadError",a.type=o,a.request=c,n[1](a)}r[e]=void 0}};var l=setTimeout((function(){i({type:"timeout",target:s})}),12e4);s.onerror=s.onload=i,document.head.appendChild(s)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var c=window.wpConsoleWebpack=window.wpConsoleWebpack||[],i=c.push.bind(c);c.push=t,c=c.slice();for(var s=0;s<c.length;s++)t(c[s]);var a=i;o(o.s=31)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t,n){"use strict";n.d(t,"i",(function(){return O})),n.d(t,"a",(function(){return h})),n.d(t,"j",(function(){return v})),n.d(t,"f",(function(){return j})),n.d(t,"e",(function(){return w})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return E})),n.d(t,"g",(function(){return S})),n.d(t,"h",(function(){return _})),n.d(t,"d",(function(){return P}));var r=n(5),o=n.n(r),c=n(0),i=n(2),s=n(15),a=n(16),l=n(17),u=n(18),p=(n(19),n(20)),f=n(21),d=n(22);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=function(e){var t=e.width||13,n=e.height||13;return Object(c.createElement)(i.SVG,{className:"wp-console-icon icon-".concat(e.iconName),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(e.icon[0]," ").concat(e.icon[1]),style:{width:"".concat(t,"px"),height:"".concat(n,"px")}},Object(c.createElement)(i.Path,{d:e.icon[4]}))},O=function(e){return m(b(b({},e),s.faTerminal))},h=function(e){return m(b(b({},e),a.faBug))},v=function(e){return m(b(b({},e),l.faTimes))},j=function(e){return m(b(b({},e),u.faPlay))},w=function(e){return m(b(b({},e),p.faEraser))},y=function(e){return m(b(b({},e),f.faClone))},E=function(e){return m(b(b({},e),d.faCheckCircle))},S=function(e){return m(b(b({},e),{iconName:"split-window-horizontal",icon:["468.062","468.062",null,null,"M431.379,0.222h-394.7C16.456,0.222,0,16.671,0,36.895v394.268c0,20.221,16.456,36.677,36.679,36.677h394.7 c20.228,0,36.683-16.456,36.683-36.677V36.895C468.062,16.665,451.606,0.222,431.379,0.222z M406.519,41.966 c8.689,0,15.723,7.04,15.723,15.72c0,8.683-7.033,15.717-15.723,15.717c-8.688,0-15.723-7.04-15.723-15.717 C390.796,49.006,397.83,41.966,406.519,41.966z M350.189,41.966c8.688,0,15.723,7.04,15.723,15.72 c0,8.683-7.034,15.717-15.723,15.717c-8.684,0-15.711-7.04-15.711-15.717C334.479,49.006,341.506,41.966,350.189,41.966z M41.913,112.426h184.055v313.495H41.913V112.426z M426.148,425.921H242.104V112.426h184.044V425.921z"]}))},_=function(e){return m(b(b({},e),{iconName:"split-window-vertical",icon:["468.067","468.067",null,null,"M431.38,0.225H36.685C16.458,0.225,0,16.674,0,36.898v394.268c0,20.221,16.458,36.677,36.685,36.677H431.38 c20.232,0,36.688-16.456,36.688-36.677V36.898C468.062,16.668,451.606,0.225,431.38,0.225z M406.519,41.969 c8.678,0,15.711,7.04,15.711,15.72c0,8.683-7.033,15.717-15.711,15.717c-8.688,0-15.723-7.04-15.723-15.717 C390.796,49.009,397.83,41.969,406.519,41.969z M350.189,41.969c8.688,0,15.723,7.04,15.723,15.72 c0,8.683-7.034,15.717-15.723,15.717c-8.684,0-15.711-7.04-15.711-15.717C334.479,49.009,341.513,41.969,350.189,41.969z M426.143,112.429v143.519H41.919V112.429H426.143z M41.919,425.924V272.09h384.224v153.84H41.919V425.924z"]}))},P=function(e){var t=e.width,n=void 0===t?13:t,r=e.height,o=void 0===r?13:r;return Object(c.createElement)(i.SVG,{className:"wp-console-icon icon-curly-braces",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1652 1478",style:{width:"".concat(n,"px"),height:"".concat(o,"px")}},Object(c.createElement)(i.G,{transform:"translate(0.000000,1478.000000) scale(0.100000,-0.100000)",fill:"#000000",stroke:"none"},Object(c.createElement)(i.Path,{d:"M4350 14769 c-349 -13 -704 -56 -895 -108 -584 -159 -1003 -401 -1270 -731 -251 -310 -377 -667 -439 -1235 -47 -435 -61 -790 -71 -1780 -9 -935 -35 -1173 -171 -1585 -96 -288 -273 -560 -464 -713 -209 -167 -516 -262 -943 -293 l-97 -7 2 -921 3 -920 45 -3 c107 -8 304 -36 410 -59 313 -68 520 -171 684 -338 160 -165 284 -390 385 -696 102 -314 137 -738 146 -1800 9 -985 36 -1446 106 -1805 93 -475 302 -855 631 -1142 544 -475 1170 -632 2524 -633 l312 0 6 22 c8 30 8 1792 0 1812 -5 14 -30 16 -174 16 -278 0 -596 27 -766 66 -229 52 -424 186 -513 353 -84 158 -105 308 -116 841 -7 306 -21 732 -35 1040 -19 415 -30 645 -35 690 -65 621 -138 977 -270 1315 -188 480 -520 870 -997 1170 l-108 67 33 22 c626 427 865 702 1080 1241 154 387 235 843 267 1495 17 351 20 412 26 515 15 291 35 815 39 1070 11 542 40 709 152 872 82 120 242 229 391 267 150 38 497 66 828 66 l191 0 7 46 c8 60 8 1757 0 1778 -5 14 -45 16 -353 14 -190 0 -438 -5 -551 -9z"}),Object(c.createElement)(i.Path,{d:"M11260 13862 l0 -922 173 0 c406 -1 756 -31 907 -80 150 -48 329 -188 383 -300 72 -150 99 -388 112 -1005 12 -556 44 -1306 71 -1650 48 -625 151 -1051 348 -1450 166 -333 361 -569 665 -805 91 -70 136 -102 300 -215 l63 -44 -47 -28 c-437 -256 -741 -570 -952 -984 -152 -296 -207 -448 -267 -729 -84 -397 -112 -711 -146 -1615 -5 -148 -12 -326 -15 -395 -3 -69 -10 -307 -15 -530 -10 -432 -21 -553 -66 -706 -30 -104 -43 -132 -102 -209 -100 -133 -249 -224 -450 -276 -154 -39 -495 -69 -794 -69 l-168 0 0 -925 0 -925 368 1 c935 3 1371 62 1845 250 186 74 286 125 457 233 294 185 484 407 632 741 139 314 201 634 242 1245 23 351 25 413 31 888 12 1029 19 1251 45 1492 34 302 118 615 224 829 144 292 339 511 553 619 116 59 333 120 503 141 52 7 122 16 156 22 33 5 83 9 110 9 27 0 59 3 72 6 l22 6 0 919 0 919 -43 0 c-66 0 -281 27 -397 50 -295 59 -592 205 -740 366 -147 159 -269 388 -359 676 -62 200 -101 475 -116 828 -4 80 -8 163 -10 185 -2 22 -7 261 -10 530 -10 960 -17 1184 -45 1510 -44 498 -104 769 -240 1070 -181 403 -517 743 -930 942 -434 210 -917 286 -1902 300 l-468 6 0 -921z"}),Object(c.createElement)(i.Path,{d:"M7150 10410 l0 -1080 1080 2 1080 3 0 870 c0 479 0 963 0 1078 l0 207 -1080 0 -1080 0 0 -1080z"}),Object(c.createElement)(i.Path,{d:"M7157 5473 c-4 -3 -7 -489 -7 -1080 l1 -1073 447 -1 c246 0 480 0 521 1 l74 1 -6 -138 c-16 -368 -129 -705 -312 -932 -130 -160 -296 -285 -540 -405 -93 -46 -212 -99 -263 -116 -104 -37 -102 -32 -57 -120 31 -61 195 -402 195 -406 0 -2 39 -83 86 -181 47 -98 90 -188 95 -200 8 -21 10 -22 46 -9 189 69 487 216 672 331 75 47 289 205 346 255 163 144 327 330 427 485 73 113 174 311 222 435 98 259 175 701 201 1158 4 73 8 1596 5 1989 0 10 -223 13 -1073 13 -591 0 -1077 -3 -1080 -7z"})))}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";var r=n(23),o=n(11);t.a=function(e){var t=e.select,n=void 0===t?[]:t,c=e.dispatch,i=void 0===c?[]:c;return Object(r.compose)(Object(o.withSelect)((function(e){for(var t={},r=e("wp-console"),o=0;o<n.length;o++){var c=n[o];t[c]=r[c]()}return t})),Object(o.withDispatch)((function(e){for(var t={},n=e("wp-console"),r=0;r<i.length;r++)t[i[r]]=n[i[r]];return t})))}},function(e,t){function n(e,t,n,r,o,c,i){try{var s=e[c](i),a=s.value}catch(e){return void n(e)}s.done?t(a):Promise.resolve(a).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var i=e.apply(t,r);function s(e){n(i,o,c,s,a,"next",e)}function a(e){n(i,o,c,s,a,"throw",e)}s(void 0)}))}}},function(e,t){!function(){e.exports=this.jQuery}()},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t,n){var r=n(25),o=n(26),c=n(27),i=n(29);e.exports=function(e,t){return r(e)||o(e,t)||c(e,t)||i()}},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";var r=n(3),o=n.n(r),c=n(7),i=n.n(c),s=n(9),a=n.n(s),l=function(){var e=i()(o.a.mark((function e(t,n){var r,c,i,s,l,u,p,f,d;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.setNotice,c=n.setOutput,i=n.setDump,s=n.setErrorTrace,l=n.resetConsoleResponses,u=n.startExecuting,p=n.finishExecuting,t=t.replace(/^\<\?php/,"//").trim(),u(l),r(""),e.prev=4,e.next=7,a()({path:"/wp-console/v1/console",method:"post",data:{input:t},headers:{"X-WP-Console":!0}});case 7:(f=e.sent).output&&c(f.output),f.dump&&i(f.dump),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),e.t0.message&&r(e.t0.message),(null===e.t0||void 0===e.t0||null===(d=e.t0.data)||void 0===d?void 0:d.trace)&&s(e.t0.data.trace);case 16:return e.prev=16,p(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,12,16,19]])})));return function(t,n){return e.apply(this,arguments)}}();t.a=l},function(e,t,n){"use strict";var r=n(3),o=n.n(r),c=n(7),i=n.n(c),s=n(9),a=n.n(s),l=function(){var e=i()(o.a.mark((function e(t){var n,r,c,i,s,l,u,p,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.setNotice,r=t.startFetchingLog,c=t.finishFetchingLog,i=t.setLog,s=t.setExtraInfo,r(),n(""),i(""),s({}),e.prev=5,e.next=8,a()({path:"/wp-console/v1/debug-log",method:"get",parse:!1,headers:{"X-WP-Console":!0}});case 8:return l=e.sent,e.next=11,l.json();case 11:u=e.sent,p=JSON.parse(l.headers.get("X-WP-Console-Debug-Log-Extra-Info")),i(u.trim()),s(p),e.next=24;break;case 17:return e.prev=17,e.t0=e.catch(5),e.next=21,e.t0.json();case 21:(f=e.sent).message&&n(f.message),i("API_ERROR");case 24:return e.prev=24,c(),e.finish(24);case 27:case"end":return e.stop()}}),e,null,[[5,17,24,27]])})));return function(t){return e.apply(this,arguments)}}();t.a=l},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z";t.definition={prefix:"fas",iconName:"terminal",icon:[640,512,r,"f120",o]},t.faTerminal=t.definition,t.prefix="fas",t.iconName="terminal",t.width=640,t.height=512,t.ligatures=r,t.unicode="f120",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z";t.definition={prefix:"fas",iconName:"bug",icon:[512,512,r,"f188",o]},t.faBug=t.definition,t.prefix="fas",t.iconName="bug",t.width=512,t.height=512,t.ligatures=r,t.unicode="f188",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z";t.definition={prefix:"fas",iconName:"times",icon:[352,512,r,"f00d",o]},t.faTimes=t.definition,t.prefix="fas",t.iconName="times",t.width=352,t.height=512,t.ligatures=r,t.unicode="f00d",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z";t.definition={prefix:"fas",iconName:"play",icon:[448,512,r,"f04b",o]},t.faPlay=t.definition,t.prefix="fas",t.iconName="play",t.width=448,t.height=512,t.ligatures=r,t.unicode="f04b",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z";t.definition={prefix:"fas",iconName:"history",icon:[512,512,r,"f1da",o]},t.faHistory=t.definition,t.prefix="fas",t.iconName="history",t.width=512,t.height=512,t.ligatures=r,t.unicode="f1da",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z";t.definition={prefix:"fas",iconName:"eraser",icon:[512,512,r,"f12d",o]},t.faEraser=t.definition,t.prefix="fas",t.iconName="eraser",t.width=512,t.height=512,t.ligatures=r,t.unicode="f12d",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z";t.definition={prefix:"fas",iconName:"clone",icon:[512,512,r,"f24d",o]},t.faClone=t.definition,t.prefix="fas",t.iconName="clone",t.width=512,t.height=512,t.ligatures=r,t.unicode="f24d",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z";t.definition={prefix:"fas",iconName:"check-circle",icon:[512,512,r,"f058",o]},t.faCheckCircle=t.definition,t.prefix="fas",t.iconName="check-circle",t.width=512,t.height=512,t.ligatures=r,t.unicode="f058",t.svgPathData=o},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){!function(t){"use strict";var n=function(e){var t,n,r,o,c=/"|(\/\*)|(\*\/)|(\/\/)|\n|\r|\[|]/g,i=!1,s=!1,a=!1,l=[],u=0,p=0;for(c.lastIndex=0;t=c.exec(e);)r=RegExp.leftContext,o=RegExp.rightContext,s||a||(n=r.substring(p),i||(n=n.replace(/(\n|\r|\s)*/g,"")),l[u++]=n),p=c.lastIndex,'"'!==t[0]||s||a?"/*"!==t[0]||i||s||a?"*/"!==t[0]||i||!s||a?"//"!==t[0]||i||s||a?"\n"!==t[0]&&"\r"!==t[0]||i||s||!a?s||a||/\n|\r|\s/.test(t[0])||(l[u++]=t[0]):a=!1:a=!0:s=!1:s=!0:(n=r.match(/(\\)*$/),i&&n&&n[0].length%2!=0||(i=!i),p--,o=e.substring(p));return l[u++]=o,l.join("")};e.exports?(e.exports=n,JSON.minify=n):(void 0!==t.JSON&&t.JSON||(t.JSON={}),t.JSON.minify=n)}(this)},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw c}}return n}}},function(e,t,n){var r=n(28);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(8),c=n.n(o),i=n(14),s=n(5),a=n.n(s),l=n(11),u=n(1),p=n(4),f=n(3),d=n.n(f),g=n(7),b=n.n(g),m=n(10),O=n.n(m),h=n(2),v=n(6),j=n(12);let w=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var y=n(24),E=n.n(y),S=null,_=[],P=Object(v.a)({select:["userSettings"],dispatch:["setUserSettings","setNotice"]})((function(e){var t=e.closeManager,n=e.setCanCloseManager,o=e.userSettings,c=e.setUserSettings,i=e.setNotice,s=Object(r.useState)(""),a=O()(s,2),l=a[0],f=a[1],g=Object(r.useState)(!1),m=O()(g,2),v=m[0],j=m[1],y=Object(r.useState)(!1),P=O()(y,2),x=P[0],C=P[1];Object(r.useEffect)((function(){var e,t={};return Array.isArray(null==o||null===(e=o.console)||void 0===e?void 0:e.snippets)&&o.console.snippets.length?t=(_=o.console.snippets)[0]:(t={id:w(),title:Object(u.__)("Custom Snippets","wp-console"),snippets:"{}"},_=[t]),N(t),f(t.id),n(!0),function(){S=null,_=[]}}),[]);var N=function(e){(S=ace.edit("wp-console-snippet-manager-main")).setTheme("ace/theme/xcode"),S.session.setMode("ace/mode/json"),S.setOptions({enableLiveAutocompletion:!0,tabSize:2}),S.container.style.lineHeight=1.6,S.renderer.updateFontSize(),S.setShowPrintMargin(!1),S.session.setValue(JSON.stringify(JSON.parse(e.snippets),null,2)),S.focus()},T=function(){var e=[];return S.session.getAnnotations().forEach((function(t){"error"===t.type&&e.push(Object(u.sprintf)(// translators: %1$s: error message, %2$s: line number, %3$s: column number
     2Object(u.__)("%1$s at line %2$d, column %3$d.","wp-console"),t.text,t.row+1,t.column+1))})),e.length&&i(e.join(" ")),e.length},L=function(){var e=b()(d.a.mark((function e(){var t,r;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!T()){e.next=2;break}return e.abrupt("return");case 2:return i(""),n(!1),j(!0),t=_.findIndex((function(e){return e.id===l})),_[t].snippets=E()(S.session.getValue())||"{}",e.next=9,c("console","snippets",_,i);case 9:return r=e.sent,e.next=12,r.response;case 12:e.sent&&(C(!0),setTimeout((function(){S&&C(!1)}),4e3)),j(!1),n(!0);case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(r.createElement)("div",{id:"wp-console-snippet-manager",className:v?"is-saving-snippets":""},Object(r.createElement)("div",{id:"wp-console-snippet-manager-main"}),Object(r.createElement)("div",{id:"wp-console-snippet-manager-footer"},Object(r.createElement)("div",{id:"wp-conoele-snippet-manager-update-message"},x&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(p.b,null)," ",Object(u.__)("Snippets updated","wp-console"))),Object(r.createElement)("div",{id:"wp-console-snippet-manager-buttons"},Object(r.createElement)(h.Button,{onClick:function(){return t()},isTertiary:!0,disabled:v},Object(u.__)("Cancel","wp-console")),Object(r.createElement)(h.Button,{onClick:function(){return L()},isPrimary:!0,disabled:v,isBusy:v},v?Object(u.__)("Saving Snippets","wp-console"):Object(u.__)("Save Snippets","wp-console")))))})),x=Object(v.a)({select:["userSettings","code","isExecuting"],dispatch:["setUserSettings","setNotice","setOutput","setDump","setErrorTrace","resetConsoleResponses","startExecuting","finishExecuting"]})((function(e){var t=Object(r.useState)(!1),n=O()(t,2),o=n[0],c=n[1],i=Object(r.useState)(!0),s=O()(i,2),a=s[0],l=s[1],f=e.userSettings,g=e.code,m=e.isExecuting,v=e.setUserSettings,w=e.setNotice,y=f.console.window_split,E="horizontal"===y?p.g:p.h,S=function(){var e=b()(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="horizontal"===y?"vertical":"horizontal",e.next=3,v("console","window_split",t,w);case 3:wpConsole.hooks.doAction("wp_console_console_toggle_window_split",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("ul",{className:"list-inline"},Object(r.createElement)("li",{className:"list-inline-item"},Object(r.createElement)(h.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,onClick:function(){return c(!0)}},Object(r.createElement)(p.d,null)," ",Object(u.__)("Snippets","wp-console"))),Object(r.createElement)("li",{className:"list-inline-item"},Object(r.createElement)(h.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,onClick:function(){return S()}},Object(r.createElement)(E,null)," ",Object(u.__)("Split","wp-console"))),Object(r.createElement)("li",{className:"list-inline-item"},Object(r.createElement)(h.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,isBusy:m,disabled:m,onClick:function(){return Object(j.a)(g,e)}},Object(r.createElement)(p.f,null)," ",Object(u.__)("Run","wp-console")))),o&&Object(r.createElement)(h.Modal,{className:"wp-console-snippet-manager-modal",title:Object(u.__)("WP Console Snippets","wp-console"),onRequestClose:function(){return a&&c(!1)}},Object(r.createElement)(P,{closeManager:function(){return a&&c(!1)},setCanCloseManager:l})))})),C=Object(r.lazy)((function(){return n.e(1).then(n.bind(null,40))})),N={id:"console",name:Object(u.__)("Console","wp-console"),icon:Object(r.createElement)(p.i,{width:"16",height:"16"}),PanelButtons:x,Panel:C},T=n(13),L=n(9),I=n.n(L),k=function(){var e=b()(d.a.mark((function e(t){var n,r,o,c,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.setNotice,r=t.startClearingLog,o=t.finishClearingLog,c=t.setLog,i=t.setExtraInfo,r(),n(""),c(""),i({}),e.prev=5,e.next=8,I()({path:"/wp-console/v1/debug-log",method:"delete",headers:{"X-WP-Console":!0}});case 8:n(Object(u.__)("Cleared debug.log.","wp-console"),"success"),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(5),c("API_ERROR"),e.t0.message&&n(e.t0.message);case 15:return e.prev=15,o(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[5,11,15,18]])})));return function(t){return e.apply(this,arguments)}}(),M=Object(v.a)({select:["clearingLog","fetchingLog"],dispatch:["setNotice","startFetchingLog","finishFetchingLog","setLog","setExtraInfo","startClearingLog","finishClearingLog"]})((function(e){var t=e.clearingLog,n=e.fetchingLog,o=t?"".concat(Object(u.__)("Clearing Log","wp-console"),"..."):Object(u.__)("Clear Log","wp-console"),c=n?"".concat(Object(u.__)("Fetching Log","wp-console"),"..."):Object(u.__)("Fetch Log","wp-console");return Object(r.createElement)("ul",{className:"list-inline"},Object(r.createElement)("li",{className:"list-inline-item"},Object(r.createElement)(h.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,isBusy:t,disabled:t||n,onClick:function(){return k(e)}},Object(r.createElement)(p.e,null)," ",o)),Object(r.createElement)("li",{className:"list-inline-item"},Object(r.createElement)(h.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,isBusy:n,disabled:n||t,onClick:function(){return Object(T.a)(e)}},Object(r.createElement)(p.a,null)," ",c)))})),R=Object(r.lazy)((function(){return n.e(2).then(n.bind(null,39))})),A={id:"debug-log",name:Object(u.__)("Debug Log","wp-console"),icon:Object(r.createElement)(p.a,{width:"16",height:"16"}),PanelButtons:M,Panel:R};function D(){return(D=b()(d.a.mark((function e(t,n,r,o){var c;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,I()({path:"/wp-console/v1/user-settings",method:"post",data:a()({},t,a()({},n,r)),headers:{"X-WP-Console":!0}});case 3:return c=e.sent,wpConsole.hooks.doAction("wp_console_after_save_user_settings_".concat(t,"_").concat(n),r,c),e.abrupt("return",c);case 8:e.prev=8,e.t0=e.catch(0),e.t0.message&&o(e.t0.message);case 11:return e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}var z=function(e,t,n,r){return D.apply(this,arguments)};function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F={userSettings:wpConsole.user_settings,panels:[N,A],activePanelId:"console",notice:{message:"",type:"error"}},B={actions:{setUserSettings:function(e,t,n,r){return{type:"SET_USER_SETTINGS",section:e,option:t,value:n,response:z(e,t,n,r)}},setActivePanelId:function(e){return{type:"SET_ACTIVE_PANEL",activePanelId:e}},setNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";return{type:"SET_NOTICE",notice:{message:e,type:t}}}},reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_USER_SETTINGS":e=G(G({},e),{},{userSettings:G(G({},e.userSettings),{},a()({},t.section,G(G({},e.userSettings[t.section]),{},a()({},t.option,t.value))))});break;case"SET_ACTIVE_PANEL":e=G(G({},e),{},{activePanelId:t.activePanelId});break;case"SET_NOTICE":e=G(G({},e),{},{notice:t.notice})}return e},selectors:{userSettings:function(e){return e.globalStore.userSettings},panels:function(e){return e.globalStore.panels},activePanelId:function(e){return e.globalStore.activePanelId},activePanel:function(e){var t=e.globalStore;return t.panels.filter((function(e){return e.id===t.activePanelId}))[0]},notice:function(e){return e.globalStore.notice}}};function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var X={code:"<?php\n",output:null,dump:null,errorTrace:null,isExecuting:!1,settings:{horizontalSplit:!0},keyBindings:{execCode:function(e,t){return{win:e,mac:t}}("Ctrl-Enter","Cmd-Enter")}},W={actions:{updateCode:function(e){return{type:"UPDATE_CODE",code:e}},setOutput:function(e){return{type:"SET_OUTPUT",output:e}},setDump:function(e){return{type:"SET_DUMP",dump:e}},setErrorTrace:function(e){return{type:"SET_ERROR_TRACE",errorTrace:e}},resetConsoleResponses:function(){return{type:"RESET_CONSOLE_RESPONSES"}},startExecuting:function(e){return e(),{type:"START_EXECUTING"}},finishExecuting:function(){return{type:"FINISH_EXECUTING"}},toggleHorizontalSplit:function(){return{type:"TOGGLE_HORIZONTAL_SPLIT"}}},reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_CODE":e=V(V({},e),{},{code:t.code});break;case"SET_OUTPUT":e=V(V({},e),{},{output:t.output});break;case"SET_DUMP":e=V(V({},e),{},{dump:t.dump});break;case"SET_ERROR_TRACE":e=V(V({},e),{},{errorTrace:t.errorTrace});break;case"RESET_CONSOLE_RESPONSES":e=V(V({},e),{},{output:X.output,dump:X.dump,errorTrace:X.errorTrace});break;case"START_EXECUTING":e=V(V({},e),{},{isExecuting:!0});break;case"FINISH_EXECUTING":e=V(V({},e),{},{isExecuting:!1});break;case"TOGGLE_HORIZONTAL_SPLIT":e=V(V({},e),{},{settings:V(V({},e.settings),{},{horizontalSplit:!e.settings.horizontalSplit})})}return e},selectors:{code:function(e){return e.consoleStore.code},output:function(e){return e.consoleStore.output},dump:function(e){return e.consoleStore.dump},errorTrace:function(e){return e.consoleStore.errorTrace},isExecuting:function(e){return e.consoleStore.isExecuting},horizontalSplit:function(e){return e.consoleStore.settings.horizontalSplit},keyBindings:function(e){return e.consoleStore.keyBindings}}};function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var q={clearingLog:!1,fetchingLog:!1,log:null,extraInfo:{}},Z={actions:{startClearingLog:function(){return{type:"START_CLEARING_LOG"}},finishClearingLog:function(){return{type:"FINISH_CLEARING_LOG"}},startFetchingLog:function(){return{type:"START_FETCHING_LOG"}},finishFetchingLog:function(){return{type:"FINISH_FETCHING_LOG"}},setLog:function(e){return{type:"SET_LOG",log:e}},setExtraInfo:function(e){return{type:"SET_EXTRA_INFO",extraInfo:e}}},reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_CLEARING_LOG":e=$($({},e),{},{clearingLog:!0});break;case"FINISH_CLEARING_LOG":e=$($({},e),{},{clearingLog:!1});break;case"START_FETCHING_LOG":e=$($({},e),{},{fetchingLog:!0});break;case"FINISH_FETCHING_LOG":e=$($({},e),{},{fetchingLog:!1});break;case"SET_LOG":e=$($({},e),{},{log:t.log});break;case"SET_EXTRA_INFO":e=$($({},e),{},{extraInfo:t.extraInfo})}return e},selectors:{clearingLog:function(e){return e.debugLogStore.clearingLog},fetchingLog:function(e){return e.debugLogStore.fetchingLog},log:function(e){return e.debugLogStore.log},extraInfo:function(e){return e.debugLogStore.extraInfo}}};function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Y={actions:K(K(K({},B.actions),W.actions),Z.actions),reducer:Object(l.combineReducers)({globalStore:B.reducer,consoleStore:W.reducer,debugLogStore:Z.reducer}),selectors:K(K(K({},B.selectors),W.selectors),Z.selectors)};Object(l.registerStore)("wp-console",Y);n(30);var ee=Object(v.a)({select:["panels","activePanel","activePanelId"],dispatch:["setActivePanelId","resetConsoleResponses"]})((function(e){var t=e.panels,n=e.activePanel,o=e.activePanelId,i=e.setActivePanelId,s=e.resetConsoleResponses,a=n.PanelButtons;return Object(r.createElement)("nav",{id:"wp-console-navbar",className:"display-flex"},Object(r.createElement)("div",{className:"wp-console-navbar-left display-flex"},Object(r.createElement)("h3",{id:"wp-console-logo",className:"align-self-center"},Object(u.__)("WP Console","wp-console")),Object(r.createElement)("ul",{id:"wp-console-panel-names",className:"display-flex"},t.map((function(e){return Object(r.createElement)("li",{key:e.id,role:"presentation",className:o===e.id?"active":"",onClick:function(){return i(e.id)}},e.icon," ",e.name)})))),Object(r.createElement)("div",{className:"wp-console-navbar-right display-flex"},Object(r.createElement)("div",{className:"wp-console-panel-buttons align-self-center"},Object(r.createElement)(a,null)),Object(r.createElement)("div",{className:"wp-console-nav-buttons align-self-center"},Object(r.createElement)(h.Button,{className:"button-close",onClick:function(e){return function(e,t){e.preventDefault(),c()("body").removeClass("wp-console-active"),c()("#wp-console").removeClass("active").trigger("wp-console:close"),t()}(e,s)}},Object(r.createElement)(p.j,null)))))})),te=Object(v.a)({select:["notice"],dispatch:["setNotice"]})((function(e){var t=e.notice,n=e.setNotice;return Object(r.createPortal)(Object(r.createElement)("div",{id:"wp-console-app-notice"},Object(r.createElement)(h.Notice,{status:t.type,onRemove:function(){return n("")}},t.message)),document.body)})),ne=Object(v.a)({select:["notice","activePanel"]})((function(e){var t=e.notice,n=e.activePanel.Panel,o=Object(r.createElement)("div",{className:"wp-console-spinner"},Object(r.createElement)(h.Spinner,null));return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(ee,null),Object(r.createElement)("div",{id:"wp-console-panel"},Object(r.createElement)(r.Suspense,{fallback:o},Object(r.createElement)(n,null))),t.message&&Object(r.createElement)(te,null))}));n.p="".concat(wpConsole.url.assests,"/js/"),wpConsole.hooks=Object(i.createHooks)(),c()(document).ready((function(){c()("#wp-console").length&&c()(".ab-item","#wp-admin-bar-wp-console").on("click",(function(e){e.preventDefault(),c()("body").addClass("wp-console-active"),c()("#wp-console").addClass("active"),c()("#wp-console").children().length||Object(r.render)(Object(r.createElement)(ne,null),document.getElementById("wp-console"))}))}))}]);
  • wp-console/trunk/includes/Core/Console/Console.php

    r2209682 r2423026  
    2222     * @since 1.0.0
    2323     *
    24      * @param array $controllers
     24     * @param $controllers
    2525     *
    2626     * @return void
     
    4141     */
    4242    public function add_user_settings_schema( $schema ) {
     43
     44
     45
     46
     47
     48
     49
     50
     51
     52
     53
    4354        $schema['console'] = [
    4455            'description' => __( 'User settings for Console panel', 'wp-console' ),
    4556            'type'        => 'object',
    4657            'context'     => [ 'view', 'edit' ],
     58
    4759            'properties'  => [
    4860                'window_split' => [
     
    5062                    'type'        => 'string',
    5163                    'enum'        => [ 'horizontal', 'vertical' ],
    52                     'default'     => 'horizontal',
     64                    'default'     => ,
    5365                    'context'     => [ 'view', 'edit' ],
     66
     67
     68
     69
     70
     71
     72
     73
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
     91
    5492                ],
    5593            ],
    5694        ];
     95
    5796        return $schema;
    5897    }
  • wp-console/trunk/includes/Core/Console/RestController.php

    r2209682 r2423026  
    33namespace WPConsole\Core\Console;
    44
    5 use Exception;
     5use ;
    66use WPConsole\Core\Console\Psy\Output\ShellOutput;
    77use WPConsole\Core\Console\Psy\Shell;
     
    155155            return rest_ensure_response( $data );
    156156
    157         } catch ( Exception $e ) {
     157        } catch ( Throwable $e ) {
     158            ob_end_flush();
     159
    158160            return new WP_Error( 'wp_console_rest_error', $e->getMessage(), [
    159161                'input'  => $request['input'],
  • wp-console/trunk/includes/Core/UserSettings/Controller.php

    r2209682 r2423026  
    2727    public function get( $user_id ) {
    2828        $user_settings  = [];
    29         $saved_settings = get_user_option( 'wp_console_user_settings', $user_id );
     29        $saved_settings = get_user_ );
    3030        $saved_settings = is_array( $saved_settings ) ? $saved_settings : [];
    3131
     
    7272        }
    7373
    74         update_user_option( $user_id, 'wp_console_user_settings', $updated_settings );
     74        update_user_( $user_id, 'wp_console_user_settings', $updated_settings );
    7575
    7676        return $updated_settings;
  • wp-console/trunk/includes/Core/UserSettings/RestController.php

    r2209682 r2423026  
    5555                'callback'            => [ $this, 'update_item' ],
    5656                'permission_callback' => [ $this, 'can_manage_options' ],
    57                 'args'                => $this->get_endpoint_args_for_item_schema( WP_REST_Server::EDITABLE ),
     57                'args'                => $this->get_endpoint_args_for_item_schema( WP_REST_Server::TABLE ),
    5858            ],
    5959
     
    6767     * @since 2.0.0
    6868     *
    69      * @param \WP_REST_Request $request
    70      *
    7169     * @return bool
    7270     */
    73     public function can_manage_options( $request ) {
     71    public function can_manage_options() {
    7472        return current_user_can( 'manage_options' );
    7573    }
  • wp-console/trunk/includes/Core/UserSettings/UserSettings.php

    r2209682 r2423026  
    3636     * @since 2.0.0
    3737     *
    38      * @param array $controllers
     38     * @param $controllers
    3939     *
    4040     * @return void
  • wp-console/trunk/includes/Scripts.php

    r2209682 r2423026  
    1313     */
    1414    public function __construct() {
     15
     16
     17
     18
    1519        add_action( 'init', [ $this, 'register_scripts' ] );
    1620        add_action( 'init', [ $this, 'load_translation' ] );
  • wp-console/trunk/includes/WPConsole.php

    r2282658 r2423026  
    2121     * @var string
    2222     */
    23     public $version = '2.1.0';
     23    public $version = '2..0';
    2424
    2525    /**
  • wp-console/trunk/languages/wp-console.pot

    r2282658 r2423026  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WP Console 2.0.0\n"
     5"Project-Id-Version: WP Console 2..0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-console\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2020-04-13T21:39:28+02:00\n"
     12"POT-Creation-Date: 2020-:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.4.0\n"
     
    1616
    1717#. Plugin Name of the plugin
    18 #: src/NavBar/NavBar.js:40
     18#: src/NavBar/NavBar.js:
    1919msgid "WP Console"
    2020msgstr ""
     
    2525
    2626#. Description of the plugin
    27 msgid "WordPress PHP Console powered by PsySH"
     27msgid " powered by PsySH"
    2828msgstr ""
    2929
     
    4141msgstr ""
    4242
    43 #: includes/Core/Console/Console.php:44
     43#: includes/Core/Console/Console.php:48
     44msgid "Custom Snippets"
     45msgstr ""
     46
     47#: includes/Core/Console/Console.php:55
    4448msgid "User settings for Console panel"
    4549msgstr ""
    4650
    47 #: includes/Core/Console/Console.php:49
     51#: includes/Core/Console/Console.php:
    4852msgid "Console panel window split type"
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
     63
     64
     65
     66
     67
     68
    4969msgstr ""
    5070
     
    80100msgstr ""
    81101
    82 #: src/Console/CodeEditor.js:80
    83 msgid "Execute Code"
    84 msgstr ""
    85 
    86 #: src/Console/Output.js:13
     102#: src/Console/Output.js:35
    87103msgid "Error Traceback"
    88104msgstr ""
    89105
    90 #: src/Console/Output.js:23
     106#: src/Console/Output.js:
    91107msgid "Output"
    92108msgstr ""
    93109
    94 #: src/Console/Panel.js:30
     110#: src/Console/Output.js:62
     111msgid "Output Copied!"
     112msgstr ""
     113
     114#: src/Console/Output.js:70
     115msgid "Copy Output"
     116msgstr ""
     117
     118#: src/Console/Panel.js:29
    95119msgid " or "
    96120msgstr ""
    97121
    98 #: src/Console/Panel.js:52
     122#: src/Console/Panel.js:5
    99123msgid "Executing code"
    100124msgstr ""
    101125
     126
    102127#: src/Console/Panel.js:59
    103128msgid "use %s to execute code"
    104129msgstr ""
    105130
    106 #: src/Console/PanelButtons.js:56
     131#: src/Console/PanelButtons.js:62
     132msgid "Snippets"
     133msgstr ""
     134
     135#: src/Console/PanelButtons.js:71
    107136msgid "Split"
    108137msgstr ""
    109138
    110 #: src/Console/PanelButtons.js:67
     139#: src/Console/PanelButtons.js:
    111140msgid "Run"
     141
     142
     143
     144
    112145msgstr ""
    113146
     
    120153msgstr ""
    121154
    122 #: src/DebugLog/Panel.js:29
     155#. translators: %s: Fetching debug.log indicator
     156#: src/DebugLog/Panel.js:30
    123157msgid "Fetching %s"
    124158msgstr ""
    125159
    126 #: src/DebugLog/Panel.js:33
     160#. translators: %s: Clearing debug.log indicator
     161#: src/DebugLog/Panel.js:35
    127162msgid "Clearing %s"
    128163msgstr ""
    129164
    130 #: src/DebugLog/Panel.js:52
     165#: src/DebugLog/Panel.js:5
    131166msgid "Your debug.log is empty"
    132167msgstr ""
    133168
    134 #: src/DebugLog/Panel.js:64
     169#: src/DebugLog/Panel.js:6
    135170msgid "CURRENT TIME"
    136171msgstr ""
    137172
    138 #: src/DebugLog/Panel.js:67
     173#: src/DebugLog/Panel.js:6
    139174msgid "PHP VERSION"
    140175msgstr ""
  • wp-console/trunk/readme.txt

    r2282658 r2423026  
    33Tags: console, repl, browser, psysh, shell, dump
    44Requires at least: 5.0
    5 Tested up to: 5.4
     5Tested up to: 5.
    66Requires PHP: 5.6
    77Stable tag: trunk
     
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1010
    11 WordPress PHP Console powered by PsySH
     11 powered by PsySH
    1212
    1313== Description ==
     
    2525- `_dump` as the alternative to `var_dump` which uses Symfony VarDumper.
    2626- Get debug.log contents and clear them right from your browser.
    27 - Advanced shell powered by psySH for `wp shell`
    28 - Custom code snippet(coming soon).
    29 - Change editor theme(coming soon).
    30 - WordPress function definition docblock(coming soon).
    31 - Customized editor key bindings(coming soon).
     27- Advanced shell powered by psySH for `wp shell`.
     28- Custom code snippet. Supports VS Code supported code snippets. For example you can use [this WooCommerce snippets](https://github.com/claudiosanches/vscode-woocommerce/blob/master/snippets/functions.json).
    3229
    3330Please note that, currently PsySH commands like `ls`, `doc`, `show` etc and Magic variables like `$_`, `$__class` etc are not supported in browser console.
    3431
    35 👉 WP Console uses Gutenberg packages and components for its UI/UX. Checkout the GitHub repo here [wp-console](https://github.com/ediamin/wp-console).
     32👉 WP Console uses Gutenberg packages and components for its UI/UX. Checkout the GitHub repo here [wp-console](https://github.com/ediamin/wp-console).
    3633
    3734== Security Concern ==
     
    48457. wp shell command
    49468. Get debug.log contents
    50 9. Clear debug.log
     479. Clear debug.log
     4810. Add/Edit custom snippets
     4911. Custom snippets in action
    5150
    5251== Changelog ==
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
    5363
    54642.1.0 - April 14, 2020
     
    6575* Option to vertically split editor and output window.
    6676* Add ability to clear debug.log.
    67 * Restrict plugin UI and REST APIs for users who have manage_options capability. 
     77* Restrict plugin UI and REST APIs for users who have manage_options capability.
    6878
    69791.5.0 - November 07, 2019
  • wp-console/trunk/vendor/autoload.php

    r2112046 r2423026  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit34d61a2739939f2eea86c35dbd10c423::getLoader();
     7return ComposerAutoloaderInit::getLoader();
  • wp-console/trunk/vendor/composer/ClassLoader.php

    r2184942 r2423026  
    6161    {
    6262        if (!empty($this->prefixesPsr0)) {
    63             return call_user_func_array('array_merge', $this->prefixesPsr0);
     63            return call_user_func_array('array_merge', );
    6464        }
    6565
  • wp-console/trunk/vendor/composer/autoload_classmap.php

    r2282658 r2423026  
    606606    'WPConsole\\Core\\UserSettings\\UserSettings' => $baseDir . '/includes/Core/UserSettings/UserSettings.php',
    607607    'WPConsole\\Exceptions\\WPConsoleException' => $baseDir . '/includes/Exceptions/WPConsoleException.php',
     608
    608609    'WPConsole\\Scripts' => $baseDir . '/includes/Scripts.php',
    609610    'WPConsole\\Traits\\RESTResponseError' => $baseDir . '/includes/Traits/RESTResponseError.php',
  • wp-console/trunk/vendor/composer/autoload_real.php

    r2112046 r2423026  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit34d61a2739939f2eea86c35dbd10c423
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    1414    }
    1515
     16
     17
     18
    1619    public static function getLoader()
    1720    {
     
    2023        }
    2124
    22         spl_autoload_register(array('ComposerAutoloaderInit34d61a2739939f2eea86c35dbd10c423', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
    2326        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInit34d61a2739939f2eea86c35dbd10c423', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    2528
    2629        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    2831            require_once __DIR__ . '/autoload_static.php';
    2932
    30             call_user_func(\Composer\Autoload\ComposerStaticInit34d61a2739939f2eea86c35dbd10c423::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader));
    3134        } else {
    3235            $map = require __DIR__ . '/autoload_namespaces.php';
     
    4952
    5053        if ($useStaticLoader) {
    51             $includeFiles = Composer\Autoload\ComposerStaticInit34d61a2739939f2eea86c35dbd10c423::$files;
     54            $includeFiles = Composer\Autoload\ComposerStaticInit::$files;
    5255        } else {
    5356            $includeFiles = require __DIR__ . '/autoload_files.php';
    5457        }
    5558        foreach ($includeFiles as $fileIdentifier => $file) {
    56             composerRequire34d61a2739939f2eea86c35dbd10c423($fileIdentifier, $file);
     59            composerRequire($fileIdentifier, $file);
    5760        }
    5861
     
    6164}
    6265
    63 function composerRequire34d61a2739939f2eea86c35dbd10c423($fileIdentifier, $file)
     66function composerRequire($fileIdentifier, $file)
    6467{
    6568    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • wp-console/trunk/vendor/composer/autoload_static.php

    r2282658 r2423026  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit34d61a2739939f2eea86c35dbd10c423
     7class ComposerStaticInit
    88{
    99    public static $files = array (
     
    697697        'WPConsole\\Core\\UserSettings\\UserSettings' => __DIR__ . '/../..' . '/includes/Core/UserSettings/UserSettings.php',
    698698        'WPConsole\\Exceptions\\WPConsoleException' => __DIR__ . '/../..' . '/includes/Exceptions/WPConsoleException.php',
     699
    699700        'WPConsole\\Scripts' => __DIR__ . '/../..' . '/includes/Scripts.php',
    700701        'WPConsole\\Traits\\RESTResponseError' => __DIR__ . '/../..' . '/includes/Traits/RESTResponseError.php',
     
    707708    {
    708709        return \Closure::bind(function () use ($loader) {
    709             $loader->prefixLengthsPsr4 = ComposerStaticInit34d61a2739939f2eea86c35dbd10c423::$prefixLengthsPsr4;
    710             $loader->prefixDirsPsr4 = ComposerStaticInit34d61a2739939f2eea86c35dbd10c423::$prefixDirsPsr4;
    711             $loader->classMap = ComposerStaticInit34d61a2739939f2eea86c35dbd10c423::$classMap;
     710            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     711            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     712            $loader->classMap = ComposerStaticInit::$classMap;
    712713
    713714        }, null, ClassLoader::class);
  • wp-console/trunk/vendor/symfony/var-dumper/Tests/Fixtures/Php74.php

    r2209682 r2423026  
    66{
    77    public $p1 = 123;
    8     public $p2;
     8    public $p2;
    99
    1010    public function __construct()
  • wp-console/trunk/wp-console.php

    r2282658 r2423026  
    33 * Plugin Name: WP Console
    44 * Plugin URI: https://github.com/ediamin/wp-console
    5  * Description: WordPress PHP Console powered by PsySH
    6  * Version: 2.1.0
     5 * Description: powered by PsySH
     6 * Version: 2..0
    77 * Author: Edi Amin
    88 * Author URI: https://github.com/ediamin
Note: See TracChangeset for help on using the changeset viewer.