davechri 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of davechri might be problematic. Click here for more details.

Files changed (113) hide show
  1. package/README.md +277 -0
  2. package/bin/proxyall +5 -0
  3. package/build/app.js +89 -0
  4. package/build/app.js.map +1 -0
  5. package/build/common/Message.js +34 -0
  6. package/build/common/Message.js.map +1 -0
  7. package/build/common/ProxyConfig.js +27 -0
  8. package/build/common/ProxyConfig.js.map +1 -0
  9. package/build/node-http-mitm-proxy/.gitattributes +2 -0
  10. package/build/node-http-mitm-proxy/.travis.yml +10 -0
  11. package/build/node-http-mitm-proxy/README.md +539 -0
  12. package/build/node-http-mitm-proxy/bin/mitm-proxy.js +36 -0
  13. package/build/node-http-mitm-proxy/examples/forwardHttps.js +62 -0
  14. package/build/node-http-mitm-proxy/examples/modifyGoogle.js +44 -0
  15. package/build/node-http-mitm-proxy/examples/onCertificateMissing.js +30 -0
  16. package/build/node-http-mitm-proxy/examples/onCertificateRequired.js +23 -0
  17. package/build/node-http-mitm-proxy/examples/preventRequest.js +20 -0
  18. package/build/node-http-mitm-proxy/examples/processFullResponseBody.js +36 -0
  19. package/build/node-http-mitm-proxy/examples/removeProxyToServerContentLength.js +17 -0
  20. package/build/node-http-mitm-proxy/examples/websocket.js +31 -0
  21. package/build/node-http-mitm-proxy/examples/wildcard.js +17 -0
  22. package/build/node-http-mitm-proxy/index.d.ts +233 -0
  23. package/build/node-http-mitm-proxy/index.js +3 -0
  24. package/build/node-http-mitm-proxy/lib/ca.js +245 -0
  25. package/build/node-http-mitm-proxy/lib/middleware/gunzip.js +19 -0
  26. package/build/node-http-mitm-proxy/lib/middleware/wildcard.js +22 -0
  27. package/build/node-http-mitm-proxy/lib/proxy.js +1137 -0
  28. package/build/node-http-mitm-proxy/package-lock.json +1406 -0
  29. package/build/node-http-mitm-proxy/package.json +45 -0
  30. package/build/node-http-mitm-proxy/test/01_proxy.js +449 -0
  31. package/build/node-http-mitm-proxy/test/www/1024.bin +64 -0
  32. package/build/node-http-mitm-proxy/test/wwwA/1024.bin +64 -0
  33. package/build/node-http-mitm-proxy/test/wwwA/example.com.html +8 -0
  34. package/build/node-http-mitm-proxy/test/wwwA/index.html +0 -0
  35. package/build/node-http-mitm-proxy/test/wwwB/1024.bin +64 -0
  36. package/build/node-http-mitm-proxy/test/wwwB/index.html +0 -0
  37. package/build/private/keys/README.md +2 -0
  38. package/build/private/keys/server.crt +20 -0
  39. package/build/private/keys/server.key +28 -0
  40. package/build/private/keys/ssl.conf +25 -0
  41. package/build/server/src/Global.js +38 -0
  42. package/build/server/src/Global.js.map +1 -0
  43. package/build/server/src/Http2Proxy.js +197 -0
  44. package/build/server/src/Http2Proxy.js.map +1 -0
  45. package/build/server/src/HttpMessage.js +99 -0
  46. package/build/server/src/HttpMessage.js.map +1 -0
  47. package/build/server/src/HttpProxy.js +196 -0
  48. package/build/server/src/HttpProxy.js.map +1 -0
  49. package/build/server/src/HttpsProxy.js +110 -0
  50. package/build/server/src/HttpsProxy.js.map +1 -0
  51. package/build/server/src/LogProxy.js +115 -0
  52. package/build/server/src/LogProxy.js.map +1 -0
  53. package/build/server/src/Paths.js +28 -0
  54. package/build/server/src/Paths.js.map +1 -0
  55. package/build/server/src/Ping.js +21 -0
  56. package/build/server/src/Ping.js.map +1 -0
  57. package/build/server/src/ProxyAllApp.js +70 -0
  58. package/build/server/src/ProxyAllApp.js.map +1 -0
  59. package/build/server/src/Resend.js +89 -0
  60. package/build/server/src/Resend.js.map +1 -0
  61. package/build/server/src/SocketIoManager.js +312 -0
  62. package/build/server/src/SocketIoManager.js.map +1 -0
  63. package/build/server/src/SocketMessage.js +68 -0
  64. package/build/server/src/SocketMessage.js.map +1 -0
  65. package/build/server/src/TcpProxy.js +202 -0
  66. package/build/server/src/TcpProxy.js.map +1 -0
  67. package/build/server/src/formatters/HexFormatter.js +33 -0
  68. package/build/server/src/formatters/HexFormatter.js.map +1 -0
  69. package/build/server/src/formatters/MongoFormatter.js +97 -0
  70. package/build/server/src/formatters/MongoFormatter.js.map +1 -0
  71. package/build/server/src/formatters/MongoOpCode.js +51 -0
  72. package/build/server/src/formatters/MongoOpCode.js.map +1 -0
  73. package/build/server/src/formatters/RedisFormatter.js +25 -0
  74. package/build/server/src/formatters/RedisFormatter.js.map +1 -0
  75. package/build/server/src/formatters/SqlCommand.js +111 -0
  76. package/build/server/src/formatters/SqlCommand.js.map +1 -0
  77. package/build/server/src/formatters/SqlFormatter.js +150 -0
  78. package/build/server/src/formatters/SqlFormatter.js.map +1 -0
  79. package/client/README.md +46 -0
  80. package/client/build/asset-manifest.json +26 -0
  81. package/client/build/favicon.ico +0 -0
  82. package/client/build/index.html +1 -0
  83. package/client/build/manifest.json +8 -0
  84. package/client/build/robots.txt +3 -0
  85. package/client/build/static/css/2.bbde182e.chunk.css +12 -0
  86. package/client/build/static/css/2.bbde182e.chunk.css.map +1 -0
  87. package/client/build/static/css/main.5bf489b2.chunk.css +2 -0
  88. package/client/build/static/css/main.5bf489b2.chunk.css.map +1 -0
  89. package/client/build/static/js/2.ba308ba1.chunk.js +3 -0
  90. package/client/build/static/js/2.ba308ba1.chunk.js.LICENSE.txt +100 -0
  91. package/client/build/static/js/2.ba308ba1.chunk.js.map +1 -0
  92. package/client/build/static/js/3.7073b0d8.chunk.js +2 -0
  93. package/client/build/static/js/3.7073b0d8.chunk.js.map +1 -0
  94. package/client/build/static/js/main.494a7501.chunk.js +2 -0
  95. package/client/build/static/js/main.494a7501.chunk.js.map +1 -0
  96. package/client/build/static/js/runtime-main.00264969.js +2 -0
  97. package/client/build/static/js/runtime-main.00264969.js.map +1 -0
  98. package/client/build/static/media/fa-brands-400.2285773e.woff +0 -0
  99. package/client/build/static/media/fa-brands-400.23f19bb0.eot +0 -0
  100. package/client/build/static/media/fa-brands-400.2f517e09.svg +3717 -0
  101. package/client/build/static/media/fa-brands-400.527940b1.ttf +0 -0
  102. package/client/build/static/media/fa-brands-400.d878b0a6.woff2 +0 -0
  103. package/client/build/static/media/fa-regular-400.4689f52c.svg +801 -0
  104. package/client/build/static/media/fa-regular-400.491974d1.ttf +0 -0
  105. package/client/build/static/media/fa-regular-400.77206a6b.eot +0 -0
  106. package/client/build/static/media/fa-regular-400.7a333762.woff2 +0 -0
  107. package/client/build/static/media/fa-regular-400.bb58e57c.woff +0 -0
  108. package/client/build/static/media/fa-solid-900.1551f4f6.woff2 +0 -0
  109. package/client/build/static/media/fa-solid-900.7a8b4f13.svg +5034 -0
  110. package/client/build/static/media/fa-solid-900.9bbb245e.eot +0 -0
  111. package/client/build/static/media/fa-solid-900.be9ee23c.ttf +0 -0
  112. package/client/build/static/media/fa-solid-900.eeccf4f6.woff +0 -0
  113. package/package.json +80 -0
@@ -0,0 +1,2 @@
1
+ (this.webpackJsonpclient=this.webpackJsonpclient||[]).push([[3],{208:function(t,e,n){"use strict";n.r(e),n.d(e,"getCLS",(function(){return d})),n.d(e,"getFCP",(function(){return S})),n.d(e,"getFID",(function(){return F})),n.d(e,"getLCP",(function(){return k})),n.d(e,"getTTFB",(function(){return C}));var i,a,r,o,u=function(t,e){return{name:t,value:void 0===e?-1:e,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(t){return t.getEntries().map(e)}));return n.observe({type:t,buffered:!0}),n}}catch(t){}},f=function(t,e){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(t(i),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},s=function(t){addEventListener("pageshow",(function(e){e.persisted&&t(e)}),!0)},m="function"==typeof WeakSet?new WeakSet:new Set,p=function(t,e,n){var i;return function(){e.value>=0&&(n||m.has(e)||"hidden"===document.visibilityState)&&(e.delta=e.value-(i||0),(e.delta||void 0===i)&&(i=e.value,t(e)))}},d=function(t,e){var n,i=u("CLS",0),a=function(t){t.hadRecentInput||(i.value+=t.value,i.entries.push(t),n())},r=c("layout-shift",a);r&&(n=p(t,i,e),f((function(){r.takeRecords().map(a),n()})),s((function(){i=u("CLS",0),n=p(t,i,e)})))},v=-1,l=function(){return"hidden"===document.visibilityState?0:1/0},h=function(){f((function(t){var e=t.timeStamp;v=e}),!0)},g=function(){return v<0&&(v=l(),h(),s((function(){setTimeout((function(){v=l(),h()}),0)}))),{get timeStamp(){return v}}},S=function(t,e){var n,i=g(),a=u("FCP"),r=function(t){"first-contentful-paint"===t.name&&(f&&f.disconnect(),t.startTime<i.timeStamp&&(a.value=t.startTime,a.entries.push(t),m.add(a),n()))},o=performance.getEntriesByName("first-contentful-paint")[0],f=o?null:c("paint",r);(o||f)&&(n=p(t,a,e),o&&r(o),s((function(i){a=u("FCP"),n=p(t,a,e),requestAnimationFrame((function(){requestAnimationFrame((function(){a.value=performance.now()-i.timeStamp,m.add(a),n()}))}))})))},y={passive:!0,capture:!0},E=new Date,w=function(t,e){i||(i=e,a=t,r=new Date,b(removeEventListener),L())},L=function(){if(a>=0&&a<r-E){var t={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+a};o.forEach((function(e){e(t)})),o=[]}},T=function(t){if(t.cancelable){var e=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?function(t,e){var n=function(){w(t,e),a()},i=function(){a()},a=function(){removeEventListener("pointerup",n,y),removeEventListener("pointercancel",i,y)};addEventListener("pointerup",n,y),addEventListener("pointercancel",i,y)}(e,t):w(e,t)}},b=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach((function(e){return t(e,T,y)}))},F=function(t,e){var n,r=g(),d=u("FID"),v=function(t){t.startTime<r.timeStamp&&(d.value=t.processingStart-t.startTime,d.entries.push(t),m.add(d),n())},l=c("first-input",v);n=p(t,d,e),l&&f((function(){l.takeRecords().map(v),l.disconnect()}),!0),l&&s((function(){var r;d=u("FID"),n=p(t,d,e),o=[],a=-1,i=null,b(addEventListener),r=v,o.push(r),L()}))},k=function(t,e){var n,i=g(),a=u("LCP"),r=function(t){var e=t.startTime;e<i.timeStamp&&(a.value=e,a.entries.push(t)),n()},o=c("largest-contentful-paint",r);if(o){n=p(t,a,e);var d=function(){m.has(a)||(o.takeRecords().map(r),o.disconnect(),m.add(a),n())};["keydown","click"].forEach((function(t){addEventListener(t,d,{once:!0,capture:!0})})),f(d,!0),s((function(i){a=u("LCP"),n=p(t,a,e),requestAnimationFrame((function(){requestAnimationFrame((function(){a.value=performance.now()-i.timeStamp,m.add(a),n()}))}))}))}},C=function(t){var e,n=u("TTFB");e=function(){try{var e=performance.getEntriesByType("navigation")[0]||function(){var t=performance.timing,e={entryType:"navigation",startTime:0};for(var n in t)"navigationStart"!==n&&"toJSON"!==n&&(e[n]=Math.max(t[n]-t.navigationStart,0));return e}();if(n.value=n.delta=e.responseStart,n.value<0)return;n.entries=[e],t(n)}catch(t){}},"complete"===document.readyState?setTimeout(e,0):addEventListener("pageshow",e)}}}]);
2
+ //# sourceMappingURL=3.7073b0d8.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../node_modules/web-vitals/dist/web-vitals.js"],"names":["e","t","n","i","a","name","value","delta","entries","id","concat","Date","now","Math","floor","random","r","PerformanceObserver","supportedEntryTypes","includes","self","getEntries","map","observe","type","buffered","o","document","visibilityState","removeEventListener","addEventListener","c","persisted","u","WeakSet","Set","f","has","s","hadRecentInput","push","takeRecords","m","p","v","timeStamp","d","setTimeout","l","disconnect","startTime","add","performance","getEntriesByName","requestAnimationFrame","h","passive","capture","S","y","w","g","entryType","target","cancelable","processingStart","forEach","E","L","T","once","b","getEntriesByType","timing","max","navigationStart","responseStart","readyState"],"mappings":"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","file":"static/js/3.7073b0d8.chunk.js","sourcesContent":["var e,t,n,i,a=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:\"v1-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12)}},r=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if(\"first-input\"===e&&!(\"PerformanceEventTiming\"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},o=function(e,t){var n=function n(i){\"pagehide\"!==i.type&&\"hidden\"!==document.visibilityState||(e(i),t&&(removeEventListener(\"visibilitychange\",n,!0),removeEventListener(\"pagehide\",n,!0)))};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},c=function(e){addEventListener(\"pageshow\",(function(t){t.persisted&&e(t)}),!0)},u=\"function\"==typeof WeakSet?new WeakSet:new Set,f=function(e,t,n){var i;return function(){t.value>=0&&(n||u.has(t)||\"hidden\"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},s=function(e,t){var n,i=a(\"CLS\",0),u=function(e){e.hadRecentInput||(i.value+=e.value,i.entries.push(e),n())},s=r(\"layout-shift\",u);s&&(n=f(e,i,t),o((function(){s.takeRecords().map(u),n()})),c((function(){i=a(\"CLS\",0),n=f(e,i,t)})))},m=-1,p=function(){return\"hidden\"===document.visibilityState?0:1/0},v=function(){o((function(e){var t=e.timeStamp;m=t}),!0)},d=function(){return m<0&&(m=p(),v(),c((function(){setTimeout((function(){m=p(),v()}),0)}))),{get timeStamp(){return m}}},l=function(e,t){var n,i=d(),o=a(\"FCP\"),s=function(e){\"first-contentful-paint\"===e.name&&(p&&p.disconnect(),e.startTime<i.timeStamp&&(o.value=e.startTime,o.entries.push(e),u.add(o),n()))},m=performance.getEntriesByName(\"first-contentful-paint\")[0],p=m?null:r(\"paint\",s);(m||p)&&(n=f(e,o,t),m&&s(m),c((function(i){o=a(\"FCP\"),n=f(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-i.timeStamp,u.add(o),n()}))}))})))},h={passive:!0,capture:!0},S=new Date,y=function(i,a){e||(e=a,t=i,n=new Date,w(removeEventListener),g())},g=function(){if(t>=0&&t<n-S){var a={entryType:\"first-input\",name:e.type,target:e.target,cancelable:e.cancelable,startTime:e.timeStamp,processingStart:e.timeStamp+t};i.forEach((function(e){e(a)})),i=[]}},E=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,t){var n=function(){y(e,t),a()},i=function(){a()},a=function(){removeEventListener(\"pointerup\",n,h),removeEventListener(\"pointercancel\",i,h)};addEventListener(\"pointerup\",n,h),addEventListener(\"pointercancel\",i,h)}(t,e):y(t,e)}},w=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(t){return e(t,E,h)}))},L=function(n,s){var m,p=d(),v=a(\"FID\"),l=function(e){e.startTime<p.timeStamp&&(v.value=e.processingStart-e.startTime,v.entries.push(e),u.add(v),m())},h=r(\"first-input\",l);m=f(n,v,s),h&&o((function(){h.takeRecords().map(l),h.disconnect()}),!0),h&&c((function(){var r;v=a(\"FID\"),m=f(n,v,s),i=[],t=-1,e=null,w(addEventListener),r=l,i.push(r),g()}))},T=function(e,t){var n,i=d(),s=a(\"LCP\"),m=function(e){var t=e.startTime;t<i.timeStamp&&(s.value=t,s.entries.push(e)),n()},p=r(\"largest-contentful-paint\",m);if(p){n=f(e,s,t);var v=function(){u.has(s)||(p.takeRecords().map(m),p.disconnect(),u.add(s),n())};[\"keydown\",\"click\"].forEach((function(e){addEventListener(e,v,{once:!0,capture:!0})})),o(v,!0),c((function(i){s=a(\"LCP\"),n=f(e,s,t),requestAnimationFrame((function(){requestAnimationFrame((function(){s.value=performance.now()-i.timeStamp,u.add(s),n()}))}))}))}},b=function(e){var t,n=a(\"TTFB\");t=function(){try{var t=performance.getEntriesByType(\"navigation\")[0]||function(){var e=performance.timing,t={entryType:\"navigation\",startTime:0};for(var n in e)\"navigationStart\"!==n&&\"toJSON\"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();if(n.value=n.delta=t.responseStart,n.value<0)return;n.entries=[t],e(n)}catch(e){}},\"complete\"===document.readyState?setTimeout(t,0):addEventListener(\"pageshow\",t)};export{s as getCLS,l as getFCP,L as getFID,T as getLCP,b as getTTFB};\n"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ (this.webpackJsonpclient=this.webpackJsonpclient||[]).push([[0],{115:function(e,t,s){},116:function(e,t,s){},161:function(e,t,s){"use strict";s.r(t);var o=s(0),r=s.n(o),n=s(11),a=s.n(n),i=(s(115),s(116),s(117),s(118),s(201)),c=s(197),l=s(13),p=s(80),u=s(198),d=s(15),h=s(21),b=s(195),g=s(196),_=s(45),m=s.n(_),j=s(1);function y(e){var t=new Date(e),s=t.getHours().toString().padStart(2,"0"),o=t.getMinutes().toString().padStart(2,"0"),r=t.getSeconds().toString().padStart(2,"0"),n=(t.getMilliseconds()/1e3).toFixed(3).toString().replace("0.","");return"".concat(s,":").concat(o,":").concat(r,".").concat(n)}var f=Object(l.a)((function(e){var t=e.isActive,s=e.onClick,o=e.store,r=e.onResend,n=e.timeBarPercent,a=o.getMessage();return Object(j.jsxs)("div",{children:[Object(j.jsx)("div",{className:"request__msg-container",children:Object(j.jsxs)("div",{className:"request__msg-header",children:[Object(j.jsxs)("div",{className:"request__msg-time-bar-container",title:"".concat(a.elapsedTime," ms, ").concat(y(a.timestamp),", seqNum=").concat(a.sequenceNumber),children:[Object(j.jsx)("div",{style:{width:"calc(100% - ".concat(n,")")}}),Object(j.jsx)("div",{className:"request__msg-time-bar",style:{width:n}})]}),Object(j.jsx)("div",{className:"".concat(o.getIconClass()," request__msg-icon"),style:{cursor:"pointer",float:"left",color:o.getColor()}}),Object(j.jsx)("button",{className:"request__msg-resend-btn ".concat(t&&function(){var e;return("http:"===a.protocol||"https:"===a.protocol)&&"grpc:"!==(null===(e=a.proxyConfig)||void 0===e?void 0:e.protocol)&&("GET"===a.method||"POST"===a.method||"HEAD"===a.method)}()?"active":""," btn btn-xs btn-success"),onClick:r,children:"Resend"}),Object(j.jsxs)("div",{className:"request__msg\n\t\t\t\t\t\t".concat(t?" active":"","\n\t\t\t\t\t\t").concat(o.isError()?" error":"","\n\t\t\t\t\t\t").concat(o.isNoResponse()?" no-response":"","\n\t\t\t\t\t\t").concat(!o.getVisited()||o.isError()||o.isNoResponse()?"":" visited-color","\n\t\t\t\t\t\t"),title:o.getRequestBody(),onClick:function(){s(),o.setVisited(!0)},children:[Object(j.jsx)("div",{className:"fa ".concat(t?"fa-caret-down":"fa-caret-right"," request__msg-caret")}),o.isHttpOrHttps()&&!o.isNoResponse()&&a.status+" ",a.method+" ",Object(j.jsx)("b",{children:a.endpoint+" "}),o.getRequestLine()]})]})}),Object(j.jsx)("div",{className:"request__body",hidden:!t,children:o.isRequestBodyJson()?Object(j.jsx)(m.a,{src:a.requestBody,name:!1,displayDataTypes:!1,quotesOnKeys:!1}):o.getRequestBody()})]})})),O=s(47),v=s.n(O),x=s(63),S=s(205),C=s(193),k=s(194),E=s(56),N=s.n(E);var P,w=function(e){var t=e.message,s=e.store,o="Loading...",n=r.a.useState(o),a=Object(d.a)(n,2),i=a[0],c=a[1],l=function(e){var t=[];if(e.url&&-1!==e.url.indexOf("?")){e.url.split("?")[1].split("&").forEach((function(e){var s=e.split("="),o=s.length>1?unescape(s[1]):void 0;t.push(s[0]+" = "+o)}))}return 0===t.length?null:t}(t);return function(e){return p.apply(this,arguments)}(t).then((function(e){return c(e)})),Object(j.jsx)("div",{children:Object(j.jsxs)(r.a.Fragment,{children:[Object(j.jsxs)("div",{className:t.status<400?"":"error",children:[Object(j.jsx)("b",{children:"Status:\xa0"}),t.status]}),s.isGrpc()&&Object(j.jsxs)("div",{children:[Object(j.jsxs)("div",{className:0===s.getGrpcStatus()?"":"error",children:[Object(j.jsx)("b",{children:"GRPC Status:\xa0"}),s.getGrpcStatus()]}),s.getGrpcMessage().length>0&&Object(j.jsxs)("div",{children:[Object(j.jsx)("b",{children:"GRPC Message:\xa0"}),s.getGrpcMessage()]})]}),Object(j.jsxs)("div",{children:[Object(j.jsx)("b",{children:"Elapsed time:\xa0"}),t.elapsedTime," ms"]}),Object.keys(t.requestHeaders).length>0?Object(j.jsxs)(S.a,{children:[Object(j.jsx)(C.a,{expandIcon:Object(j.jsx)(N.a,{}),children:Object(j.jsx)("b",{children:"Request Headers:"})}),Object(j.jsx)(k.a,{children:Object(j.jsx)("pre",{children:JSON.stringify(t.requestHeaders,null,2)})})]}):null,Object.keys(t.responseHeaders).length>0?Object(j.jsxs)(S.a,{children:[Object(j.jsx)(C.a,{expandIcon:Object(j.jsx)(N.a,{}),children:Object(j.jsx)("b",{children:"Response Headers:"})}),Object(j.jsx)(k.a,{children:Object(j.jsx)("pre",{children:JSON.stringify(t.responseHeaders,null,2)})})]}):null,l?Object(j.jsxs)(S.a,{children:[Object(j.jsx)(C.a,{expandIcon:Object(j.jsx)(N.a,{}),children:Object(j.jsx)("b",{children:"Query Parameters:"})}),Object(j.jsx)(k.a,{children:Object(j.jsx)("pre",{children:JSON.stringify(l,null,2)})})]}):null,Object(j.jsxs)(S.a,{defaultExpanded:!0,children:[Object(j.jsx)(C.a,{expandIcon:Object(j.jsx)(N.a,{}),children:Object(j.jsx)("b",{children:"Response Data:"})}),Object(j.jsx)(k.a,{children:"string"===typeof i?Object(j.jsx)("pre",{children:i}):i})]}),i===o&&Object(j.jsx)("div",{style:{width:"100%",marginTop:"1rem",display:"flex",justifyContent:"center",alignItems:"center"},children:Object(j.jsx)(b.a,{})})]})});function p(){return(p=Object(x.a)(v.a.mark((function e(t){return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var s;s="object"===typeof t.responseBody?Object(j.jsx)(m.a,{src:t.responseBody,name:!1,displayDataTypes:!1,quotesOnKeys:!1}):t.responseBody,setTimeout((function(){return e(s)}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},D=s(203),M=Object(l.a)((function(e){var t=e.open,s=e.onClose,o=e.store,r=o.getMessage();return Object(j.jsx)(D.a,{className:"modal-window",open:t,onClose:s,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",children:Object(j.jsx)("div",{className:"settings-modal",children:Object(j.jsxs)("div",{children:[Object(j.jsx)("h3",{className:"modal-title",children:"Edit Request and Send"}),Object(j.jsxs)("div",{className:"modal-body",children:[Object(j.jsx)("div",{children:Object(j.jsx)("label",{children:"URL:"})}),Object(j.jsx)("div",{className:"resend-modal__url-container",children:Object(j.jsx)("textarea",{className:"resend-modal__url form-control",rows:2,cols:300,onChange:function(e){return o.setMethodAndUrl(e.target.value)},value:o.getMethodAndUrl(),placeholder:"<method> <url>"})}),Object(j.jsx)("div",{style:{marginTop:"10px"},children:Object(j.jsx)("label",{children:"Body:\xa0"})}),Object(j.jsx)("div",{className:"resend-modal__body-container",children:"object"===typeof r.requestBody&&o.isBodyJson()?Object(j.jsx)(m.a,{src:r.requestBody,name:!1,displayDataTypes:!1,quotesOnKeys:!1,onEdit:function(e){return o.setBody(e.updated_src),!0},onAdd:function(e){return o.setBody(e.updated_src),!0},onDelete:function(e){return o.setBody(e.updated_src),!0}}):Object(j.jsx)("textarea",{className:"resend-modal__body form-control",rows:10,cols:300,onChange:function(e){return o.setBody(e.target.value)},value:o.getBody(),placeholder:"Enter request body"})})]}),Object(j.jsxs)("div",{className:"modal-footer",children:[Object(j.jsx)("label",{className:"resend-modal__error-message",children:o.getError()}),Object(j.jsx)("button",{type:"button",className:"settings-modal__cancel btn btn-default btn-default",onClick:s,children:"Cancel"}),Object(j.jsx)("button",{type:"button",className:"resend-modal__send btn btn-default btn-success",onClick:function(){o.doResend(),s()},disabled:o.getError().length>0,children:"Send"})]})]})})})})),T=s(9),R=s(12),q=s(5),L=s(3),A=s(18),B=s(102),I=s.n(B),U="No Response";!function(e){e[e.REQUEST=0]="REQUEST",e[e.RESPONSE=1]="RESPONSE",e[e.REQUEST_AND_RESPONSE=2]="REQUEST_AND_RESPONSE"}(P||(P={}));var F,H=function e(){Object(T.a)(this,e),this.type=P.REQUEST_AND_RESPONSE,this.timestamp=0,this.sequenceNumber=0,this.requestHeaders={},this.responseHeaders={},this.method="",this.protocol="",this.url="",this.endpoint="",this.requestBody="",this.responseBody="",this.clientIp="",this.serverHost="",this.path="",this.elapsedTime=0,this.status=0,this.proxyConfig=void 0},W=function(){function e(t){Object(T.a)(this,e),this.isSecure=!1,this.path="",this.protocol="http:",this.hostname="",this.port=0,this.recording=!0,this.hostReachable=!0,this.logProxyProcess=void 0,this._server=void 0,this.comment="",Object(L.e)(this),t&&(this.isSecure=t.isSecure||"https:"===t.protocol,this.path=t.path,this.protocol=t.protocol,this.hostname=t.hostname,this.port=t.port,this.recording=t.recording,this.hostReachable=t.hostReachable,this.comment=t.comment)}return Object(R.a)(e,null,[{key:"isHttpOrHttps",value:function(e){switch(e.protocol){case"http:":case"https:":case"browser:":return!0;default:return!1}}}]),e}(),K=new(F=function(){function e(){Object(T.a)(this,e),this.proxyConfigs=this.getFromLocalStorage(),Object(L.e)(this)}return Object(R.a)(e,[{key:"getFromLocalStorage",value:function(){var e=[];if(localStorage.proxyDirectives)try{e=JSON.parse(localStorage.proxyDirectives),localStorage.proxyDirectives=void 0}catch(t){}return e}},{key:"merge",value:function(e){var t,s=this.proxyConfigs,o=Object(A.a)(s);try{var r=function(){var s=t.value;0===e.filter((function(e){return s.protocol===e.protocol&&s.path===e.path&&("browser:"===s.protocol||"log:"===s.protocol||s.hostname===e.hostname&&s.port===e.port)})).length&&e.push(s)};for(o.s();!(t=o.n()).done;)r()}catch(n){o.e(n)}finally{o.f()}this.updateProxyConfigs(e)}},{key:"load",value:function(){var e=this.proxyConfigs;e.forEach((function(e){"any:"!==e.protocol&&"other:"!==e.protocol||(e.protocol="tcp:")})),xe.emitConfig("proxy config",e)}},{key:"retrieveProxyConfigs",value:function(){var e=this,t={proxyall:"config"};return new Promise((function(s){var o=document.location.protocol+"//"+document.location.host+"/api/proxyall/config";fetch(o,t).then((function(e){return e.json()})).then((function(t){s(t),e.setProxyConfigs(t)}))}))}},{key:"getProxyConfigs",value:function(){return this.proxyConfigs}},{key:"setProxyConfigs",value:function(e){this.updateProxyConfigs(e)}},{key:"updateProxyConfigs",value:function(e){var t=this;this.proxyConfigs.splice(0,this.proxyConfigs.length),this.sortConfigs(e).forEach((function(e){t.proxyConfigs.push(new W(e))}))}},{key:"sortConfigs",value:function(e){return e.sort((function(e,t){var s=e.protocol.localeCompare(t.protocol);return 0===s&&0===(s=e.hostname.localeCompare(t.hostname))&&(s=e.path.localeCompare(t.path)),s})),e}}]),e}(),Object(q.a)(F.prototype,"merge",[L.b],Object.getOwnPropertyDescriptor(F.prototype,"merge"),F.prototype),Object(q.a)(F.prototype,"setProxyConfigs",[L.b],Object.getOwnPropertyDescriptor(F.prototype,"setProxyConfigs"),F.prototype),F),Q=["blue","green","purple","brown","darkpink","slateblue","darkorange"],V=0,G=new Map;function J(e){var t="";switch(e){case"http:":case"https:":t="fa fa-paper-plane";break;case"browser:":t=function(e){var t="fa fa-window-maximize";if(e){if((e=e.toLowerCase()).includes("firefox"))return"fab fa-firefox";if(e.includes("chrome")||e.includes("chromium"))return"fab fa-chrome"}(window.opr&&window.opr.addons||window.opera||navigator.userAgent.indexOf(" OPR/")>=0)&&(t="fab fa-opera");"undefined"!==typeof InstallTrigger&&(t="fab fa-firefox");var s=!!document.documentMode;s&&(t="fab fa-edge-legacy");!s&&window.StyleMedia&&(t="fab fa-edge");var o=!!window.chrome;o&&(t="fab fa-chrome");o&&-1!==navigator.userAgent.indexOf("Edg")&&(t="fab fa-edge");return t}();break;case"sql:":t="fa fa-database";break;case"mongo:":t="fa fa-leaf";break;case"redis:":t="fa fa-cube";break;case"grpc:":t="fa fa-bahai";break;case"log:":t="fa fa-exclamation-triangle";break;default:t="fa fa-arrows-alt-h"}return t}var X,z,Y,Z,$,ee,te=function(){function e(){Object(T.a)(this,e)}return Object(R.a)(e,null,[{key:"fixNewlines",value:function(e){return e.replace(/\\n/g,"\n").replace(/\\/g,"").replace(/""/g,'"')}},{key:"isGraphQlError",value:function(e){var t,s;if(((null===(t=e.url)||void 0===t?void 0:t.endsWith("/graphql"))||(null===(s=e.url)||void 0===s?void 0:s.endsWith("/graphql-public")))&&Array.isArray(e.responseBody)){var o,r=Object(A.a)(e.responseBody);try{for(r.s();!(o=r.n()).done;){if(o.value.errors)return!0}}catch(n){r.e(n)}finally{r.f()}}return!1}}]),e}(),se=(X=function(){function e(t){Object(T.a)(this,e),this.message=new H,this.url="",this._isError=!1,this.visited=!1,this.color="",this.iconClass="",this.tooltip="",this.message=t,this.url=this.formatUrl(t.url),this._isError=this.isErrorResponse(t),this.visited=!1,this.color=function(e){var t=e.proxyConfig.protocol;if("browser:"===t)return"orangered";var s="";switch(t){case"log:":var o=e.proxyConfig.path.trim().split(" ");s=o[o.length-1];break;default:e.clientIp&&(s=e.clientIp.trim())}var r=G.get(s);return void 0===r&&("error"===s?r="red":(r=Q[V%Q.length],++V,G.set(s,r),Q.includes(r)||console.error("Color is undefined key=".concat(s," count=").concat(V,", ").concat(G)))),r}(t),"resend"===t.requestHeaders.proxyall?(this.iconClass="fa fa-clone",this.iconClass+=" resend-icon"):this.iconClass=J(t.proxyConfig.protocol),this.tooltip=t.method?"Click to resend request":"",Object(L.e)(this)}return Object(R.a)(e,[{key:"getMessage",value:function(){return this.message}},{key:"getUrl",value:function(){return this.url}},{key:"isNoResponse",value:function(){return this.message.responseBody===U}},{key:"isError",value:function(){return this._isError}},{key:"getColor",value:function(){return this.color}},{key:"getIconClass",value:function(){return this.iconClass}},{key:"getTooltip",value:function(){return this.tooltip}},{key:"getVisited",value:function(){return this.visited}},{key:"getRequestLine",value:function(){return this.message.proxyConfig&&"browser:"===this.message.proxyConfig.protocol?"".concat(this.message.clientIp,"->").concat(this.getUrl()):"(".concat(this.message.clientIp,"->").concat(this.message.serverHost,") ").concat(this.getUrl())}},{key:"setVisited",value:function(e){this.visited=e}},{key:"isRequestBodyJson",value:function(){return this.message.requestBody&&"object"===typeof this.message.requestBody&&("http:"===this.message.protocol||"https:"===this.message.protocol)}},{key:"getRequestBody",value:function(){var e=this.message.method&&this.message.method.length>0?this.url+"\n":"";if(this.message.requestBody){var t=this.message.requestBody;if(t.proxyall_inner_body)e+=t.proxyall_inner_body;else if("string"===typeof this.message.requestBody&&this.message.requestHeaders["content-type"]&&this.message.requestHeaders["content-type"].includes("application/x-www-form-urlencoded")){var s=this.message.requestBody.split("&");e+=JSON.stringify(s,null,2)}else"string"===typeof this.message.requestBody?e+=this.message.requestBody:e+=JSON.stringify(this.message.requestBody,null,2)}return e}},{key:"isHttpOrHttps",value:function(){return"http:"===this.message.protocol||"https:"===this.message.protocol}},{key:"isGrpc",value:function(){var e;return"grpc:"===(null===(e=this.message.proxyConfig)||void 0===e?void 0:e.protocol)}},{key:"getGrpcStatus",value:function(){var e=this.message.responseHeaders["grpc-status"];return e?Number(e):0}},{key:"getGrpcMessage",value:function(){var e=this.message.responseHeaders["grpc-message"];return e||""}},{key:"formatUrl",value:function(e){var t=unescape(e);return(t=te.fixNewlines(t)).split(/\s+/).join(" ")}},{key:"isErrorResponse",value:function(e){var t;return e.status>=400||"grpc:"===(null===(t=e.proxyConfig)||void 0===t?void 0:t.protocol)&&e.responseHeaders["grpc-status"]&&Number(e.responseHeaders["grpc-status"])>0||"sql:"===e.protocol&&0!==e.status||te.isGraphQlError(e)}}]),e}(),Object(q.a)(X.prototype,"setVisited",[L.b],Object.getOwnPropertyDescriptor(X.prototype,"setVisited"),X.prototype),X),oe="proxyall-breakpoints",re=new(z=function(){function e(){Object(T.a)(this,e),this.breakpointList=[],this._editing=!1,Object(L.e)(this)}return Object(R.a)(e,[{key:"editing",value:function(e){this._editing=e}},{key:"changed",value:function(){this.save()}},{key:"init",value:function(){var e=localStorage.getItem(oe);if(e){var t=JSON.parse(e);this.breakpointList=t.map((function(e){var t=new h.a;return t.setEnabled(e.enabled),t.setFilter(e.searchFilter),t.setRegex(e._regex),t.setMatchCase(!!e._matchCase),t.setLogical(!!e._logical),t}))}else this.breakpointList=[]}},{key:"save",value:function(){var e=this.breakpointList.filter((function(e){return e.getFilter().length>0}));localStorage.setItem(oe,JSON.stringify(e))}},{key:"findMatchingBreakpoint",value:function(e){if(0===this.breakpointList.length||this._editing)return null;var t,s=Object(A.a)(this.breakpointList);try{for(s.s();!(t=s.n()).done;){var o=t.value;if(o.isEnabled()&&!o.isFiltered(new se(e)))return o}}catch(r){s.e(r)}finally{s.f()}return null}},{key:"getBreakpointList",value:function(){return this.breakpointList}},{key:"extend",value:function(){this.breakpointList.push(new h.a)}},{key:"deleteEntry",value:function(e){this.breakpointList.splice(e,1),this.save()}}]),e}(),Object(q.a)(z.prototype,"editing",[L.b],Object.getOwnPropertyDescriptor(z.prototype,"editing"),z.prototype),Object(q.a)(z.prototype,"changed",[L.b],Object.getOwnPropertyDescriptor(z.prototype,"changed"),z.prototype),Object(q.a)(z.prototype,"init",[L.b],Object.getOwnPropertyDescriptor(z.prototype,"init"),z.prototype),Object(q.a)(z.prototype,"save",[L.b],Object.getOwnPropertyDescriptor(z.prototype,"save"),z.prototype),Object(q.a)(z.prototype,"extend",[L.b],Object.getOwnPropertyDescriptor(z.prototype,"extend"),z.prototype),Object(q.a)(z.prototype,"deleteEntry",[L.b],Object.getOwnPropertyDescriptor(z.prototype,"deleteEntry"),z.prototype),z),ne="Active",ae=function(){function e(){Object(T.a)(this,e),this.snapshots=new Map,this.names=[],this.selectedReqSeqNumbers=[],this.scrollTop=[],this.fileNameMap=new Map,Object(L.e)(this)}return Object(R.a)(e,[{key:"get",value:function(e){return this.snapshots.get(e)}},{key:"set",value:function(e,t,s){this.snapshots.set(e,t),this.names.push(e),this.selectedReqSeqNumbers.push(Number.MAX_SAFE_INTEGER),this.scrollTop.push(0),s&&this.fileNameMap.set(e,s)}},{key:"delete",value:function(e){this.snapshots.delete(e);var t=this.names.indexOf(e);this.names.splice(t,1),this.selectedReqSeqNumbers.splice(t,1),this.scrollTop.splice(t,1),this.fileNameMap.delete(e)}},{key:"count",value:function(){return this.names.length}},{key:"getNames",value:function(){return this.names}},{key:"getSelectedReqSeqNumbers",value:function(){return this.selectedReqSeqNumbers}},{key:"getScrollTop",value:function(){return this.scrollTop}},{key:"getFileName",value:function(e){return this.fileNameMap.get(e)}}]),e}(),ie=new(Y=function(){function e(){Object(T.a)(this,e),this.selectedSnapshotName=ne,this.snapshots=new ae,this.snapshots.set(ne,[]),Object(L.e)(this)}return Object(R.a)(e,[{key:"isActiveSnapshotSelected",value:function(){return this.selectedSnapshotName===ne}},{key:"getActiveSnapshot",value:function(){return this.snapshots.get(ne)}},{key:"getSnapshotNames",value:function(){return this.snapshots.getNames()}},{key:"getSelectedReqSeqNumbers",value:function(){return this.snapshots.getSelectedReqSeqNumbers()}},{key:"getScrollTop",value:function(){return this.snapshots.getScrollTop()}},{key:"getSnapshotName",value:function(e){var t=this.snapshots.getFileName(e);return t?t.replace(".proxyall",""):"SNAPSHOT"}},{key:"getSnapshotCount",value:function(){return this.snapshots.count()}},{key:"getSnapshotSize",value:function(e){return this.snapshots.get(e).length}},{key:"getSelectedSnapshotName",value:function(){return this.selectedSnapshotName}},{key:"setSelectedSnapshotName",value:function(e){this.selectedSnapshotName=e}},{key:"newSnapshot",value:function(e,t){var s=function(e){return(e+"").padStart(2,"0")},o=this.snapshots.get(ne),r=new Date,n="Snapshot "+s((r.getHours()>=12?r.getHours()-12:r.getHours())+1)+":"+s(r.getMinutes())+"."+s(r.getSeconds());return t?this.snapshots.set(n,t,e):(this.snapshots.set(n,o.slice(),e),o.splice(0,o.length)),n}},{key:"deleteSnapshot",value:function(e){this.snapshots.delete(e),this.selectedSnapshotName===e&&(this.selectedSnapshotName=ne)}},{key:"deleteAllSnapshots",value:function(){var e,t=Object(A.a)(this.snapshots.getNames().slice());try{for(t.s();!(e=t.n()).done;){var s=e.value;s!==ne&&this.deleteSnapshot(s)}}catch(o){t.e(o)}finally{t.f()}this.selectedSnapshotName=ne}},{key:"exportSelectedSnapshot",value:function(e){var t,s=document.createElement("a"),o=[],r=Object(A.a)(this.getSelectedMessages());try{for(r.s();!(t=r.n()).done;){var n=t.value;o.push(n.getMessage())}}catch(i){r.e(i)}finally{r.f()}var a=new Blob([JSON.stringify(o,null,2)],{type:"text/plain"});s.href=URL.createObjectURL(a),s.download=e+".proxyall",document.body.appendChild(s),s.click()}},{key:"importSnapshot",value:function(e,t){var s,o=JSON.parse(t),r=[],n=Object(A.a)(o);try{for(n.s();!(s=n.n()).done;){var a=s.value,i=new se(a);r.push(i)}}catch(c){n.e(c)}finally{n.f()}this.newSnapshot(e,r)}},{key:"getSelectedMessages",value:function(){return this.snapshots.get(this.selectedSnapshotName)}}]),e}(),Object(q.a)(Y.prototype,"setSelectedSnapshotName",[L.b],Object.getOwnPropertyDescriptor(Y.prototype,"setSelectedSnapshotName"),Y.prototype),Object(q.a)(Y.prototype,"newSnapshot",[L.b],Object.getOwnPropertyDescriptor(Y.prototype,"newSnapshot"),Y.prototype),Y),ce="proxyall-limit",le=new(Z=function(){function e(){Object(T.a)(this,e),this.limit=this._getLimit(),this.stopped=!1,this.autoScroll=!1,Object(L.e)(this)}return Object(R.a)(e,[{key:"_getLimit",value:function(){var e=localStorage.getItem(ce);return e?Number(e):(localStorage.setItem(ce,"1000"),1e3)}},{key:"getLimit",value:function(){return this.limit}},{key:"setLimit",value:function(e){localStorage.setItem(ce,e+""),this.limit=e}},{key:"getStopped",value:function(){return this.stopped}},{key:"setStopped",value:function(e){this.stopped=e}},{key:"toggleStopped",value:function(){this.stopped=!this.stopped}},{key:"getAutoScroll",value:function(){return ie.isActiveSnapshotSelected()&&this.autoScroll}},{key:"toggleAutoScroll",value:function(){this.autoScroll=!this.autoScroll}},{key:"clear",value:function(){for(;ie.getActiveSnapshot().length>0;)ie.getActiveSnapshot().pop();this.stopped=!1}},{key:"getMessages",value:function(){return ie.getSelectedMessages()}},{key:"insertBatch",value:function(e){if(!this.stopped){var t,s=ie.getActiveSnapshot(),o=s.slice(),r=Object(A.a)(e);try{for(r.s();!(t=r.n()).done;){var n,a=t.value;if(!(null===(n=a.proxyConfig)||void 0===n?void 0:n.recording))return;for(var i=0,c=o.length-1,l=0,p=0;i<=c&&(p=o[l=i+Math.floor((c-i)/2)].getMessage().sequenceNumber)!==a.sequenceNumber;)p<a.sequenceNumber?i=l+1:c=l-1;var u=new se(a);0===o.length?o.push(u):p===a.sequenceNumber?u.getMessage().responseBody!==U&&(o[l]=u):p<a.sequenceNumber?o.splice(l+1,0,u):p>a.sequenceNumber&&o.splice(l,0,u);var d=re.findMatchingBreakpoint(a);d&&(s.splice(0,s.length),Array.prototype.push.apply(s,o),o.splice(0,o.length),ie.newSnapshot(d.getFilter()),d.setEnabled(!1),re.changed()),o.length>=this.limit+this.limit/2&&o.splice(0,o.length-this.limit)}}catch(h){r.e(h)}finally{r.f()}s.splice(0,s.length),Array.prototype.push.apply(s,o)}}}]),e}(),Object(q.a)(Z.prototype,"setLimit",[L.b],Object.getOwnPropertyDescriptor(Z.prototype,"setLimit"),Z.prototype),Object(q.a)(Z.prototype,"setStopped",[L.b],Object.getOwnPropertyDescriptor(Z.prototype,"setStopped"),Z.prototype),Object(q.a)(Z.prototype,"toggleStopped",[L.b],Object.getOwnPropertyDescriptor(Z.prototype,"toggleStopped"),Z.prototype),Object(q.a)(Z.prototype,"toggleAutoScroll",[L.b],Object.getOwnPropertyDescriptor(Z.prototype,"toggleAutoScroll"),Z.prototype),Object(q.a)(Z.prototype,"clear",[L.b],Object.getOwnPropertyDescriptor(Z.prototype,"clear"),Z.prototype),Object(q.a)(Z.prototype,"insertBatch",[L.b],Object.getOwnPropertyDescriptor(Z.prototype,"insertBatch"),Z.prototype),Z),pe=s(37),ue=["browser:","grpc:","http:","https:","log:","mongo:","redis:","sql:","tcp:"],de=new Map([["browser:","Forward proxy for HTTP and HTTPS. Listen on port 8888 (default) for HTTP requests, and port 9999 (default) for HTTPS requests. Your browser must be configured to proxy HTTP and HTTPS messages to localhost:8888 and localhost:9999, respectively."],["grpc:","Proxy and capture Remote Procedure Call messages. Listen on the specified port for gRPC requests, and pass the requests to the target gRPC service."],["http:","Reverse proxy for HTTP messages. Listen on port 8888 (default) for HTTP requests, and pass the requests to the target host having the best matching URL path.\tThe path can be regex a expression."],["https:","Reverse proxy for HTTPS messages. Listen on port 9999 (default) for HTTPS requests, and pass the requests to the target host having the best matching URL path. \tThe path can be a regex expression."],["log:",'Monitor dockers log. The "docker logs -f CONTAINER" command will pull log messages from a dockers container.'],["mongo:","Proxy and capture MongoDB messages. Listen on the specified port for MongoDB requests, and pass the requests to the target MongoDB service."],["redis:","Proxy and capture Redis messages. Listen on the specified port for Redis requests, and pass the requests to the target Redis service."],["sql:","Proxy and capture SQL messages. Listen on the specified port for SQL requests, and pass the requests to the target SQL service. It has only been tested with MariaDB (MySQL)."],["tcp:","TCP proxy. Can proxy and capture any TCP request/response protocol."]]);!function(e){e.All="All",e.Reachable="Reachable",e.Unreachable="Unreachable"}(ee||(ee={}));var he,be,ge,_e,me=new($=function(){function e(){Object(T.a)(this,e),this.changed=!1,this.protocol="",this.path="",this.targetHost="",this.targetPort="",this.comment="",this.statusUpdating=!0,this.entries=[],this.messageQueueLimit=le.getLimit(),this.error="",Object(L.e)(this)}return Object(R.a)(e,[{key:"isStatusUpdating",value:function(){return this.statusUpdating}},{key:"setConfig",value:function(){var e=this;this.entries.splice(0,this.entries.length),K.getProxyConfigs().forEach((function(t){e.entries.push(t)})),this.statusUpdating=!0,K.retrieveProxyConfigs().then((function(t){t.forEach((function(t){if("log:"!==t.protocol&&"browser:"!==t.protocol){var s,o=Object(A.a)(e.entries);try{for(o.s();!(s=o.n()).done;){var r=s.value;r.hostname===t.hostname&&r.port===t.port&&(r.hostReachable=t.hostReachable)}}catch(n){o.e(n)}finally{o.f()}e.statusUpdating=!1}}))}))}},{key:"reset",value:function(){var e=Object(x.a)(v.a.mark((function e(){return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.changed=!1,this.protocol="http:",this.path="",this.targetHost="",this.targetPort="",this.comment="",this.messageQueueLimit=le.getLimit(),this.setConfig(),this.error="";case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"isChanged",value:function(){return this.changed}},{key:"getProtocols",value:function(){return ue}},{key:"getTooltip",value:function(e){var t=de.get(e);return t||"Tooltip text not found!"}},{key:"getProtocol",value:function(){return this.protocol}},{key:"setProtocol",value:function(e){this.protocol=e,this.error=""}},{key:"isProxyOrLog",value:function(){return"browser:"===this.protocol||"log:"===this.protocol}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e,this.error=""}},{key:"getTargetHost",value:function(){return this.targetHost}},{key:"setTargetHost",value:function(e){this.targetHost=e,this.error=""}},{key:"getTargetPort",value:function(){return this.targetPort}},{key:"setTargetPort",value:function(e){this.targetPort=e,this.error=""}},{key:"getComment",value:function(){return this.comment}},{key:"setComment",value:function(e){this.comment=e,this.error=""}},{key:"isAddDisabled",value:function(){return this.isProxyOrLog()?0===this.path.length:0===this.path.length||0===this.targetHost.length||0===this.targetPort.length}},{key:"addEntry",value:function(){if("http:"===this.protocol||"https:"===this.protocol||"browser:"===this.protocol||"log:"===this.protocol||isNaN(+this.path)&&(this.error="'When protocol \"".concat(this.protocol,'" is selected port number must be specified')),0===this.error.length&&"browser:"!==this.protocol&&"log:"!==this.protocol&&isNaN(+this.targetPort)&&(this.error="Invalid target port number"),0===this.error.length){var e=new W;e.protocol=this.protocol,e.path=this.path,e.hostname=this.targetHost,e.port=+this.targetPort,e.comment=this.comment,this.entries.push(e),this.path="",this.targetHost="",this.targetPort="",this.comment="",this.changed=!0}}},{key:"deleteEntry",value:function(e){this.entries.splice(e,1),this.changed=!0}},{key:"updateEntryProtocol",value:function(e,t){var s=Object(pe.a)({},this.entries[e]);s.protocol=t,this.entries.splice(e,1,s),this.changed=!0}},{key:"updateEntryPath",value:function(e,t){var s=Object(pe.a)({},this.entries[e]);s.path=t,this.entries.splice(e,1,s),this.changed=!0}},{key:"updateEntryHost",value:function(e,t){var s=Object(pe.a)({},this.entries[e]);s.hostname=t,this.entries.splice(e,1,s),this.changed=!0}},{key:"updateEntryPort",value:function(e,t){if(isNaN(+this.targetPort))this.error="Invalid port number: ".concat(this.targetPort);else{var s=Object(pe.a)({},this.entries[e]);s.port=+t,this.entries.splice(e,1,s),this.changed=!0}}},{key:"updateComment",value:function(e,t){var s=Object(pe.a)({},this.entries[e]);s.comment=t,this.entries.splice(e,1,s),this.changed=!0}},{key:"toggleEntryCapture",value:function(e){var t=Object(pe.a)({},this.entries[e]);t.recording=!t.recording,this.entries.splice(e,1,t),this.changed=!0}},{key:"isEntrySecure",value:function(e){return Object(pe.a)({},this.entries[e]).isSecure}},{key:"toggleEntryIsSecure",value:function(e){var t=Object(pe.a)({},this.entries[e]);t.isSecure=!t.isSecure,this.entries.splice(e,1,t),this.changed=!0}},{key:"getEntries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee.All;if(e===ee.All)return this.entries;var t=new Map,s=e===ee.Reachable;return this.entries.filter((function(e){if(e.hostReachable!==s||"browser:"===e.protocol||"log:"===e.protocol)return!1;var o=e.hostname+":"+e.port;return!t.get(o)&&(t.set(o,!0),!0)}))}},{key:"getMessageQueueLimit",value:function(){return this.messageQueueLimit}},{key:"setMessageQueueLimit",value:function(e){this.messageQueueLimit=e,this.changed=!0}},{key:"getError",value:function(){return this.error}},{key:"save",value:function(){this.changed=!1,K.setProxyConfigs(this.entries),le.setLimit(this.messageQueueLimit),K.load()}}]),e}(),Object(q.a)($.prototype,"reset",[L.b],Object.getOwnPropertyDescriptor($.prototype,"reset"),$.prototype),Object(q.a)($.prototype,"setProtocol",[L.b],Object.getOwnPropertyDescriptor($.prototype,"setProtocol"),$.prototype),Object(q.a)($.prototype,"setPath",[L.b],Object.getOwnPropertyDescriptor($.prototype,"setPath"),$.prototype),Object(q.a)($.prototype,"setTargetHost",[L.b],Object.getOwnPropertyDescriptor($.prototype,"setTargetHost"),$.prototype),Object(q.a)($.prototype,"setTargetPort",[L.b],Object.getOwnPropertyDescriptor($.prototype,"setTargetPort"),$.prototype),Object(q.a)($.prototype,"setComment",[L.b],Object.getOwnPropertyDescriptor($.prototype,"setComment"),$.prototype),Object(q.a)($.prototype,"addEntry",[L.b],Object.getOwnPropertyDescriptor($.prototype,"addEntry"),$.prototype),Object(q.a)($.prototype,"deleteEntry",[L.b],Object.getOwnPropertyDescriptor($.prototype,"deleteEntry"),$.prototype),Object(q.a)($.prototype,"updateEntryProtocol",[L.b],Object.getOwnPropertyDescriptor($.prototype,"updateEntryProtocol"),$.prototype),Object(q.a)($.prototype,"updateEntryPath",[L.b],Object.getOwnPropertyDescriptor($.prototype,"updateEntryPath"),$.prototype),Object(q.a)($.prototype,"updateEntryHost",[L.b],Object.getOwnPropertyDescriptor($.prototype,"updateEntryHost"),$.prototype),Object(q.a)($.prototype,"updateEntryPort",[L.b],Object.getOwnPropertyDescriptor($.prototype,"updateEntryPort"),$.prototype),Object(q.a)($.prototype,"updateComment",[L.b],Object.getOwnPropertyDescriptor($.prototype,"updateComment"),$.prototype),Object(q.a)($.prototype,"toggleEntryCapture",[L.b],Object.getOwnPropertyDescriptor($.prototype,"toggleEntryCapture"),$.prototype),Object(q.a)($.prototype,"toggleEntryIsSecure",[L.b],Object.getOwnPropertyDescriptor($.prototype,"toggleEntryIsSecure"),$.prototype),Object(q.a)($.prototype,"setMessageQueueLimit",[L.b],Object.getOwnPropertyDescriptor($.prototype,"setMessageQueueLimit"),$.prototype),Object(q.a)($.prototype,"save",[L.b],Object.getOwnPropertyDescriptor($.prototype,"save"),$.prototype),$),je=new Map(Object.values(ue).map((function(e,t){return[e,t]}))),ye=function e(t){Object(T.a)(this,e),this.protocol=void 0,this.requestCount=0,this.responseCount=0,this.totalTime=0,this.maximumTime=0,this.minimumTime=0,this.protocol=t},fe=new(he=function(){function e(){Object(T.a)(this,e),this.metricsByProtocol=[];for(var t=0,s=Object.values(ue);t<s.length;t++){var o=s[t];this.metricsByProtocol.push(new ye(o))}Object(L.e)(this)}return Object(R.a)(e,[{key:"getMetrics",value:function(){return this.metricsByProtocol}},{key:"clear",value:function(){for(var e=0,t=0,s=Object.values(ue);t<s.length;t++){var o=s[t];this.metricsByProtocol[e++]=new ye(o)}}}]),e}(),Object(q.a)(he.prototype,"clear",[L.b],Object.getOwnPropertyDescriptor(he.prototype,"clear"),he.prototype),he),Oe="proxyall-no-capture",ve=new(be=function(){function e(){Object(T.a)(this,e),this.clientList=[],Object(L.e)(this),this.init()}return Object(R.a)(e,[{key:"init",value:function(){var e=localStorage.getItem(Oe);this.clientList=e?JSON.parse(e):[]}},{key:"save",value:function(){this.clientList=this.clientList.filter((function(e){return e.length>0})),localStorage.setItem(Oe,JSON.stringify(this.clientList))}},{key:"isMatch",value:function(e,t){return e.includes(".*")?-1!==t.toLowerCase().search(e.toLowerCase()):e.toLowerCase()===t.toLowerCase()}},{key:"contains",value:function(e){var t,s=Object(A.a)(this.clientList);try{for(s.s();!(t=s.n()).done;){var o=t.value;if(this.isMatch(o,e.clientIp))return!0}}catch(r){s.e(r)}finally{s.f()}return!1}},{key:"getClientList",value:function(){return this.clientList}},{key:"extend",value:function(){this.clientList.push("")}},{key:"deleteEntry",value:function(e){this.clientList.splice(e,1)}},{key:"updateEntry",value:function(e,t){this.clientList[e]=t}}]),e}(),Object(q.a)(be.prototype,"init",[L.b],Object.getOwnPropertyDescriptor(be.prototype,"init"),be.prototype),Object(q.a)(be.prototype,"save",[L.b],Object.getOwnPropertyDescriptor(be.prototype,"save"),be.prototype),Object(q.a)(be.prototype,"extend",[L.b],Object.getOwnPropertyDescriptor(be.prototype,"extend"),be.prototype),Object(q.a)(be.prototype,"deleteEntry",[L.b],Object.getOwnPropertyDescriptor(be.prototype,"deleteEntry"),be.prototype),Object(q.a)(be.prototype,"updateEntry",[L.b],Object.getOwnPropertyDescriptor(be.prototype,"updateEntry"),be.prototype),be),xe=new(ge=function(){function e(){Object(T.a)(this,e),this.socket=void 0,this.socketConnected=!1,this.queuedCount=0,this.requestCount=0,this.responseCount=0,Object(L.e)(this),this.connect()}return Object(R.a)(e,[{key:"connect",value:function(){var e=this;this.socket=I()(),this.socket.on("connect",(function(){console.log("socket connected"),e.setSocketConnected(!0)})),this.socket.on("proxy config",(function(e){K.setProxyConfigs(e),K.load()})),this.socket.on("disconnect",(function(){console.log("socket disconnected"),e.setSocketConnected(!1)})),this.socket.on("error",(function(e){console.log("socket error",e)})),this.socket.on("reqResJson",(function(t,s,o){e.queuedCount=s;var r,n=Object(A.a)(t);try{for(n.s();!(r=n.n()).done;){var a=r.value;e.countMetrics(a)}}catch(l){n.e(l)}finally{n.f()}var i=t.filter((function(e){return!ve.contains(e)&&!(h.b.getFilter().length>0&&h.b.deleteFiltered()&&h.b.isFiltered(new se(e)))}));if(le.insertBatch(i),o){var c=t[0];o("".concat(function(e){switch(e.type){case P.REQUEST:return"req";case P.RESPONSE:return"res";case P.REQUEST_AND_RESPONSE:return"req/res"}return"unknown"}(c)," seq=").concat(c.sequenceNumber))}}))}},{key:"countMetrics",value:function(e){var t=e.proxyConfig.protocol,s=je.get(t);if(void 0!==s){var o=fe.getMetrics()[s];e.type!==P.REQUEST_AND_RESPONSE&&e.type!==P.REQUEST||(++o.requestCount,++this.requestCount),e.type!==P.REQUEST_AND_RESPONSE&&e.type!==P.RESPONSE||(++o.responseCount,++this.responseCount,o.totalTime+=e.elapsedTime,e.elapsedTime>o.maximumTime&&(o.maximumTime=e.elapsedTime),(e.elapsedTime<o.minimumTime||0===o.minimumTime)&&(o.minimumTime=e.elapsedTime))}else console.error("Unknown protocol ".concat(t," for message ").concat(e))}},{key:"clearMetrics",value:function(){this.requestCount=0,this.responseCount=0,fe.clear()}},{key:"getRequestCount",value:function(){return this.requestCount}},{key:"getResponseCount",value:function(){return this.responseCount}},{key:"getQueuedCount",value:function(){return this.queuedCount}},{key:"setSocketConnected",value:function(e){this.socketConnected=e}},{key:"isConnected",value:function(){return this.socketConnected}},{key:"emitConfig",value:function(e,t){var s;null===(s=this.socket)||void 0===s||s.emit(e,t)}},{key:"emitResend",value:function(e,t,s,o,r){var n;null===(n=this.socket)||void 0===n||n.emit("resend",e,t,s,o,r)}}]),e}(),Object(q.a)(ge.prototype,"connect",[L.b],Object.getOwnPropertyDescriptor(ge.prototype,"connect"),ge.prototype),Object(q.a)(ge.prototype,"countMetrics",[L.b],Object.getOwnPropertyDescriptor(ge.prototype,"countMetrics"),ge.prototype),Object(q.a)(ge.prototype,"clearMetrics",[L.b],Object.getOwnPropertyDescriptor(ge.prototype,"clearMetrics"),ge.prototype),Object(q.a)(ge.prototype,"setSocketConnected",[L.b],Object.getOwnPropertyDescriptor(ge.prototype,"setSocketConnected"),ge.prototype),ge),Se=(_e=function(){function e(t){Object(T.a)(this,e),this.message=void 0,this.methodAndUrl=void 0,this.body=void 0,this.error="",this.message=t,this.methodAndUrl=t.method+" "+t.url,this.body=t.requestBody,Object(L.e)(this)}return Object(R.a)(e,[{key:"getMessage",value:function(){return this.message}},{key:"getMethodAndUrl",value:function(){return this.methodAndUrl}},{key:"setMethodAndUrl",value:function(e){this.methodAndUrl=e}},{key:"getError",value:function(){return this.error}},{key:"isBodyJson",value:function(){return!(!this.message.requestHeaders["content-type"]||!this.message.requestHeaders["content-type"].includes("application/json"))}},{key:"getBody",value:function(){return this.body}},{key:"setBody",value:function(e){this.body=e}},{key:"doResend",value:function(){var e,t,s=this.methodAndUrl.split(" ",2);s.length>1?(e=s[0],t=s[1]):(t=this.methodAndUrl,e="GET");var o=t.startsWith("http:")||t.startsWith("https:");o||(t=document.location.protocol+"//"+document.location.host+t);var r="string"===typeof this.body&&0===this.body.length?void 0:this.body;xe.emitResend(o,e,t,this.message,r)}}]),e}(),Object(q.a)(_e.prototype,"setMethodAndUrl",[L.b],Object.getOwnPropertyDescriptor(_e.prototype,"setMethodAndUrl"),_e.prototype),Object(q.a)(_e.prototype,"setBody",[L.b],Object.getOwnPropertyDescriptor(_e.prototype,"setBody"),_e.prototype),_e),Ce=Object(l.a)((function(e){var t=e.messageQueueStore,s=e.selectedReqSeqNum,o=e.setSelectedReqSeqNum,n=e.scrollTop,a=e.setScrollTop,i=r.a.useState(!1),c=Object(d.a)(i,2),l=c[0],p=c[1],u=r.a.useState(),_=Object(d.a)(u,2),m=_[0],y=_[1],O=r.a.useRef(null);r.a.useEffect((function(){if(h.b.shouldResetScroll())h.b.setResetScroll(!1),s!==Number.MAX_SAFE_INTEGER&&k(s);else if(t.getAutoScroll()){if(s===Number.MAX_SAFE_INTEGER){var e=t.getMessages(),o=e[e.length-1];o&&k(o.getMessage().sequenceNumber)}}else!function(){var e=O.current;e&&e.childNodes.length>0&&(e.scrollTop=n)}()}));var v=0;t.getMessages().forEach((function(e){var t=e.getMessage().elapsedTime?e.getMessage().elapsedTime:0;v=Math.max(v,t)}));var x=Number.MAX_SAFE_INTEGER,S=0;return Object(j.jsxs)("div",{className:"request-response__container",children:[t.getMessages().length>0&&Object(j.jsxs)("div",{className:"request__container "+(s===Number.MAX_SAFE_INTEGER&&t.getMessages().length>0?"unselected":""),ref:O,onScroll:function(){var e=O.current;e&&e.childNodes.length>0&&a(e.scrollTop)},children:[t.getMessages().map((function(e,t){if(h.b.isFiltered(e))return null;var o=e.getMessage(),r=o.sequenceNumber,n=s===r;n&&(x=t),S++;var a=v>0?o.elapsedTime?100*o.elapsedTime/v:1:0;return Object(j.jsx)(f,{store:e,isActive:n,timeBarPercent:a+"%",onClick:C.bind(null,r),onResend:function(){return function(e){y(new Se(e)),p(!0)}(o)}},r)})),0===S&&Object(j.jsx)("div",{className:"center",children:"No matching request or response found. Adjust your filter criteria."})]}),0===t.getMessages().length&&Object(j.jsx)("div",{className:"request__container",children:Object(j.jsx)(b.a,{className:"center"})}),Object(j.jsx)("div",{className:"response__container",children:x<t.getMessages().length?Object(j.jsx)(w,{store:t.getMessages()[x],message:t.getMessages()[x].getMessage()}):Object(j.jsx)(g.a,{in:!0,children:Object(j.jsx)("div",{className:"center",children:"Select request from left column"})})}),m?Object(j.jsx)(M,{open:l,onClose:function(){return p(!1)},store:m}):null]});function C(e){var t=s;o(Number.MAX_SAFE_INTEGER),e!==t&&o(e)}function k(e){if(e!==Number.MAX_SAFE_INTEGER){var s=0;setTimeout((function(){var o=O.current;if(o&&o.childNodes.length>0){for(var r=o.childNodes,n=0;n<t.getMessages().length&&t.getMessages()[n].getMessage().sequenceNumber!==e;++n){var a=r[n];a&&(s+=a.clientHeight)}o.scrollTop=s}}))}}})),ke=Object(l.a)((function(e){var t=e.messageQueueStore,s=e.snapshotStore;return Object(j.jsx)("div",{className:"snapshot__container",children:Object(j.jsxs)(p.a,{value:s.getSelectedSnapshotName(),children:[Object(j.jsx)(i.a,{value:s.getSelectedSnapshotName(),onChange:function(e,t){s.setSelectedSnapshotName(t)},indicatorColor:"primary",textColor:"primary","aria-label":"Snapshots",children:s.getSnapshotNames().map((function(e,o){return Object(j.jsx)(c.a,{value:e,label:Object(j.jsxs)("div",{className:"snapshot__tab",children:[Object(j.jsx)("div",{children:(0===o?t.getStopped()?"Stopped":"Recording":s.getSnapshotName(e))+" ("+s.getSnapshotSize(e)+")"}),e===ne?Object(j.jsx)("div",{className:"snapshot__folder-plus fa fa-camera",style:{marginLeft:".5rem",pointerEvents:0===s.getSnapshotSize(e)?"none":void 0,opacity:0===s.getSnapshotSize(e)?.2:void 0},title:"Take snapshot",onClick:function(){s.newSnapshot()}}):Object(j.jsx)("div",{className:"snapshot__close fa fa-times",style:{marginLeft:".5rem"},title:"Delete snapshot",onClick:function(t){return function(e,t){e.stopPropagation(),s.getSelectedSnapshotName()===t&&s.setSelectedSnapshotName(ne),s.deleteSnapshot(t)}(t,e)}})]})})}))}),s.getSnapshotNames().map((function(e,o){return Object(j.jsx)(u.a,{value:e,children:Object(j.jsx)(Ce,{messageQueueStore:t,selectedReqSeqNum:s.getSelectedReqSeqNumbers()[o],setSelectedReqSeqNum:function(e){return s.getSelectedReqSeqNumbers()[o]=e},scrollTop:s.getScrollTop()[o],setScrollTop:function(e){return s.getScrollTop()[o]=e}})})}))]})})})),Ee=Object(l.a)((function(e){var t=e.open,s=e.onClose,o=e.store,n=e.initTabValue,a=[ee.Reachable,ee.Unreachable],l=r.a.useState(n),h=Object(d.a)(l,2),g=h[0],_=h[1];return Object(j.jsx)(D.a,{className:"modal-window",open:t,onClose:s,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",children:Object(j.jsx)("div",{className:"reachable-modal",role:"dialog",children:Object(j.jsxs)("div",{children:[Object(j.jsx)("h3",{children:"Reachable Hosts"}),Object(j.jsx)("div",{style:{borderTop:"solid steelblue",paddingTop:".5rem"},children:Object(j.jsx)("div",{className:"reachable-modal__scroll-container",children:o.isStatusUpdating()?Object(j.jsx)("div",{style:{width:"100%",marginTop:"1rem",display:"flex",justifyContent:"center",alignItems:"center"},children:Object(j.jsx)(b.a,{})}):Object(j.jsxs)(p.a,{value:g,children:[Object(j.jsx)(i.a,{value:g,onChange:function(e,t){_(t)},indicatorColor:"primary",textColor:"primary","aria-label":"Settings table",children:a.map((function(e){return Object(j.jsx)(c.a,{value:e,label:Object(j.jsx)("div",{className:"fa "+(e===ee.Reachable?"success fa-circle":"error fa-exclamation-triangle"),children:Object(j.jsx)("span",{style:{marginLeft:".25rem",color:"black"},children:e})})})}))}),a.map((function(e){return Object(j.jsx)(u.a,{value:e,children:0===o.getEntries(e).length?Object(j.jsxs)("div",{children:["No hosts are ",e.toLocaleLowerCase()," !"]}):Object(j.jsxs)("table",{className:"table settings-modal__table",children:[o.getEntries(e).length>0?Object(j.jsx)("thead",{children:Object(j.jsxs)("tr",{children:[Object(j.jsx)("td",{className:"text-primary",children:Object(j.jsx)("label",{children:"Host"})}),Object(j.jsx)("td",{className:"text-primary",children:Object(j.jsx)("label",{children:"Port"})})]})}):null,Object(j.jsx)("tbody",{children:o.getEntries(e).sort((function(e,t){return e.hostname.localeCompare(t.hostname)})).map((function(e,t){return Object(j.jsxs)("tr",{className:"settings-modal__proxy-row",children:[Object(j.jsx)("td",{className:"settings-modal__proxy-host-container",children:Object(j.jsx)("input",{className:"form-control settings-modal__proxy-host",value:e.hostname,disabled:!0})}),Object(j.jsx)("td",{className:"settings-modal__proxy-host-container",children:Object(j.jsx)("input",{className:"form-control settings-modal__proxy-host",value:e.port,disabled:!0})})]},t)}))})]})})}))]})})}),Object(j.jsxs)("div",{className:"modal-footer",children:[Object(j.jsx)("label",{className:"settings-modal__error-message",children:o.getError()}),Object(j.jsx)("button",{type:"button",className:"settings-modal__cancel btn btn-default btn-success",onClick:function(){o.setConfig()},children:"Refresh"}),Object(j.jsx)("button",{type:"button",className:"settings-modal__cancel btn btn-default btn-default",onClick:s,children:"Close"})]})]})})})})),Ne=s(202),Pe=Object(l.a)((function(e){var t=e.store,s=e.protocol,o=function(){switch(s){case"browser:":return"Paths";case"grpc:":case"mongo:":case"redis:":case"sql:":return"Source Port";case"http:":case"https:":return"Path";case"log:":return"Command";default:return"Port"}};return Object(j.jsxs)("table",{className:"table settings-modal__table",children:[t.getEntries().length>0?Object(j.jsx)("thead",{children:Object(j.jsxs)("tr",{children:[Object(j.jsx)("td",{}),Object(j.jsx)("td",{}),("grpc:"===s||"tcp:"===s)&&Object(j.jsx)("td",{className:"text-primary",children:"Secure?"}),Object(j.jsx)("td",{className:"text-primary",style:{width:o().includes("Port")?"12ch":void 0},children:Object(j.jsx)("label",{children:o()})}),Object(j.jsx)("td",{className:"text-primary",children:Object(j.jsx)("label",{children:"browser:"!==s&&"log:"!==s&&"Target Host"})}),Object(j.jsx)("td",{className:"text-primary",style:{width:"12ch"},children:Object(j.jsx)("label",{children:"browser:"!==s&&"log:"!==s&&"Target Port"})}),Object(j.jsx)("td",{className:"text-primary",children:Object(j.jsx)("label",{children:"Comment"})}),Object(j.jsx)("td",{className:"text-primary",children:Object(j.jsx)("label",{children:"Status"})})]})}):null,Object(j.jsx)("tbody",{children:t.getEntries().map((function(e,r){return e.protocol===s&&Object(j.jsxs)("tr",{className:"settings-modal__proxy-row"+(e.recording?"":" nocapture"),children:[Object(j.jsx)("td",{children:Object(j.jsx)("button",{className:"settings-modal__proxy-delete-button btn btn-xs btn-danger",onClick:function(){return t.deleteEntry(r)},children:"X"})}),Object(j.jsx)("td",{className:"settings-modal__recording-container",children:Object(j.jsx)("div",{className:"settings__recording fas "+(e.recording?"fa-pause":"fa-play"),onClick:function(){return t.toggleEntryCapture(r)}})}),("grpc:"===s||"tcp:"===s)&&Object(j.jsx)("td",{className:"settings-modal__secure-container",children:Object(j.jsx)(Ne.a,{checked:t.isEntrySecure(r),onChange:function(){return t.toggleEntryIsSecure(r)}})}),Object(j.jsx)("td",{className:"settings-modal__proxy-path-container",children:Object(j.jsx)("input",{className:"form-control settings-modal__proxy-path",style:{width:o().includes("Port")?"8ch":void 0},onChange:function(e){return t.updateEntryPath(r,e.target.value)},value:e.path})}),Object(j.jsx)("td",{className:"settings-modal__proxy-host-container",children:Object(j.jsx)("input",{className:"form-control settings-modal__proxy-host",hidden:"browser:"===e.protocol||"log:"===e.protocol,onChange:function(e){return t.updateEntryHost(r,e.target.value)},value:e.hostname})}),Object(j.jsx)("td",{className:"settings-modal__proxy-host-container",children:Object(j.jsx)("input",{className:"form-control settings-modal__proxy-port",hidden:"browser:"===e.protocol||"log:"===e.protocol,onChange:function(e){return t.updateEntryPort(r,e.target.value)},value:e.port})}),Object(j.jsx)("td",{className:"settings-modal__proxy-host-container",children:Object(j.jsx)("input",{className:"form-control settings-modal__proxy-comment",onChange:function(e){return t.updateComment(r,e.target.value)},value:e.comment})}),Object(j.jsx)("td",{children:Object(j.jsx)("div",{className:"settings-modal__status-container",children:Object(j.jsx)("div",{className:"settings-modal__status fa\n\t\t\t\t\t\t\t\t\t".concat(t.isStatusUpdating()?"updating fa-circle":e.hostReachable?"success fa-circle":"error fa-exclamation-triangle")})})})]},r)}))})]})})),we=Object(l.a)((function(e){var t=e.open,s=e.onClose,o=e.store,n=r.a.useState("browser:"),a=Object(d.a)(n,2),l=a[0],h=a[1];return o.setProtocol(l),Object(j.jsx)(D.a,{className:"modal-window",open:t,onClose:s,disableBackdropClick:!0,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",children:Object(j.jsx)("div",{className:"settings-modal",role:"dialog",children:Object(j.jsxs)("div",{children:[Object(j.jsx)("h3",{children:"Settings"}),Object(j.jsxs)(p.a,{value:l,children:[Object(j.jsx)(i.a,{value:l,onChange:function(e,t){h(t),o.setProtocol(t)},indicatorColor:"primary",textColor:"primary","aria-label":"Settings table",children:o.getProtocols().map((function(e){return Object(j.jsx)(c.a,{value:e,label:Object(j.jsx)("div",{className:J(e),children:Object(j.jsx)("span",{style:{marginLeft:".25rem"},children:e})}),title:o.getTooltip(e)})}))}),o.getProtocols().map((function(e){return Object(j.jsx)(u.a,{value:e,children:Object(j.jsx)("div",{className:"settings-modal__scroll-container",children:Object(j.jsx)(Pe,{store:o,protocol:e})})})}))]}),Object(j.jsxs)("div",{style:{borderTop:"solid steelblue",paddingTop:".5rem"},children:[Object(j.jsx)("table",{children:Object(j.jsx)("tbody",{children:Object(j.jsxs)("tr",{children:[Object(j.jsx)("td",{className:"settings-modal__select-protocol-container",children:Object(j.jsxs)("select",{className:"form-control settings-modal__select-protocol",onChange:function(e){return o.setProtocol(e.target.value)},value:o.getProtocol(),children:[o.getProtocols().map((function(e){return Object(j.jsx)("option",{children:e},e)})),";"]})}),Object(j.jsx)("td",{className:"settings-modal__add-container",children:Object(j.jsx)("input",{type:"text",className:"form-control settings-modal__add-input",placeholder:"log:"===o.getProtocol()?"Log tail command (e.g., docker logs -f container)":"http:"===o.getProtocol()||"https:"===o.getProtocol()?"Path: /xxx, .*/xxx, or hostname/xxx":"browser:"===o.getProtocol()?"Path: /xxx, or .*/xxx":"Source TCP port",value:o.getPath(),onChange:function(e){return o.setPath(e.target.value)}})}),Object(j.jsx)("td",{className:"settings-modal__add-container",children:Object(j.jsx)("input",{type:"text",className:"form-control settings-modal__add-input",hidden:o.isProxyOrLog(),placeholder:o.isProxyOrLog()?"":"Target host name",value:o.getTargetHost(),onChange:function(e){return o.setTargetHost(e.target.value)}})}),Object(j.jsx)("td",{className:"settings-modal__add-container",children:Object(j.jsx)("input",{type:"text",className:"form-control settings-modal__add-input",hidden:o.isProxyOrLog(),placeholder:o.isProxyOrLog()?"":"Target port number",value:o.getTargetPort(),onChange:function(e){return o.setTargetPort(e.target.value)}})}),Object(j.jsx)("td",{className:"settings-modal__add-container",children:Object(j.jsx)("input",{type:"text",className:"form-control settings-modal__add-input",placeholder:"Optional comment",value:o.getComment(),onChange:function(e){return o.setComment(e.target.value)}})}),Object(j.jsx)("td",{className:"settings-modal__add-button-container",children:Object(j.jsx)("button",{className:"settings-modal__add-button btn btn-primary",disabled:o.isAddDisabled(),onClick:function(){return o.addEntry()},children:"Add"})})]})})}),Object(j.jsx)("hr",{}),Object(j.jsx)("table",{children:Object(j.jsx)("tbody",{children:Object(j.jsxs)("tr",{children:[Object(j.jsx)("td",{className:"settings-modal__label-max-messages",children:"Maximum number of captured messages"}),Object(j.jsx)("td",{className:"settings-modal__label-max-messages",children:Object(j.jsx)("input",{type:"number",className:"form-control settings-modal__input-max-messages",onChange:function(e){return o.setMessageQueueLimit(+e.target.value)},value:o.getMessageQueueLimit()})})]})})})]}),Object(j.jsxs)("div",{className:"modal-footer",children:[Object(j.jsx)("label",{className:"settings-modal__error-message",children:o.getError()}),Object(j.jsx)("button",{type:"button",className:"settings-modal__cancel btn btn-default btn-default",onClick:s,children:"Cancel"}),Object(j.jsx)("button",{type:"button",className:"settings-modal__save btn btn-default btn-success",disabled:!o.isChanged(),onClick:function(){o.save(),s()},children:"Save"})]})]})})})})),De=s(199),Me=s(163),Te=Object(l.a)((function(e){var t=e.open,s=e.onClose,r=e.store,n=Object(o.useState)(!0),a=Object(d.a)(n,2),i=a[0],c=a[1];function l(){c(!0),r.init(),s()}return Object(j.jsx)(D.a,{className:"modal-window",open:t,onClose:l,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",children:Object(j.jsx)("div",{className:"no-capture-modal",role:"dialog",children:Object(j.jsxs)("div",{children:[Object(j.jsx)("h3",{children:"Client No Capture List"}),Object(j.jsx)("div",{style:{borderTop:"solid steelblue",paddingTop:".5rem"},children:Object(j.jsxs)("div",{className:"no-capture-modal__scroll-container",children:[Object(j.jsx)("div",{children:Object(j.jsx)("strong",{children:"Do not capture messages from these clients."})}),Object(j.jsx)("div",{children:"(The list is stored in browser local storage.)"}),Object(j.jsx)("div",{className:"no-capture-modal__add-button fa fa-plus-circle",onClick:function(){r.extend()},children:"\xa0Add client"}),Object(j.jsx)(De.a,{children:r.getClientList().map((function(e,t){return Object(j.jsxs)(Me.a,{style:{display:"flex",alignItems:"center"},children:[Object(j.jsx)("div",{className:"no-capture-modal__remove fa fa-minus-circle",title:"Remove client",onClick:function(){return function(e){c(!1),r.deleteEntry(e)}(t)}}),Object(j.jsx)("input",{className:"form-control",placeholder:"Client host or IP (regex allowed)",value:e,onChange:function(e){return function(e,t){c(!1),r.updateEntry(t,e.target.value)}(e,t)}})]},t)}))})]})}),Object(j.jsxs)("div",{className:"modal-footer",children:[Object(j.jsx)("button",{type:"button",className:"settings-modal__cancel btn btn-default btn-default",onClick:l,children:"Cancel"}),Object(j.jsx)("button",{type:"button",className:"settings-modal__cancel btn btn-default btn-success",disabled:i,onClick:function(){r.save(),l()},children:"Save"})]})]})})})})),Re=Object(l.a)((function(e){var t=e.open,s=e.onClose,r=e.store;function n(){s()}return Object(o.useEffect)((function(){r.editing(t)})),Object(j.jsx)(D.a,{className:"modal-window",open:t,onClose:n,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",children:Object(j.jsx)("div",{className:"breakpoint-modal",role:"dialog",children:Object(j.jsxs)("div",{children:[Object(j.jsx)("h3",{children:"Breakpoint List"}),Object(j.jsx)("div",{style:{borderTop:"solid steelblue",paddingTop:".5rem"},children:Object(j.jsxs)("div",{className:"no-capture-modal__scroll-container",children:[Object(j.jsx)("div",{children:"When a request/response matches a breakpoint, a snapshot is created and the breakpoint is disabled. The breakpoint only fires one time, and can be reenabled as needed."}),Object(j.jsx)("div",{children:"(The list is stored in browser local storage.)"}),Object(j.jsx)("div",{className:"no-capture-modal__add-button fa fa-plus-circle",onClick:function(){r.extend()},children:"\xa0Add breakpoint"}),Object(j.jsx)(De.a,{children:r.getBreakpointList().map((function(e,t){return Object(j.jsxs)(Me.a,{style:{display:"flex",alignItems:"center"},children:[Object(j.jsx)("div",{className:"no-capture-modal__remove fa fa-minus-circle",title:"Remove breakpoint",onClick:function(){return function(e){r.deleteEntry(e),r.changed()}(t)}}),Object(j.jsx)("button",{className:"btn ".concat(e.isEnabled()?"btn-primary":"btn-secondary"),onClick:function(){return function(e){e.toggleEnabled(),r.changed()}(e)},title:e.isEnabled()?"Disable breakpoint":"Enable breakpoint",children:e.isEnabled()?"Disable":"Enable"}),Object(j.jsxs)("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:[Object(j.jsx)("input",{className:"form-control",style:{background:e.isInvalidFilterSyntax()?"lightCoral":void 0},disabled:!e.isEnabled(),placeholder:"Take snapshot when breakpoint expression matches any request/response",value:e.getFilter(),onChange:function(t){return function(e,t){t.setFilter(e.currentTarget.value),r.changed()}(t,e)}}),Object(j.jsx)("div",{className:"breakpoint__icon ".concat(e.matchCase()?"active":""),title:"Match case",onClick:function(){return function(e){e.toggleMatchCase(),r.changed()}(e)},children:"Aa"}),Object(j.jsx)("div",{className:"breakpoint__icon ".concat(e.regex()?"active":""),title:"Use regular expression",onClick:function(){return function(e){e.toggleRegex(),r.changed()}(e)},children:".*"}),Object(j.jsx)("div",{className:"breakpoint__icon ".concat(e.logical()?"active":""),title:"Use (), &&, ||, !",onClick:function(){return function(e){e.toggleLogical(),r.changed()}(e)},children:"&&"})]})]},t)}))})]})}),Object(j.jsx)("div",{className:"modal-footer",children:Object(j.jsx)("button",{type:"button",className:"settings-modal__cancel btn btn-default btn-success",onClick:n,children:"Done"})})]})})})})),qe=Object(l.a)((function(e){var t=e.open,s=e.onClose,o=e.store;return Object(j.jsx)(D.a,{className:"modal-window",open:t,onClose:s,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",children:Object(j.jsx)("div",{className:"metrics-modal",role:"dialog",children:Object(j.jsxs)("div",{children:[Object(j.jsx)("h3",{children:"Metrics"}),Object(j.jsx)("div",{style:{borderTop:"solid steelblue",paddingTop:".5rem"},children:Object(j.jsx)("div",{className:"metrics-modal__scroll-container",children:Object(j.jsxs)("table",{className:"table settings-modal__table",children:[Object(j.jsx)("thead",{children:Object(j.jsxs)("tr",{children:[Object(j.jsx)("td",{className:"text-primary",children:Object(j.jsx)("label",{children:"Protocol"})}),Object(j.jsx)("td",{className:"text-primary",children:Object(j.jsx)("label",{children:"Request Count"})}),Object(j.jsx)("td",{className:"text-primary",children:Object(j.jsx)("label",{children:"Response Count"})}),Object(j.jsx)("td",{className:"text-primary",children:Object(j.jsx)("label",{children:"Total Time"})}),Object(j.jsx)("td",{className:"text-primary",children:Object(j.jsx)("label",{children:"Average Time"})}),Object(j.jsx)("td",{className:"text-primary",children:Object(j.jsx)("label",{children:"Maximum Time"})})]})}),Object(j.jsx)("tbody",{children:o.getMetrics().map((function(e,t){return Object(j.jsxs)("tr",{className:"settings-modal__proxy-row",children:[Object(j.jsx)("td",{className:"settings-modal__proxy-host-container",children:Object(j.jsx)("div",{className:J(ue[t]),children:Object(j.jsx)("span",{style:{marginLeft:".25rem"},children:ue[t]})})}),Object(j.jsx)("td",{className:"settings-modal__proxy-host-container",children:e.requestCount}),Object(j.jsx)("td",{className:"settings-modal__proxy-host-container",children:e.responseCount}),Object(j.jsx)("td",{className:"settings-modal__proxy-host-container",children:e.totalTime}),Object(j.jsx)("td",{className:"settings-modal__proxy-host-container",children:e.requestCount>0?(e.totalTime/e.requestCount).toFixed(1):0}),Object(j.jsx)("td",{className:"settings-modal__proxy-host-container",children:e.maximumTime})]},t)}))})]})})}),Object(j.jsx)("div",{className:"modal-footer",children:Object(j.jsx)("button",{type:"button",className:"settings-modal__cancel btn btn-default btn-default",onClick:s,children:"Close"})})]})})})})),Le=s(103),Ae=s(204),Be=s(200),Ie=s(206),Ue=s(207),Fe=Object(l.a)((function(e){var t=e.open,s=e.onClose,o=r.a.useState(""),n=Object(d.a)(o,2),a=n[0],i=n[1];return Object(j.jsxs)(Ie.a,{onClose:function(){s(a)},"aria-labelledby":"simple-dialog-title",open:t,children:[Object(j.jsx)(Ue.a,{id:"simple-dialog-title",children:"Enter export file name"}),Object(j.jsx)("input",{className:"export__input-file-name form-control",value:a,onChange:function(e){return i(e.target.value)}}),Object(j.jsx)("button",{className:"btn btn-success",disabled:0===a.length,onClick:function(){return s(a)},children:"Export"})]})})),He=Object(l.a)((function(e){var t=e.socketStore,s=e.messageQueueStore,o=e.snapshotStore,n=e.filterStore,a=r.a.useState(!1),i=Object(d.a)(a,2),c=i[0],l=i[1],p=r.a.useState(!1),u=Object(d.a)(p,2),h=u[0],b=u[1],g=r.a.useState(!1),_=Object(d.a)(g,2),m=_[0],y=_[1],f=r.a.useState(!1),O=Object(d.a)(f,2),v=O[0],x=O[1],S=r.a.useState(!1),C=Object(d.a)(S,2),k=C[0],E=C[1],N=r.a.useState(null),P=Object(d.a)(N,2),w=P[0],D=P[1],M=r.a.useState(null),T=Object(d.a)(M,2),R=T[0],q=T[1],L=r.a.useState(!1),A=Object(d.a)(L,2),B=A[0],I=A[1],U=Object(Le.a)({multiple:!1,accept:".proxyall"}),F=Object(d.a)(U,2),H=F[0],W=F[1],K=W.filesContent,Q=W.clear;K.length&&K[0].content&&(o.importSnapshot(K[0].name,K[0].content),Q());var V="fa "+(t.isConnected()?"success fa-circle":"error fa-exclamation-triangle");return Object(j.jsxs)("div",{className:"header__container",children:[Object(j.jsxs)("div",{className:"header__left-container",children:[Object(j.jsx)("div",{className:"header__icon",onClick:function(){return window.location.reload()},children:Object(j.jsx)("img",{src:"favicon.ico",alt:"ProxyAll Debugging Tool",width:"24",height:"24"})}),Object(j.jsx)("div",{className:"header__title",onClick:function(){return window.location.reload()},children:"ProxyAll"}),Object(j.jsx)("div",{className:"header__status "+V,title:"Status"}),Object(j.jsxs)("div",{style:{opacity:o.isActiveSnapshotSelected()?void 0:.3,pointerEvents:o.isActiveSnapshotSelected()?void 0:"none"},children:[Object(j.jsx)("div",{className:"header__trash fa fa-trash-alt",title:"Clear log",onClick:function(){s.clear(),t.clearMetrics()}}),Object(j.jsx)("div",{className:"header__stop fas "+(s.getStopped()?"fa-play":"fa-pause"),onClick:function(){return s.toggleStopped()},title:s.getStopped()?"Resume recording":"Pause recording"}),Object(j.jsx)("div",{className:"header__auto-scroll fa-arrow-alt-circle-down "+(s.getAutoScroll()?"fas":"far"),onClick:function(){return s.toggleAutoScroll()},title:s.getAutoScroll()?"Stop auto scroll":"Start auto scroll"})]}),Object(j.jsx)("div",{className:"header__show-errors fa-bug fa "+(n.getShowErrors()?"active":""),onClick:function(){return n.toggleShowErrors()},title:"Toggle show only errors"}),Object(j.jsx)("div",{className:"header__more-menu fa fa-ellipsis-v",onClick:function(e){return D(e.currentTarget)}}),Object(j.jsxs)(Ae.a,{anchorEl:w,open:Boolean(w),onClose:function(){return D(null)},children:[Object(j.jsx)(Be.a,{style:{opacity:o.getSnapshotCount()>1?void 0:.3,pointerEvents:o.getSnapshotCount()>1?void 0:"none"},children:Object(j.jsx)("div",{className:"header__folder-minus fa fa-folder-minus",title:"Delete all snapshots",onClick:function(){o.deleteAllSnapshots(),D(null)},children:"\xa0Delete Snapshots"})}),Object(j.jsx)(Be.a,{style:{opacity:!o.isActiveSnapshotSelected()||s.getStopped()?void 0:.3,pointerEvents:!o.isActiveSnapshotSelected()||s.getStopped()?void 0:"none"},children:Object(j.jsx)("div",{className:"header__export fa fa-download",title:"Export snapshot file",onClick:function(){I(!0),D(null)},children:"\xa0Export Snapshot"})}),Object(j.jsx)(Be.a,{children:Object(j.jsx)("div",{className:"header__import fa fa-upload",title:"Import snapshot file",onClick:function(){H(),D(null)},children:"\xa0Import Snapshot"})})]}),Object(j.jsx)("div",{className:"header__filter",children:Object(j.jsx)("input",{className:"header__filter-input",type:"text",style:{background:n.isInvalidFilterSyntax()?"lightCoral":n.getFilter().length>0?"lightGreen":void 0},value:n.getFilter(),onChange:function(e){return n.setFilter(e.currentTarget.value)},placeholder:"Boolean/Regex Filter: (a || b.*) && !c"})}),Object(j.jsx)("div",{className:"header__filter-case ".concat(n.matchCase()?"active":""),title:"Match case",onClick:function(){return n.toggleMatchCase()},children:"Aa"}),Object(j.jsx)("div",{className:"header__filter-regex ".concat(n.regex()?"active":""),title:"Use regular expression",onClick:function(){return n.toggleRegex()},children:".*"}),Object(j.jsx)("div",{className:"header__filter-logical ".concat(n.logical()?"active":""),title:"Use (), &&, ||, !",onClick:function(){return n.toggleLogical()},children:"&&"}),Object(j.jsx)("div",{className:"header__filter-logical ".concat(n.deleteFiltered()?"active":""),title:"Delete filtered messages",onClick:function(){return n.toggleDeleteFiltered()},children:"X"})]}),Object(j.jsxs)("div",{children:[Object(j.jsx)("div",{className:"header__count",title:"Received messages",children:Object(j.jsxs)("div",{children:["Requests/Responses: ",t.getRequestCount()+"/"+t.getResponseCount()]})}),Object(j.jsx)("div",{className:"header__count",title:"Messages queued at server",children:Object(j.jsxs)("div",{children:["Queued: ",t.getQueuedCount()]})})]}),Object(j.jsxs)("div",{children:[Object(j.jsx)("div",{className:"header__settings fa fa-chart-bar",title:"Metrics",onClick:function(){E(!0)}}),Object(j.jsx)("div",{className:"header__settings fa fa-network-wired",title:"Reachable Hosts",onClick:function(){x(!0),me.setConfig()}}),Object(j.jsx)("div",{className:"header__settings fa fa-cog",title:"Settings",onClick:function(e){return q(e.currentTarget)}}),Object(j.jsxs)(Ae.a,{anchorEl:R,open:Boolean(R),onClose:function(){return q(null)},children:[Object(j.jsx)(Be.a,{children:Object(j.jsx)("div",{className:"fa fa-network-wired",onClick:function(){l(!0),me.reset(),q(null)},children:"\xa0Proxy Configuration"})}),Object(j.jsx)(Be.a,{children:Object(j.jsx)("div",{className:"fa fa-bug",title:"Breakpoints",onClick:function(){y(!0),re.init(),q(null)},children:"\xa0Breakpoints"})}),Object(j.jsx)(Be.a,{children:Object(j.jsx)("div",{className:"fa fa-ban",title:"No Capture List",onClick:function(){b(!0),ve.init(),q(null)},children:"\xa0No Capture List"})})]})]}),Object(j.jsx)(qe,{open:k,onClose:function(){return E(!1)},store:fe}),Object(j.jsx)(Ee,{open:v,onClose:function(){return x(!1)},store:me,initTabValue:ee.Reachable}),Object(j.jsx)(we,{open:c,onClose:function(){return l(!1)},store:me}),Object(j.jsx)(Re,{open:m,onClose:function(){return y(!1)},store:re}),Object(j.jsx)(Te,{open:h,onClose:function(){return b(!1)},store:ve}),Object(j.jsx)(Fe,{open:B,onClose:function(e){I(!1),o.exportSelectedSnapshot(e)}})]})}));var We=function(){return Object(j.jsxs)("div",{className:"App",children:[Object(j.jsx)(He,{socketStore:xe,filterStore:h.b,messageQueueStore:le,snapshotStore:ie}),Object(j.jsx)(ke,{messageQueueStore:le,snapshotStore:ie})]})},Ke=function(e){e&&e instanceof Function&&s.e(3).then(s.bind(null,208)).then((function(t){var s=t.getCLS,o=t.getFID,r=t.getFCP,n=t.getLCP,a=t.getTTFB;s(e),o(e),r(e),n(e),a(e)}))};a.a.render(Object(j.jsx)(r.a.StrictMode,{children:Object(j.jsx)(We,{})}),document.getElementById("root")),Ke()},21:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return FilterStore})),__webpack_require__.d(__webpack_exports__,"b",(function(){return filterStore}));var _Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9),_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12),_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),mobx__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),lodash__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(99),lodash__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__),_class,FilterStore=(_class=function(){function FilterStore(){Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__.a)(this,FilterStore),this.enabled=!0,this.filter="",this.invalidFilterSyntax=!1,this.searchFilter="",this.boolString="",this.boolOperands=[],this.resetScroll=!1,this._matchCase=!1,this._regex=!1,this._logical=!1,this._deleteFiltered=!1,this.showErrors=!1,Object(mobx__WEBPACK_IMPORTED_MODULE_3__.e)(this)}return Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__.a)(FilterStore,[{key:"isEnabled",value:function(){return this.enabled}},{key:"toggleEnabled",value:function(){this.enabled=!this.enabled}},{key:"setEnabled",value:function(e){this.enabled=e}},{key:"shouldResetScroll",value:function(){return this.resetScroll}},{key:"setResetScroll",value:function(e){this.resetScroll=e}},{key:"matchCase",value:function(){return this._matchCase}},{key:"toggleMatchCase",value:function(){this._matchCase=!this._matchCase}},{key:"setMatchCase",value:function(e){this._matchCase=e}},{key:"regex",value:function(){return this._regex}},{key:"toggleRegex",value:function(){this._regex=!this._regex}},{key:"setRegex",value:function(e){this._regex=e}},{key:"logical",value:function(){return this._logical}},{key:"toggleLogical",value:function(){this._logical=!this._logical}},{key:"setLogical",value:function(e){this._logical=e}},{key:"deleteFiltered",value:function(){return this._deleteFiltered}},{key:"toggleDeleteFiltered",value:function(){this._deleteFiltered=!this._deleteFiltered}},{key:"getShowErrors",value:function(){return this.showErrors}},{key:"toggleShowErrors",value:function(){this.showErrors=!this.showErrors,this.showErrors||0!==this.filter.length||(this.resetScroll=!0)}},{key:"setFilterNoDebounce",value:function(e){this.filter.length>0&&0===e.length&&!this.showErrors&&(this.resetScroll=!0),this.filter=e,this.searchFilter=this.filter,this.updateBoolString()}},{key:"setFilter",value:function(e){var t=this;this.filter.length>0&&0===e.length&&(this.resetScroll=!0),this.filter=e,lodash__WEBPACK_IMPORTED_MODULE_4___default.a.debounce((function(){t.searchFilter=t.filter,t.updateBoolString()}),500)()}},{key:"isInvalidFilterSyntax",value:function isInvalidFilterSyntax(){if(this.invalidFilterSyntax=!1,this._logical&&this.boolString.length>0){for(var boolString=this.boolString,i=0;i<this.boolOperands.length;++i)boolString=boolString.replace("###"+i,"true");try{return eval(boolString),!1}catch(e){return this.invalidFilterSyntax=!0,!0}}return this.invalidFilterSyntax}},{key:"updateBoolString",value:function(){this.boolString="",this.boolOperands.splice(0,this.boolOperands.length);var e=0;if(this.filter.includes("!")||this.filter.includes("&&")||this.filter.includes("||")){for(var t="",s=0;s<this.filter.length;++s){var o=this.filter.substr(s,1),r=s<this.filter.length-1?this.filter.substr(s+1,1):"",n="";"!"!==o&&"("!==o&&")"!==o||(n=o),"&"===o&&"&"===r&&(++s,n="&&"),"|"===o&&"|"===r&&(++s,n="||"),n.length>0?((t=t.trim()).length>0&&(this.boolString+="###"+e++,this.boolOperands.push(t),t=""),this.boolString+=n):t+=o}t.length>0&&(this.boolString+="###"+e++,this.boolOperands.push(t.trim()))}}},{key:"getFilter",value:function(){return this.filter}},{key:"isFiltered",value:function isFiltered(messageStore){if(this.showErrors&&!messageStore.isError())return!0;if(this.invalidFilterSyntax=!1,0===this.searchFilter.length)return!1;if(!(this._logical&&this.boolString.length>0))return this.isMessageFiltered(this.searchFilter,messageStore);for(var boolString=this.boolString,i=0;i<this.boolOperands.length;++i){var filtered=this.isMessageFiltered(this.boolOperands[i],messageStore);boolString=boolString.replace("###"+i,filtered?"false":"true")}try{return!eval(boolString)}catch(e){return this.invalidFilterSyntax=!0,!0}}},{key:"isMessageFiltered",value:function(e,t){var s=t.getMessage();return(!s.proxyConfig||!this.isMatch(e,s.proxyConfig.protocol))&&(!this.isMatch(e,s.protocol)&&(!this.isMatch(e,s.status+" "+s.method+" "+s.clientIp+"->"+s.serverHost+" "+t.getUrl())&&(!this.isMatch(e,s.endpoint)&&(!this.isMatch(e,JSON.stringify(s.requestHeaders))&&(!this.isMatch(e,JSON.stringify(s.responseHeaders))&&(!this.isMatch(e,t.getRequestBody())&&(!s.responseBody||!this.isMatch(e,JSON.stringify(s.responseBody)))))))))}},{key:"isMatch",value:function(e,t){return void 0!==t&&(this._matchCase||(e=e.toLowerCase(),t=t.toLowerCase()),this._regex?-1!==t.search(e):-1!==t.indexOf(e))}}]),FilterStore}(),Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__.a)(_class.prototype,"toggleEnabled",[mobx__WEBPACK_IMPORTED_MODULE_3__.b],Object.getOwnPropertyDescriptor(_class.prototype,"toggleEnabled"),_class.prototype),Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__.a)(_class.prototype,"setEnabled",[mobx__WEBPACK_IMPORTED_MODULE_3__.b],Object.getOwnPropertyDescriptor(_class.prototype,"setEnabled"),_class.prototype),Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__.a)(_class.prototype,"setResetScroll",[mobx__WEBPACK_IMPORTED_MODULE_3__.b],Object.getOwnPropertyDescriptor(_class.prototype,"setResetScroll"),_class.prototype),Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__.a)(_class.prototype,"toggleMatchCase",[mobx__WEBPACK_IMPORTED_MODULE_3__.b],Object.getOwnPropertyDescriptor(_class.prototype,"toggleMatchCase"),_class.prototype),Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__.a)(_class.prototype,"setMatchCase",[mobx__WEBPACK_IMPORTED_MODULE_3__.b],Object.getOwnPropertyDescriptor(_class.prototype,"setMatchCase"),_class.prototype),Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__.a)(_class.prototype,"toggleRegex",[mobx__WEBPACK_IMPORTED_MODULE_3__.b],Object.getOwnPropertyDescriptor(_class.prototype,"toggleRegex"),_class.prototype),Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__.a)(_class.prototype,"setRegex",[mobx__WEBPACK_IMPORTED_MODULE_3__.b],Object.getOwnPropertyDescriptor(_class.prototype,"setRegex"),_class.prototype),Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__.a)(_class.prototype,"toggleLogical",[mobx__WEBPACK_IMPORTED_MODULE_3__.b],Object.getOwnPropertyDescriptor(_class.prototype,"toggleLogical"),_class.prototype),Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__.a)(_class.prototype,"setLogical",[mobx__WEBPACK_IMPORTED_MODULE_3__.b],Object.getOwnPropertyDescriptor(_class.prototype,"setLogical"),_class.prototype),Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__.a)(_class.prototype,"toggleDeleteFiltered",[mobx__WEBPACK_IMPORTED_MODULE_3__.b],Object.getOwnPropertyDescriptor(_class.prototype,"toggleDeleteFiltered"),_class.prototype),Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__.a)(_class.prototype,"toggleShowErrors",[mobx__WEBPACK_IMPORTED_MODULE_3__.b],Object.getOwnPropertyDescriptor(_class.prototype,"toggleShowErrors"),_class.prototype),Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__.a)(_class.prototype,"setFilterNoDebounce",[mobx__WEBPACK_IMPORTED_MODULE_3__.b],Object.getOwnPropertyDescriptor(_class.prototype,"setFilterNoDebounce"),_class.prototype),Object(_Volumes_dev_anyproxy_client_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_2__.a)(_class.prototype,"setFilter",[mobx__WEBPACK_IMPORTED_MODULE_3__.b],Object.getOwnPropertyDescriptor(_class.prototype,"setFilter"),_class.prototype),_class),filterStore=new FilterStore}},[[161,1,2]]]);
2
+ //# sourceMappingURL=main.494a7501.chunk.js.map