Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flint-tools

Package Overview
Dependencies
Maintainers
2
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flint-tools - npm Package Compare versions

Comparing version 1.3.129 to 1.3.130

4

build/_/tools.prod.js

@@ -1,2 +0,2 @@

window.flintRun_tools=function(e,n,t){var r=n.Flint||runFlint,o=r(e,n,t);!function(e){!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(n,t,r){try{e.packages["mouse-event-offset"]=r(1)}catch(o){console.log("Error bundling package mouse-event-offset!"),console.error(o),e.reportError(o)}try{e.packages["md5-o-matic"]=r(2)}catch(o){console.log("Error bundling package md5-o-matic!"),console.error(o),e.reportError(o)}try{e.packages.ellipsize=r(3)}catch(o){console.log("Error bundling package ellipsize!"),console.error(o),e.reportError(o)}try{e.packages.clone=r(4)}catch(o){console.log("Error bundling package clone!"),console.error(o),e.reportError(o)}try{e.packages.underscore=r(5)}catch(o){console.log("Error bundling package underscore!"),console.error(o),e.reportError(o)}},function(e,n){function t(e,n,t){n=n||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var o=e.clientX||0,i=e.clientY||0,l=r(n);return t[0]=o-l.left,t[1]=i-l.top,t}function r(e){return e===window||e===document||e===document.body?o:e.getBoundingClientRect()}var o={left:0,top:0};e.exports=t},function(e,n){"use strict";function t(e){for(var n=a(e),t=1732584193,r=-271733879,o=-1732584194,i=271733878,u=0;u<n.length;u+=16){var f=t,g=r,h=o,m=i;t=c(t,r,o,i,n[u+0],7,-680876936),i=c(i,t,r,o,n[u+1],12,-389564586),o=c(o,i,t,r,n[u+2],17,606105819),r=c(r,o,i,t,n[u+3],22,-1044525330),t=c(t,r,o,i,n[u+4],7,-176418897),i=c(i,t,r,o,n[u+5],12,1200080426),o=c(o,i,t,r,n[u+6],17,-1473231341),r=c(r,o,i,t,n[u+7],22,-45705983),t=c(t,r,o,i,n[u+8],7,1770035416),i=c(i,t,r,o,n[u+9],12,-1958414417),o=c(o,i,t,r,n[u+10],17,-42063),r=c(r,o,i,t,n[u+11],22,-1990404162),t=c(t,r,o,i,n[u+12],7,1804603682),i=c(i,t,r,o,n[u+13],12,-40341101),o=c(o,i,t,r,n[u+14],17,-1502002290),r=c(r,o,i,t,n[u+15],22,1236535329),t=p(t,r,o,i,n[u+1],5,-165796510),i=p(i,t,r,o,n[u+6],9,-1069501632),o=p(o,i,t,r,n[u+11],14,643717713),r=p(r,o,i,t,n[u+0],20,-373897302),t=p(t,r,o,i,n[u+5],5,-701558691),i=p(i,t,r,o,n[u+10],9,38016083),o=p(o,i,t,r,n[u+15],14,-660478335),r=p(r,o,i,t,n[u+4],20,-405537848),t=p(t,r,o,i,n[u+9],5,568446438),i=p(i,t,r,o,n[u+14],9,-1019803690),o=p(o,i,t,r,n[u+3],14,-187363961),r=p(r,o,i,t,n[u+8],20,1163531501),t=p(t,r,o,i,n[u+13],5,-1444681467),i=p(i,t,r,o,n[u+2],9,-51403784),o=p(o,i,t,r,n[u+7],14,1735328473),r=p(r,o,i,t,n[u+12],20,-1926607734),t=d(t,r,o,i,n[u+5],4,-378558),i=d(i,t,r,o,n[u+8],11,-2022574463),o=d(o,i,t,r,n[u+11],16,1839030562),r=d(r,o,i,t,n[u+14],23,-35309556),t=d(t,r,o,i,n[u+1],4,-1530992060),i=d(i,t,r,o,n[u+4],11,1272893353),o=d(o,i,t,r,n[u+7],16,-155497632),r=d(r,o,i,t,n[u+10],23,-1094730640),t=d(t,r,o,i,n[u+13],4,681279174),i=d(i,t,r,o,n[u+0],11,-358537222),o=d(o,i,t,r,n[u+3],16,-722521979),r=d(r,o,i,t,n[u+6],23,76029189),t=d(t,r,o,i,n[u+9],4,-640364487),i=d(i,t,r,o,n[u+12],11,-421815835),o=d(o,i,t,r,n[u+15],16,530742520),r=d(r,o,i,t,n[u+2],23,-995338651),t=v(t,r,o,i,n[u+0],6,-198630844),i=v(i,t,r,o,n[u+7],10,1126891415),o=v(o,i,t,r,n[u+14],15,-1416354905),r=v(r,o,i,t,n[u+5],21,-57434055),t=v(t,r,o,i,n[u+12],6,1700485571),i=v(i,t,r,o,n[u+3],10,-1894986606),o=v(o,i,t,r,n[u+10],15,-1051523),r=v(r,o,i,t,n[u+1],21,-2054922799),t=v(t,r,o,i,n[u+8],6,1873313359),i=v(i,t,r,o,n[u+15],10,-30611744),o=v(o,i,t,r,n[u+6],15,-1560198380),r=v(r,o,i,t,n[u+13],21,1309151649),t=v(t,r,o,i,n[u+4],6,-145523070),i=v(i,t,r,o,n[u+11],10,-1120210379),o=v(o,i,t,r,n[u+2],15,718787259),r=v(r,o,i,t,n[u+9],21,-343485551),t=l(t,f),r=l(r,g),o=l(o,h),i=l(i,m)}return s(t)+s(r)+s(o)+s(i)}function r(e,n){var t=1&e|1&n,r=e>>>1|n>>>1;return r<<1|t}function o(e,n){var t=1&e^1&n,r=e>>>1^n>>>1;return r<<1|t}function i(e,n){var t=1&e&(1&n),r=e>>>1&n>>>1;return r<<1|t}function l(e,n){var t=(65535&e)+(65535&n),r=(e>>16)+(n>>16)+(t>>16);return r<<16|65535&t}function s(e){var n,t="";for(n=0;3>=n;n++)t+=g.charAt(e>>8*n+4&15)+g.charAt(e>>8*n&15);return t}function a(e){var n,t=(e.length+8>>6)+1,r=new Array(16*t);for(n=0;16*t>n;n++)r[n]=0;for(n=0;n<e.length;n++)r[n>>2]|=e.charCodeAt(n)<<(8*e.length+n)%4*8;r[n>>2]|=128<<(8*e.length+n)%4*8;var o=8*e.length;return r[16*t-2]=255&o,r[16*t-2]|=(o>>>8&255)<<8,r[16*t-2]|=(o>>>16&255)<<16,r[16*t-2]|=(o>>>24&255)<<24,r}function u(e,n){return e<<n|e>>>32-n}function f(e,n,t,r,o,i){return l(u(l(l(n,e),l(r,i)),o),t)}function c(e,n,t,o,l,s,a){return f(r(i(n,t),i(~n,o)),e,n,l,s,a)}function p(e,n,t,o,l,s,a){return f(r(i(n,o),i(t,~o)),e,n,l,s,a)}function d(e,n,t,r,i,l,s){return f(o(o(n,t),r),e,n,i,l,s)}function v(e,n,t,i,l,s,a){return f(o(t,r(n,~i)),e,n,l,s,a)}e.exports=t;var g="0123456789abcdef"},function(e,n){"use strict";function t(e,n,t,r,o){var i=0,l="";if(e.length<n)return e;for(var s=0,a=e.length;a>s;s++)if(l=e.charAt(s),-1!==r.indexOf(l)&&(i=s),!(n>s))return 0===i?o?e.substring(0,n-1)+t:"":e.substring(0,i)+t;return e}var r={ellipse:"…",chars:[" ","-"],max:140,truncate:!0};e.exports=function(e,n,o){if("string"!=typeof e||0===e.length)return"";if(0===n)return"";o=o||{};for(var i in r)(null===o[i]||"undefined"==typeof o[i])&&(o[i]=r[i]);return o.max=n||o.max,t(e,o.max,o.ellipse,o.chars,o.truncate)}},function(e,n){var t=function(){"use strict";function e(n,t,r,o){function l(n,r){if(null===n)return null;if(0==r)return n;var s,c;if("object"!=typeof n)return n;if(e.__isArray(n))s=[];else if(e.__isRegExp(n))s=new RegExp(n.source,i(n)),n.lastIndex&&(s.lastIndex=n.lastIndex);else if(e.__isDate(n))s=new Date(n.getTime());else{if(f&&Buffer.isBuffer(n))return s=new Buffer(n.length),n.copy(s),s;"undefined"==typeof o?(c=Object.getPrototypeOf(n),s=Object.create(c)):(s=Object.create(o),c=o)}if(t){var p=a.indexOf(n);if(-1!=p)return u[p];a.push(n),u.push(s)}for(var d in n){var v;c&&(v=Object.getOwnPropertyDescriptor(c,d)),v&&null==v.set||(s[d]=l(n[d],r-1))}return s}var s;"object"==typeof t&&(r=t.depth,o=t.prototype,s=t.filter,t=t.circular);var a=[],u=[],f="undefined"!=typeof Buffer;return"undefined"==typeof t&&(t=!0),"undefined"==typeof r&&(r=1/0),l(n,r)}function n(e){return Object.prototype.toString.call(e)}function t(e){return"object"==typeof e&&"[object Date]"===n(e)}function r(e){return"object"==typeof e&&"[object Array]"===n(e)}function o(e){return"object"==typeof e&&"[object RegExp]"===n(e)}function i(e){var n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),n}return e.clonePrototype=function(e){if(null===e)return null;var n=function(){};return n.prototype=e,new n},e.__objToStr=n,e.__isDate=t,e.__isArray=r,e.__isRegExp=o,e.__getRegExpFlags=i,e}();"object"==typeof e&&e.exports&&(e.exports=t)},function(e,n,t){var r,o;(function(){function t(e){function n(n,t,r,o,i,l){for(;i>=0&&l>i;i+=e){var s=o?o[i]:i;r=t(r,n[s],s,n)}return r}return function(t,r,o,i){r=E(r,i,4);var l=!j(t)&&x.keys(t),s=(l||t).length,a=e>0?0:s-1;return arguments.length<3&&(o=t[l?l[a]:a],a+=e),n(t,r,o,l,a,s)}}function i(e){return function(n,t,r){t=V(t,r);for(var o=M(n),i=e>0?0:o-1;i>=0&&o>i;i+=e)if(t(n[i],i,n))return i;return-1}}function l(e,n,t){return function(r,o,i){var l=0,s=M(r);if("number"==typeof i)e>0?l=i>=0?i:Math.max(i+s,l):s=i>=0?Math.min(i+1,s):i+s+1;else if(t&&i&&s)return i=t(r,o),r[i]===o?i:-1;if(o!==o)return i=n(v.call(r,l,s),x.isNaN),i>=0?i+l:-1;for(i=e>0?l:s-1;i>=0&&s>i;i+=e)if(r[i]===o)return i;return-1}}function s(e,n){var t=T.length,r=e.constructor,o=x.isFunction(r)&&r.prototype||c,i="constructor";for(x.has(e,i)&&!x.contains(n,i)&&n.push(i);t--;)i=T[t],i in e&&e[i]!==o[i]&&!x.contains(n,i)&&n.push(i)}var a=this,u=a._,f=Array.prototype,c=Object.prototype,p=Function.prototype,d=f.push,v=f.slice,g=c.toString,h=c.hasOwnProperty,m=Array.isArray,y=Object.keys,_=p.bind,w=Object.create,b=function(){},x=function(e){return e instanceof x?e:this instanceof x?void(this._wrapped=e):new x(e)};"undefined"!=typeof e&&e.exports&&(n=e.exports=x),n._=x,x.VERSION="1.8.3";var E=function(e,n,t){if(void 0===n)return e;switch(null==t?3:t){case 1:return function(t){return e.call(n,t)};case 2:return function(t,r){return e.call(n,t,r)};case 3:return function(t,r,o){return e.call(n,t,r,o)};case 4:return function(t,r,o,i){return e.call(n,t,r,o,i)}}return function(){return e.apply(n,arguments)}},V=function(e,n,t){return null==e?x.identity:x.isFunction(e)?E(e,n,t):x.isObject(e)?x.matcher(e):x.property(e)};x.iteratee=function(e,n){return V(e,n,1/0)};var k=function(e,n){return function(t){var r=arguments.length;if(2>r||null==t)return t;for(var o=1;r>o;o++)for(var i=arguments[o],l=e(i),s=l.length,a=0;s>a;a++){var u=l[a];n&&void 0!==t[u]||(t[u]=i[u])}return t}},S=function(e){if(!x.isObject(e))return{};if(w)return w(e);b.prototype=e;var n=new b;return b.prototype=null,n},I=function(e){return function(n){return null==n?void 0:n[e]}},$=Math.pow(2,53)-1,M=I("length"),j=function(e){var n=M(e);return"number"==typeof n&&n>=0&&$>=n};x.each=x.forEach=function(e,n,t){n=E(n,t);var r,o;if(j(e))for(r=0,o=e.length;o>r;r++)n(e[r],r,e);else{var i=x.keys(e);for(r=0,o=i.length;o>r;r++)n(e[i[r]],i[r],e)}return e},x.map=x.collect=function(e,n,t){n=V(n,t);for(var r=!j(e)&&x.keys(e),o=(r||e).length,i=Array(o),l=0;o>l;l++){var s=r?r[l]:l;i[l]=n(e[s],s,e)}return i},x.reduce=x.foldl=x.inject=t(1),x.reduceRight=x.foldr=t(-1),x.find=x.detect=function(e,n,t){var r;return r=j(e)?x.findIndex(e,n,t):x.findKey(e,n,t),void 0!==r&&-1!==r?e[r]:void 0},x.filter=x.select=function(e,n,t){var r=[];return n=V(n,t),x.each(e,function(e,t,o){n(e,t,o)&&r.push(e)}),r},x.reject=function(e,n,t){return x.filter(e,x.negate(V(n)),t)},x.every=x.all=function(e,n,t){n=V(n,t);for(var r=!j(e)&&x.keys(e),o=(r||e).length,i=0;o>i;i++){var l=r?r[i]:i;if(!n(e[l],l,e))return!1}return!0},x.some=x.any=function(e,n,t){n=V(n,t);for(var r=!j(e)&&x.keys(e),o=(r||e).length,i=0;o>i;i++){var l=r?r[i]:i;if(n(e[l],l,e))return!0}return!1},x.contains=x.includes=x.include=function(e,n,t,r){return j(e)||(e=x.values(e)),("number"!=typeof t||r)&&(t=0),x.indexOf(e,n,t)>=0},x.invoke=function(e,n){var t=v.call(arguments,2),r=x.isFunction(n);return x.map(e,function(e){var o=r?n:e[n];return null==o?o:o.apply(e,t)})},x.pluck=function(e,n){return x.map(e,x.property(n))},x.where=function(e,n){return x.filter(e,x.matcher(n))},x.findWhere=function(e,n){return x.find(e,x.matcher(n))},x.max=function(e,n,t){var r,o,i=-(1/0),l=-(1/0);if(null==n&&null!=e){e=j(e)?e:x.values(e);for(var s=0,a=e.length;a>s;s++)r=e[s],r>i&&(i=r)}else n=V(n,t),x.each(e,function(e,t,r){o=n(e,t,r),(o>l||o===-(1/0)&&i===-(1/0))&&(i=e,l=o)});return i},x.min=function(e,n,t){var r,o,i=1/0,l=1/0;if(null==n&&null!=e){e=j(e)?e:x.values(e);for(var s=0,a=e.length;a>s;s++)r=e[s],i>r&&(i=r)}else n=V(n,t),x.each(e,function(e,t,r){o=n(e,t,r),(l>o||o===1/0&&i===1/0)&&(i=e,l=o)});return i},x.shuffle=function(e){for(var n,t=j(e)?e:x.values(e),r=t.length,o=Array(r),i=0;r>i;i++)n=x.random(0,i),n!==i&&(o[i]=o[n]),o[n]=t[i];return o},x.sample=function(e,n,t){return null==n||t?(j(e)||(e=x.values(e)),e[x.random(e.length-1)]):x.shuffle(e).slice(0,Math.max(0,n))},x.sortBy=function(e,n,t){return n=V(n,t),x.pluck(x.map(e,function(e,t,r){return{value:e,index:t,criteria:n(e,t,r)}}).sort(function(e,n){var t=e.criteria,r=n.criteria;if(t!==r){if(t>r||void 0===t)return 1;if(r>t||void 0===r)return-1}return e.index-n.index}),"value")};var O=function(e){return function(n,t,r){var o={};return t=V(t,r),x.each(n,function(r,i){var l=t(r,i,n);e(o,r,l)}),o}};x.groupBy=O(function(e,n,t){x.has(e,t)?e[t].push(n):e[t]=[n]}),x.indexBy=O(function(e,n,t){e[t]=n}),x.countBy=O(function(e,n,t){x.has(e,t)?e[t]++:e[t]=1}),x.toArray=function(e){return e?x.isArray(e)?v.call(e):j(e)?x.map(e,x.identity):x.values(e):[]},x.size=function(e){return null==e?0:j(e)?e.length:x.keys(e).length},x.partition=function(e,n,t){n=V(n,t);var r=[],o=[];return x.each(e,function(e,t,i){(n(e,t,i)?r:o).push(e)}),[r,o]},x.first=x.head=x.take=function(e,n,t){return null==e?void 0:null==n||t?e[0]:x.initial(e,e.length-n)},x.initial=function(e,n,t){return v.call(e,0,Math.max(0,e.length-(null==n||t?1:n)))},x.last=function(e,n,t){return null==e?void 0:null==n||t?e[e.length-1]:x.rest(e,Math.max(0,e.length-n))},x.rest=x.tail=x.drop=function(e,n,t){return v.call(e,null==n||t?1:n)},x.compact=function(e){return x.filter(e,x.identity)};var C=function(e,n,t,r){for(var o=[],i=0,l=r||0,s=M(e);s>l;l++){var a=e[l];if(j(a)&&(x.isArray(a)||x.isArguments(a))){n||(a=C(a,n,t));var u=0,f=a.length;for(o.length+=f;f>u;)o[i++]=a[u++]}else t||(o[i++]=a)}return o};x.flatten=function(e,n){return C(e,n,!1)},x.without=function(e){return x.difference(e,v.call(arguments,1))},x.uniq=x.unique=function(e,n,t,r){x.isBoolean(n)||(r=t,t=n,n=!1),null!=t&&(t=V(t,r));for(var o=[],i=[],l=0,s=M(e);s>l;l++){var a=e[l],u=t?t(a,l,e):a;n?(l&&i===u||o.push(a),i=u):t?x.contains(i,u)||(i.push(u),o.push(a)):x.contains(o,a)||o.push(a)}return o},x.union=function(){return x.uniq(C(arguments,!0,!0))},x.intersection=function(e){for(var n=[],t=arguments.length,r=0,o=M(e);o>r;r++){var i=e[r];if(!x.contains(n,i)){for(var l=1;t>l&&x.contains(arguments[l],i);l++);l===t&&n.push(i)}}return n},x.difference=function(e){var n=C(arguments,!0,!0,1);return x.filter(e,function(e){return!x.contains(n,e)})},x.zip=function(){return x.unzip(arguments)},x.unzip=function(e){for(var n=e&&x.max(e,M).length||0,t=Array(n),r=0;n>r;r++)t[r]=x.pluck(e,r);return t},x.object=function(e,n){for(var t={},r=0,o=M(e);o>r;r++)n?t[e[r]]=n[r]:t[e[r][0]]=e[r][1];return t},x.findIndex=i(1),x.findLastIndex=i(-1),x.sortedIndex=function(e,n,t,r){t=V(t,r,1);for(var o=t(n),i=0,l=M(e);l>i;){var s=Math.floor((i+l)/2);t(e[s])<o?i=s+1:l=s}return i},x.indexOf=l(1,x.findIndex,x.sortedIndex),x.lastIndexOf=l(-1,x.findLastIndex),x.range=function(e,n,t){null==n&&(n=e||0,e=0),t=t||1;for(var r=Math.max(Math.ceil((n-e)/t),0),o=Array(r),i=0;r>i;i++,e+=t)o[i]=e;return o};var L=function(e,n,t,r,o){if(!(r instanceof n))return e.apply(t,o);var i=S(e.prototype),l=e.apply(i,o);return x.isObject(l)?l:i};x.bind=function(e,n){if(_&&e.bind===_)return _.apply(e,v.call(arguments,1));if(!x.isFunction(e))throw new TypeError("Bind must be called on a function");var t=v.call(arguments,2),r=function(){return L(e,r,n,this,t.concat(v.call(arguments)))};return r},x.partial=function(e){var n=v.call(arguments,1),t=function(){for(var r=0,o=n.length,i=Array(o),l=0;o>l;l++)i[l]=n[l]===x?arguments[r++]:n[l];for(;r<arguments.length;)i.push(arguments[r++]);return L(e,t,this,this,i)};return t},x.bindAll=function(e){var n,t,r=arguments.length;if(1>=r)throw new Error("bindAll must be passed function names");for(n=1;r>n;n++)t=arguments[n],e[t]=x.bind(e[t],e);return e},x.memoize=function(e,n){var t=function(r){var o=t.cache,i=""+(n?n.apply(this,arguments):r);return x.has(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return t.cache={},t},x.delay=function(e,n){var t=v.call(arguments,2);return setTimeout(function(){return e.apply(null,t)},n)},x.defer=x.partial(x.delay,x,1),x.throttle=function(e,n,t){var r,o,i,l=null,s=0;t||(t={});var a=function(){s=t.leading===!1?0:x.now(),l=null,i=e.apply(r,o),l||(r=o=null)};return function(){var u=x.now();s||t.leading!==!1||(s=u);var f=n-(u-s);return r=this,o=arguments,0>=f||f>n?(l&&(clearTimeout(l),l=null),s=u,i=e.apply(r,o),l||(r=o=null)):l||t.trailing===!1||(l=setTimeout(a,f)),i}},x.debounce=function(e,n,t){var r,o,i,l,s,a=function(){var u=x.now()-l;n>u&&u>=0?r=setTimeout(a,n-u):(r=null,t||(s=e.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,l=x.now();var u=t&&!r;return r||(r=setTimeout(a,n)),u&&(s=e.apply(i,o),i=o=null),s}},x.wrap=function(e,n){return x.partial(n,e)},x.negate=function(e){return function(){return!e.apply(this,arguments)}},x.compose=function(){var e=arguments,n=e.length-1;return function(){for(var t=n,r=e[n].apply(this,arguments);t--;)r=e[t].call(this,r);return r}},x.after=function(e,n){return function(){return--e<1?n.apply(this,arguments):void 0}},x.before=function(e,n){var t;return function(){return--e>0&&(t=n.apply(this,arguments)),1>=e&&(n=null),t}},x.once=x.partial(x.before,2);var A=!{toString:null}.propertyIsEnumerable("toString"),T=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];x.keys=function(e){if(!x.isObject(e))return[];if(y)return y(e);var n=[];for(var t in e)x.has(e,t)&&n.push(t);return A&&s(e,n),n},x.allKeys=function(e){if(!x.isObject(e))return[];var n=[];for(var t in e)n.push(t);return A&&s(e,n),n},x.values=function(e){for(var n=x.keys(e),t=n.length,r=Array(t),o=0;t>o;o++)r[o]=e[n[o]];return r},x.mapObject=function(e,n,t){n=V(n,t);for(var r,o=x.keys(e),i=o.length,l={},s=0;i>s;s++)r=o[s],l[r]=n(e[r],r,e);return l},x.pairs=function(e){for(var n=x.keys(e),t=n.length,r=Array(t),o=0;t>o;o++)r[o]=[n[o],e[n[o]]];return r},x.invert=function(e){for(var n={},t=x.keys(e),r=0,o=t.length;o>r;r++)n[e[t[r]]]=t[r];return n},x.functions=x.methods=function(e){var n=[];for(var t in e)x.isFunction(e[t])&&n.push(t);return n.sort()},x.extend=k(x.allKeys),x.extendOwn=x.assign=k(x.keys),x.findKey=function(e,n,t){n=V(n,t);for(var r,o=x.keys(e),i=0,l=o.length;l>i;i++)if(r=o[i],n(e[r],r,e))return r},x.pick=function(e,n,t){var r,o,i={},l=e;if(null==l)return i;x.isFunction(n)?(o=x.allKeys(l),r=E(n,t)):(o=C(arguments,!1,!1,1),r=function(e,n,t){return n in t},l=Object(l));for(var s=0,a=o.length;a>s;s++){var u=o[s],f=l[u];r(f,u,l)&&(i[u]=f)}return i},x.omit=function(e,n,t){if(x.isFunction(n))n=x.negate(n);else{var r=x.map(C(arguments,!1,!1,1),String);n=function(e,n){return!x.contains(r,n)}}return x.pick(e,n,t)},x.defaults=k(x.allKeys,!0),x.create=function(e,n){var t=S(e);return n&&x.extendOwn(t,n),t},x.clone=function(e){return x.isObject(e)?x.isArray(e)?e.slice():x.extend({},e):e},x.tap=function(e,n){return n(e),e},x.isMatch=function(e,n){var t=x.keys(n),r=t.length;if(null==e)return!r;for(var o=Object(e),i=0;r>i;i++){var l=t[i];if(n[l]!==o[l]||!(l in o))return!1}return!0};var F=function(e,n,t,r){if(e===n)return 0!==e||1/e===1/n;if(null==e||null==n)return e===n;e instanceof x&&(e=e._wrapped),n instanceof x&&(n=n._wrapped);var o=g.call(e);if(o!==g.call(n))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!==+e?+n!==+n:0===+e?1/+e===1/n:+e===+n;case"[object Date]":case"[object Boolean]":return+e===+n}var i="[object Array]"===o;if(!i){if("object"!=typeof e||"object"!=typeof n)return!1;var l=e.constructor,s=n.constructor;if(l!==s&&!(x.isFunction(l)&&l instanceof l&&x.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in n)return!1}t=t||[],r=r||[];for(var a=t.length;a--;)if(t[a]===e)return r[a]===n;if(t.push(e),r.push(n),i){if(a=e.length,a!==n.length)return!1;for(;a--;)if(!F(e[a],n[a],t,r))return!1}else{var u,f=x.keys(e);if(a=f.length,x.keys(n).length!==a)return!1;for(;a--;)if(u=f[a],!x.has(n,u)||!F(e[u],n[u],t,r))return!1}return t.pop(),r.pop(),!0};x.isEqual=function(e,n){return F(e,n)},x.isEmpty=function(e){return null==e?!0:j(e)&&(x.isArray(e)||x.isString(e)||x.isArguments(e))?0===e.length:0===x.keys(e).length},x.isElement=function(e){return!(!e||1!==e.nodeType)},x.isArray=m||function(e){return"[object Array]"===g.call(e)},x.isObject=function(e){var n=typeof e;return"function"===n||"object"===n&&!!e},x.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){x["is"+e]=function(n){return g.call(n)==="[object "+e+"]"}}),x.isArguments(arguments)||(x.isArguments=function(e){return x.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(x.isFunction=function(e){return"function"==typeof e||!1}),x.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},x.isNaN=function(e){return x.isNumber(e)&&e!==+e},x.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"===g.call(e)},x.isNull=function(e){return null===e},x.isUndefined=function(e){return void 0===e},x.has=function(e,n){return null!=e&&h.call(e,n)},x.noConflict=function(){return a._=u,this},x.identity=function(e){return e},x.constant=function(e){return function(){return e}},x.noop=function(){},x.property=I,x.propertyOf=function(e){return null==e?function(){}:function(n){return e[n]}},x.matcher=x.matches=function(e){return e=x.extendOwn({},e),function(n){return x.isMatch(n,e)}},x.times=function(e,n,t){var r=Array(Math.max(0,e));n=E(n,t,1);for(var o=0;e>o;o++)r[o]=n(o);return r},x.random=function(e,n){return null==n&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))},x.now=Date.now||function(){return(new Date).getTime()};var z={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},R=x.invert(z),N=function(e){var n=function(n){return e[n]},t="(?:"+x.keys(e).join("|")+")",r=RegExp(t),o=RegExp(t,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,n):e}};x.escape=N(z),x.unescape=N(R),x.result=function(e,n,t){var r=null==e?void 0:e[n];return void 0===r&&(r=t),x.isFunction(r)?r.call(e):r};var W=0;x.uniqueId=function(e){var n=++W+"";return e?e+n:n},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var B=/(.)^/,D={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\u2028|\u2029/g,P=function(e){return"\\"+D[e]};x.template=function(e,n,t){!n&&t&&(n=t),n=x.defaults({},n,x.templateSettings);var r=RegExp([(n.escape||B).source,(n.interpolate||B).source,(n.evaluate||B).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,function(n,t,r,l,s){return i+=e.slice(o,s).replace(q,P),o=s+n.length,t?i+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":l&&(i+="';\n"+l+"\n__p+='"),n}),i+="';\n",n.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var l=new Function(n.variable||"obj","_",i)}catch(s){throw s.source=i,s}var a=function(e){return l.call(this,e,x)},u=n.variable||"obj";return a.source="function("+u+"){\n"+i+"}",a},x.chain=function(e){var n=x(e);return n._chain=!0,n};var H=function(e,n){return e._chain?x(n).chain():n};x.mixin=function(e){x.each(x.functions(e),function(n){var t=x[n]=e[n];x.prototype[n]=function(){var e=[this._wrapped];return d.apply(e,arguments),H(this,t.apply(x,e))}})},x.mixin(x),x.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=f[e];x.prototype[e]=function(){var t=this._wrapped;return n.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],H(this,t)}}),x.each(["concat","join","slice"],function(e){var n=f[e];x.prototype[e]=function(){return H(this,n.apply(this._wrapped,arguments))}}),x.prototype.value=function(){return this._wrapped},x.prototype.valueOf=x.prototype.toJSON=x.prototype.value,x.prototype.toString=function(){return""+this._wrapped},r=[],o=function(){return x}.apply(n,r),!(void 0!==o&&(e.exports=o))}).call(this)}]),function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(n,t,r){try{e.internals["lib/createFilterer"]=r(1)}catch(o){console.log("Error bundling package lib/createFilterer!"),console.error(o),e.reportError(o)}try{e.internals["lib/getType"]=r(2)}catch(o){console.log("Error bundling package lib/getType!"),console.error(o),e.reportError(o)}try{e.internals["lib/lens"]=r(3)}catch(o){console.log("Error bundling package lib/lens!"),console.error(o),e.reportError(o)}try{e.internals["lib/uid"]=r(4)}catch(o){console.log("Error bundling package lib/uid!"),console.error(o),e.reportError(o)}},function(n,t){!function(){e.file("lib/createFilterer.js",function(e){function t(e,n){n||(n={});var t={};return function(o){var i;if(!t[o])for(var l=o.length-1;l>0;l-=1)if(i=o.substr(0,l),t[i]){t[o]=r(t[i],o,n);break}return t[o]||(t[o]=r(e,o,n)),t[o]}}function r(e,n,t){return a(e).reduce(function(a,u){var f,c=e[u];return i(c)?(o(n,u,t)||o(n,c,t))&&(a[u]=c):o(n,u,t)?a[u]=c:(f=r(c,n,t),isEmpty(f)||s(a,l(u,f))),a},{})}function o(e,n,t){return t.ignoreCase?(e=String(e).toLowerCase(),n&&-1!==String(n).toLowerCase().indexOf(e)):n&&-1!==String(n).indexOf(e)}function i(e){var n=getType(e);return"Object"!==n&&"Array"!==n}function l(e,n){var t={};return t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t;var s=Object.assign,a=Object.keys;n.exports=e["default"]})}()},function(n,t){!function(){e.file("lib/getType.js",function(e){function t(e){return Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t,n.exports=e["default"]})}()},function(n,t){!function(){e.file("lib/lens.js",function(e){function t(e,n){var i=n.split(o),l=i.shift();if(!l)return e;var s=getType(e);return"Array"===s&&e[r(l)]?t(e[r(l)],i.join(o)):"Object"===s&&e[l]?t(e[l],i.join(o)):void 0}function r(e){return parseInt(e,10)}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t;var o=".";n.exports=e["default"]})}()},function(n,t){!function(){e.file("lib/uid.js",function(e){function t(){return r++}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t;var r=Math.ceil(10*Math.random());n.exports=e["default"]})}()}]),!function(){e.file("main.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}var r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o=require("mouse-event-offset"),i=t(o);e.staticStyles("Main",{$:"#_flintdevtools .ViewMain"},{$:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:2147483647}}),e.view("Main",function(n,t,r){var o=window.__isDevingDevTools,i=o||"?inspect"==window.location.search;n.render(function(){return n.el(["link",1],{rel:"stylesheet",property:"stylesheet",href:"/__/tools/static/tools.css"})}),n.render(function(){return e.iff(!o)&&n.el(["link",2],{"if":!o,rel:"stylesheet",property:"stylesheet",href:"/__/tools/styles.css"})}),n.render(function(){return n.el(["Errors",1],null)}),n.render(function(){return n.el(["Installer",1],null)}),n.render(function(){return e.iff(i)&&n.el(["Inspector",1],{"if":i})}),n.render(function(){return e.iff(o)&&n.el(["Name",1],{"if":o})}),n.render(function(){return e.iff(o)&&n.el(["Counter",1],{"if":o})}),n.render(function(){return e.iff(o)&&n.el(["Circles",1],{"if":o})}),r.$=function(e,n){return{position:"fixed",pointerEvents:o?"auto":"none",top:0,left:0,right:0,bottom:0,zIndex:2147483647}}}),e.view("Counter",function(e,n,t){var r=0;e.render(function(){return e.el(["h1",1],null,"count is ",r)}),e.render(function(){return e.el(["button",1],{onClick:function(){return e.set("count",r++,r,!0)}},"up")}),e.render(function(){return e.el(["button",2],{onClick:function(){return e.set("count",r--,r,!0)}},"down")})}),e.view("Deep",function(e,n,t){var r={name:"nick",tools:["js","juggling balls","coffee"]};e.render(function(){return e.el(["h1",1],null,"deep")}),e.render(function(){return e.el(["h2",1],null,JSON.stringify(r))})}),e.view("Name",function(e,n,t){var r="nick",o="cammarata";e.render(function(){return e.el(["h2",1],null,"name is ",r," ",o)}),e.render(function(){return e.el(["input",1],{__flintValue:r,__flintOnChange:function(n){e.set("first",r=n.target.value)}})}),e.render(function(){return e.el(["input",2],{__flintValue:o,__flintOnChange:function(n){e.set("last",o=n.target.value)}})}),e.render(function(){return e.el(["button",1],{onClick:function(){e.set("first",r="nate"),e.set("last",o="wienert")}},"nateify")})}),e.staticStyles("Circles",{$circles:"#_flintdevtools .ViewCircles"},{$circles:{position:"relative",background:"#eee",height:400,width:400}}),e.view("Circles",function(n,t,r){function o(e){n.set("coords",l.push((0,i["default"])(e)),l,!0)}var l=[[200,200]];n.render(function(){return n.el(["circles",1],{onClick:o},e.range(l).map(function(e,t){return n.el(["Circle",1,e,t],null)}))})}),e.view("Circle",function(e,n,t){var o=function(){return Math.round(255*Math.random())},i={background:[o(),o(),o()],position:"absolute",top:e.props.top,left:e.props.left,width:118,height:29,borderRadius:27},l=function(e){return r({},i,{transform:{scale:e}})};e.render(function(){return e.el(["circle",1],{style:l(1)})})})})}(),!function(){e.file("close.js",function(n){e.staticStyles("Close",{$:"#_flintdevtools .ViewClose"},{$:{position:"absolute",right:0,top:0,display:"flex",justifyContent:"center",alignItems:"center",lineHeight:1,opacity:.3,cursor:"pointer"}}),e.view("Close",function(e,n,t){e.render(function(){return e.el(["close",1],{onClick:e.props.onClick},"x")}),t.$=function(n,t){return{position:"absolute",right:0,top:0,fontSize:e.props.fontSize||16,width:e.props.size||50,height:e.props.size||50,display:"flex",justifyContent:"center",alignItems:"center",lineHeight:1,opacity:.3,cursor:"pointer",":hover":{opacity:1}}}})})}(),!function(){e.file("debounce.js",function(n){var t=function(e,n){return e+n},r=300,o=800,i=5e3,l=1e4,s=1e3;e.view("Debounce",function(e,n,a){var u=void 0,f=void 0,c=void 0,p=void 0,d=void 0,v=void 0,g=!1,h=[];e.pause(),n.props(function(){function n(){e.props.onUpdate&&e.props.onUpdate(),e.update()}if(e.props.force)return n();if(!e.props.showKey||e.props.showKey!=u){e.set("showKey",u=e.props.showKey),e.set("delay",p=e.props.delay||r),e.set("curDelay",d=d||p);var a=Date.now(),m=c?a-c:i;e.set("lastTime",c=a),e.set("lastFew",h.unshift(m),h,!0),h.length>3&&e.set("lastFew",h.pop(),h,!0),m>l?e.set("lastFew",h=[]):3==h.length&&(e.set("avgDiff",v=h.reduce(t,0)/h.length),e.set("isAutoSaving",g=s>v),e.set("curDelay",d=g?o:p)),clearTimeout(f),e.set("timeout",f=setTimeout(n,d))}})})})}(),!function(){e.file("errors.js",function(n){function t(e){if(e.file&&(e.file=e.file.replace(new RegExp(".*"+window.location.origin+"(/[_]+/)?"),"")),e.file&&e.file.indexOf("internals.js")>=0)if(e.message&&0==e.message.indexOf("Cannot find module")){var n=e.message.match(/(fs|path)/);n&&n.length&&(e.file="imported module:",e.message="Cannot import node-only module: "+n[0])}else e.message="Error in a locally required file. "+e.message;return e.message&&(e.niceMessage=e.message.replace(/Uncaught .*Error:\s*/,"")),e}function r(e){var n=e.msg,t=e.name;return n&&(n=n.replace(/(npm WARN.*\n|ERR\!)/g,"").replace(/npm argv.*\n/g,"").replace(/npm node v.*\n/g,"").replace(/npm npm.*\n/g,"").replace(/npm code.*\n/g,"").replace(/npm peerinvalid /g,"").replace(/npm 404 /g,"")),{msg:n,name:t}}var o=window._DT,i=function(e,n){return[e.substring(0,n),e.substring(n,n+1),e.substring(n+1)]},l=function(e){return a(c(p(e)))},s=function(e){return e?e.replace(/.*\.js\:/,"").replace(/\([0-9]+\:[0-9]+\)/,"").replace(/Line [0-9]+\:\s*/,""):""},a=function(e){return e.niceMessage=s(e.message,e.fileName),e},u=/\>?\s*([0-9]*)\s*\|(.*)/g,f=/\s*\|\s*\^\s*$/g,c=function(e){return e?(e.stack&&!function(){e.fullStack=["","",""];var n=0;e.stack.split("\n").forEach(function(t){if(!f.test(t)&&u.test(t)){var r=">"===t[0];r&&(n=1),r||1!==n||(n=2);var o=t.replace(u,"$1$2").replace(/^(\s*[0-9]+\s*)[;]/,"$1 ");e.fullStack[n]+=o+"\n"}})}(),e):void 0},p=function(e){return e?(e.stack&&e.stack.split("\n").map(function(n){if(">"===n[0]){var t=n;if(!t)return;t=t.replace(/\>\s*[0-9]+\s*\|\s*/,""),t=s(t);var r=e.loc.column-4;e.niceStack=i(t,r)}}),e):void 0};e.view("Errors",function(e,n,i){function s(){f?e.set("error",u=l(f)):c?e.set("error",u=t(c)):e.set("error",u=null),e.update()}function a(){e.set("error",u=null),e.set("compileError",f=null),e.set("runtimeError",c=null),e.set("npmError",p=null),e.update()}e.pause();var u=null,f=null,c=null,p=null;o.on("compile:error",function(){e.set("compileError",f=o.data.error),s()}),o.on("runtime:error",function(){e.set("runtimeError",c=o.data),s()}),o.on("npm:error",function(){e.set("npmError",p=r(o.data.error)),e.update()}),o.on("runtime:success",function(){e.set("runtimeError",c=null),e.set("npmError",p=null),s()}),o.on("compile:success",function(){e.set("compileError",f=null),e.set("npmError",p=null),s()}),e.render(function(){return e.el(["ErrorMessage",1],{error:u,npmError:p,close:a})})});var d=0,v=function(e){return e&&e.replace(/[\?\)].*/,"");
},g=function(e){return e&&(e.line||e.loc&&e.loc.line)};e.staticStyles("ErrorMessage",{$bar:"#_flintdevtools bar.ErrorMessage, #_flintdevtools .ErrorMessage.bar, #_flintdevtools .ViewErrorMessage.bar, #_flintdevtools .ErrorMessage > .bar",$hasError:"#_flintdevtools hasError.ErrorMessage, #_flintdevtools .ErrorMessage.hasError, #_flintdevtools .ViewErrorMessage.hasError, #_flintdevtools .ErrorMessage > .hasError",$inner:"#_flintdevtools inner.ErrorMessage, #_flintdevtools .ErrorMessage.inner, #_flintdevtools .ViewErrorMessage.inner, #_flintdevtools .ErrorMessage > .inner",$top:"#_flintdevtools top.ErrorMessage, #_flintdevtools .ErrorMessage.top, #_flintdevtools .ViewErrorMessage.top, #_flintdevtools .ErrorMessage > .top",$where:"#_flintdevtools where.ErrorMessage, #_flintdevtools .ErrorMessage.where, #_flintdevtools .ViewErrorMessage.where, #_flintdevtools .ErrorMessage > .where",$line:"#_flintdevtools line.ErrorMessage, #_flintdevtools .ErrorMessage.line, #_flintdevtools .ViewErrorMessage.line, #_flintdevtools .ErrorMessage > .line",$flint:"#_flintdevtools flint.ErrorMessage, #_flintdevtools .ErrorMessage.flint, #_flintdevtools .ViewErrorMessage.flint, #_flintdevtools .ErrorMessage > .flint",$shortError:"#_flintdevtools shortError.ErrorMessage, #_flintdevtools .ErrorMessage.shortError, #_flintdevtools .ViewErrorMessage.shortError, #_flintdevtools .ErrorMessage > .shortError",$cur:"#_flintdevtools cur.ErrorMessage, #_flintdevtools .ErrorMessage.cur, #_flintdevtools .ViewErrorMessage.cur, #_flintdevtools .ErrorMessage > .cur",$errCol:"#_flintdevtools errCol.ErrorMessage, #_flintdevtools .ErrorMessage.errCol, #_flintdevtools .ViewErrorMessage.errCol, #_flintdevtools .ErrorMessage > .errCol",$ln:"#_flintdevtools ln.ErrorMessage, #_flintdevtools .ErrorMessage.ln, #_flintdevtools .ViewErrorMessage.ln, #_flintdevtools .ErrorMessage > .ln",$flintline:"#_flintdevtools flintline.ErrorMessage, #_flintdevtools .ErrorMessage.flintline, #_flintdevtools .ViewErrorMessage.flintline, #_flintdevtools .ErrorMessage > .flintline"},{$bar:{display:"block",position:"fixed",left:0,transition:"all 200ms ease-in",right:0,fontFamily:'-apple-system, "San Francisco", Roboto, "Segou UI", "Helvetica Neue", Helvetica, Arial, sans-serif',fontWeight:300,color:"#fff",fontSize:"14px",padding:2,pointerEvents:"all",overflow:"scroll",zIndex:2147483647,boxShadow:"0 -6px 12px rgba(0,0,0,0.06)"},$hasError:{bottom:0},$inner:{display:"block",maxHeight:200,overflowY:"scroll"},$top:{padding:8,display:"block"},$where:{display:"inline-block",pointerEvents:"all",fontWeight:300,color:"rgba(255,255,255,0.8)"},$line:{display:"inline-block",whiteSpace:"pre",pointerEvents:"all"},$flint:{display:"inline",fontWeight:700,color:"#fff"},$shortError:{display:"inline",color:"rgba(255,255,255,0.7)"},$cur:{background:"#fff"},$errCol:{display:"inline",borderBottom:"2px solid #f5d64c",padding:3,color:"#fff"},$ln:{},$flintline:{whiteSpace:"pre",pointerEvents:"all",fontWeight:"flint"}}),e.view("ErrorMessage",function(n,t,r){function o(){setTimeout(function(){var e=document.querySelectorAll(".__flintError");e.length&&[].forEach.call(e,function(e){e.className+=" active"})})}n.pause();var i=!1,l={},s=void 0,a=void 0,u=g(n.props.error),f=void 0;t.props(function(){f&&f(),n.set("npmError",s=n.props.npmError),n.set("hasError",i=!(!n.props.error&&!n.props.npmError)),n.set("error",l=n.props.error||l),n.set("line",u=g(l)),n.set("fullStack",a=null),n.update(),l&&n.set("clearDelay",f=t.delay(2500,function(){i&&l.fullStack&&(n.set("fullStack",a=l.fullStack),n.update())}))}),n.render(function(){return n.el(["Debounce",1],{delay:1e3,force:i===!1,showKey:a||l&&l.message,onUpdate:o},n.el(["bar",1],{className:{hasError:i}},n.el(["Close",1],{onClick:n.props.close,size:35}),e.iff(s)&&n.el(["inner",1],{"if":s},n.el(["where",1],null,n.el(["flint",1],null,s.name))," ",s.msg),n.el(["inner",2],null,n.el(["top",1],null,n.el(["where",2],null,n.el(["span",1],null,"In ",n.el(["flint",2],null,v(l.file))),n.el(["line",1],null,u?" line":""," ",e.iff(u)&&n.el(["flint",3],{"if":u},u-d)))," ",n.el(["shortError",1],null,(l.niceMessage||l.message||"").trim(),e.iff(l.niceStack)&&n.el(["niceStack",1],{"if":l.niceStack},l.niceStack[0],n.el(["errCol",1],null,l.niceStack[1]),l.niceStack[2])),e.iff(l.help)&&n.el(["help",1],{"if":l.help},l.help)),e.iff(a)&&n.el(["fullStack",1],{"if":a},n.el(["ln",1],null,""+a[0]),n.el(["ln",2],{className:"cur"},""+a[1]),n.el(["ln",3],null,""+a[2])))))});var c="#cd423e";r.bar=function(e,n){return{display:"block",background:c,position:"fixed",left:0,bottom:-100,transition:"all 200ms ease-in",right:0,fontFamily:'-apple-system, "San Francisco", Roboto, "Segou UI", "Helvetica Neue", Helvetica, Arial, sans-serif',fontWeight:300,color:"#fff",fontSize:"14px",padding:2,pointerEvents:"all",overflow:"scroll",zIndex:2147483647,boxShadow:"0 -6px 12px rgba(0,0,0,0.06)"}};var p={color:"rgba(255,255,255,0.85)",display:"inline",fontFamily:"Meslo, Menlo, Monaco, monospace",padding:[0,5]};r.niceStack=function(e,n){return p},r.errCol=function(e,n){return{display:"inline",borderBottom:"2px solid #f5d64c",margin:-3,padding:3,color:"#fff"}},r.fullStack=function(e,n){return[p,{maxHeight:a?600:0,padding:a?[10,0]:0,transition:"maxHeight ease-in 300ms",color:"rgba(0,0,0,0.85)",background:"rgba(255,255,255,0.9)",display:"block",whiteSpace:"pre",fontSize:14,borderRadius:3,margin:2}]},r.ln=function(e,n){return{padding:[0,20]}}}),e.staticStyles("ErrorIcon",{$svg:"#_flintdevtools svg.ErrorIcon, #_flintdevtools .ErrorIcon.svg, #_flintdevtools .ViewErrorIcon.svg, #_flintdevtools .ErrorIcon > .svg"},{$svg:{width:19,fill:"red",marginLeft:3,marginRight:6,opacity:.9}}),e.view("ErrorIcon",function(e,n,t){e.render(function(){return e.el(["svg",1],{viewBox:"0 0 27.963 27.963"},e.el(["path",1],{d:"M13.983,0C6.261,0,0.001,6.259,0.001,13.979c0,7.724,6.26,13.984,13.982,13.984s13.98-6.261,13.98-13.984 C27.963,6.259,21.705,0,13.983,0z M13.983,26.531c-6.933,0-12.55-5.62-12.55-12.553c0-6.93,5.617-12.548,12.55-12.548 c6.931,0,12.549,5.618,12.549,12.548C26.531,20.911,20.913,26.531,13.983,26.531z"}),e.el(["polygon",1],{points:"15.579,17.158 16.191,4.579 11.804,4.579 12.414,17.158"}),e.el(["path",2],{d:"M13.998,18.546c-1.471,0-2.5,1.029-2.5,2.526c0,1.443,0.999,2.528,2.444,2.528h0.056c1.499,0,2.469-1.085,2.469-2.528 C16.441,19.575,15.468,18.546,13.998,18.546z"}))}),t.svg=function(e,n){return{width:19,fill:"red",margin:-4,marginLeft:3,marginRight:6,opacity:.9}}})})}(),!function(){e.file("inspector.js",function(n){function t(e){return Array.isArray(e)?e:Array.from(e)}function r(e){var n=e.getBoundingClientRect(),t=window.innerWidth,r=window.innerHeight,o=h(n.right-n.left),i=h(n.bottom-n.top),l=1;o>=t&&i>=r&&(l=.2),m.setAttribute("style","\n top: "+h(n.top)+"px;\n left: "+h(n.left)+"px;\n width: "+o+"px;\n height: "+i+"px;\n opacity: "+l+";\n ")}function o(){m.setAttribute("style","")}function i(e){if(!e||!e.getAttribute)return null;var n=e.__flintID;return n?(r(e),n):i(e.parentNode)}function l(e,n){return e.filter(function(e){return e.path==n}).length>0}function s(e){return e.filter(function(e){return!e.temp}).map(function(e){return c({},e,{highlight:!1})})}function a(e,n){return[{path:n,highlight:!1,temp:!0}].concat(e)}function u(e,n){return e.map(function(e){return e.path==n&&(e.highlight=!0),e})}function f(e,n){return l(e,n)?e.map(function(e){return e.path==n&&(e.temp=!0),e}):[].concat(e,[{temp:!1,highlight:!1,closing:!1,path:n}])}var c=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},p=function(e){var n=t(e),r=(n[0],n.slice(1));return r},d=function(e){return function(n){return"Alt"===n.keyIdentifier&&e()}},v=function(e){return function(n){return 27===n.keyCode&&e()}},g=window._Flint,h=Math.round,m=void 0;e.staticStyles("Inspector",{$:"#_flintdevtools .ViewInspector"},{$:{position:"fixed",top:0,right:0,padding:2}}),e.view("Inspector",function(n,t,r){function c(e){g.isInspecting=!0;var t=i(e);n.set("views",S=s(S)),n.set("views",S=l(S,t)?u(S,t):a(S,t))}function h(e){var t=e.target;n.set("lastTarget",V=t),k&&c(V)}function y(){S.length&&n.set("views",S=p(S))}function _(e){return n.set("views",S=f(s(S),i(e.target))),!1}function w(){c(V),n.set("hudActive",k=!0),n.set("clickOff",x=t.click(window,_))}function b(){g.isInspecting=!1,n.set("hudActive",k=!1),o(),x(),n.set("views",S=s(S))}var x=void 0,E=void 0,V=void 0,k=!1,S=[];t.mount(function(){n.set("hoverOff",E=t.mousemove(window,h)),m||(m=document.createElement("div"),m.className="_flintHighlighter",document.body.appendChild(m))}),t.keydown(window,d(w)),t.keyup(window,d(b)),t.keyup(window,v(y)),n.render(function(){return e.range(S).map(function(e,t){return n.el(["Inspector.View",1,e,t],null)})})})})}(),!function(){e.file("modal.js",function(n){e.staticStyles("Modal",{$:"#_flintdevtools .ViewModal",$title:"#_flintdevtools title.Modal, #_flintdevtools .Modal.title, #_flintdevtools .ViewModal.title, #_flintdevtools .Modal > .title",$message:"#_flintdevtools message.Modal, #_flintdevtools .Modal.message, #_flintdevtools .ViewModal.message, #_flintdevtools .Modal > .message"},{$:{position:"fixed",right:0,minWidth:80,margin:20,background:"#fff",boxShadow:"0 0 10px rgba(0,0,0,0.1)",border:"2px solid #e80967",fontSize:14,transition:"all ease-in 200ms",textAlign:"center",borderRadius:6,pointerEvents:"auto"},$title:{color:"#222",fontWeight:500,fontSize:15},$message:{fontFamily:"-apple-system, 'Helvetica Nueue', Helvetica, Arial, sans-serif"}}),e.view("Modal",function(n,t,r){function o(){return n.set("open",s=n.props.open),l&&!n.props.title?n.update():(n.set("title",l=n.props.title),n.set("children",i=n.props.children),void n.update())}n.pause();var i=void 0,l=void 0,s=void 0;t.props(o),n.render(function(){return n.el(["modal",1],null,n.el(["Close",1],{size:25}),e.iff(l)&&n.el(["title",1],{"if":l},l),e.iff(i)&&n.el(["message",1],{"if":i},i))}),r.$=function(e,n){return{position:"fixed",top:s?0:-140,right:0,minWidth:80,padding:[10,10],margin:20,background:"#fff",boxShadow:"0 0 10px rgba(0,0,0,0.1)",border:"2px solid #e80967",fontSize:14,transition:"all ease-in 200ms",textAlign:"center",borderRadius:6,pointerEvents:"auto"}},r.title=function(e,n){return{color:"#222",fontWeight:500,fontSize:15,margin:[0,20]}}})})}(),!function(){e.file("inspector/highlighter.js",function(n){e.view("Highlighter",function(n,t,r){n.render(function(){return e.iff(!n.props.highlight||-1===n.props.string.indexOf(n.props.highlight))&&n.el(["name",1],{"if":!n.props.highlight||-1===n.props.string.indexOf(n.props.highlight)},n.props.string)}),n.render(function(){return e.iff(n.props.highlight)&&n.el(["span",1],{"if":n.props.highlight},e.range(n.props.string.split()).map(function(t,r){return n.el(["span",2,t,r],null,e.iff(r>0)&&n.el(["highlight",1,t,r],{"if":r>0},n.props.highlight),t)}))})})})}(),!function(){e.file("inspector/label.js",function(n){var t=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e};e.staticStyles("Label",{$input:"#_flintdevtools input.Label, #_flintdevtools .Label.input, #_flintdevtools .ViewLabel.input, #_flintdevtools .Label > .input",$focus:"#_flintdevtools focus.Label, #_flintdevtools .Label.focus, #_flintdevtools .ViewLabel.focus, #_flintdevtools .Label > .focus"},{$input:{position:"absolute",top:0,right:0,color:"#333",padding:1,width:140,outline:"none",border:"none",opacity:0,boxShadow:"1px 1px 2px rgba(0,0,0,0.4)"},$focus:{opacity:"1 !important"}}),e.view("Label",function(e,n,r){var o=void 0,i=void 0;n.props(function(){e.set("newVal",i=e.props.val)});var l=function(n){e.props.editable&&(e.set("focus",o=!0),n.stopPropagation(),n.target.select())},s=function(n){e.set("focus",o=!1)},a=function(n){e.set("newVal",i=n.target.value),"false"===i&&e.set("newVal",i=!1),"true"===i&&e.set("newVal",i=!0),e.props.onSet(i)},u=function(e){return e?{}:{tabIndex:5e3,disabled:!0}};e.render(function(){return e.el(["input",1],t({defaultValue:String(e.props.val),__flintValue:i,__flintOnChange:function(n){e.set("newVal",i=n.target.value)},className:{focus:o},size:Math.max(4,e.props.val&&e.props.val.length||0),spellCheck:!1,onMouseUp:l,onFocus:l,onEnter:s,onBlur:s,onChange:a},u(e.props.editable)))}),r.input=function(e,n){return{position:"absolute",top:0,left:-1,right:0,color:"#333",padding:1,width:140,outline:"none",border:"none",opacity:0,boxShadow:"1px 1px 2px rgba(0,0,0,0.4)"}}})})}(),!function(){e.file("inspector/leaf.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}var r=require("md5-o-matic"),o=t(r),i=require("./lib/getType"),l=t(i),s=require("ellipsize"),a=t(s),u=".root.",f=function(e,n){return-1!==e.indexOf(n)},c=function(e){return"Object"!==(0,l["default"])(e)&&"Array"!==(0,l["default"])(e)};e.staticStyles("Leaf",{$leaf:"#_flintdevtools .ViewLeaf",$helper:"#_flintdevtools helper.Leaf, #_flintdevtools .Leaf.helper, #_flintdevtools .ViewLeaf.helper, #_flintdevtools .Leaf > .helper",$boolean:"#_flintdevtools boolean.Leaf, #_flintdevtools .Leaf.boolean, #_flintdevtools .ViewLeaf.boolean, #_flintdevtools .Leaf > .boolean",$number:"#_flintdevtools number.Leaf, #_flintdevtools .Leaf.number, #_flintdevtools .ViewLeaf.number, #_flintdevtools .Leaf > .number",$string:"#_flintdevtools string.Leaf, #_flintdevtools .Leaf.string, #_flintdevtools .ViewLeaf.string, #_flintdevtools .Leaf > .string",$function:"#_flintdevtools function.Leaf, #_flintdevtools .Leaf.function, #_flintdevtools .ViewLeaf.function, #_flintdevtools .Leaf > .function",$colon:"#_flintdevtools colon.Leaf, #_flintdevtools .Leaf.colon, #_flintdevtools .ViewLeaf.colon, #_flintdevtools .Leaf > .colon",$name:"#_flintdevtools name.Leaf, #_flintdevtools .Leaf.name, #_flintdevtools .ViewLeaf.name, #_flintdevtools .Leaf > .name",$children:"#_flintdevtools children.Leaf, #_flintdevtools .Leaf.children, #_flintdevtools .ViewLeaf.children, #_flintdevtools .Leaf > .children",$type:"#_flintdevtools type.Leaf, #_flintdevtools .Leaf.type, #_flintdevtools .ViewLeaf.type, #_flintdevtools .Leaf > .type"},{$leaf:{fontSize:13},$helper:{color:"#ffff05"},$boolean:{color:"#32a3cd",fontWeight:700},$number:{color:"#b92222",marginTop:2,fontWeight:500},$string:{color:"#698c17"},$function:{marginLeft:10,marginTop:2,color:"#962eba"},$colon:{opacity:.3,color:"#000"},$name:{color:"#ff2f2f",fontWeight:400},$children:{paddingLeft:10},$type:{opacity:.7,flexFlow:"row"}}),e.view("Leaf",function(n,t,r){function i(e){n.props.root||n.set("expanded",m=!m),n.update(),n.props.onClick&&n.props.onClick(d),e.stopPropagation()}n.pause();var s=void 0,p=void 0,d=void 0,v=void 0,g=void 0,h=void 0,m=void 0,y=[],_="",w=function(){return n.props.root||!_&&n.props.isExpanded(p,d)||!f(p,_)&&"function"==typeof n.props.getOriginal};t.props(function(){n.set("rootPath",s=n.props.prefix+"."+n.props.label),n.set("key",g=n.props.label.toString()),n.set("path",p=s.substr(u.length)),n.set("data",d=n.props.data),d&&n.set("dataKeys",y=Object.keys(d).sort()),void 0===d&&n.set("data",d=n.props.data),void 0===d&&n.set("data",d={}),n.set("type",v=(0,l["default"])(d)),n.set("query",_=n.props.query||""),n.props.root?n.set("expanded",m=!0):_&&n.set("expanded",m=!f(n.props.label,_)),n.props.query&&!_&&n.set("expanded",m=w()),n.update()});var b=function(e,n){return c(n)?e+":"+(0,o["default"])(String(e)):e+"["+(0,l["default"])(n)+"]"},x=function(e){return n.el(["Highlighter",1],{string:e,highlight:_})},E=function(e){return e.toString().replace(/((\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s))/gm,"").match(/^function\s*[^\(]*\(\s*([^\)]*)\)/m)[1].split(/,/)},V=function(e,t,r,o){return n.el(["Label",1],{val:t,editable:o,onSet:function(e){return n.props.onSet([r,e])}})};n.render(function(){return n.el(["leaf",1],{className:s},e.iff(!n.props.root)&&n.el(["label",1],{"if":!n.props.root,htmlFor:n.props.id,onClick:i},n.el(["key",1],null,n.el(["name",1],null,x(g)),V("key",g,g,!1)),n.el(["colon",1],null,":"),e.iff("Function"==v)&&n.el(["expand",1],{className:"function","if":"Function"==v},n.el(["i",1],null,"fn (",E(d).join(", "),")")),e.iff("Array"==v)&&n.el(["expand",2],{"if":"Array"==v},n.el(["type",1],null,"Array[",d.length,"]")),e.iff("Object"==v)&&n.el(["expand",3],{"if":"Object"==v},n.el(["type",2],null,"{} "+y.length+" keys")),e.iff(-1==["Array","Object","Function"].indexOf(v))&&n.el(["value",1],{"if":-1==["Array","Object","Function"].indexOf(v),className:v.toLowerCase()},e.iff("string"==v.toLowerCase())&&n.el(["str",1],{"if":"string"==v.toLowerCase()},x((0,a["default"])(String(d),25))),e.iff("string"!=v.toLowerCase())&&n.el(["else",1],{"if":"string"!=v.toLowerCase()},x(String(d))),V("val",d,g,n.props.editable))),n.el(["children",1],null,e.iff(m&&!c(d))&&e.range(y).map(function(t,r){return n.el(["child",1,t,r],null,e.iff(-1==t.indexOf("__"))&&n.el(["Leaf",1,t,r],{"if":-1==t.indexOf("__"),key:b(t,d[t]),onSet:function(){for(var e,t=arguments.length,r=Array(t),o=0;t>o;o++)r[o]=arguments[o];return(e=n.props).onSet.apply(e,[g].concat(r))},data:d[t],editable:n.props.editable,label:t,prefix:s,onClick:n.props.onClick,id:n.props.id,query:_,getOriginal:h?null:n.props.getOriginal,isExpanded:n.props.isExpanded}))})))}),r.leaf=function(e,n){return{padding:[1,0],fontSize:13}};var k={flexFlow:"row"};r.label=function(e,n){return[k,{position:"relative",color:"rgba(0,0,0,0.8)",opacity:1,alignItems:"center"}]},r.key=function(e,n){return[k,{color:"rgba(0,0,0,0.9)",margin:[0],fontWeight:"bold"}]},r.name=function(e,n){return{color:"#ff2f2f",fontWeight:400,margin:["auto",0]}},r.expand=function(e,n){return[k,{}]},r.value=function(e,n){return[k,{position:"relative",margin:[0,4]}]},r.type=function(e,n){return{margin:[1,0,0,8],opacity:.7,flexFlow:"row"}}})})}(),!function(){e.file("inspector/section.js",function(n){e.staticStyles("Inspector.Section",{$:"#_flintdevtools .ViewInspector-Section",$body:"#_flintdevtools body.Inspector-Section, #_flintdevtools .Inspector-Section.body, #_flintdevtools .ViewInspector-Section.body, #_flintdevtools .Inspector-Section > .body"},{$:{},$body:{}}),e.view("Inspector.Section",function(n,t,r){var o=!0;n.render(function(){return n.el(["Inspector.Title",1],{onToggle:function(e){return n.set("open",o=e)}},n.props.title)}),n.render(function(){return e.iff(o)&&n.el(["body",1],{"if":o},n.props.children)}),r.$=function(e,n){return{padding:[5,0]}},r.body=function(e,n){return{padding:[0,12]}}})})}(),!function(){e.file("inspector/title.js",function(n){e.staticStyles("Inspector.Title",{$title:"#_flintdevtools title.Inspector-Title, #_flintdevtools .Inspector-Title.title, #_flintdevtools .ViewInspector-Title.title, #_flintdevtools .Inspector-Title > .title",$closed:"#_flintdevtools closed.Inspector-Title, #_flintdevtools .Inspector-Title.closed, #_flintdevtools .ViewInspector-Title.closed, #_flintdevtools .Inspector-Title > .closed",$inner:"#_flintdevtools inner.Inspector-Title, #_flintdevtools .Inspector-Title.inner, #_flintdevtools .ViewInspector-Title.inner, #_flintdevtools .Inspector-Title > .inner"},{$title:{fontWeight:300,borderBottom:"1px solid #eee",height:10,color:"#999",flexFlow:"row"},$closed:{marginTop:1},$inner:{background:"#fff"}}),e.view("Inspector.Title",function(e,n,t){function r(){e.props.onToggle&&(e.set("open",o=!o),e.props.onToggle(o))}var o=!0;e.render(function(){return e.el(["title",1],{onClick:r},e.el(["inner",1],null,e.props.children))}),t.title=function(e,n){return{fontWeight:300,borderBottom:"1px solid #eee",height:10,margin:[5,0,8],color:"#999",flexFlow:"row"}},t.closed=function(e,n){return{transform:{scale:.8},marginTop:1}},t.inner=function(e,n){return{padding:[4,10],background:"#fff",margin:[-2,"auto"]}}})})}(),!function(){e.file("inspector/tree.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}var r=require("./lib/lens"),o=t(r);e.staticStyles("Tree",{$:"#_flintdevtools .ViewTree"},{$:{pointerEvents:"auto"}}),e.view("Tree",function(e,n,t){var r="",i=function(n){return(0,o["default"])(e.props.data,n)};e.render(function(){return e.el(["Leaf",1],{data:e.props.data,onClick:e.props.onClick,id:e.props.id,getOriginal:i,query:r,label:"root",editable:e.props.editable,root:!0,validateQuery:function(e){return e.length>=2},isExpanded:e.props.isExpanded||function(){return!1},interactiveLabel:e.props.interactiveLabel,onSet:function(){for(var n=arguments.length,t=Array(n),r=0;n>r;r++)t[r]=arguments[r];return e.props.onSet(t)}})}),t.$=function(e,n){return{pointerEvents:"auto",marginLeft:-10}}})})}(),!function(){e.file("inspector/view.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}function r(e){var n=e.split(",");return n[n.length-1].split(".")[0].split("-")[0]}function o(e){var n=["if","repeat","style","yield","__flint"];return s["default"].omit.apply(null,[e].concat(n))}var i=require("clone"),l=(t(i),require("underscore")),s=t(l);e.staticStyles("Inspector.View",{$view:"#_flintdevtools view.Inspector-View, #_flintdevtools .Inspector-View.view, #_flintdevtools .ViewInspector-View.view, #_flintdevtools .Inspector-View > .view",$top:"#_flintdevtools top.Inspector-View, #_flintdevtools .Inspector-View.top, #_flintdevtools .ViewInspector-View.top, #_flintdevtools .Inspector-View > .top",$active:"#_flintdevtools active.Inspector-View, #_flintdevtools .Inspector-View.active, #_flintdevtools .ViewInspector-View.active, #_flintdevtools .Inspector-View > .active",$highlight:"#_flintdevtools highlight.Inspector-View, #_flintdevtools .Inspector-View.highlight, #_flintdevtools .ViewInspector-View.highlight, #_flintdevtools .Inspector-View > .highlight",$Close:"#_flintdevtools .ViewInspector-View .ViewClose",$name:"#_flintdevtools name.Inspector-View, #_flintdevtools .Inspector-View.name, #_flintdevtools .ViewInspector-View.name, #_flintdevtools .Inspector-View > .name",$edit:"#_flintdevtools edit.Inspector-View, #_flintdevtools .Inspector-View.edit, #_flintdevtools .ViewInspector-View.edit, #_flintdevtools .Inspector-View > .edit",$expanded:"#_flintdevtools expanded.Inspector-View, #_flintdevtools .Inspector-View.expanded, #_flintdevtools .ViewInspector-View.expanded, #_flintdevtools .Inspector-View > .expanded",$input:"#_flintdevtools input.Inspector-View, #_flintdevtools .Inspector-View.input, #_flintdevtools .ViewInspector-View.input, #_flintdevtools .Inspector-View > .input",$title:"#_flintdevtools title.Inspector-View, #_flintdevtools .Inspector-View.title, #_flintdevtools .ViewInspector-View.title, #_flintdevtools .Inspector-View > .title",$props:"#_flintdevtools props.Inspector-View, #_flintdevtools .Inspector-View.props, #_flintdevtools .ViewInspector-View.props, #_flintdevtools .Inspector-View > .props"},{$view:{position:"relative",pointerEvents:"auto",margin:10,minWidth:220,fontSize:12,userSelect:"none",cursor:"default",background:"#fff",boxShadow:"0px 2px 16px rgba(0,0,0,0.2)",border:"1px solid #ccc",borderRadius:5,color:"#333",transition:"all ease-in 60ms",opacity:0},$top:{flexFlow:"row"},$active:{opacity:1},$highlight:{border:"2px solid #afb4e2"},$Close:{fontSize:16},$name:{fontWeight:400,color:"rgba(0,0,0,0.8)",fontSize:14},$edit:{fontSize:14,marginLeft:4,fontWeight:400,color:"rgba(24, 101, 227, 0.8)"},$expanded:{},$input:{borderRadius:100,border:"1px solid #ccc",width:"100%",color:"#333",fontSize:14},$title:{display:"none",color:"#333",fontWeight:200,fontSize:12},$props:{marginBottom:2}}),e.view("Inspector.View",function(n,t,i){function l(e){n.props.writeBack(u,e)}var s=window.Flint.inspect,a=void 0,u=void 0,f=void 0,c=void 0,p=!1,d={},v=null,g=null;t.delay(60,function(){n.set("active",p=!0)}),t.unmount(function(){delete window._Flint.inspector[n.props.path]}),t.props(function(){n.set("highlight",c=n.props.highlight),n.set("closing",f=n.props.closing),n.set("path",u=n.props.path),f===!0&&n.set("active",p=!1),u&&(n.set("name",a=r(u)),_Flint.inspector[n.props.path]||s(u,function(e,t,r){n.set("props",v=o(e||{})),n.set("state",d=t||{}),n.set("writeBack",g=r),n.update()}))});var h=function(e){return e&&Object.keys(e).length>0},m=function(){return _DT.messageEditor({type:"editView",view:a})};n.render(function(){return n.el(["view",1],{className:{active:p,highlight:c}},n.el(["Close",1],{onClick:n.props.onClose,fontSize:20,size:35}),n.el(["top",1],null,n.el(["name",1],null,a),n.el(["edit",1],{onClick:m},"edit")),e.iff(!h(v))&&n.el(["Inspector.Title",1],{"if":!h(v)},"No Props"),e.iff(h(v))&&n.el(["Inspector.Section",1],{title:"Props","if":h(v),className:"props"},n.el(["Tree",1],{editable:!1,data:v})),e.iff(!h(d))&&n.el(["Inspector.Title",2],{"if":!h(d)},"No State"),e.iff(h(d))&&n.el(["Inspector.Section",2],{title:"State","if":h(d)},n.el(["Tree",2],{editable:!0,onSet:l,data:d})))}),i.view=function(e,n){return{position:"relative",pointerEvents:"auto",margin:10,padding:[0,0,1],minWidth:220,fontSize:12,userSelect:"none",cursor:"default",background:"#fff",boxShadow:"0px 2px 16px rgba(0,0,0,0.2)",border:"1px solid #ccc",borderRadius:5,color:"#333",transition:"all ease-in 60ms",opacity:0,transform:{x:20}}},i.active=function(e,n){return{opacity:1,transform:{x:0}}},i.Close=function(e,n){return{top:-5,right:-5,fontSize:16}},i.name=function(e,n){return{fontWeight:400,color:"rgba(0,0,0,0.8)",padding:[8,8,0],margin:[0,0,-6],fontSize:14}},i.edit=function(e,n){return{padding:[8,8,0],fontSize:14,margin:[0,0,-6],marginLeft:4,fontWeight:400,color:"rgba(24, 101, 227, 0.8)"}},i.expanded=function(e,n){return{transform:{y:0}}},i.input=function(e,n){return{borderRadius:100,border:"1px solid #ccc",width:"100%",padding:[2,12],color:"#333",fontSize:14}},i.title=function(e,n){return{display:"none",color:"#333",fontWeight:200,fontSize:12,margin:[3,0]}}})})}(),!function(){e.file("npm/installer.js",function(n){var t=window._DT;e.view("Installer",function(n,r,o){var i="",l=[],s="",a="",u=0;t.on("package:install",function(){n.set("state",u=1),n.set("name",s=t.data.name)}),t.on("package:installed",function(){n.set("state",u=2),setTimeout(function(){return n.set("state",u=0)},2e3)}),t.on("package:error",function(){n.set("state",u=3),n.set("name",s=t.data.name),n.set("error",a=t.data.error),setTimeout(function(){return n.set("state",u=0)},2e3)}),t.on("package:select",function(){n.set("state",u=4),n.set("versions",l=t.data.versions)});var f=function(e){n.set("version",i=e),t.data.version=e,t.emitter.emit("package:select"),n.set("state",u=1)},c=function(){return n.set("state",u=0)},p=function(e){switch(e){case 1:return"Installing "+s+(i?" "+i:"")+"...";case 2:return"Installed "+s+"!";case 3:return"Error: "+s;case 4:return"Select version"}},d=function(e){switch(e){case 1:return null;case 2:return null;case 3:return a;case 4:return n.el(["Versions",1],{versions:l,onSelect:f})}};n.render(function(){return n.el(["Modal",1],{open:u>0,onClose:c,title:p(u)},e.iff(!1)&&n.el(["InstallerLoading",1],{"if":!1}),d(u))})}),e.staticStyles("Versions",{$version:"#_flintdevtools version.Versions, #_flintdevtools .Versions.version, #_flintdevtools .ViewVersions.version, #_flintdevtools .Versions > .version",$inner:"#_flintdevtools inner.Versions, #_flintdevtools .Versions.inner, #_flintdevtools .ViewVersions.inner, #_flintdevtools .Versions > .inner",$v:"#_flintdevtools v.Versions, #_flintdevtools .Versions.v, #_flintdevtools .ViewVersions.v, #_flintdevtools .Versions > .v",$info:"#_flintdevtools info.Versions, #_flintdevtools .Versions.info, #_flintdevtools .ViewVersions.info, #_flintdevtools .Versions > .info"},{$version:{textAlign:"left",borderRadius:2},$inner:{flexFlow:"row"},$v:{flexGrow:1,fontWeight:"bold"},$info:{}}),e.view("Versions",function(n,t,r){n.render(function(){return e.range(n.props.versions).map(function(e,t){return n.el(["version",1,e,t],null,n.el(["inner",1,e,t],null,n.el(["v",1,e,t],{key:"v"+t},e.version),n.el(["info",1,e,t],null,e.description),n.el(["a",1,e,t],{href:e.homepage,target:"_blank"},"Info")))})}),r.version=function(e,n){return{textAlign:"left",padding:[2,4],borderRadius:2}},r.v=function(e,n){return{flexGrow:1,fontWeight:"bold",":hover":{background:"#fff",cursor:"pointer"}}}})})}(),e.init()}(o)},"undefined"!=typeof module&&module.exports&&(module.exports=flintRun_tools);
window.flintRun_tools=function(e,n,t){var r=n.Flint||runFlint,o=r(e,n,t);!function(e){!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(n,t,r){try{e.packages["mouse-event-offset"]=r(1)}catch(o){console.log("Error bundling package mouse-event-offset!"),console.error(o),e.reportError(o)}try{e.packages["md5-o-matic"]=r(2)}catch(o){console.log("Error bundling package md5-o-matic!"),console.error(o),e.reportError(o)}try{e.packages.ellipsize=r(3)}catch(o){console.log("Error bundling package ellipsize!"),console.error(o),e.reportError(o)}try{e.packages.clone=r(4)}catch(o){console.log("Error bundling package clone!"),console.error(o),e.reportError(o)}try{e.packages.underscore=r(5)}catch(o){console.log("Error bundling package underscore!"),console.error(o),e.reportError(o)}},function(e,n){function t(e,n,t){n=n||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var o=e.clientX||0,i=e.clientY||0,l=r(n);return t[0]=o-l.left,t[1]=i-l.top,t}function r(e){return e===window||e===document||e===document.body?o:e.getBoundingClientRect()}var o={left:0,top:0};e.exports=t},function(e,n){"use strict";function t(e){for(var n=a(e),t=1732584193,r=-271733879,o=-1732584194,i=271733878,u=0;u<n.length;u+=16){var f=t,g=r,h=o,m=i;t=c(t,r,o,i,n[u+0],7,-680876936),i=c(i,t,r,o,n[u+1],12,-389564586),o=c(o,i,t,r,n[u+2],17,606105819),r=c(r,o,i,t,n[u+3],22,-1044525330),t=c(t,r,o,i,n[u+4],7,-176418897),i=c(i,t,r,o,n[u+5],12,1200080426),o=c(o,i,t,r,n[u+6],17,-1473231341),r=c(r,o,i,t,n[u+7],22,-45705983),t=c(t,r,o,i,n[u+8],7,1770035416),i=c(i,t,r,o,n[u+9],12,-1958414417),o=c(o,i,t,r,n[u+10],17,-42063),r=c(r,o,i,t,n[u+11],22,-1990404162),t=c(t,r,o,i,n[u+12],7,1804603682),i=c(i,t,r,o,n[u+13],12,-40341101),o=c(o,i,t,r,n[u+14],17,-1502002290),r=c(r,o,i,t,n[u+15],22,1236535329),t=p(t,r,o,i,n[u+1],5,-165796510),i=p(i,t,r,o,n[u+6],9,-1069501632),o=p(o,i,t,r,n[u+11],14,643717713),r=p(r,o,i,t,n[u+0],20,-373897302),t=p(t,r,o,i,n[u+5],5,-701558691),i=p(i,t,r,o,n[u+10],9,38016083),o=p(o,i,t,r,n[u+15],14,-660478335),r=p(r,o,i,t,n[u+4],20,-405537848),t=p(t,r,o,i,n[u+9],5,568446438),i=p(i,t,r,o,n[u+14],9,-1019803690),o=p(o,i,t,r,n[u+3],14,-187363961),r=p(r,o,i,t,n[u+8],20,1163531501),t=p(t,r,o,i,n[u+13],5,-1444681467),i=p(i,t,r,o,n[u+2],9,-51403784),o=p(o,i,t,r,n[u+7],14,1735328473),r=p(r,o,i,t,n[u+12],20,-1926607734),t=d(t,r,o,i,n[u+5],4,-378558),i=d(i,t,r,o,n[u+8],11,-2022574463),o=d(o,i,t,r,n[u+11],16,1839030562),r=d(r,o,i,t,n[u+14],23,-35309556),t=d(t,r,o,i,n[u+1],4,-1530992060),i=d(i,t,r,o,n[u+4],11,1272893353),o=d(o,i,t,r,n[u+7],16,-155497632),r=d(r,o,i,t,n[u+10],23,-1094730640),t=d(t,r,o,i,n[u+13],4,681279174),i=d(i,t,r,o,n[u+0],11,-358537222),o=d(o,i,t,r,n[u+3],16,-722521979),r=d(r,o,i,t,n[u+6],23,76029189),t=d(t,r,o,i,n[u+9],4,-640364487),i=d(i,t,r,o,n[u+12],11,-421815835),o=d(o,i,t,r,n[u+15],16,530742520),r=d(r,o,i,t,n[u+2],23,-995338651),t=v(t,r,o,i,n[u+0],6,-198630844),i=v(i,t,r,o,n[u+7],10,1126891415),o=v(o,i,t,r,n[u+14],15,-1416354905),r=v(r,o,i,t,n[u+5],21,-57434055),t=v(t,r,o,i,n[u+12],6,1700485571),i=v(i,t,r,o,n[u+3],10,-1894986606),o=v(o,i,t,r,n[u+10],15,-1051523),r=v(r,o,i,t,n[u+1],21,-2054922799),t=v(t,r,o,i,n[u+8],6,1873313359),i=v(i,t,r,o,n[u+15],10,-30611744),o=v(o,i,t,r,n[u+6],15,-1560198380),r=v(r,o,i,t,n[u+13],21,1309151649),t=v(t,r,o,i,n[u+4],6,-145523070),i=v(i,t,r,o,n[u+11],10,-1120210379),o=v(o,i,t,r,n[u+2],15,718787259),r=v(r,o,i,t,n[u+9],21,-343485551),t=l(t,f),r=l(r,g),o=l(o,h),i=l(i,m)}return s(t)+s(r)+s(o)+s(i)}function r(e,n){var t=1&e|1&n,r=e>>>1|n>>>1;return r<<1|t}function o(e,n){var t=1&e^1&n,r=e>>>1^n>>>1;return r<<1|t}function i(e,n){var t=1&e&(1&n),r=e>>>1&n>>>1;return r<<1|t}function l(e,n){var t=(65535&e)+(65535&n),r=(e>>16)+(n>>16)+(t>>16);return r<<16|65535&t}function s(e){var n,t="";for(n=0;3>=n;n++)t+=g.charAt(e>>8*n+4&15)+g.charAt(e>>8*n&15);return t}function a(e){var n,t=(e.length+8>>6)+1,r=new Array(16*t);for(n=0;16*t>n;n++)r[n]=0;for(n=0;n<e.length;n++)r[n>>2]|=e.charCodeAt(n)<<(8*e.length+n)%4*8;r[n>>2]|=128<<(8*e.length+n)%4*8;var o=8*e.length;return r[16*t-2]=255&o,r[16*t-2]|=(o>>>8&255)<<8,r[16*t-2]|=(o>>>16&255)<<16,r[16*t-2]|=(o>>>24&255)<<24,r}function u(e,n){return e<<n|e>>>32-n}function f(e,n,t,r,o,i){return l(u(l(l(n,e),l(r,i)),o),t)}function c(e,n,t,o,l,s,a){return f(r(i(n,t),i(~n,o)),e,n,l,s,a)}function p(e,n,t,o,l,s,a){return f(r(i(n,o),i(t,~o)),e,n,l,s,a)}function d(e,n,t,r,i,l,s){return f(o(o(n,t),r),e,n,i,l,s)}function v(e,n,t,i,l,s,a){return f(o(t,r(n,~i)),e,n,l,s,a)}e.exports=t;var g="0123456789abcdef"},function(e,n){"use strict";function t(e,n,t,r,o){var i=0,l="";if(e.length<n)return e;for(var s=0,a=e.length;a>s;s++)if(l=e.charAt(s),-1!==r.indexOf(l)&&(i=s),!(n>s))return 0===i?o?e.substring(0,n-1)+t:"":e.substring(0,i)+t;return e}var r={ellipse:"…",chars:[" ","-"],max:140,truncate:!0};e.exports=function(e,n,o){if("string"!=typeof e||0===e.length)return"";if(0===n)return"";o=o||{};for(var i in r)(null===o[i]||"undefined"==typeof o[i])&&(o[i]=r[i]);return o.max=n||o.max,t(e,o.max,o.ellipse,o.chars,o.truncate)}},function(e,n){var t=function(){"use strict";function e(n,t,r,o){function l(n,r){if(null===n)return null;if(0==r)return n;var s,c;if("object"!=typeof n)return n;if(e.__isArray(n))s=[];else if(e.__isRegExp(n))s=new RegExp(n.source,i(n)),n.lastIndex&&(s.lastIndex=n.lastIndex);else if(e.__isDate(n))s=new Date(n.getTime());else{if(f&&Buffer.isBuffer(n))return s=new Buffer(n.length),n.copy(s),s;"undefined"==typeof o?(c=Object.getPrototypeOf(n),s=Object.create(c)):(s=Object.create(o),c=o)}if(t){var p=a.indexOf(n);if(-1!=p)return u[p];a.push(n),u.push(s)}for(var d in n){var v;c&&(v=Object.getOwnPropertyDescriptor(c,d)),v&&null==v.set||(s[d]=l(n[d],r-1))}return s}var s;"object"==typeof t&&(r=t.depth,o=t.prototype,s=t.filter,t=t.circular);var a=[],u=[],f="undefined"!=typeof Buffer;return"undefined"==typeof t&&(t=!0),"undefined"==typeof r&&(r=1/0),l(n,r)}function n(e){return Object.prototype.toString.call(e)}function t(e){return"object"==typeof e&&"[object Date]"===n(e)}function r(e){return"object"==typeof e&&"[object Array]"===n(e)}function o(e){return"object"==typeof e&&"[object RegExp]"===n(e)}function i(e){var n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),n}return e.clonePrototype=function(e){if(null===e)return null;var n=function(){};return n.prototype=e,new n},e.__objToStr=n,e.__isDate=t,e.__isArray=r,e.__isRegExp=o,e.__getRegExpFlags=i,e}();"object"==typeof e&&e.exports&&(e.exports=t)},function(e,n,t){var r,o;(function(){function t(e){function n(n,t,r,o,i,l){for(;i>=0&&l>i;i+=e){var s=o?o[i]:i;r=t(r,n[s],s,n)}return r}return function(t,r,o,i){r=E(r,i,4);var l=!j(t)&&x.keys(t),s=(l||t).length,a=e>0?0:s-1;return arguments.length<3&&(o=t[l?l[a]:a],a+=e),n(t,r,o,l,a,s)}}function i(e){return function(n,t,r){t=k(t,r);for(var o=M(n),i=e>0?0:o-1;i>=0&&o>i;i+=e)if(t(n[i],i,n))return i;return-1}}function l(e,n,t){return function(r,o,i){var l=0,s=M(r);if("number"==typeof i)e>0?l=i>=0?i:Math.max(i+s,l):s=i>=0?Math.min(i+1,s):i+s+1;else if(t&&i&&s)return i=t(r,o),r[i]===o?i:-1;if(o!==o)return i=n(v.call(r,l,s),x.isNaN),i>=0?i+l:-1;for(i=e>0?l:s-1;i>=0&&s>i;i+=e)if(r[i]===o)return i;return-1}}function s(e,n){var t=T.length,r=e.constructor,o=x.isFunction(r)&&r.prototype||c,i="constructor";for(x.has(e,i)&&!x.contains(n,i)&&n.push(i);t--;)i=T[t],i in e&&e[i]!==o[i]&&!x.contains(n,i)&&n.push(i)}var a=this,u=a._,f=Array.prototype,c=Object.prototype,p=Function.prototype,d=f.push,v=f.slice,g=c.toString,h=c.hasOwnProperty,m=Array.isArray,y=Object.keys,_=p.bind,w=Object.create,b=function(){},x=function(e){return e instanceof x?e:this instanceof x?void(this._wrapped=e):new x(e)};"undefined"!=typeof e&&e.exports&&(n=e.exports=x),n._=x,x.VERSION="1.8.3";var E=function(e,n,t){if(void 0===n)return e;switch(null==t?3:t){case 1:return function(t){return e.call(n,t)};case 2:return function(t,r){return e.call(n,t,r)};case 3:return function(t,r,o){return e.call(n,t,r,o)};case 4:return function(t,r,o,i){return e.call(n,t,r,o,i)}}return function(){return e.apply(n,arguments)}},k=function(e,n,t){return null==e?x.identity:x.isFunction(e)?E(e,n,t):x.isObject(e)?x.matcher(e):x.property(e)};x.iteratee=function(e,n){return k(e,n,1/0)};var V=function(e,n){return function(t){var r=arguments.length;if(2>r||null==t)return t;for(var o=1;r>o;o++)for(var i=arguments[o],l=e(i),s=l.length,a=0;s>a;a++){var u=l[a];n&&void 0!==t[u]||(t[u]=i[u])}return t}},S=function(e){if(!x.isObject(e))return{};if(w)return w(e);b.prototype=e;var n=new b;return b.prototype=null,n},I=function(e){return function(n){return null==n?void 0:n[e]}},$=Math.pow(2,53)-1,M=I("length"),j=function(e){var n=M(e);return"number"==typeof n&&n>=0&&$>=n};x.each=x.forEach=function(e,n,t){n=E(n,t);var r,o;if(j(e))for(r=0,o=e.length;o>r;r++)n(e[r],r,e);else{var i=x.keys(e);for(r=0,o=i.length;o>r;r++)n(e[i[r]],i[r],e)}return e},x.map=x.collect=function(e,n,t){n=k(n,t);for(var r=!j(e)&&x.keys(e),o=(r||e).length,i=Array(o),l=0;o>l;l++){var s=r?r[l]:l;i[l]=n(e[s],s,e)}return i},x.reduce=x.foldl=x.inject=t(1),x.reduceRight=x.foldr=t(-1),x.find=x.detect=function(e,n,t){var r;return r=j(e)?x.findIndex(e,n,t):x.findKey(e,n,t),void 0!==r&&-1!==r?e[r]:void 0},x.filter=x.select=function(e,n,t){var r=[];return n=k(n,t),x.each(e,function(e,t,o){n(e,t,o)&&r.push(e)}),r},x.reject=function(e,n,t){return x.filter(e,x.negate(k(n)),t)},x.every=x.all=function(e,n,t){n=k(n,t);for(var r=!j(e)&&x.keys(e),o=(r||e).length,i=0;o>i;i++){var l=r?r[i]:i;if(!n(e[l],l,e))return!1}return!0},x.some=x.any=function(e,n,t){n=k(n,t);for(var r=!j(e)&&x.keys(e),o=(r||e).length,i=0;o>i;i++){var l=r?r[i]:i;if(n(e[l],l,e))return!0}return!1},x.contains=x.includes=x.include=function(e,n,t,r){return j(e)||(e=x.values(e)),("number"!=typeof t||r)&&(t=0),x.indexOf(e,n,t)>=0},x.invoke=function(e,n){var t=v.call(arguments,2),r=x.isFunction(n);return x.map(e,function(e){var o=r?n:e[n];return null==o?o:o.apply(e,t)})},x.pluck=function(e,n){return x.map(e,x.property(n))},x.where=function(e,n){return x.filter(e,x.matcher(n))},x.findWhere=function(e,n){return x.find(e,x.matcher(n))},x.max=function(e,n,t){var r,o,i=-(1/0),l=-(1/0);if(null==n&&null!=e){e=j(e)?e:x.values(e);for(var s=0,a=e.length;a>s;s++)r=e[s],r>i&&(i=r)}else n=k(n,t),x.each(e,function(e,t,r){o=n(e,t,r),(o>l||o===-(1/0)&&i===-(1/0))&&(i=e,l=o)});return i},x.min=function(e,n,t){var r,o,i=1/0,l=1/0;if(null==n&&null!=e){e=j(e)?e:x.values(e);for(var s=0,a=e.length;a>s;s++)r=e[s],i>r&&(i=r)}else n=k(n,t),x.each(e,function(e,t,r){o=n(e,t,r),(l>o||o===1/0&&i===1/0)&&(i=e,l=o)});return i},x.shuffle=function(e){for(var n,t=j(e)?e:x.values(e),r=t.length,o=Array(r),i=0;r>i;i++)n=x.random(0,i),n!==i&&(o[i]=o[n]),o[n]=t[i];return o},x.sample=function(e,n,t){return null==n||t?(j(e)||(e=x.values(e)),e[x.random(e.length-1)]):x.shuffle(e).slice(0,Math.max(0,n))},x.sortBy=function(e,n,t){return n=k(n,t),x.pluck(x.map(e,function(e,t,r){return{value:e,index:t,criteria:n(e,t,r)}}).sort(function(e,n){var t=e.criteria,r=n.criteria;if(t!==r){if(t>r||void 0===t)return 1;if(r>t||void 0===r)return-1}return e.index-n.index}),"value")};var O=function(e){return function(n,t,r){var o={};return t=k(t,r),x.each(n,function(r,i){var l=t(r,i,n);e(o,r,l)}),o}};x.groupBy=O(function(e,n,t){x.has(e,t)?e[t].push(n):e[t]=[n]}),x.indexBy=O(function(e,n,t){e[t]=n}),x.countBy=O(function(e,n,t){x.has(e,t)?e[t]++:e[t]=1}),x.toArray=function(e){return e?x.isArray(e)?v.call(e):j(e)?x.map(e,x.identity):x.values(e):[]},x.size=function(e){return null==e?0:j(e)?e.length:x.keys(e).length},x.partition=function(e,n,t){n=k(n,t);var r=[],o=[];return x.each(e,function(e,t,i){(n(e,t,i)?r:o).push(e)}),[r,o]},x.first=x.head=x.take=function(e,n,t){return null==e?void 0:null==n||t?e[0]:x.initial(e,e.length-n)},x.initial=function(e,n,t){return v.call(e,0,Math.max(0,e.length-(null==n||t?1:n)))},x.last=function(e,n,t){return null==e?void 0:null==n||t?e[e.length-1]:x.rest(e,Math.max(0,e.length-n))},x.rest=x.tail=x.drop=function(e,n,t){return v.call(e,null==n||t?1:n)},x.compact=function(e){return x.filter(e,x.identity)};var C=function(e,n,t,r){for(var o=[],i=0,l=r||0,s=M(e);s>l;l++){var a=e[l];if(j(a)&&(x.isArray(a)||x.isArguments(a))){n||(a=C(a,n,t));var u=0,f=a.length;for(o.length+=f;f>u;)o[i++]=a[u++]}else t||(o[i++]=a)}return o};x.flatten=function(e,n){return C(e,n,!1)},x.without=function(e){return x.difference(e,v.call(arguments,1))},x.uniq=x.unique=function(e,n,t,r){x.isBoolean(n)||(r=t,t=n,n=!1),null!=t&&(t=k(t,r));for(var o=[],i=[],l=0,s=M(e);s>l;l++){var a=e[l],u=t?t(a,l,e):a;n?(l&&i===u||o.push(a),i=u):t?x.contains(i,u)||(i.push(u),o.push(a)):x.contains(o,a)||o.push(a)}return o},x.union=function(){return x.uniq(C(arguments,!0,!0))},x.intersection=function(e){for(var n=[],t=arguments.length,r=0,o=M(e);o>r;r++){var i=e[r];if(!x.contains(n,i)){for(var l=1;t>l&&x.contains(arguments[l],i);l++);l===t&&n.push(i)}}return n},x.difference=function(e){var n=C(arguments,!0,!0,1);return x.filter(e,function(e){return!x.contains(n,e)})},x.zip=function(){return x.unzip(arguments)},x.unzip=function(e){for(var n=e&&x.max(e,M).length||0,t=Array(n),r=0;n>r;r++)t[r]=x.pluck(e,r);return t},x.object=function(e,n){for(var t={},r=0,o=M(e);o>r;r++)n?t[e[r]]=n[r]:t[e[r][0]]=e[r][1];return t},x.findIndex=i(1),x.findLastIndex=i(-1),x.sortedIndex=function(e,n,t,r){t=k(t,r,1);for(var o=t(n),i=0,l=M(e);l>i;){var s=Math.floor((i+l)/2);t(e[s])<o?i=s+1:l=s}return i},x.indexOf=l(1,x.findIndex,x.sortedIndex),x.lastIndexOf=l(-1,x.findLastIndex),x.range=function(e,n,t){null==n&&(n=e||0,e=0),t=t||1;for(var r=Math.max(Math.ceil((n-e)/t),0),o=Array(r),i=0;r>i;i++,e+=t)o[i]=e;return o};var L=function(e,n,t,r,o){if(!(r instanceof n))return e.apply(t,o);var i=S(e.prototype),l=e.apply(i,o);return x.isObject(l)?l:i};x.bind=function(e,n){if(_&&e.bind===_)return _.apply(e,v.call(arguments,1));if(!x.isFunction(e))throw new TypeError("Bind must be called on a function");var t=v.call(arguments,2),r=function(){return L(e,r,n,this,t.concat(v.call(arguments)))};return r},x.partial=function(e){var n=v.call(arguments,1),t=function(){for(var r=0,o=n.length,i=Array(o),l=0;o>l;l++)i[l]=n[l]===x?arguments[r++]:n[l];for(;r<arguments.length;)i.push(arguments[r++]);return L(e,t,this,this,i)};return t},x.bindAll=function(e){var n,t,r=arguments.length;if(1>=r)throw new Error("bindAll must be passed function names");for(n=1;r>n;n++)t=arguments[n],e[t]=x.bind(e[t],e);return e},x.memoize=function(e,n){var t=function(r){var o=t.cache,i=""+(n?n.apply(this,arguments):r);return x.has(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return t.cache={},t},x.delay=function(e,n){var t=v.call(arguments,2);return setTimeout(function(){return e.apply(null,t)},n)},x.defer=x.partial(x.delay,x,1),x.throttle=function(e,n,t){var r,o,i,l=null,s=0;t||(t={});var a=function(){s=t.leading===!1?0:x.now(),l=null,i=e.apply(r,o),l||(r=o=null)};return function(){var u=x.now();s||t.leading!==!1||(s=u);var f=n-(u-s);return r=this,o=arguments,0>=f||f>n?(l&&(clearTimeout(l),l=null),s=u,i=e.apply(r,o),l||(r=o=null)):l||t.trailing===!1||(l=setTimeout(a,f)),i}},x.debounce=function(e,n,t){var r,o,i,l,s,a=function(){var u=x.now()-l;n>u&&u>=0?r=setTimeout(a,n-u):(r=null,t||(s=e.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,l=x.now();var u=t&&!r;return r||(r=setTimeout(a,n)),u&&(s=e.apply(i,o),i=o=null),s}},x.wrap=function(e,n){return x.partial(n,e)},x.negate=function(e){return function(){return!e.apply(this,arguments)}},x.compose=function(){var e=arguments,n=e.length-1;return function(){for(var t=n,r=e[n].apply(this,arguments);t--;)r=e[t].call(this,r);return r}},x.after=function(e,n){return function(){return--e<1?n.apply(this,arguments):void 0}},x.before=function(e,n){var t;return function(){return--e>0&&(t=n.apply(this,arguments)),1>=e&&(n=null),t}},x.once=x.partial(x.before,2);var A=!{toString:null}.propertyIsEnumerable("toString"),T=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];x.keys=function(e){if(!x.isObject(e))return[];if(y)return y(e);var n=[];for(var t in e)x.has(e,t)&&n.push(t);return A&&s(e,n),n},x.allKeys=function(e){if(!x.isObject(e))return[];var n=[];for(var t in e)n.push(t);return A&&s(e,n),n},x.values=function(e){for(var n=x.keys(e),t=n.length,r=Array(t),o=0;t>o;o++)r[o]=e[n[o]];return r},x.mapObject=function(e,n,t){n=k(n,t);for(var r,o=x.keys(e),i=o.length,l={},s=0;i>s;s++)r=o[s],l[r]=n(e[r],r,e);return l},x.pairs=function(e){for(var n=x.keys(e),t=n.length,r=Array(t),o=0;t>o;o++)r[o]=[n[o],e[n[o]]];return r},x.invert=function(e){for(var n={},t=x.keys(e),r=0,o=t.length;o>r;r++)n[e[t[r]]]=t[r];return n},x.functions=x.methods=function(e){var n=[];for(var t in e)x.isFunction(e[t])&&n.push(t);return n.sort()},x.extend=V(x.allKeys),x.extendOwn=x.assign=V(x.keys),x.findKey=function(e,n,t){n=k(n,t);for(var r,o=x.keys(e),i=0,l=o.length;l>i;i++)if(r=o[i],n(e[r],r,e))return r},x.pick=function(e,n,t){var r,o,i={},l=e;if(null==l)return i;x.isFunction(n)?(o=x.allKeys(l),r=E(n,t)):(o=C(arguments,!1,!1,1),r=function(e,n,t){return n in t},l=Object(l));for(var s=0,a=o.length;a>s;s++){var u=o[s],f=l[u];r(f,u,l)&&(i[u]=f)}return i},x.omit=function(e,n,t){if(x.isFunction(n))n=x.negate(n);else{var r=x.map(C(arguments,!1,!1,1),String);n=function(e,n){return!x.contains(r,n)}}return x.pick(e,n,t)},x.defaults=V(x.allKeys,!0),x.create=function(e,n){var t=S(e);return n&&x.extendOwn(t,n),t},x.clone=function(e){return x.isObject(e)?x.isArray(e)?e.slice():x.extend({},e):e},x.tap=function(e,n){return n(e),e},x.isMatch=function(e,n){var t=x.keys(n),r=t.length;if(null==e)return!r;for(var o=Object(e),i=0;r>i;i++){var l=t[i];if(n[l]!==o[l]||!(l in o))return!1}return!0};var F=function(e,n,t,r){if(e===n)return 0!==e||1/e===1/n;if(null==e||null==n)return e===n;e instanceof x&&(e=e._wrapped),n instanceof x&&(n=n._wrapped);var o=g.call(e);if(o!==g.call(n))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!==+e?+n!==+n:0===+e?1/+e===1/n:+e===+n;case"[object Date]":case"[object Boolean]":return+e===+n}var i="[object Array]"===o;if(!i){if("object"!=typeof e||"object"!=typeof n)return!1;var l=e.constructor,s=n.constructor;if(l!==s&&!(x.isFunction(l)&&l instanceof l&&x.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in n)return!1}t=t||[],r=r||[];for(var a=t.length;a--;)if(t[a]===e)return r[a]===n;if(t.push(e),r.push(n),i){if(a=e.length,a!==n.length)return!1;for(;a--;)if(!F(e[a],n[a],t,r))return!1}else{var u,f=x.keys(e);if(a=f.length,x.keys(n).length!==a)return!1;for(;a--;)if(u=f[a],!x.has(n,u)||!F(e[u],n[u],t,r))return!1}return t.pop(),r.pop(),!0};x.isEqual=function(e,n){return F(e,n)},x.isEmpty=function(e){return null==e?!0:j(e)&&(x.isArray(e)||x.isString(e)||x.isArguments(e))?0===e.length:0===x.keys(e).length},x.isElement=function(e){return!(!e||1!==e.nodeType)},x.isArray=m||function(e){return"[object Array]"===g.call(e)},x.isObject=function(e){var n=typeof e;return"function"===n||"object"===n&&!!e},x.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){x["is"+e]=function(n){return g.call(n)==="[object "+e+"]"}}),x.isArguments(arguments)||(x.isArguments=function(e){return x.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(x.isFunction=function(e){return"function"==typeof e||!1}),x.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},x.isNaN=function(e){return x.isNumber(e)&&e!==+e},x.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"===g.call(e)},x.isNull=function(e){return null===e},x.isUndefined=function(e){return void 0===e},x.has=function(e,n){return null!=e&&h.call(e,n)},x.noConflict=function(){return a._=u,this},x.identity=function(e){return e},x.constant=function(e){return function(){return e}},x.noop=function(){},x.property=I,x.propertyOf=function(e){return null==e?function(){}:function(n){return e[n]}},x.matcher=x.matches=function(e){return e=x.extendOwn({},e),function(n){return x.isMatch(n,e)}},x.times=function(e,n,t){var r=Array(Math.max(0,e));n=E(n,t,1);for(var o=0;e>o;o++)r[o]=n(o);return r},x.random=function(e,n){return null==n&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))},x.now=Date.now||function(){return(new Date).getTime()};var z={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},R=x.invert(z),N=function(e){var n=function(n){return e[n]},t="(?:"+x.keys(e).join("|")+")",r=RegExp(t),o=RegExp(t,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,n):e}};x.escape=N(z),x.unescape=N(R),x.result=function(e,n,t){var r=null==e?void 0:e[n];return void 0===r&&(r=t),x.isFunction(r)?r.call(e):r};var W=0;x.uniqueId=function(e){var n=++W+"";return e?e+n:n},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var B=/(.)^/,D={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\u2028|\u2029/g,P=function(e){return"\\"+D[e]};x.template=function(e,n,t){!n&&t&&(n=t),n=x.defaults({},n,x.templateSettings);var r=RegExp([(n.escape||B).source,(n.interpolate||B).source,(n.evaluate||B).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,function(n,t,r,l,s){return i+=e.slice(o,s).replace(q,P),o=s+n.length,t?i+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":l&&(i+="';\n"+l+"\n__p+='"),n}),i+="';\n",n.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var l=new Function(n.variable||"obj","_",i)}catch(s){throw s.source=i,s}var a=function(e){return l.call(this,e,x)},u=n.variable||"obj";return a.source="function("+u+"){\n"+i+"}",a},x.chain=function(e){var n=x(e);return n._chain=!0,n};var H=function(e,n){return e._chain?x(n).chain():n};x.mixin=function(e){x.each(x.functions(e),function(n){var t=x[n]=e[n];x.prototype[n]=function(){var e=[this._wrapped];return d.apply(e,arguments),H(this,t.apply(x,e))}})},x.mixin(x),x.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=f[e];x.prototype[e]=function(){var t=this._wrapped;return n.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],H(this,t)}}),x.each(["concat","join","slice"],function(e){var n=f[e];x.prototype[e]=function(){return H(this,n.apply(this._wrapped,arguments))}}),x.prototype.value=function(){return this._wrapped},x.prototype.valueOf=x.prototype.toJSON=x.prototype.value,x.prototype.toString=function(){return""+this._wrapped},r=[],o=function(){return x}.apply(n,r),!(void 0!==o&&(e.exports=o))}).call(this)}]),function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(n,t,r){try{e.internals["lib/createFilterer"]=r(1)}catch(o){console.log("Error bundling package lib/createFilterer!"),console.error(o),e.reportError(o)}try{e.internals["lib/getType"]=r(2)}catch(o){console.log("Error bundling package lib/getType!"),console.error(o),e.reportError(o)}try{e.internals["lib/lens"]=r(3)}catch(o){console.log("Error bundling package lib/lens!"),console.error(o),e.reportError(o)}try{e.internals["lib/uid"]=r(4)}catch(o){console.log("Error bundling package lib/uid!"),console.error(o),e.reportError(o)}},function(n,t){!function(){e.file("lib/createFilterer.js",function(e){function t(e,n){n||(n={});var t={};return function(o){var i;if(!t[o])for(var l=o.length-1;l>0;l-=1)if(i=o.substr(0,l),t[i]){t[o]=r(t[i],o,n);break}return t[o]||(t[o]=r(e,o,n)),t[o]}}function r(e,n,t){return a(e).reduce(function(a,u){var f,c=e[u];return i(c)?(o(n,u,t)||o(n,c,t))&&(a[u]=c):o(n,u,t)?a[u]=c:(f=r(c,n,t),isEmpty(f)||s(a,l(u,f))),a},{})}function o(e,n,t){return t.ignoreCase?(e=String(e).toLowerCase(),n&&-1!==String(n).toLowerCase().indexOf(e)):n&&-1!==String(n).indexOf(e)}function i(e){var n=getType(e);return"Object"!==n&&"Array"!==n}function l(e,n){var t={};return t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t;var s=Object.assign,a=Object.keys;n.exports=e["default"]})}()},function(n,t){!function(){e.file("lib/getType.js",function(e){function t(e){return Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t,n.exports=e["default"]})}()},function(n,t){!function(){e.file("lib/lens.js",function(e){function t(e,n){var i=n.split(o),l=i.shift();if(!l)return e;var s=getType(e);return"Array"===s&&e[r(l)]?t(e[r(l)],i.join(o)):"Object"===s&&e[l]?t(e[l],i.join(o)):void 0}function r(e){return parseInt(e,10)}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t;var o=".";n.exports=e["default"]})}()},function(n,t){!function(){e.file("lib/uid.js",function(e){function t(){return r++}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t;var r=Math.ceil(10*Math.random());n.exports=e["default"]})}()}]),!function(){e.file("main.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}var r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o=require("mouse-event-offset"),i=t(o);e.staticStyles("Main",{$:"#_flintdevtools .ViewMain"},{$:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:2147483647}}),e.view("Main",function(n,t,r){var o=window.__isDevingDevTools,i=o||"?inspect"==window.location.search;n.render(function(){return n.el(["link",1],{rel:"stylesheet",property:"stylesheet",href:"/__/tools/static/tools.css"})}),n.render(function(){return e.iff(!o)&&n.el(["link",2],{"if":!o,rel:"stylesheet",property:"stylesheet",href:"/__/tools/styles.css"})}),n.render(function(){return n.el(["Errors",1],null)}),n.render(function(){return n.el(["Installer",1],null)}),n.render(function(){return e.iff(i)&&n.el(["Inspector",1],{"if":i})}),n.render(function(){return e.iff(o)&&n.el(["Name",1],{"if":o})}),n.render(function(){return e.iff(o)&&n.el(["Counter",1],{"if":o})}),n.render(function(){return e.iff(o)&&n.el(["Circles",1],{"if":o})}),r.$=function(e,n){return{position:"fixed",pointerEvents:o?"auto":"none",top:0,left:0,right:0,bottom:0,zIndex:2147483647}}}),e.view("Counter",function(e,n,t){var r=0;e.render(function(){return e.el(["h1",1],null,"count is ",r)}),e.render(function(){return e.el(["button",1],{onClick:function(){return e.set("count",r++,r,!0)}},"up")}),e.render(function(){return e.el(["button",2],{onClick:function(){return e.set("count",r--,r,!0)}},"down")})}),e.view("Deep",function(e,n,t){var r={name:"nick",tools:["js","juggling balls","coffee"]};e.render(function(){return e.el(["h1",1],null,"deep")}),e.render(function(){return e.el(["h2",1],null,JSON.stringify(r))})}),e.view("Name",function(e,n,t){var r="nick",o="cammarata";e.render(function(){return e.el(["h2",1],null,"name is ",r," ",o)}),e.render(function(){return e.el(["input",1],{__flintValue:r,__flintOnChange:function(n){e.set("first",r=n.target.value)}})}),e.render(function(){return e.el(["input",2],{__flintValue:o,__flintOnChange:function(n){e.set("last",o=n.target.value)}})}),e.render(function(){return e.el(["button",1],{onClick:function(){e.set("first",r="nate"),e.set("last",o="wienert")}},"nateify")})}),e.staticStyles("Circles",{$circles:"#_flintdevtools .ViewCircles"},{$circles:{position:"relative",background:"#eee",height:400,width:400}}),e.view("Circles",function(n,t,r){function o(e){n.set("coords",l.push((0,i["default"])(e)),l,!0)}var l=[[200,200]];n.render(function(){return n.el(["circles",1],{onClick:o},e.range(l).map(function(e,t){return n.el(["Circle",1,e,t],{repeat:l,left:e[0],top:e[1]})}))})}),e.view("Circle",function(e,n,t){var o=function(){return Math.round(255*Math.random())},i={background:[o(),o(),o()],position:"absolute",top:e.props.top,left:e.props.left,width:118,height:29,borderRadius:27},l=function(e){return r({},i,{transform:{scale:e}})};e.render(function(){return e.el(["circle",1],{style:l(1)})})})})}(),!function(){e.file("close.js",function(n){e.staticStyles("Close",{$:"#_flintdevtools .ViewClose"},{$:{position:"absolute",right:0,top:0,display:"flex",justifyContent:"center",alignItems:"center",lineHeight:1,opacity:.3,cursor:"pointer"}}),e.view("Close",function(e,n,t){e.render(function(){return e.el(["close",1],{onClick:e.props.onClick},"x")}),t.$=function(n,t){return{position:"absolute",right:0,top:0,fontSize:e.props.fontSize||16,width:e.props.size||50,height:e.props.size||50,display:"flex",justifyContent:"center",alignItems:"center",lineHeight:1,opacity:.3,cursor:"pointer",":hover":{opacity:1}}}})})}(),!function(){e.file("debounce.js",function(n){var t=function(e,n){return e+n},r=300,o=800,i=5e3,l=1e4,s=1e3;e.view("Debounce",function(e,n,a){var u=void 0,f=void 0,c=void 0,p=void 0,d=void 0,v=void 0,g=!1,h=[];e.pause(),n.props(function(){function n(){e.props.onUpdate&&e.props.onUpdate(),e.update()}if(e.props.force)return n();if(!e.props.showKey||e.props.showKey!=u){e.set("showKey",u=e.props.showKey),e.set("delay",p=e.props.delay||r),e.set("curDelay",d=d||p);var a=Date.now(),m=c?a-c:i;e.set("lastTime",c=a),e.set("lastFew",h.unshift(m),h,!0),h.length>3&&e.set("lastFew",h.pop(),h,!0),m>l?e.set("lastFew",h=[]):3==h.length&&(e.set("avgDiff",v=h.reduce(t,0)/h.length),e.set("isAutoSaving",g=s>v),e.set("curDelay",d=g?o:p)),clearTimeout(f),e.set("timeout",f=setTimeout(n,d))}})})})}(),!function(){e.file("errors.js",function(n){function t(e){if(e.file&&(e.file=e.file.replace(new RegExp(".*"+window.location.origin+"(/[_]+/)?"),"")),e.file&&e.file.indexOf("internals.js")>=0)if(e.message&&0==e.message.indexOf("Cannot find module")){var n=e.message.match(/(fs|path)/);n&&n.length&&(e.file="imported module:",e.message="Cannot import node-only module: "+n[0])}else e.message="Error in a locally required file. "+e.message;return e.message&&(e.niceMessage=e.message.replace(/Uncaught .*Error:\s*/,"")),e}function r(e){var n=e.msg,t=e.name;return n&&(n=n.replace(/(npm WARN.*\n|ERR\!)/g,"").replace(/npm argv.*\n/g,"").replace(/npm node v.*\n/g,"").replace(/npm npm.*\n/g,"").replace(/npm code.*\n/g,"").replace(/npm peerinvalid /g,"").replace(/npm 404 /g,"")),{msg:n,name:t}}var o=window._DT,i=function(e,n){return[e.substring(0,n),e.substring(n,n+1),e.substring(n+1)]},l=function(e){return a(c(p(e)))},s=function(e){return e?e.replace(/.*\.js\:/,"").replace(/\([0-9]+\:[0-9]+\)/,"").replace(/Line [0-9]+\:\s*/,""):""},a=function(e){return e.niceMessage=s(e.message,e.fileName),e},u=/\>?\s*([0-9]*)\s*\|(.*)/g,f=/\s*\|\s*\^\s*$/g,c=function(e){return e?(e.stack&&!function(){e.fullStack=["","",""];var n=0;e.stack.split("\n").forEach(function(t){if(!f.test(t)&&u.test(t)){var r=">"===t[0];r&&(n=1),r||1!==n||(n=2);var o=t.replace(u,"$1$2").replace(/^(\s*[0-9]+\s*)[;]/,"$1 ");e.fullStack[n]+=o+"\n"}})}(),e):void 0},p=function(e){return e?(e.stack&&e.stack.split("\n").map(function(n){if(">"===n[0]){var t=n;if(!t)return;t=t.replace(/\>\s*[0-9]+\s*\|\s*/,""),t=s(t);var r=e.loc.column-4;e.niceStack=i(t,r)}}),e):void 0};e.view("Errors",function(e,n,i){function s(){f?e.set("error",u=l(f)):c?e.set("error",u=t(c)):e.set("error",u=null),e.update()}function a(){e.set("error",u=null),e.set("compileError",f=null),e.set("runtimeError",c=null),e.set("npmError",p=null),e.update()}e.pause();var u=null,f=null,c=null,p=null;o.on("compile:error",function(){e.set("compileError",f=o.data.error),s()}),o.on("runtime:error",function(){e.set("runtimeError",c=o.data),s()}),o.on("npm:error",function(){e.set("npmError",p=r(o.data.error)),e.update()}),o.on("runtime:success",function(){e.set("runtimeError",c=null),e.set("npmError",p=null),s()}),o.on("compile:success",function(){e.set("compileError",f=null),e.set("npmError",p=null),s()}),e.render(function(){return e.el(["ErrorMessage",1],{error:u,npmError:p,close:a})})});var d=0,v=function(e){
return e&&e.replace(/[\?\)].*/,"")},g=function(e){return e&&(e.line||e.loc&&e.loc.line)};e.staticStyles("ErrorMessage",{$bar:"#_flintdevtools bar.ErrorMessage, #_flintdevtools .ErrorMessage.bar, #_flintdevtools .ViewErrorMessage.bar, #_flintdevtools .ErrorMessage > .bar",$hasError:"#_flintdevtools hasError.ErrorMessage, #_flintdevtools .ErrorMessage.hasError, #_flintdevtools .ViewErrorMessage.hasError, #_flintdevtools .ErrorMessage > .hasError",$inner:"#_flintdevtools inner.ErrorMessage, #_flintdevtools .ErrorMessage.inner, #_flintdevtools .ViewErrorMessage.inner, #_flintdevtools .ErrorMessage > .inner",$top:"#_flintdevtools top.ErrorMessage, #_flintdevtools .ErrorMessage.top, #_flintdevtools .ViewErrorMessage.top, #_flintdevtools .ErrorMessage > .top",$where:"#_flintdevtools where.ErrorMessage, #_flintdevtools .ErrorMessage.where, #_flintdevtools .ViewErrorMessage.where, #_flintdevtools .ErrorMessage > .where",$line:"#_flintdevtools line.ErrorMessage, #_flintdevtools .ErrorMessage.line, #_flintdevtools .ViewErrorMessage.line, #_flintdevtools .ErrorMessage > .line",$flint:"#_flintdevtools flint.ErrorMessage, #_flintdevtools .ErrorMessage.flint, #_flintdevtools .ViewErrorMessage.flint, #_flintdevtools .ErrorMessage > .flint",$shortError:"#_flintdevtools shortError.ErrorMessage, #_flintdevtools .ErrorMessage.shortError, #_flintdevtools .ViewErrorMessage.shortError, #_flintdevtools .ErrorMessage > .shortError",$cur:"#_flintdevtools cur.ErrorMessage, #_flintdevtools .ErrorMessage.cur, #_flintdevtools .ViewErrorMessage.cur, #_flintdevtools .ErrorMessage > .cur",$errCol:"#_flintdevtools errCol.ErrorMessage, #_flintdevtools .ErrorMessage.errCol, #_flintdevtools .ViewErrorMessage.errCol, #_flintdevtools .ErrorMessage > .errCol",$ln:"#_flintdevtools ln.ErrorMessage, #_flintdevtools .ErrorMessage.ln, #_flintdevtools .ViewErrorMessage.ln, #_flintdevtools .ErrorMessage > .ln",$flintline:"#_flintdevtools flintline.ErrorMessage, #_flintdevtools .ErrorMessage.flintline, #_flintdevtools .ViewErrorMessage.flintline, #_flintdevtools .ErrorMessage > .flintline"},{$bar:{display:"block",position:"fixed",left:0,transition:"all 200ms ease-in",right:0,fontFamily:'-apple-system, "San Francisco", Roboto, "Segou UI", "Helvetica Neue", Helvetica, Arial, sans-serif',fontWeight:300,color:"#fff",fontSize:"14px",padding:2,pointerEvents:"all",overflow:"scroll",zIndex:2147483647,boxShadow:"0 -6px 12px rgba(0,0,0,0.06)"},$hasError:{bottom:0},$inner:{display:"block",maxHeight:200,overflowY:"scroll"},$top:{padding:8,display:"block"},$where:{display:"inline-block",pointerEvents:"all",fontWeight:300,color:"rgba(255,255,255,0.8)"},$line:{display:"inline-block",whiteSpace:"pre",pointerEvents:"all"},$flint:{display:"inline",fontWeight:700,color:"#fff"},$shortError:{display:"inline",color:"rgba(255,255,255,0.7)"},$cur:{background:"#fff"},$errCol:{display:"inline",borderBottom:"2px solid #f5d64c",padding:3,color:"#fff"},$ln:{padding:[0,20]},$flintline:{whiteSpace:"pre",pointerEvents:"all",fontWeight:"flint"}}),e.view("ErrorMessage",function(n,t,r){function o(){setTimeout(function(){var e=document.querySelectorAll(".__flintError");e.length&&[].forEach.call(e,function(e){e.className+=" active"})})}n.pause();var i=!1,l={},s=void 0,a=void 0,u=g(n.props.error),f=void 0;t.props(function(){f&&f(),n.set("npmError",s=n.props.npmError),n.set("hasError",i=!(!n.props.error&&!n.props.npmError)),n.set("error",l=n.props.error||l),n.set("line",u=g(l)),n.set("fullStack",a=null),n.update(),l&&n.set("clearDelay",f=t.delay(2500,function(){i&&l.fullStack&&(n.set("fullStack",a=l.fullStack),n.update())}))}),n.render(function(){return n.el(["Debounce",1],{delay:1e3,force:i===!1,showKey:a||l&&l.message,onUpdate:o},n.el(["bar",1],{className:{hasError:i}},n.el(["Close",1],{onClick:n.props.close,size:35}),e.iff(s)&&n.el(["inner",1],{"if":s},n.el(["where",1],null,n.el(["flint",1],null,s.name))," ",s.msg),n.el(["inner",2],null,n.el(["top",1],null,n.el(["where",2],null,n.el(["span",1],null,"In ",n.el(["flint",2],null,v(l.file))),n.el(["line",1],null,u?" line":""," ",e.iff(u)&&n.el(["flint",3],{"if":u},u-d)))," ",n.el(["shortError",1],null,(l.niceMessage||l.message||"").trim(),e.iff(l.niceStack)&&n.el(["niceStack",1],{"if":l.niceStack},l.niceStack[0],n.el(["errCol",1],null,l.niceStack[1]),l.niceStack[2])),e.iff(l.help)&&n.el(["help",1],{"if":l.help},l.help)),e.iff(a)&&n.el(["fullStack",1],{"if":a},n.el(["ln",1],null,""+a[0]),n.el(["ln",2],{className:"cur"},""+a[1]),n.el(["ln",3],null,""+a[2])))))});var c="#cd423e";r.bar=function(e,n){return{display:"block",background:c,position:"fixed",left:0,bottom:-100,transition:"all 200ms ease-in",right:0,fontFamily:'-apple-system, "San Francisco", Roboto, "Segou UI", "Helvetica Neue", Helvetica, Arial, sans-serif',fontWeight:300,color:"#fff",fontSize:"14px",padding:2,pointerEvents:"all",overflow:"scroll",zIndex:2147483647,boxShadow:"0 -6px 12px rgba(0,0,0,0.06)"}};var p={color:"rgba(255,255,255,0.85)",display:"inline",fontFamily:"Meslo, Menlo, Monaco, monospace",padding:[0,5]};r.niceStack=function(e,n){return p},r.errCol=function(e,n){return{display:"inline",borderBottom:"2px solid #f5d64c",margin:-3,padding:3,color:"#fff"}},r._static.fullStack={},r.fullStack=function(e,n){return[p,{maxHeight:a?600:0,padding:a?[10,0]:0,transition:"maxHeight ease-in 300ms",color:"rgba(0,0,0,0.85)",background:"rgba(255,255,255,0.9)",display:"block",whiteSpace:"pre",fontSize:14,borderRadius:3,margin:2}]}}),e.staticStyles("ErrorIcon",{$svg:"#_flintdevtools svg.ErrorIcon, #_flintdevtools .ErrorIcon.svg, #_flintdevtools .ViewErrorIcon.svg, #_flintdevtools .ErrorIcon > .svg"},{$svg:{width:19,fill:"red",marginLeft:3,marginRight:6,opacity:.9}}),e.view("ErrorIcon",function(e,n,t){e.render(function(){return e.el(["svg",1],{viewBox:"0 0 27.963 27.963"},e.el(["path",1],{d:"M13.983,0C6.261,0,0.001,6.259,0.001,13.979c0,7.724,6.26,13.984,13.982,13.984s13.98-6.261,13.98-13.984 C27.963,6.259,21.705,0,13.983,0z M13.983,26.531c-6.933,0-12.55-5.62-12.55-12.553c0-6.93,5.617-12.548,12.55-12.548 c6.931,0,12.549,5.618,12.549,12.548C26.531,20.911,20.913,26.531,13.983,26.531z"}),e.el(["polygon",1],{points:"15.579,17.158 16.191,4.579 11.804,4.579 12.414,17.158"}),e.el(["path",2],{d:"M13.998,18.546c-1.471,0-2.5,1.029-2.5,2.526c0,1.443,0.999,2.528,2.444,2.528h0.056c1.499,0,2.469-1.085,2.469-2.528 C16.441,19.575,15.468,18.546,13.998,18.546z"}))}),t.svg=function(e,n){return{width:19,fill:"red",margin:-4,marginLeft:3,marginRight:6,opacity:.9}}})})}(),!function(){e.file("inspector.js",function(n){function t(e){return Array.isArray(e)?e:Array.from(e)}function r(e){var n=e.getBoundingClientRect(),t=window.innerWidth,r=window.innerHeight,o=y(n.right-n.left),i=y(n.bottom-n.top),l=1;o>=t&&i>=r&&(l=.2),_.setAttribute("style","\n top: "+y(n.top)+"px;\n left: "+y(n.left)+"px;\n width: "+o+"px;\n height: "+i+"px;\n opacity: "+l+";\n ")}function o(){_.setAttribute("style","")}function i(e){if(!e||!e.getAttribute)return null;var n=e.__flintID;return n?(r(e),n):i(e.parentNode)}function l(e,n){return e.filter(function(e){return e.path==n}).length>0}function s(e){return e.filter(function(e){return!e.temp}).map(function(e){return d({},e,{highlight:!1})})}function a(e,n){return[{path:n,highlight:!1,temp:!0}].concat(e)}function u(e,n){return e.map(function(e){return e.path==n&&(e.closing=!0),e})}function f(e,n){return e.map(function(e){return e.path==n&&(e.highlight=!0),e})}function c(e,n){return l(e,n)?e.map(function(e){return e.path==n&&(e.temp=!0),e}):[].concat(e,[{temp:!1,highlight:!1,closing:!1,path:n}])}function p(e,n){var t=n[1][0],r=m.getCache[e][t],o=n[1][1];"number"==typeof r&&(o=+o),m.setCache(e,t,o),m.inspectorRefreshing=e,m.getInitialStates[e](),m.viewsAtPath[e].forceUpdate(),m.inspectorRefreshing=null}var d=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},v=function(e){var n=t(e),r=(n[0],n.slice(1));return r},g=function(e){return function(n){return"Alt"===n.keyIdentifier&&e()}},h=function(e){return function(n){return 27===n.keyCode&&e()}},m=window._Flint,y=Math.round,_=void 0;e.staticStyles("Inspector",{$:"#_flintdevtools .ViewInspector"},{$:{position:"fixed",top:0,right:0,padding:2}}),e.view("Inspector",function(n,t,r){function y(e){m.isInspecting=!0;var t=i(e);n.set("views",O=s(O)),n.set("views",O=l(O,t)?f(O,t):a(O,t))}function w(e){var t=e.target;n.set("lastTarget",M=t),j&&y(M)}function b(){O.length&&n.set("views",O=v(O))}function x(e,r){r&&r.stopPropagation(),n.set("views",O=u(O,e)),t.delay(200,function(){n.set("views",O=O.filter(function(n){return e!=n.path}))})}function E(e){return n.set("views",O=c(s(O),i(e.target))),!1}function k(){y(M),n.set("hudActive",j=!0),n.set("clickOff",I=t.click(window,E))}function V(){m.isInspecting=!1,n.set("hudActive",j=!1),o(),I(),n.set("views",O=s(O))}function S(e,t){p(e,t),n.update()}var I=void 0,$=void 0,M=void 0,j=!1,O=[];t.mount(function(){n.set("hoverOff",$=t.mousemove(window,w)),_||(_=document.createElement("div"),_.className="_flintHighlighter",document.body.appendChild(_))}),t.keydown(window,g(k)),t.keyup(window,g(V)),t.keyup(window,h(b)),n.render(function(){return e.range(O).map(function(e,t){return n.el(["Inspector.View",1,e,t],d({repeat:O,key:e.path},e,{writeBack:S,onClose:function(n){return x(e.path,n)}}))})})})})}(),!function(){e.file("modal.js",function(n){e.staticStyles("Modal",{$:"#_flintdevtools .ViewModal",$title:"#_flintdevtools title.Modal, #_flintdevtools .Modal.title, #_flintdevtools .ViewModal.title, #_flintdevtools .Modal > .title",$message:"#_flintdevtools message.Modal, #_flintdevtools .Modal.message, #_flintdevtools .ViewModal.message, #_flintdevtools .Modal > .message"},{$:{position:"fixed",right:0,minWidth:80,padding:[10,10],margin:20,background:"#fff",boxShadow:"0 0 10px rgba(0,0,0,0.1)",border:"2px solid #e80967",fontSize:14,transition:"all ease-in 200ms",textAlign:"center",borderRadius:6,pointerEvents:"auto"},$title:{color:"#222",fontWeight:500,fontSize:15,margin:[0,20]},$message:{fontFamily:"-apple-system, 'Helvetica Nueue', Helvetica, Arial, sans-serif"}}),e.view("Modal",function(n,t,r){function o(){return n.set("open",s=n.props.open),l&&!n.props.title?n.update():(n.set("title",l=n.props.title),n.set("children",i=n.props.children),void n.update())}n.pause();var i=void 0,l=void 0,s=void 0;t.props(o),n.render(function(){return n.el(["modal",1],null,n.el(["Close",1],{size:25}),e.iff(l)&&n.el(["title",1],{"if":l},l),e.iff(i)&&n.el(["message",1],{"if":i},i))}),r.$=function(e,n){return{position:"fixed",top:s?0:-140,right:0,minWidth:80,padding:[10,10],margin:20,background:"#fff",boxShadow:"0 0 10px rgba(0,0,0,0.1)",border:"2px solid #e80967",fontSize:14,transition:"all ease-in 200ms",textAlign:"center",borderRadius:6,pointerEvents:"auto"}}})})}(),!function(){e.file("inspector/highlighter.js",function(n){e.view("Highlighter",function(n,t,r){n.render(function(){return e.iff(!n.props.highlight||-1===n.props.string.indexOf(n.props.highlight))&&n.el(["name",1],{"if":!n.props.highlight||-1===n.props.string.indexOf(n.props.highlight)},n.props.string)}),n.render(function(){return e.iff(n.props.highlight)&&n.el(["span",1],{"if":n.props.highlight},e.range(n.props.string.split()).map(function(t,r){return n.el(["span",2,t,r],{repeat:n.props.string.split()},e.iff(r>0)&&n.el(["highlight",1,t,r],{"if":r>0},n.props.highlight),t)}))})})})}(),!function(){e.file("inspector/label.js",function(n){var t=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e};e.staticStyles("Label",{$input:"#_flintdevtools input.Label, #_flintdevtools .Label.input, #_flintdevtools .ViewLabel.input, #_flintdevtools .Label > .input",$focus:"#_flintdevtools focus.Label, #_flintdevtools .Label.focus, #_flintdevtools .ViewLabel.focus, #_flintdevtools .Label > .focus"},{$input:{position:"absolute",top:0,right:0,color:"#333",padding:1,width:140,outline:"none",border:"none",opacity:0,boxShadow:"1px 1px 2px rgba(0,0,0,0.4)"},$focus:{opacity:"1 !important"}}),e.view("Label",function(e,n,r){var o=void 0,i=void 0;n.props(function(){e.set("newVal",i=e.props.val)});var l=function(n){e.props.editable&&(e.set("focus",o=!0),n.stopPropagation(),n.target.select())},s=function(n){e.set("focus",o=!1)},a=function(n){e.set("newVal",i=n.target.value),"false"===i&&e.set("newVal",i=!1),"true"===i&&e.set("newVal",i=!0),e.props.onSet(i)},u=function(e){return e?{}:{tabIndex:5e3,disabled:!0}};e.render(function(){return e.el(["input",1],t({defaultValue:String(e.props.val),__flintValue:i,__flintOnChange:function(n){e.set("newVal",i=n.target.value)},className:{focus:o},size:Math.max(4,e.props.val&&e.props.val.length||0),spellCheck:!1,onMouseUp:l,onFocus:l,onEnter:s,onBlur:s,onChange:a},u(e.props.editable)))}),r.input=function(e,n){return{position:"absolute",top:0,left:-1,right:0,color:"#333",padding:1,width:140,outline:"none",border:"none",opacity:0,boxShadow:"1px 1px 2px rgba(0,0,0,0.4)"}}})})}(),!function(){e.file("inspector/leaf.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}var r=require("md5-o-matic"),o=t(r),i=require("./lib/getType"),l=t(i),s=require("ellipsize"),a=t(s),u=".root.",f=function(e,n){return-1!==e.indexOf(n)},c=function(e){return"Object"!==(0,l["default"])(e)&&"Array"!==(0,l["default"])(e)};e.staticStyles("Leaf",{$leaf:"#_flintdevtools .ViewLeaf",$helper:"#_flintdevtools helper.Leaf, #_flintdevtools .Leaf.helper, #_flintdevtools .ViewLeaf.helper, #_flintdevtools .Leaf > .helper",$boolean:"#_flintdevtools boolean.Leaf, #_flintdevtools .Leaf.boolean, #_flintdevtools .ViewLeaf.boolean, #_flintdevtools .Leaf > .boolean",$number:"#_flintdevtools number.Leaf, #_flintdevtools .Leaf.number, #_flintdevtools .ViewLeaf.number, #_flintdevtools .Leaf > .number",$string:"#_flintdevtools string.Leaf, #_flintdevtools .Leaf.string, #_flintdevtools .ViewLeaf.string, #_flintdevtools .Leaf > .string",$function:"#_flintdevtools function.Leaf, #_flintdevtools .Leaf.function, #_flintdevtools .ViewLeaf.function, #_flintdevtools .Leaf > .function",$colon:"#_flintdevtools colon.Leaf, #_flintdevtools .Leaf.colon, #_flintdevtools .ViewLeaf.colon, #_flintdevtools .Leaf > .colon",$name:"#_flintdevtools name.Leaf, #_flintdevtools .Leaf.name, #_flintdevtools .ViewLeaf.name, #_flintdevtools .Leaf > .name",$children:"#_flintdevtools children.Leaf, #_flintdevtools .Leaf.children, #_flintdevtools .ViewLeaf.children, #_flintdevtools .Leaf > .children",$type:"#_flintdevtools type.Leaf, #_flintdevtools .Leaf.type, #_flintdevtools .ViewLeaf.type, #_flintdevtools .Leaf > .type"},{$leaf:{padding:[1,0],fontSize:13},$helper:{color:"#ffff05"},$boolean:{color:"#32a3cd",fontWeight:700},$number:{color:"#b92222",marginTop:2,fontWeight:500},$string:{color:"#698c17"},$function:{marginLeft:10,marginTop:2,color:"#962eba"},$colon:{opacity:.3,color:"#000"},$name:{color:"#ff2f2f",fontWeight:400,margin:["auto",0]},$children:{paddingLeft:10},$type:{margin:[1,0,0,8],opacity:.7,flexFlow:"row"}}),e.view("Leaf",function(n,t,r){function i(e){n.props.root||n.set("expanded",m=!m),n.update(),n.props.onClick&&n.props.onClick(d),e.stopPropagation()}n.pause();var s=void 0,p=void 0,d=void 0,v=void 0,g=void 0,h=void 0,m=void 0,y=[],_="",w=function(){return n.props.root||!_&&n.props.isExpanded(p,d)||!f(p,_)&&"function"==typeof n.props.getOriginal};t.props(function(){n.set("rootPath",s=n.props.prefix+"."+n.props.label),n.set("key",g=n.props.label.toString()),n.set("path",p=s.substr(u.length)),n.set("data",d=n.props.data),d&&n.set("dataKeys",y=Object.keys(d).sort()),void 0===d&&n.set("data",d=n.props.data),void 0===d&&n.set("data",d={}),n.set("type",v=(0,l["default"])(d)),n.set("query",_=n.props.query||""),n.props.root?n.set("expanded",m=!0):_&&n.set("expanded",m=!f(n.props.label,_)),n.props.query&&!_&&n.set("expanded",m=w()),n.update()});var b=function(e,n){return c(n)?e+":"+(0,o["default"])(String(e)):e+"["+(0,l["default"])(n)+"]"},x=function(e){return n.el(["Highlighter",1],{string:e,highlight:_})},E=function(e){return e.toString().replace(/((\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s))/gm,"").match(/^function\s*[^\(]*\(\s*([^\)]*)\)/m)[1].split(/,/)},k=function(e,t,r,o){return n.el(["Label",1],{val:t,editable:o,onSet:function(e){return n.props.onSet([r,e])}})};n.render(function(){return n.el(["leaf",1],{className:s},e.iff(!n.props.root)&&n.el(["label",1],{"if":!n.props.root,htmlFor:n.props.id,onClick:i},n.el(["key",1],null,n.el(["name",1],null,x(g)),k("key",g,g,!1)),n.el(["colon",1],null,":"),e.iff("Function"==v)&&n.el(["expand",1],{className:"function","if":"Function"==v},n.el(["i",1],null,"fn (",E(d).join(", "),")")),e.iff("Array"==v)&&n.el(["expand",2],{"if":"Array"==v},n.el(["type",1],null,"Array[",d.length,"]")),e.iff("Object"==v)&&n.el(["expand",3],{"if":"Object"==v},n.el(["type",2],null,"{} "+y.length+" keys")),e.iff(-1==["Array","Object","Function"].indexOf(v))&&n.el(["value",1],{"if":-1==["Array","Object","Function"].indexOf(v),className:v.toLowerCase()},e.iff("string"==v.toLowerCase())&&n.el(["str",1],{"if":"string"==v.toLowerCase()},x((0,a["default"])(String(d),25))),e.iff("string"!=v.toLowerCase())&&n.el(["else",1],{"if":"string"!=v.toLowerCase()},x(String(d))),k("val",d,g,n.props.editable))),n.el(["children",1],null,e.iff(m&&!c(d))&&e.range(y).map(function(t,r){return n.el(["child",1,t,r],{"if":m&&!c(d),repeat:y},e.iff(-1==t.indexOf("__"))&&n.el(["Leaf",1,t,r],{"if":-1==t.indexOf("__"),key:b(t,d[t]),onSet:function(){for(var e,t=arguments.length,r=Array(t),o=0;t>o;o++)r[o]=arguments[o];return(e=n.props).onSet.apply(e,[g].concat(r))},data:d[t],editable:n.props.editable,label:t,prefix:s,onClick:n.props.onClick,id:n.props.id,query:_,getOriginal:h?null:n.props.getOriginal,isExpanded:n.props.isExpanded}))})))});var V={flexFlow:"row"};r._static.label={},r.label=function(e,n){return[V,{position:"relative",color:"rgba(0,0,0,0.8)",opacity:1,alignItems:"center"}]},r._static.key={},r.key=function(e,n){return[V,{color:"rgba(0,0,0,0.9)",margin:[0],fontWeight:"bold"}]},r._static.expand={},r.expand=function(e,n){return[V,{}]},r._static.value={},r.value=function(e,n){return[V,{position:"relative",margin:[0,4]}]}})})}(),!function(){e.file("inspector/section.js",function(n){e.staticStyles("Inspector.Section",{$:"#_flintdevtools .ViewInspector-Section",$body:"#_flintdevtools body.Inspector-Section, #_flintdevtools .Inspector-Section.body, #_flintdevtools .ViewInspector-Section.body, #_flintdevtools .Inspector-Section > .body"},{$:{padding:[5,0]},$body:{padding:[0,12]}}),e.view("Inspector.Section",function(n,t,r){var o=!0;n.render(function(){return n.el(["Inspector.Title",1],{onToggle:function(e){return n.set("open",o=e)}},n.props.title)}),n.render(function(){return e.iff(o)&&n.el(["body",1],{"if":o},n.props.children)})})})}(),!function(){e.file("inspector/title.js",function(n){e.staticStyles("Inspector.Title",{$title:"#_flintdevtools title.Inspector-Title, #_flintdevtools .Inspector-Title.title, #_flintdevtools .ViewInspector-Title.title, #_flintdevtools .Inspector-Title > .title",$closed:"#_flintdevtools closed.Inspector-Title, #_flintdevtools .Inspector-Title.closed, #_flintdevtools .ViewInspector-Title.closed, #_flintdevtools .Inspector-Title > .closed",$inner:"#_flintdevtools inner.Inspector-Title, #_flintdevtools .Inspector-Title.inner, #_flintdevtools .ViewInspector-Title.inner, #_flintdevtools .Inspector-Title > .inner"},{$title:{fontWeight:300,borderBottom:"1px solid #eee",height:10,margin:[5,0,8],color:"#999",flexFlow:"row"},$closed:{marginTop:1},$inner:{padding:[4,10],background:"#fff"}}),e.view("Inspector.Title",function(e,n,t){function r(){e.props.onToggle&&(e.set("open",o=!o),e.props.onToggle(o))}var o=!0;e.render(function(){return e.el(["title",1],{onClick:r},e.el(["inner",1],null,e.props.children))}),t.closed=function(e,n){return{transform:{scale:.8},marginTop:1}},t.inner=function(e,n){return{padding:[4,10],background:"#fff",margin:[-2,"auto"]}}})})}(),!function(){e.file("inspector/tree.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}var r=require("./lib/lens"),o=t(r);e.staticStyles("Tree",{$:"#_flintdevtools .ViewTree"},{$:{pointerEvents:"auto"}}),e.view("Tree",function(e,n,t){var r="",i=function(n){return(0,o["default"])(e.props.data,n)};e.render(function(){return e.el(["Leaf",1],{data:e.props.data,onClick:e.props.onClick,id:e.props.id,getOriginal:i,query:r,label:"root",editable:e.props.editable,root:!0,validateQuery:function(e){return e.length>=2},isExpanded:e.props.isExpanded||function(){return!1},interactiveLabel:e.props.interactiveLabel,onSet:function(){for(var n=arguments.length,t=Array(n),r=0;n>r;r++)t[r]=arguments[r];return e.props.onSet(t)}})}),t.$=function(e,n){return{pointerEvents:"auto",marginLeft:-10}}})})}(),!function(){e.file("inspector/view.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}function r(e){var n=e.split(",");return n[n.length-1].split(".")[0].split("-")[0]}function o(e){var n=["if","repeat","style","yield","__flint"];return s["default"].omit.apply(null,[e].concat(n))}var i=require("clone"),l=(t(i),require("underscore")),s=t(l);e.staticStyles("Inspector.View",{$view:"#_flintdevtools view.Inspector-View, #_flintdevtools .Inspector-View.view, #_flintdevtools .ViewInspector-View.view, #_flintdevtools .Inspector-View > .view",$top:"#_flintdevtools top.Inspector-View, #_flintdevtools .Inspector-View.top, #_flintdevtools .ViewInspector-View.top, #_flintdevtools .Inspector-View > .top",$active:"#_flintdevtools active.Inspector-View, #_flintdevtools .Inspector-View.active, #_flintdevtools .ViewInspector-View.active, #_flintdevtools .Inspector-View > .active",$highlight:"#_flintdevtools highlight.Inspector-View, #_flintdevtools .Inspector-View.highlight, #_flintdevtools .ViewInspector-View.highlight, #_flintdevtools .Inspector-View > .highlight",$Close:"#_flintdevtools .ViewInspector-View .ViewClose",$name:"#_flintdevtools name.Inspector-View, #_flintdevtools .Inspector-View.name, #_flintdevtools .ViewInspector-View.name, #_flintdevtools .Inspector-View > .name",$edit:"#_flintdevtools edit.Inspector-View, #_flintdevtools .Inspector-View.edit, #_flintdevtools .ViewInspector-View.edit, #_flintdevtools .Inspector-View > .edit",$expanded:"#_flintdevtools expanded.Inspector-View, #_flintdevtools .Inspector-View.expanded, #_flintdevtools .ViewInspector-View.expanded, #_flintdevtools .Inspector-View > .expanded",$input:"#_flintdevtools input.Inspector-View, #_flintdevtools .Inspector-View.input, #_flintdevtools .ViewInspector-View.input, #_flintdevtools .Inspector-View > .input",$title:"#_flintdevtools title.Inspector-View, #_flintdevtools .Inspector-View.title, #_flintdevtools .ViewInspector-View.title, #_flintdevtools .Inspector-View > .title",$props:"#_flintdevtools props.Inspector-View, #_flintdevtools .Inspector-View.props, #_flintdevtools .ViewInspector-View.props, #_flintdevtools .Inspector-View > .props"},{$view:{position:"relative",pointerEvents:"auto",margin:10,padding:[0,0,1],minWidth:220,fontSize:12,userSelect:"none",cursor:"default",background:"#fff",boxShadow:"0px 2px 16px rgba(0,0,0,0.2)",border:"1px solid #ccc",borderRadius:5,color:"#333",transition:"all ease-in 60ms",opacity:0},$top:{flexFlow:"row"},$active:{opacity:1},$highlight:{border:"2px solid #afb4e2"},$Close:{fontSize:16},$name:{fontWeight:400,color:"rgba(0,0,0,0.8)",padding:[8,8,0],fontSize:14},$edit:{padding:[8,8,0],fontSize:14,marginLeft:4,fontWeight:400,color:"rgba(24, 101, 227, 0.8)"},$expanded:{},$input:{borderRadius:100,border:"1px solid #ccc",width:"100%",padding:[2,12],color:"#333",fontSize:14},$title:{display:"none",color:"#333",fontWeight:200,fontSize:12,margin:[3,0]},$props:{marginBottom:2}}),e.view("Inspector.View",function(n,t,i){function l(e){n.props.writeBack(u,e)}var s=window.Flint.inspect,a=void 0,u=void 0,f=void 0,c=void 0,p=!1,d={},v=null,g=null;t.delay(60,function(){n.set("active",p=!0)}),t.unmount(function(){delete window._Flint.inspector[n.props.path]}),t.props(function(){n.set("highlight",c=n.props.highlight),n.set("closing",f=n.props.closing),n.set("path",u=n.props.path),f===!0&&n.set("active",p=!1),u&&(n.set("name",a=r(u)),_Flint.inspector[n.props.path]||s(u,function(e,t,r){n.set("props",v=o(e||{})),n.set("state",d=t||{}),n.set("writeBack",g=r),n.update()}))});var h=function(e){return e&&Object.keys(e).length>0},m=function(){return _DT.messageEditor({type:"editView",view:a})};n.render(function(){return n.el(["view",1],{className:{active:p,highlight:c}},n.el(["Close",1],{onClick:n.props.onClose,fontSize:20,size:35}),n.el(["top",1],null,n.el(["name",1],null,a),n.el(["edit",1],{onClick:m},"edit")),e.iff(!h(v))&&n.el(["Inspector.Title",1],{"if":!h(v)},"No Props"),e.iff(h(v))&&n.el(["Inspector.Section",1],{title:"Props","if":h(v),className:"props"},n.el(["Tree",1],{editable:!1,data:v})),e.iff(!h(d))&&n.el(["Inspector.Title",2],{"if":!h(d)},"No State"),e.iff(h(d))&&n.el(["Inspector.Section",2],{title:"State","if":h(d)},n.el(["Tree",2],{editable:!0,onSet:l,data:d})))}),i.view=function(e,n){return{position:"relative",pointerEvents:"auto",margin:10,padding:[0,0,1],minWidth:220,fontSize:12,userSelect:"none",cursor:"default",background:"#fff",boxShadow:"0px 2px 16px rgba(0,0,0,0.2)",border:"1px solid #ccc",borderRadius:5,color:"#333",transition:"all ease-in 60ms",opacity:0,transform:{x:20}}},i.active=function(e,n){return{opacity:1,transform:{x:0}}},i.Close=function(e,n){return{top:-5,right:-5,fontSize:16}},i.name=function(e,n){return{fontWeight:400,color:"rgba(0,0,0,0.8)",padding:[8,8,0],margin:[0,0,-6],fontSize:14}},i.edit=function(e,n){return{padding:[8,8,0],fontSize:14,margin:[0,0,-6],marginLeft:4,fontWeight:400,color:"rgba(24, 101, 227, 0.8)"}},i.expanded=function(e,n){return{transform:{y:0}}}})})}(),!function(){e.file("npm/installer.js",function(n){var t=window._DT;e.view("Installer",function(n,r,o){var i="",l=[],s="",a="",u=0;t.on("package:install",function(){n.set("state",u=1),n.set("name",s=t.data.name)}),t.on("package:installed",function(){n.set("state",u=2),setTimeout(function(){return n.set("state",u=0)},2e3)}),t.on("package:error",function(){n.set("state",u=3),n.set("name",s=t.data.name),n.set("error",a=t.data.error),setTimeout(function(){return n.set("state",u=0)},2e3)}),t.on("package:select",function(){n.set("state",u=4),n.set("versions",l=t.data.versions)});var f=function(e){n.set("version",i=e),t.data.version=e,t.emitter.emit("package:select"),n.set("state",u=1)},c=function(){return n.set("state",u=0)},p=function(e){switch(e){case 1:return"Installing "+s+(i?" "+i:"")+"...";case 2:return"Installed "+s+"!";case 3:return"Error: "+s;case 4:return"Select version"}},d=function(e){switch(e){case 1:return null;case 2:return null;case 3:return a;case 4:return n.el(["Versions",1],{versions:l,onSelect:f})}};n.render(function(){return n.el(["Modal",1],{open:u>0,onClose:c,title:p(u)},e.iff(!1)&&n.el(["InstallerLoading",1],{"if":!1}),d(u))})}),e.staticStyles("Versions",{$version:"#_flintdevtools version.Versions, #_flintdevtools .Versions.version, #_flintdevtools .ViewVersions.version, #_flintdevtools .Versions > .version",$inner:"#_flintdevtools inner.Versions, #_flintdevtools .Versions.inner, #_flintdevtools .ViewVersions.inner, #_flintdevtools .Versions > .inner",$v:"#_flintdevtools v.Versions, #_flintdevtools .Versions.v, #_flintdevtools .ViewVersions.v, #_flintdevtools .Versions > .v",$info:"#_flintdevtools info.Versions, #_flintdevtools .Versions.info, #_flintdevtools .ViewVersions.info, #_flintdevtools .Versions > .info"},{$version:{textAlign:"left",padding:[2,4],borderRadius:2},$inner:{flexFlow:"row"},$v:{flexGrow:1,fontWeight:"bold"},$info:{}}),e.view("Versions",function(n,t,r){n.render(function(){return e.range(n.props.versions).map(function(e,t){return n.el(["version",1,e,t],{repeat:n.props.versions,onClick:function(){return n.props.onSelect(e)}},n.el(["inner",1,e,t],null,n.el(["v",1,e,t],{key:"v"+t},e.version),n.el(["info",1,e,t],null,e.description),n.el(["a",1,e,t],{href:e.homepage,target:"_blank"},"Info")))})}),r.v=function(e,n){return{flexGrow:1,fontWeight:"bold",":hover":{background:"#fff",cursor:"pointer"}}}})})}(),e.init()}(o)},"undefined"!=typeof module&&module.exports&&(module.exports=flintRun_tools);

@@ -6,3 +6,3 @@ {

"description": "tools",
"version": "1.3.129",
"version": "1.3.130",
"main": "index.js",

@@ -9,0 +9,0 @@ "scripts": {},

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc