!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){e.exports={row:"_3FIEj",error:"_1Skk7",log:"_3nOQY",info:"_10GKt",warn:"_10mph",output:"_3IoDT",timestamp:"bMXHy",outputText:"_2z1PD",block:"_3i2PT",open:"Yae0e",fileName:"_3_Uu1",prompt:"_1h7qT",promptChar:"_1Cduj",promptInput:"TsPwl"}},function(e,t,n){e.exports={fTwelve:"_301A8",tab:"_1TihR",content:"_27uNA"}},function(e,t,n){!function(){"use strict";var t,n,o=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n)},r=function(e,t){for(var n in e)t(n)},i=function(e,t,n){null!=e&&(n=n||{},Object.getOwnPropertyNames(e).forEach(function(e){n[e]||(t(e),n[e]=!0)}),i(Object.getPrototypeOf(e),t,n))};Object.defineProperty(Date.prototype,"toPrunedJSON",{value:Date.prototype.toJSON});var a=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function c(e){return a.lastIndex=0,a.test(e)?'"'+e.replace(a,function(e){var t=s[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}var u=function(e,a,s){var u,l='"-pruned-"';if("object"==typeof a){var h=a;a=h.depthDecr,s=h.arrayMaxLength,n=h.iterator||o,h.allProperties?n=i:h.inheritedProperties&&(n=r),"prunedString"in h&&(l=h.prunedString),h.replacer&&(u=h.replacer)}else n=o;return t=[],s=s||50,function e(o,r,i){var a,h,p,f,d=r[o];switch(d&&"object"==typeof d&&"function"==typeof d.toPrunedJSON&&(d=d.toPrunedJSON(o)),d&&"function"==typeof d.toJSON&&(d=d.toJSON()),typeof d){case"string":return c(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i<=0||-1!==t.indexOf(d)){if(u){var y=u(d,l,!0);return void 0===y?void 0:""+y}return l}if(t.push(d),f=[],"[object Array]"===Object.prototype.toString.apply(d)){for(p=Math.min(d.length,s),a=0;as?u(d,h,!1):h}return n(d,function(t){try{(h=e(t,d,i-1))&&f.push(c(t)+":"+h)}catch(e){}}),"{"+f.join(",")+"}";case"function":case"undefined":return u?u(d,void 0,!1):void 0}}("",{"":e},a=a||6)};u.log=function(){console.log.apply(console,Array.prototype.map.call(arguments,function(e){return JSON.parse(JSON.prune(e))}))},u.forEachProperty=i,e.exports=u}()},function(e,t,n){"use strict";n.r(t);var o=n(1),r=n.n(o);function i(e,t){for(var n=0;n-1?o.stack:JSON.stringify(JSON.parse(f(o,e.pruneOptions)),null,2):r.innerHTML=o,r.textContent.indexOf("\n")>-1&&(r.classList.add(l.a.block),r.onclick=e.onClickExpandIcon.bind(n,r)),c.appendChild(r)}),this.el.appendChild(c),c.scrollIntoView&&c.scrollIntoView()}}])&&p(t.prototype,n),o&&p(t,o),e}();d.pruneOptions={depthDecr:10,replacer:function(e,t,n){return n?'"-circular-"':void 0===e?'"-undefined-"':Array.isArray(e)?'"-array('+e.length+')-"':t}};var y=d;function v(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0],t=this.console.getHistory();this.historyPos=e?Math.max(--this.historyPos,-1):Math.min(++this.historyPos,t.length-1),this.promptInput.value=-1===this.historyPos?this.currentInput:t[this.historyPos]||""}}])&&v(t.prototype,n),o&&v(t,o),e}();function b(e,t){for(var n=0;n0&&r===i.length-1&&((e||{})[s]=t.parseCommand(n.join("="))),(e||{})[s]},window)}}])&&b(t.prototype,n),o&&b(t,o),e}();function C(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.active=!0,e&&this.attach(),this.enableKeyboardTrigger(),this.console.overrideWindowConsole(),this.console.overrideWindowOnError()}},{key:"disable",value:function(){this.active=!1,this.detach(),this.disableKeyboardTrigger(),this.console.restoreWindowConsole(),this.console.restoreWindowOnError()}},{key:"attach",value:function(){!0!==this.attached&&!0===this.active&&(document.getElementsByTagName("body")[0].appendChild(this.el),this.attached=!0,"function"==typeof this.onAttach&&this.onAttach())}},{key:"detach",value:function(){if(!0===this.attached){var e=document.getElementById(this.el.id);e.parentNode.removeChild(e),this.attached=!1,"function"==typeof this.onDetach&&this.onDetach()}}},{key:"onKeyDown",value:function(e){this.keyDownStack+=e.key,"F12"!==e.key&&"F12"===this.keyDownStack.toUpperCase()&&(this.attached?this.detach():this.attach())}},{key:"onKeyUp",value:function(){this.keyDownStack=""}},{key:"enableKeyboardTrigger",value:function(){this.keyDownStack="",document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}},{key:"disableKeyboardTrigger",value:function(){document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp)}}])&&C(t.prototype,n),o&&C(t,o),e}());window.FTwelve=Object.freeze({enable:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return O.enable(e)},disable:function(){return O.disable()},hide:function(){return O.detach(O)},show:function(){return O.attach(O)},onHide:function(e){return O.onDetach=e},onShow:function(e){return O.onAttach=e}})}]); //# sourceMappingURL=f-twelve.umd.js.map