vue-conso
Version:
a simple web console
1 lines • 30.4 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("conso",[],e):"object"==typeof exports?exports.conso=e():t.conso=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Conso=void 0;var o=n(1),i=r(o);e.Conso=i["default"]},function(t,e,n){n(2);var r=n(7)(n(8),n(88),"data-v-015b4fc6",null);t.exports=r.exports},function(t,e,n){var r=n(3);"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);n(5)("2e8dd451",r,!0)},function(t,e,n){e=t.exports=n(4)(),e.push([t.id,'.console-list .line[data-v-015b4fc6]{border-bottom:1px solid #eee;padding:10px;padding-left:25px;box-sizing:border-box;position:relative;font-size:14px}.console-list .line i[data-v-015b4fc6]{display:inline-block;width:12px;height:12px;top:16px;left:5px;position:absolute}.console-list .line.error[data-v-015b4fc6]{background:#fdf1f0;color:#000}.console-list .line.error .type em[data-v-015b4fc6]{color:#eb3425;cursor:pointer}.console-list .line.error .type em[data-v-015b4fc6]:hover{text-decoration:underline}.console-list .line.error i[data-v-015b4fc6]{background:url("http://jsconsole.com/error.svg") no-repeat;background-size:cover}.console-list .line.input i[data-v-015b4fc6]{background:url("http://jsconsole.com/in.svg") no-repeat;background-position:50% 50%;background-size:contain}.console-list .line.output[data-v-015b4fc6]{color:#aaa}.console-list .line.output i[data-v-015b4fc6]{background:url("http://jsconsole.com/out.svg") no-repeat;background-position:50% 50%;background-size:contain}.console-list .line .short-string[data-v-015b4fc6]{color:#4caf50}.console-list .line .short-string[data-v-015b4fc6]:after,.console-list .line .short-string[data-v-015b4fc6]:before{content:\'"\';color:#000}.console-list .preview[data-v-015b4fc6]{cursor:pointer}.console-list .type[data-v-015b4fc6]{display:inline-block}.console-list .type.string[data-v-015b4fc6]{color:#4caf50;white-space:nowrap}.console-list .type.string[data-v-015b4fc6]:after,.console-list .type.string[data-v-015b4fc6]:before{content:\'"\';color:#000}.console-list .type.string span[data-v-015b4fc6]{display:inherit}.console-list .type.number[data-v-015b4fc6]{color:#0000c0}.console-list .type.boolean[data-v-015b4fc6]{color:#e91e63}.console-list .type.undefined[data-v-015b4fc6]{color:#aaa}.console-list .type.null[data-v-015b4fc6]{color:#9c27b0}.console-list .type.function em[data-v-015b4fc6],.console-list .type.object em[data-v-015b4fc6]{cursor:pointer;color:#2196f3}.console-list .type.function em[data-v-015b4fc6]:hover,.console-list .type.object em[data-v-015b4fc6]:hover{text-decoration:underline}.console-list .field[data-v-015b4fc6]{width:100%;box-sizing:border-box;padding-left:25px;position:relative}.console-list .field[data-v-015b4fc6]:before{content:"";display:inline-block;position:absolute;width:12px;height:12px;top:17px;left:5px;background:url("http://jsconsole.com/prompt.svg") no-repeat;background-position:50% 50%;background-size:contain}.console-list .field .input[data-v-015b4fc6]{border:0;resize:none;outline:0;font-size:14px;padding:0;width:100%;box-sizing:border-box;padding-top:10px;line-height:1.8em;font-family:inherit}',""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(t,e,n){function r(t){for(var e=0;e<t.length;e++){var n=t[e],r=f[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(i(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var s=[],o=0;o<n.parts.length;o++)s.push(i(n.parts[o]));f[n.id]={id:n.id,refs:1,parts:s}}}}function o(){var t=document.createElement("style");return t.type="text/css",l.appendChild(t),t}function i(t){var e,n,r=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(r){if(y)return v;r.parentNode.removeChild(r)}if(h){var i=d++;r=p||(p=o()),e=s.bind(null,r,i,!1),n=s.bind(null,r,i,!0)}else r=o(),e=u.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}function s(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,o);else{var i=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}function u(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var c="undefined"!=typeof document,a=n(6),f={},l=c&&(document.head||document.getElementsByTagName("head")[0]),p=null,d=0,y=!1,v=function(){},h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n){y=n;var o=a(t,e);return r(o),function(e){for(var n=[],i=0;i<o.length;i++){var s=o[i],u=f[s.id];u.refs--,n.push(u)}e?(o=a(t,e),r(o)):o=[];for(var i=0;i<n.length;i++){var u=n[i];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete f[u.id]}}}};var b=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],s=i[0],u=i[1],c=i[2],a=i[3],f={id:t+":"+o,css:u,media:c,sourceMap:a};r[s]?r[s].parts.push(f):n.push(r[s]={id:s,parts:[f]})}return n}},function(t,e){t.exports=function(t,e,n,r){var o,i=t=t||{},s=typeof t["default"];"object"!==s&&"function"!==s||(o=t,i=t["default"]);var u="function"==typeof i?i.options:i;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),n&&(u._scopeId=n),r){var c=Object.create(u.computed||null);Object.keys(r).forEach(function(t){var e=r[t];c[t]=function(){return e}}),u.computed=c}return{esModule:o,exports:i,options:u}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),i=r(o),s=n(44),u=r(s),c=n(49),a=r(c),f=n(83),l=r(f),p={Error:"log-error",Normal:"log",Input:"log-input",Tips:"log-tips"};e["default"]={ConsoleType:p,components:{group:l["default"]},data:function(){var t=this;return this.historyIndex=0,this.keyId=1,this.keydown=function(e){e.shiftKey&&"Enter"===e.code?(e.preventDefault(),t.input_rows++):e.shiftKey||"Enter"!==e.code||(e.preventDefault(),t.input_rows=1,t.run()),"ArrowUp"==e.code&&(e.preventDefault(),t.historyIndex>0&&(t.historyIndex--,t.$refs.input.value=t.history[t.historyIndex])),"ArrowDown"==e.code&&(e.preventDefault(),t.historyIndex<t.history.length-1&&(t.historyIndex++,t.$refs.input.value=t.history[t.historyIndex]))},{store:[],history:[],input_rows:1,expand:"0"}},props:{contentWindow:{"default":function(){return null}}},mounted:function(){this.$el.addEventListener("keydown",this.keydown);var t=["log","debug","error"],e=this.contentWindow?this.contentWindow.console:this.$refs.iframe.contentWindow.console,n=this;t.forEach(function(t){var r=window.console[t];e[t]=function(){for(var e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];o.forEach(function(e){"error"===t?n.error(e):n.log(e)}),r.apply(window,o)}})},beforeDestroy:function(){this.$el.removeEventListener("keydown",this.keydown)},computed:{},methods:{log:function(t){this.storePush({content:t})},error:function(t){this.storePush({type:p.Error,content:t})},clear:function(t){this.keyId=1,this.store=[{key:this.keyId,type:p.Normal,content:"Console was cleared"}]},getInputElment:function(){return this.$refs.input},storePush:function(t){var e=this;t.key=this.keyId++,t.type||(t.type=p.Normal),this.store.push(t),this.$nextTick(function(){e.$refs.input.focus()})},historyPush:function(t){this.history.push(t)},isNull:function(t){return!t&&"undefined"!=typeof t&&0!=t},isBaseType:function(t){return/string|number|boolean|undefined/.test("undefined"==typeof t?"undefined":(0,a["default"])(t))||this.isNull(t)},isObject:function(t){return!this.isNull(t)&&("object"==("undefined"==typeof t?"undefined":(0,a["default"])(t))?"Object":"function"==typeof t?"ƒ ()":void 0)},getType:function(t){try{return"Function"===t.constructor.name?"ƒ "+t.name+"()":t.constructor.name}catch(e){return t+"null"}},getKeys:function(t){if(delete t.__ob__,Array.isArray(t))return(0,u["default"])(t);var e=(0,i["default"])(t);if(e.indexOf("__ob__")>-1&&e.splice(e.indexOf("__ob__"),1),e.length>0)return e;var n=[];for(var r in t)n.push(r);return n},expandState:function(t){return new RegExp(t).test(this.expand)},handleExpand:function(t){this.expandState(t)?this.expand=this.expand.replace("|"+t,""):this.expand+="|"+t},handlePreview:function(t){if("log-error"==t.type)return t.content.message},returnIcon:function(t){return"log-error"==t.type?"error":"log-input"==t.type?"input":"output"},run:function(){var t=this.$refs.input.value;if(!t)return!1;if(this.historyPush(t),this.historyIndex=this.history.length,this.$refs.input.blur(),/^clear\(\)$/.test(t))return this.clear(),this.$refs.input.value="",this.$refs.input.focus(),!1;this.storePush({type:p.Input,content:t}),this.$refs.input.value="",/^(var|const|let|switch|return|with|typeof|break|case|catch|try|if|else|delete|for|do|while|throw|)/.test(t)&&!/^{.+}$/.test(t)||(t="("+t+")");try{var e=this.contentWindow||this.$refs.iframe.contentWindow,n=e.eval.call(e,t);this.storePush({content:n})}catch(r){this.storePush({type:p.Error,content:r})}}}}},function(t,e,n){t.exports={"default":n(10),__esModule:!0}},function(t,e,n){n(11);var r=n(15).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,e,n){n(12)("getOwnPropertyNames",function(){return n(28).f})},function(t,e,n){var r=n(13),o=n(15),i=n(24);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",s)}},function(t,e,n){var r=n(14),o=n(15),i=n(16),s=n(18),u="prototype",c=function(t,e,n){var a,f,l,p=t&c.F,d=t&c.G,y=t&c.S,v=t&c.P,h=t&c.B,b=t&c.W,g=d?o:o[e]||(o[e]={}),m=g[u],x=d?r:y?r[e]:(r[e]||{})[u];d&&(n=e);for(a in n)f=!p&&x&&void 0!==x[a],f&&a in g||(l=f?x[a]:n[a],g[a]=d&&"function"!=typeof x[a]?n[a]:h&&f?i(l,r):b&&x[a]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((g.virtual||(g.virtual={}))[a]=l,t&c.R&&m&&!m[a]&&s(m,a,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(17);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(19),o=n(27);t.exports=n(23)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(20),o=n(22),i=n(26),s=Object.defineProperty;e.f=n(23)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return s(t,e,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(21);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(23)&&!n(24)(function(){return 7!=Object.defineProperty(n(25)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){t.exports=!n(24)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){var r=n(21),o=n(14).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(21);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(29),o=n(33).f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(e){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,e,n){var r=n(30),o=n(32);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(31);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(34),o=n(43).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(35),o=n(29),i=n(36)(!1),s=n(40)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,a=[];for(n in u)n!=s&&r(u,n)&&a.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(a,n)||a.push(n));return a}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(29),o=n(37),i=n(39);t.exports=function(t){return function(e,n,s){var u,c=r(e),a=o(c.length),f=i(s,a);if(t&&n!=n){for(;a>f;)if(u=c[f++],u!=u)return!0}else for(;a>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(38),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(38),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(41)("keys"),o=n(42);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(14),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){t.exports={"default":n(45),__esModule:!0}},function(t,e,n){n(46),t.exports=n(15).Object.keys},function(t,e,n){var r=n(47),o=n(48);n(12)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(32);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(34),o=n(43);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(50),i=r(o),s=n(70),u=r(s),c="function"==typeof u["default"]&&"symbol"==typeof i["default"]?function(t){return typeof t}:function(t){return t&&"function"==typeof u["default"]&&t.constructor===u["default"]&&t!==u["default"].prototype?"symbol":typeof t};e["default"]="function"==typeof u["default"]&&"symbol"===c(i["default"])?function(t){return"undefined"==typeof t?"undefined":c(t)}:function(t){return t&&"function"==typeof u["default"]&&t.constructor===u["default"]&&t!==u["default"].prototype?"symbol":"undefined"==typeof t?"undefined":c(t)}},function(t,e,n){t.exports={"default":n(51),__esModule:!0}},function(t,e,n){n(52),n(65),t.exports=n(69).f("iterator")},function(t,e,n){"use strict";var r=n(53)(!0);n(54)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(38),o=n(32);t.exports=function(t){return function(e,n){var i,s,u=String(o(e)),c=r(n),a=u.length;return c<0||c>=a?t?"":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===a||(s=u.charCodeAt(c+1))<56320||s>57343?t?u.charAt(c):i:t?u.slice(c,c+2):(i-55296<<10)+(s-56320)+65536)}}},function(t,e,n){"use strict";var r=n(55),o=n(13),i=n(56),s=n(18),u=n(35),c=n(57),a=n(58),f=n(62),l=n(64),p=n(63)("iterator"),d=!([].keys&&"next"in[].keys()),y="@@iterator",v="keys",h="values",b=function(){return this};t.exports=function(t,e,n,g,m,x,_){a(n,e,g);var w,j,S,O=function(t){if(!d&&t in P)return P[t];switch(t){case v:return function(){return new n(this,t)};case h:return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",E=m==h,C=!1,P=t.prototype,T=P[p]||P[y]||m&&P[m],M=T||O(m),N=m?E?O("entries"):M:void 0,L="Array"==e?P.entries||T:T;if(L&&(S=l(L.call(new t)),S!==Object.prototype&&S.next&&(f(S,k,!0),r||u(S,p)||s(S,p,b))),E&&T&&T.name!==h&&(C=!0,M=function(){return T.call(this)}),r&&!_||!d&&!C&&P[p]||s(P,p,M),c[e]=M,c[k]=b,m)if(w={values:E?M:O(h),keys:x?M:O(v),entries:N},_)for(j in w)j in P||i(P,j,w[j]);else o(o.P+o.F*(d||C),e,w);return w}},function(t,e){t.exports=!0},function(t,e,n){t.exports=n(18)},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(59),o=n(27),i=n(62),s={};n(18)(s,n(63)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(20),o=n(60),i=n(43),s=n(40)("IE_PROTO"),u=function(){},c="prototype",a=function(){var t,e=n(25)("iframe"),r=i.length,o="<",s=">";for(e.style.display="none",n(61).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+s+"document.F=Object"+o+"/script"+s),t.close(),a=t.F;r--;)delete a[c][i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[c]=r(t),n=new u,u[c]=null,n[s]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(19),o=n(20),i=n(48);t.exports=n(23)?Object.defineProperties:function(t,e){o(t);for(var n,s=i(e),u=s.length,c=0;u>c;)r.f(t,n=s[c++],e[n]);return t}},function(t,e,n){var r=n(14).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(19).f,o=n(35),i=n(63)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(41)("wks"),o=n(42),i=n(14).Symbol,s="function"==typeof i,u=t.exports=function(t){return r[t]||(r[t]=s&&i[t]||(s?i:o)("Symbol."+t))};u.store=r},function(t,e,n){var r=n(35),o=n(47),i=n(40)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){n(66);for(var r=n(14),o=n(18),i=n(57),s=n(63)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<u.length;c++){var a=u[c],f=r[a],l=f&&f.prototype;l&&!l[s]&&o(l,s,a),i[a]=i.Array}},function(t,e,n){"use strict";var r=n(67),o=n(68),i=n(57),s=n(29);t.exports=n(54)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){e.f=n(63)},function(t,e,n){t.exports={"default":n(71),__esModule:!0}},function(t,e,n){n(72),n(80),n(81),n(82),t.exports=n(15).Symbol},function(t,e,n){"use strict";var r=n(14),o=n(35),i=n(23),s=n(13),u=n(56),c=n(73).KEY,a=n(24),f=n(41),l=n(62),p=n(42),d=n(63),y=n(69),v=n(74),h=n(75),b=n(78),g=n(20),m=n(29),x=n(26),_=n(27),w=n(59),j=n(28),S=n(79),O=n(19),k=n(48),E=S.f,C=O.f,P=j.f,T=r.Symbol,M=r.JSON,N=M&&M.stringify,L="prototype",I=d("_hidden"),A=d("toPrimitive"),F={}.propertyIsEnumerable,R=f("symbol-registry"),$=f("symbols"),D=f("op-symbols"),z=Object[L],W="function"==typeof T,K=r.QObject,G=!K||!K[L]||!K[L].findChild,B=i&&a(function(){return 7!=w(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=E(z,e);r&&delete z[e],C(t,e,n),r&&t!==z&&C(z,e,r)}:C,V=function(t){var e=$[t]=w(T[L]);return e._k=t,e},J=W&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},U=function(t,e,n){return t===z&&U(D,e,n),g(t),e=x(e,!0),g(n),o($,e)?(n.enumerable?(o(t,I)&&t[I][e]&&(t[I][e]=!1),n=w(n,{enumerable:_(0,!1)})):(o(t,I)||C(t,I,_(1,{})),t[I][e]=!0),B(t,e,n)):C(t,e,n)},H=function(t,e){g(t);for(var n,r=h(e=m(e)),o=0,i=r.length;i>o;)U(t,n=r[o++],e[n]);return t},q=function(t,e){return void 0===e?w(t):H(w(t),e)},Y=function(t){var e=F.call(this,t=x(t,!0));return!(this===z&&o($,t)&&!o(D,t))&&(!(e||!o(this,t)||!o($,t)||o(this,I)&&this[I][t])||e)},Q=function(t,e){if(t=m(t),e=x(e,!0),t!==z||!o($,e)||o(D,e)){var n=E(t,e);return!n||!o($,e)||o(t,I)&&t[I][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=P(m(t)),r=[],i=0;n.length>i;)o($,e=n[i++])||e==I||e==c||r.push(e);return r},Z=function(t){for(var e,n=t===z,r=P(n?D:m(t)),i=[],s=0;r.length>s;)!o($,e=r[s++])||n&&!o(z,e)||i.push($[e]);return i};W||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(D,n),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),B(this,t,_(1,n))};return i&&G&&B(z,t,{configurable:!0,set:e}),V(t)},u(T[L],"toString",function(){return this._k}),S.f=Q,O.f=U,n(33).f=j.f=X,n(77).f=Y,n(76).f=Z,i&&!n(55)&&u(z,"propertyIsEnumerable",Y,!0),y.f=function(t){return V(d(t))}),s(s.G+s.W+s.F*!W,{Symbol:T});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)d(tt[et++]);for(var nt=k(d.store),rt=0;nt.length>rt;)v(nt[rt++]);s(s.S+s.F*!W,"Symbol",{"for":function(t){return o(R,t+="")?R[t]:R[t]=T(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var e in R)if(R[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),s(s.S+s.F*!W,"Object",{create:q,defineProperty:U,defineProperties:H,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),M&&s(s.S+s.F*(!W||a(function(){var t=T();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!J(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&b(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!J(e))return e}),r[1]=e,N.apply(M,r)}}}),T[L][A]||n(18)(T[L],A,T[L].valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(42)("meta"),o=n(21),i=n(35),s=n(19).f,u=0,c=Object.isExtensible||function(){return!0},a=!n(24)(function(){return c(Object.preventExtensions({}))}),f=function(t){s(t,r,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},d=function(t){return a&&y.NEED&&c(t)&&!i(t,r)&&f(t),t},y=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(14),o=n(15),i=n(55),s=n(69),u=n(19).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:s.f(t)})}},function(t,e,n){var r=n(48),o=n(76),i=n(77);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var s,u=n(t),c=i.f,a=0;u.length>a;)c.call(t,s=u[a++])&&e.push(s);return e}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(31);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(77),o=n(27),i=n(29),s=n(26),u=n(35),c=n(22),a=Object.getOwnPropertyDescriptor;e.f=n(23)?a:function(t,e){if(t=i(t),e=s(e,!0),c)try{return a(t,e)}catch(n){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(74)("asyncIterator")},function(t,e,n){n(74)("observable")},function(t,e,n){n(84);var r=n(7)(n(86),n(87),"data-v-41883c62",null);t.exports=r.exports},function(t,e,n){var r=n(85);"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);n(5)("3f2479f5",r,!0)},function(t,e,n){e=t.exports=n(4)(),e.push([t.id,".group[data-v-41883c62]{margin-left:.5em}.group .key[data-v-41883c62]{display:inline-block;color:#979797;margin-right:.5rem;float:left}.group .type[data-v-41883c62]{display:inline-block}.group .type.string[data-v-41883c62]{color:#4caf50;white-space:nowrap}.group .type.string[data-v-41883c62]:after,.group .type.string[data-v-41883c62]:before{content:'\"';color:#000}.group .type.number[data-v-41883c62]{color:#0000c0}.group .type.boolean[data-v-41883c62]{color:#e91e63}.group .type.undefined[data-v-41883c62]{color:#aaa}.group .type.null[data-v-41883c62]{color:#9c27b0}.group .type.function em[data-v-41883c62],.group .type.object em[data-v-41883c62]{cursor:pointer;color:#2196f3}.group .type.function em[data-v-41883c62]:hover,.group .type.object em[data-v-41883c62]:hover{text-decoration:underline}",""])},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(49),i=r(o),s=n(9),u=r(s);e["default"]={props:{obj:{"default":{}}},name:"group",data:function(){return{expand:"0"}},mounted:function(){},methods:{getKeys:function(t){var e=(0,u["default"])(t);if(e.length>0)return e;var n=[];for(var r in t)n.push(r);return n},isNull:function(t){return!t&&"undefined"!=typeof t&&0!=t},isBaseType:function(t){return/string|number|boolean|undefined/.test("undefined"==typeof t?"undefined":(0,i["default"])(t))||this.isNull(t)},isObject:function(t){return/object|function/.test("undefined"==typeof t?"undefined":(0,i["default"])(t))&&!this.isNull(t)},expandState:function(t){return new RegExp(t).test(this.expand)},handleExpand:function(t){this.expandState(t)?this.expand=this.expand.replace("|"+t,""):this.expand+="|"+t},getType:function(t){try{return"Function"===t.constructor.name?"ƒ "+t.name+"()":t.constructor.name}catch(e){return t+"null"}}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"group"},t._l(t.getKeys(t.obj),function(e){return n("div",{key:e,staticClass:"key-value"},[n("span",{staticClass:"key"},[t._v(t._s(e+":"))]),t._v(" "),t.isObject(t.obj[e])?n("div",{staticClass:"type","class":typeof t.obj[e]},[n("em",{on:{click:function(n){t.handleExpand(e)}}},[t._v(t._s(t.getType(t.obj[e])))]),t._v(" \n "+t._s(t.expandState(e)?" { ":"")+"\n "),t.expandState(e)?n("group",{attrs:{obj:t.obj[e]}}):t._e(),t._v("\n "+t._s(t.expandState(e)?" } ":"")+"\n ")],1):n("div",{staticClass:"type","class":t.isNull(t.obj[e])?"null":typeof t.obj[e]},[t._v(t._s(t.isNull(t.obj[e])?"null":t.obj[e]+""))])])}))},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"consoleList",staticClass:"console-list"},[n("iframe",{ref:"iframe",staticStyle:{display:"none"}}),t._v(" "),t._l(t.store,function(e){return t.isObject(e.content)?n("div",{staticClass:"line","class":t.returnIcon(e)},[n("i"),t._v(" "),n("div",{staticClass:"type","class":typeof e.content},[n("em",{on:{click:function(n){t.handleExpand(e.key)}}},[t._v(t._s(t.getType(e.content)))]),t._v(" \n "+t._s("Array"===t.getType(e.content)?" [ ":" { ")+"\n "),t.expandState(e.key)?n("group",{attrs:{obj:e.content}}):n("span",{staticClass:"preview",on:{click:function(n){t.handleExpand(e.key)}}},["log-error"==e.type?n("span",{staticClass:"type string"},[t._v(t._s(e.content.message))]):t._e(),t._v(" "),"log"==e.type&&t.isObject(e.content)?n("span",t._l(t.getKeys(e.content),function(r,o){return o<5?n("span",{key:r,staticClass:"key-value"},["Array"!==t.getType(e.content)?n("span",{staticClass:"key"},[t._v(t._s(r)+":")]):t._e(),t._v(" "),n("span",{staticClass:"value"},[n("span",{staticClass:"type preview","class":typeof e.content[r]},[t.isObject(e.content[r])?n("em",[t._v(t._s(t.getType(e.content[r])))]):n("span",[t._v("\n "+t._s(t.isNull(e.content[r])?"null":e.content[r]+"")+"\n ")])]),t._v("\n "+t._s(4>o&&t.getKeys(e.content)[o+1]?",":t.getKeys(e.content).length>5?"...":"")+"\n ")])]):t._e()})):t._e()]),t._v("\n "+t._s("Array"===t.getType(e.content)?" ] ":" } ")+"\n ")],1)]):n("div",{key:e.key,staticClass:"line","class":t.returnIcon(e)},[n("i"),n("div",{staticClass:"type","class":"log-input"==e.type||(t.isNull(e.content)?"null":typeof e.content)},[t._v(t._s(t.isNull(e.content)?"null":e.content+""))])])}),t._v(" "),n("div",{staticClass:"field"},[n("textarea",{ref:"input",staticClass:"input",attrs:{rows:t.input_rows}})])],2)},staticRenderFns:[]}}])});