gcam-port-finder
Version:
A React component to help users find relevant GCam ports for their smartphones
14 lines • 237 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),a=require("http"),n=require("https"),i=require("url"),o=require("stream"),t=require("assert"),s=require("tty"),r=require("util"),c=require("os"),p=require("zlib"),l=require("path"),u=require("fs");function m(e,a){(null==a||a>e.length)&&(a=e.length);for(var n=0,i=Array(a);n<a;n++)i[n]=e[n];return i}function d(e,a,n,i,o,t,s){try{var r=e[t](s),c=r.value}catch(e){return void n(e)}r.done?a(c):Promise.resolve(c).then(i,o)}function f(e){return function(){var a=this,n=arguments;return new Promise((function(i,o){var t=e.apply(a,n);function s(e){d(t,i,o,s,r,"next",e)}function r(e){d(t,i,o,s,r,"throw",e)}s(void 0)}))}}function x(){x=function(){return a};var e,a={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(e,a,n){e[a]=n.value},t="function"==typeof Symbol?Symbol:{},s=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",c=t.toStringTag||"@@toStringTag";function p(e,a,n){return Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[a]}try{p({},"")}catch(e){p=function(e,a,n){return e[a]=n}}function l(e,a,n,i){var t=a&&a.prototype instanceof b?a:b,s=Object.create(t.prototype),r=new T(i||[]);return o(s,"_invoke",{value:S(e,n,r)}),s}function u(e,a,n){try{return{type:"normal",arg:e.call(a,n)}}catch(e){return{type:"throw",arg:e}}}a.wrap=l;var m="suspendedStart",d="suspendedYield",f="executing",v="completed",h={};function b(){}function g(){}function y(){}var w={};p(w,s,(function(){return this}));var k=Object.getPrototypeOf,j=k&&k(k(P([])));j&&j!==n&&i.call(j,s)&&(w=j);var E=y.prototype=b.prototype=Object.create(w);function _(e){["next","throw","return"].forEach((function(a){p(e,a,(function(e){return this._invoke(a,e)}))}))}function O(e,a){function n(o,t,s,r){var c=u(e[o],e,t);if("throw"!==c.type){var p=c.arg,l=p.value;return l&&"object"==typeof l&&i.call(l,"__await")?a.resolve(l.__await).then((function(e){n("next",e,s,r)}),(function(e){n("throw",e,s,r)})):a.resolve(l).then((function(e){p.value=e,s(p)}),(function(e){return n("throw",e,s,r)}))}r(c.arg)}var t;o(this,"_invoke",{value:function(e,i){function o(){return new a((function(a,o){n(e,i,a,o)}))}return t=t?t.then(o,o):o()}})}function S(a,n,i){var o=m;return function(t,s){if(o===f)throw Error("Generator is already running");if(o===v){if("throw"===t)throw s;return{value:e,done:!0}}for(i.method=t,i.arg=s;;){var r=i.delegate;if(r){var c=C(r,i);if(c){if(c===h)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===m)throw o=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=f;var p=u(a,n,i);if("normal"===p.type){if(o=i.done?v:d,p.arg===h)continue;return{value:p.arg,done:i.done}}"throw"===p.type&&(o=v,i.method="throw",i.arg=p.arg)}}}function C(a,n){var i=n.method,o=a.iterator[i];if(o===e)return n.delegate=null,"throw"===i&&a.iterator.return&&(n.method="return",n.arg=e,C(a,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),h;var t=u(o,a.iterator,n.arg);if("throw"===t.type)return n.method="throw",n.arg=t.arg,n.delegate=null,h;var s=t.arg;return s?s.done?(n[a.resultName]=s.value,n.next=a.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function R(e){var a={tryLoc:e[0]};1 in e&&(a.catchLoc=e[1]),2 in e&&(a.finallyLoc=e[2],a.afterLoc=e[3]),this.tryEntries.push(a)}function A(e){var a=e.completion||{};a.type="normal",delete a.arg,e.completion=a}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function P(a){if(a||""===a){var n=a[s];if(n)return n.call(a);if("function"==typeof a.next)return a;if(!isNaN(a.length)){var o=-1,t=function n(){for(;++o<a.length;)if(i.call(a,o))return n.value=a[o],n.done=!1,n;return n.value=e,n.done=!0,n};return t.next=t}}throw new TypeError(typeof a+" is not iterable")}return g.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:g,configurable:!0}),g.displayName=p(y,c,"GeneratorFunction"),a.isGeneratorFunction=function(e){var a="function"==typeof e&&e.constructor;return!!a&&(a===g||"GeneratorFunction"===(a.displayName||a.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,p(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},a.awrap=function(e){return{__await:e}},_(O.prototype),p(O.prototype,r,(function(){return this})),a.AsyncIterator=O,a.async=function(e,n,i,o,t){void 0===t&&(t=Promise);var s=new O(l(e,n,i,o),t);return a.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},_(E),p(E,c,"Generator"),p(E,s,(function(){return this})),p(E,"toString",(function(){return"[object Generator]"})),a.keys=function(e){var a=Object(e),n=[];for(var i in a)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in a)return e.value=i,e.done=!1,e}return e.done=!0,e}},a.values=P,T.prototype={constructor:T,reset:function(a){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!a)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(a){if(this.done)throw a;var n=this;function o(i,o){return r.type="throw",r.arg=a,n.next=i,o&&(n.method="next",n.arg=e),!!o}for(var t=this.tryEntries.length-1;t>=0;--t){var s=this.tryEntries[t],r=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var c=i.call(s,"catchLoc"),p=i.call(s,"finallyLoc");if(c&&p){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!p)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(e,a){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var t=o;break}}t&&("break"===e||"continue"===e)&&t.tryLoc<=a&&a<=t.finallyLoc&&(t=null);var s=t?t.completion:{};return s.type=e,s.arg=a,t?(this.method="next",this.next=t.finallyLoc,h):this.complete(s)},complete:function(e,a){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&a&&(this.next=a),h},finish:function(e){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),h}},catch:function(e){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(a,n,i){return this.delegate={iterator:P(a),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),h}},a}function v(e,a){return function(e){if(Array.isArray(e))return e}(e)||function(e,a){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,t,s,r=[],c=!0,p=!1;try{if(t=(n=n.call(e)).next,0===a){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=t.call(n)).done)&&(r.push(i.value),r.length!==a);c=!0);}catch(e){p=!0,o=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(p)throw o}}return r}}(e,a)||function(e,a){if(e){if("string"==typeof e)return m(e,a);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,a):void 0}}(e,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b,g={exports:{}},y={exports:{}},w={};var k,j,E,_,O,S,C,R,A,T,P,z,F,N,q={};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function L(){return j||(j=1,"production"===process.env.NODE_ENV?y.exports=function(){if(b)return w;b=1;var e="function"==typeof Symbol&&Symbol.for,a=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,t=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,r=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case a:switch(e=e.type){case c:case p:case i:case t:case o:case u:return e;default:switch(e=e&&e.$$typeof){case r:case l:case f:case d:case s:return e;default:return m}}case n:return m}}}function k(e){return y(e)===p}return w.AsyncMode=c,w.ConcurrentMode=p,w.ContextConsumer=r,w.ContextProvider=s,w.Element=a,w.ForwardRef=l,w.Fragment=i,w.Lazy=f,w.Memo=d,w.Portal=n,w.Profiler=t,w.StrictMode=o,w.Suspense=u,w.isAsyncMode=function(e){return k(e)||y(e)===c},w.isConcurrentMode=k,w.isContextConsumer=function(e){return y(e)===r},w.isContextProvider=function(e){return y(e)===s},w.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},w.isForwardRef=function(e){return y(e)===l},w.isFragment=function(e){return y(e)===i},w.isLazy=function(e){return y(e)===f},w.isMemo=function(e){return y(e)===d},w.isPortal=function(e){return y(e)===n},w.isProfiler=function(e){return y(e)===t},w.isStrictMode=function(e){return y(e)===o},w.isSuspense=function(e){return y(e)===u},w.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===t||e===o||e===u||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===s||e.$$typeof===r||e.$$typeof===l||e.$$typeof===v||e.$$typeof===h||e.$$typeof===g||e.$$typeof===x)},w.typeOf=y,w}():y.exports=(k||(k=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,a=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,t=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,r=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case a:var x=e.type;switch(x){case c:case p:case i:case t:case o:case u:return x;default:var v=x&&x.$$typeof;switch(v){case r:case l:case f:case d:case s:return v;default:return m}}case n:return m}}}var y=c,w=p,k=r,j=s,E=a,_=l,O=i,S=f,C=d,R=n,A=t,T=o,P=u,z=!1;function F(e){return g(e)===p}q.AsyncMode=y,q.ConcurrentMode=w,q.ContextConsumer=k,q.ContextProvider=j,q.Element=E,q.ForwardRef=_,q.Fragment=O,q.Lazy=S,q.Memo=C,q.Portal=R,q.Profiler=A,q.StrictMode=T,q.Suspense=P,q.isAsyncMode=function(e){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(e)||g(e)===c},q.isConcurrentMode=F,q.isContextConsumer=function(e){return g(e)===r},q.isContextProvider=function(e){return g(e)===s},q.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},q.isForwardRef=function(e){return g(e)===l},q.isFragment=function(e){return g(e)===i},q.isLazy=function(e){return g(e)===f},q.isMemo=function(e){return g(e)===d},q.isPortal=function(e){return g(e)===n},q.isProfiler=function(e){return g(e)===t},q.isStrictMode=function(e){return g(e)===o},q.isSuspense=function(e){return g(e)===u},q.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===t||e===o||e===u||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===s||e.$$typeof===r||e.$$typeof===l||e.$$typeof===v||e.$$typeof===h||e.$$typeof===b||e.$$typeof===x)},q.typeOf=g}()),q)),y.exports}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function U(){if(_)return E;_=1;var e=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return E=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var a={},n=0;n<10;n++)a["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(a).map((function(e){return a[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(i,o){for(var t,s,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(i),c=1;c<arguments.length;c++){for(var p in t=Object(arguments[c]))a.call(t,p)&&(r[p]=t[p]);if(e){s=e(t);for(var l=0;l<s.length;l++)n.call(t,s[l])&&(r[s[l]]=t[s[l]])}}return r},E}function B(){if(S)return O;S=1;return O="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function I(){return R?C:(R=1,C=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var D=L();g.exports=function(){if(z)return P;z=1;var e=L(),a=U(),n=B(),i=I(),o=function(){if(T)return A;T=1;var e=function(){};if("production"!==process.env.NODE_ENV){var a=B(),n={},i=I();e=function(e){var a="Warning: "+e;"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}}function o(o,t,s,r,c){if("production"!==process.env.NODE_ENV)for(var p in o)if(i(o,p)){var l;try{if("function"!=typeof o[p]){var u=Error((r||"React class")+": "+s+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=o[p](t,p,r,s,null,a)}catch(e){l=e}if(!l||l instanceof Error||e((r||"React class")+": type specification of "+s+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in n)){n[l.message]=!0;var m=c?c():"";e("Failed "+s+" type: "+l.message+(null!=m?m:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},A=o}(),t=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(t=function(e){var a="Warning: "+e;"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}),P=function(r,c){var p="function"==typeof Symbol&&Symbol.iterator,l="<<anonymous>>",u={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:f(s),arrayOf:function(e){return f((function(a,i,o,t,s){if("function"!=typeof e)return new d("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var r=a[i];if(!Array.isArray(r))return new d("Invalid "+t+" `"+s+"` of type `"+b(r)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<r.length;c++){var p=e(r,c,o,t,s+"["+c+"]",n);if(p instanceof Error)return p}return null}))},element:f((function(e,a,n,i,o){var t=e[a];return r(t)?null:new d("Invalid "+i+" `"+o+"` of type `"+b(t)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(a,n,i,o,t){var s=a[n];return e.isValidElementType(s)?null:new d("Invalid "+o+" `"+t+"` of type `"+b(s)+"` supplied to `"+i+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(a,n,i,o,t){if(!(a[n]instanceof e)){var s=e.name||l;return new d("Invalid "+o+" `"+t+"` of type `"+((r=a[n]).constructor&&r.constructor.name?r.constructor.name:l)+"` supplied to `"+i+"`, expected instance of `"+s+"`.")}var r;return null}))},node:f((function(e,a,n,i,o){return h(e[a])?null:new d("Invalid "+i+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(a,o,t,s,r){if("function"!=typeof e)return new d("Property `"+r+"` of component `"+t+"` has invalid PropType notation inside objectOf.");var c=a[o],p=b(c);if("object"!==p)return new d("Invalid "+s+" `"+r+"` of type `"+p+"` supplied to `"+t+"`, expected an object.");for(var l in c)if(i(c,l)){var u=e(c,l,t,s,r+"."+l,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?f((function(a,n,i,o,t){for(var s=a[n],r=0;r<e.length;r++)if(m(s,e[r]))return null;var c=JSON.stringify(e,(function(e,a){return"symbol"===g(a)?String(a):a}));return new d("Invalid "+o+" `"+t+"` of value `"+String(s)+"` supplied to `"+i+"`, expected one of "+c+".")})):("production"!==process.env.NODE_ENV&&t(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&t("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var a=0;a<e.length;a++){var o=e[a];if("function"!=typeof o)return t("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(o)+" at index "+a+"."),s}return f((function(a,o,t,s,r){for(var c=[],p=0;p<e.length;p++){var l=(0,e[p])(a,o,t,s,r,n);if(null==l)return null;l.data&&i(l.data,"expectedType")&&c.push(l.data.expectedType)}return new d("Invalid "+s+" `"+r+"` supplied to `"+t+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(a,i,o,t,s){var r=a[i],c=b(r);if("object"!==c)return new d("Invalid "+t+" `"+s+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var p in e){var l=e[p];if("function"!=typeof l)return v(o,t,s,p,g(l));var u=l(r,p,o,t,s+"."+p,n);if(u)return u}return null}))},exact:function(e){return f((function(o,t,s,r,c){var p=o[t],l=b(p);if("object"!==l)return new d("Invalid "+r+" `"+c+"` of type `"+l+"` supplied to `"+s+"`, expected `object`.");var u=a({},o[t],e);for(var m in u){var f=e[m];if(i(e,m)&&"function"!=typeof f)return v(s,r,c,m,g(f));if(!f)return new d("Invalid "+r+" `"+c+"` key `"+m+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[t],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var x=f(p,m,s,r,c+"."+m,n);if(x)return x}return null}))}};function m(e,a){return e===a?0!==e||1/e==1/a:e!=e&&a!=a}function d(e,a){this.message=e,this.data=a&&"object"==typeof a?a:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var a={},i=0;function o(o,s,r,p,u,m,f){if(p=p||l,m=m||r,f!==n){if(c){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=p+":"+r;!a[v]&&i<3&&(t("You are manually calling a React.PropTypes validation function for the `"+m+"` prop on `"+p+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),a[v]=!0,i++)}}return null==s[r]?o?null===s[r]?new d("The "+u+" `"+m+"` is marked as required in `"+p+"`, but its value is `null`."):new d("The "+u+" `"+m+"` is marked as required in `"+p+"`, but its value is `undefined`."):null:e(s,r,p,u,m)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function x(e){return f((function(a,n,i,o,t,s){var r=a[n];return b(r)!==e?new d("Invalid "+o+" `"+t+"` of type `"+g(r)+"` supplied to `"+i+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,a,n,i,o){return new d((e||"React class")+": "+a+" type `"+n+"."+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function h(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(h);if(null===e||r(e))return!0;var a=function(e){var a=e&&(p&&e[p]||e["@@iterator"]);if("function"==typeof a)return a}(e);if(!a)return!1;var n,i=a.call(e);if(a!==e.entries){for(;!(n=i.next()).done;)if(!h(n.value))return!1}else for(;!(n=i.next()).done;){var o=n.value;if(o&&!h(o[1]))return!1}return!0;default:return!1}}function b(e){var a=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,a){return"symbol"===e||!!a&&("Symbol"===a["@@toStringTag"]||"function"==typeof Symbol&&a instanceof Symbol)}(a,e)?"symbol":a}function g(e){if(null==e)return""+e;var a=b(e);if("object"===a){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return a}function y(e){var a=g(e);switch(a){case"array":case"object":return"an "+a;case"boolean":case"date":case"regexp":return"a "+a;default:return a}}return d.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},P}()(D.isElement,!0)}else g.exports=function(){if(N)return F;N=1;var e=B();function a(){}function n(){}return n.resetWarningCache=a,F=function(){function i(a,n,i,o,t,s){if(s!==e){var r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}}function o(){return i}i.isRequired=i;var t={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:a};return t.PropTypes=t,t}}()();var M=h(g.exports),$=function(a){var n=a.value,i=a.onChange,o=a.onSearch;return e.createElement("div",{className:"gcam-search-container"},e.createElement("input",{type:"text",className:"gcam-search-input",placeholder:"Enter your phone model",value:n,onChange:i,onKeyDown:function(e){"Enter"===e.key&&o()}}),e.createElement("button",{className:"gcam-search-button",onClick:o},"Search"))};$.propTypes={value:M.string.isRequired,onChange:M.func.isRequired,onSearch:M.func.isRequired};var G=function(a){var n=a.brands,i=a.onBrandSelect,o=a.selectedBrand,t=n.length>0?n:["Samsung","Xiaomi","OnePlus","Realme","Oppo","Redmi","Poco","Nothing"];return e.createElement("div",{className:"gcam-brand-list"},t.map((function(a){return e.createElement("button",{key:a,className:"gcam-brand-item ".concat(o===a?"selected":""),onClick:function(){return i(a)}},a)})))};G.propTypes={brands:M.arrayOf(M.string),onBrandSelect:M.func.isRequired,selectedBrand:M.string},G.defaultProps={brands:[],selectedBrand:""};var V=function(a){var n=a.onClose;return e.createElement("div",{className:"gcam-install-guide-overlay"},e.createElement("div",{className:"gcam-install-guide-content"},e.createElement("button",{className:"gcam-install-guide-close",onClick:n},"×"),e.createElement("h2",null,"How to Install GCam"),e.createElement("div",{className:"gcam-install-guide-steps"},e.createElement("div",{className:"gcam-install-step"},e.createElement("h3",null,"Step 1: Download the APK"),e.createElement("p",null,"Download the appropriate GCam port APK for your device from the search results.")),e.createElement("div",{className:"gcam-install-step"},e.createElement("h3",null,"Step 2: Enable Unknown Sources"),e.createElement("p",null,'Go to Settings > Security > Enable "Unknown Sources" or "Install unknown apps" permission for your browser.')),e.createElement("div",{className:"gcam-install-step"},e.createElement("h3",null,"Step 3: Install the APK"),e.createElement("p",null,'Open the downloaded APK file and tap "Install". If you get a warning, tap "Install anyway".')),e.createElement("div",{className:"gcam-install-step"},e.createElement("h3",null,"Step 4: Configure Settings"),e.createElement("p",null,"Open the GCam app and configure settings according to your device. Some ports may require specific configurations.")),e.createElement("div",{className:"gcam-install-note"},e.createElement("h3",null,"Important Notes:"),e.createElement("ul",null,e.createElement("li",null,"Not all GCam ports work perfectly on all devices"),e.createElement("li",null,"Different versions may have different features"),e.createElement("li",null,"If one version doesn't work, try another"),e.createElement("li",null,"Check for XML configuration files if available"))))))};V.propTypes={onClose:M.func.isRequired};var W=function(a){var n=a.results,i=a.onItemClick;return 0===n.length?e.createElement("div",{className:"gcam-no-results"},"No GCam ports found. Try another device model or brand."):e.createElement("div",{className:"gcam-results-container"},e.createElement("h2",{className:"gcam-results-title"},"Available GCam Ports"),e.createElement("div",{className:"gcam-results-list"},n.map((function(a){return e.createElement("div",{key:a.id,className:"gcam-result-item",onClick:function(){return i(a)}},e.createElement("div",{className:"gcam-result-header"},e.createElement("h3",{className:"gcam-result-title"},a.title),e.createElement("span",{className:"gcam-result-version"},a.version)),e.createElement("div",{className:"gcam-result-details"},e.createElement("div",{className:"gcam-result-compatibility"},e.createElement("span",{className:"label"},"Compatible with:"),e.createElement("span",{className:"value"},a.compatibleDevices.join(", "))),e.createElement("div",{className:"gcam-result-developer"},e.createElement("span",{className:"label"},"Developer:"),e.createElement("span",{className:"value"},a.developer)),e.createElement("div",{className:"gcam-result-size"},e.createElement("span",{className:"label"},"Size:"),e.createElement("span",{className:"value"},a.fileSize)),e.createElement("div",{className:"gcam-result-date"},e.createElement("span",{className:"label"},"Released:"),e.createElement("span",{className:"value"},a.releaseDate))),e.createElement("div",{className:"gcam-result-actions"},e.createElement("button",{className:"gcam-download-button"},"Download"),e.createElement("button",{className:"gcam-details-button"},"More Details")))}))))};W.propTypes={results:M.arrayOf(M.shape({id:M.oneOfType([M.string,M.number]).isRequired,title:M.string.isRequired,version:M.string,compatibleDevices:M.arrayOf(M.string),developer:M.string,fileSize:M.string,releaseDate:M.string,downloadUrl:M.string})).isRequired,onItemClick:M.func.isRequired};var H,J={exports:{}},K=function(e,a){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(a,n)}},Y=K,X=Object.prototype.toString,Q=(H=Object.create(null),function(e){var a=X.call(e);return H[a]||(H[a]=a.slice(8,-1).toLowerCase())});function Z(e){return e=e.toLowerCase(),function(a){return Q(a)===e}}function ee(e){return Array.isArray(e)}function ae(e){return void 0===e}var ne=Z("ArrayBuffer");function ie(e){return null!==e&&"object"==typeof e}function oe(e){if("object"!==Q(e))return!1;var a=Object.getPrototypeOf(e);return null===a||a===Object.prototype}var te=Z("Date"),se=Z("File"),re=Z("Blob"),ce=Z("FileList");function pe(e){return"[object Function]"===X.call(e)}var le=Z("URLSearchParams");function ue(e,a){if(null!=e)if("object"!=typeof e&&(e=[e]),ee(e))for(var n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.call(null,e[o],o,e)}var me,de=(me="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return me&&e instanceof me}),fe={isArray:ee,isArrayBuffer:ne,isBuffer:function(e){return null!==e&&!ae(e)&&null!==e.constructor&&!ae(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var a="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||X.call(e)===a||pe(e.toString)&&e.toString()===a)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ne(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:ie,isPlainObject:oe,isUndefined:ae,isDate:te,isFile:se,isBlob:re,isFunction:pe,isStream:function(e){return ie(e)&&pe(e.pipe)},isURLSearchParams:le,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:ue,merge:function e(){var a={};function n(n,i){oe(a[i])&&oe(n)?a[i]=e(a[i],n):oe(n)?a[i]=e({},n):ee(n)?a[i]=n.slice():a[i]=n}for(var i=0,o=arguments.length;i<o;i++)ue(arguments[i],n);return a},extend:function(e,a,n){return ue(a,(function(a,i){e[i]=n&&"function"==typeof a?Y(a,n):a})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,a,n,i){e.prototype=Object.create(a.prototype,i),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,a,n){var i,o,t,s={};a=a||{};do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)s[t=i[o]]||(a[t]=e[t],s[t]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,a))&&e!==Object.prototype);return a},kindOf:Q,kindOfTest:Z,endsWith:function(e,a,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=a.length;var i=e.indexOf(a,n);return-1!==i&&i===n},toArray:function(e){if(!e)return null;var a=e.length;if(ae(a))return null;for(var n=new Array(a);a-- >0;)n[a]=e[a];return n},isTypedArray:de,isFileList:ce},xe=fe;function ve(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var he=function(e,a,n){if(!a)return e;var i;if(n)i=n(a);else if(xe.isURLSearchParams(a))i=a.toString();else{var o=[];xe.forEach(a,(function(e,a){null!=e&&(xe.isArray(e)?a+="[]":e=[e],xe.forEach(e,(function(e){xe.isDate(e)?e=e.toISOString():xe.isObject(e)&&(e=JSON.stringify(e)),o.push(ve(a)+"="+ve(e))})))})),i=o.join("&")}if(i){var t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e},be=fe;function ge(){this.handlers=[]}ge.prototype.use=function(e,a,n){return this.handlers.push({fulfilled:e,rejected:a,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},ge.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},ge.prototype.forEach=function(e){be.forEach(this.handlers,(function(a){null!==a&&e(a)}))};var ye,we,ke=ge,je=fe;function Ee(){if(we)return ye;we=1;var e=fe;function a(e,a,n,i,o){Error.call(this),this.message=e,this.name="AxiosError",a&&(this.code=a),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}e.inherits(a,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var n=a.prototype,i={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){i[e]={value:e}})),Object.defineProperties(a,i),Object.defineProperty(n,"isAxiosError",{value:!0}),a.from=function(i,o,t,s,r,c){var p=Object.create(n);return e.toFlatObject(i,p,(function(e){return e!==Error.prototype})),a.call(p,i.message,o,t,s,r),p.name=i.name,c&&Object.assign(p,c),p},ye=a}var _e,Oe,Se,Ce,Re,Ae,Te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};function Pe(){if(Oe)return _e;Oe=1;var e=fe;return _e=function(a,n){n=n||new FormData;var i=[];function o(a){return null===a?"":e.isDate(a)?a.toISOString():e.isArrayBuffer(a)||e.isTypedArray(a)?"function"==typeof Blob?new Blob([a]):Buffer.from(a):a}return function a(t,s){if(e.isPlainObject(t)||e.isArray(t)){if(-1!==i.indexOf(t))throw Error("Circular reference detected in "+s);i.push(t),e.forEach(t,(function(i,t){if(!e.isUndefined(i)){var r,c=s?s+"."+t:t;if(i&&!s&&"object"==typeof i)if(e.endsWith(t,"{}"))i=JSON.stringify(i);else if(e.endsWith(t,"[]")&&(r=e.toArray(i)))return void r.forEach((function(a){!e.isUndefined(a)&&n.append(c,o(a))}));a(i,c)}})),i.pop()}else n.append(s,o(t))}(a),n},_e}function ze(){if(Ce)return Se;Ce=1;var e=Ee();return Se=function(a,n,i){var o=i.config.validateStatus;i.status&&o&&!o(i.status)?n(new e("Request failed with status code "+i.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):a(i)}}function Fe(){if(Ae)return Re;Ae=1;var e=fe;return Re=e.isStandardBrowserEnv()?{write:function(a,n,i,o,t,s){var r=[];r.push(a+"="+encodeURIComponent(n)),e.isNumber(i)&&r.push("expires="+new Date(i).toGMTString()),e.isString(o)&&r.push("path="+o),e.isString(t)&&r.push("domain="+t),!0===s&&r.push("secure"),document.cookie=r.join("; ")},read:function(e){var a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}}var Ne,qe,Le,Ue,Be,Ie,De,Me,$e,Ge,Ve=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},We=function(e,a){return a?e.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):e},He=function(e,a){return e&&!Ve(a)?We(e,a):a};function Je(){if(qe)return Ne;qe=1;var e=fe,a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Ne=function(n){var i,o,t,s={};return n?(e.forEach(n.split("\n"),(function(n){if(t=n.indexOf(":"),i=e.trim(n.substr(0,t)).toLowerCase(),o=e.trim(n.substr(t+1)),i){if(s[i]&&a.indexOf(i)>=0)return;s[i]="set-cookie"===i?(s[i]?s[i]:[]).concat([o]):s[i]?s[i]+", "+o:o}})),s):s}}function Ke(){if(Ue)return Le;Ue=1;var e=fe;return Le=e.isStandardBrowserEnv()?function(){var a,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function o(e){var a=e;return n&&(i.setAttribute("href",a),a=i.href),i.setAttribute("href",a),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return a=o(window.location.href),function(n){var i=e.isString(n)?o(n):n;return i.protocol===a.protocol&&i.host===a.host}}():function(){return!0}}function Ye(){if(Ie)return Be;Ie=1;var e=Ee();function a(a){e.call(this,null==a?"canceled":a,e.ERR_CANCELED),this.name="CanceledError"}return fe.inherits(a,e,{__CANCEL__:!0}),Be=a}function Xe(){return Me?De:(Me=1,De=function(e){var a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""})}var Qe,Ze,ea,aa,na,ia={exports:{}},oa={exports:{}},ta={exports:{}};function sa(){if(Ze)return Qe;Ze=1;var e=1e3,a=60*e,n=60*a,i=24*n,o=7*i,t=365.25*i;function s(e,a,n,i){var o=a>=1.5*n;return Math.round(e/n)+" "+i+(o?"s":"")}return Qe=function(r,c){c=c||{};var p=typeof r;if("string"===p&&r.length>0)return function(s){if((s=String(s)).length>100)return;var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(!r)return;var c=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*t;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*a;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(r);if("number"===p&&isFinite(r))return c.long?function(o){var t=Math.abs(o);if(t>=i)return s(o,t,i,"day");if(t>=n)return s(o,t,n,"hour");if(t>=a)return s(o,t,a,"minute");if(t>=e)return s(o,t,e,"second");return o+" ms"}(r):function(o){var t=Math.abs(o);if(t>=i)return Math.round(o/i)+"d";if(t>=n)return Math.round(o/n)+"h";if(t>=a)return Math.round(o/a)+"m";if(t>=e)return Math.round(o/e)+"s";return o+"ms"}(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))},Qe}function ra(){if(aa)return ea;return aa=1,ea=function(e){function a(e){let i,o,t,s=null;function r(...e){if(!r.enabled)return;const n=r,o=Number(new Date),t=o-(i||o);n.diff=t,n.prev=i,n.curr=o,i=o,e[0]=a.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((i,o)=>{if("%%"===i)return"%";s++;const t=a.formatters[o];if("function"==typeof t){const a=e[s];i=t.call(n,a),e.splice(s,1),s--}return i})),a.formatArgs.call(n,e);(n.log||a.log).apply(n,e)}return r.namespace=e,r.useColors=a.useColors(),r.color=a.selectColor(e),r.extend=n,r.destroy=a.destroy,Object.defineProperty(r,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==a.namespaces&&(o=a.namespaces,t=a.enabled(e)),t),set:e=>{s=e}}),"function"==typeof a.init&&a.init(r),r}function n(e,n){const i=a(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function i(e,a){let n=0,i=0,o=-1,t=0;for(;n<e.length;)if(i<a.length&&(a[i]===e[n]||"*"===a[i]))"*"===a[i]?(o=i,t=n,i++):(n++,i++);else{if(-1===o)return!1;i=o+1,t++,n=t}for(;i<a.length&&"*"===a[i];)i++;return i===a.length}return a.debug=a,a.default=a,a.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},a.disable=function(){const e=[...a.names,...a.skips.map((e=>"-"+e))].join(",");return a.enable(""),e},a.enable=function(e){a.save(e),a.namespaces=e,a.names=[],a.skips=[];const n=("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?a.skips.push(e.slice(1)):a.names.push(e)},a.enabled=function(e){for(const n of a.skips)if(i(e,n))return!1;for(const n of a.names)if(i(e,n))return!0;return!1},a.humanize=sa(),a.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{a[n]=e[n]})),a.names=[],a.skips=[],a.formatters={},a.selectColor=function(e){let n=0;for(let a=0;a<e.length;a++)n=(n<<5)-n+e.charCodeAt(a),n|=0;return a.colors[Math.abs(n)%a.colors.length]},a.enable(a.load()),a},ea}var ca,pa,la,ua,ma,da,fa,xa,va,ha,ba,ga,ya,wa,ka,ja,Ea,_a={exports:{}};function Oa(){return pa?ca:(pa=1,ca=(e,a=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",i=a.indexOf(n+e),o=a.indexOf("--");return-1!==i&&(-1===o||i<o)})}function Sa(){return ma||(ma=1,function(e,a){const n=s,i=r;a.init=function(e){e.inspectOpts={};const n=Object.keys(a.inspectOpts);for(let i=0;i<n.length;i++)e.inspectOpts[n[i]]=a.inspectOpts[n[i]]},a.log=function(...e){return process.stderr.write(i.formatWithOptions(a.inspectOpts,...e)+"\n")},a.formatArgs=function(n){const{namespace:i,useColors:o}=this;if(o){const a=this.color,o="[3"+(a<8?a:"8;5;"+a),t=` ${o};1m${i} [0m`;n[0]=t+n[0].split("\n").join("\n"+t),n.push(o+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(a.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+i+" "+n[0]},a.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},a.load=function(){return process.env.DEBUG},a.useColors=function(){return"colors"in a.inspectOpts?Boolean(a.inspectOpts.colors):n.isatty(process.stderr.fd)},a.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),a.colors=[6,2,3,4,5,1];try{const e=function(){if(ua)return la;ua=1;const e=c,a=s,n=Oa(),{env:i}=process;let o;function t(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function r(a,t){if(0===o)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(a&&!t&&void 0===o)return 0;const s=o||0;if("dumb"===i.TERM)return s;if("win32"===process.platform){const a=e.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||"codeship"===i.CI_NAME?1:s;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:s}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?o=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(o=1),"FORCE_COLOR"in i&&(o="true"===i.FORCE_COLOR?1:"false"===i.FORCE_COLOR?0:0===i.FORCE_COLOR.length?1:Math.min(parseInt(i.FORCE_COLOR,10),3)),la={supportsColor:function(e){return t(r(e,e&&e.isTTY))},stdout:t(r(!0,a.isatty(1))),stderr:t(r(!0,a.isatty(2)))}}();e&&(e.stderr||e).level>=2&&(a.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}a.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,a)=>{const n=a.substring(6).toLowerCase().replace(/_([a-z])/g,((e,a)=>a.toUpperCase()));let i=process.env[a];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[n]=i,e}),{}),e.exports=ra()(a);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}}(_a,_a.exports)),_a.exports}function Ca(){return da||(da=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?oa.exports=(na||(na=1,function(e,a){a.formatArgs=function(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;a.splice(1,0,n,"color: inherit");let i=0,o=0;a[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(o=i))})),a.splice(o,0,n)},a.save=function(e){try{e?a.storage.setItem("debug",e):a.storage.removeItem("debug")}catch(e){}},a.load=function(){let e;try{e=a.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},a.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage=function(){try{return localStorage}catch(e){}}(),a.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],a.log=console.debug||console.log||(()=>{}),e.exports=ra()(a);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(ta,ta.exports)),ta.exports):oa.exports=Sa()),oa.exports}function Ra(){if(va)return ia.exports;va=1;var e,s,r,c=i,p=c.URL,l=a,u=n,m=o.Writable,d=t,f=function(){return xa||(xa=1,fa=function(){if(!e){try{e=Ca()("follow-redirects")}catch(e){}"function"!=typeof e&&(e=function(){})}e.apply(null,arguments)}),fa;var e}();e="undefined"!=typeof process,s="undefined"!=typeof window&&"undefined"!=typeof document,r=N(Error.captureStackTrace),e||!s&&r||console.warn("The follow-redirects package should be excluded from browser builds.");var x=!1;try{d(new p(""))}catch(e){x="ERR_INVALID_URL"===e.code}var v=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],h=["abort","aborted","connect","error","socket","timeout"],b=Object.create(null);h.forEach((function(e){b[e]=function(a,n,i){this._redirectable.emit(e,a,n,i)}}));var g=P("ERR_INVALID_URL","Invalid URL",TypeError),y=P("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),w=P("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",y),k=P("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),j=P("ERR_STREAM_WRITE_AFTER_END","write after end"),E=m.prototype.destroy||S;function _(e,a){m.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],a&&this.on("response",a);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof y?e:new y({cause:e}))}},this._performRequest()}function O(e){var a={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(i){var o=i+":",t=n[o]=e[i],s=a[i]=Object.create(t);Object.defineProperties(s,{request:{value:function(e,i,t){var s;return s=e,p&&s instanceof p?e=A(e):F(e)?e=A(C(e)):(t=i,i=R(e),e={protocol:o}),N(i)&&(t=i,i=null),(i=Object.assign({maxRedirects:a.maxRedirects,maxBodyLength:a.maxBodyLength},e,i)).nativeProtocols=n,F(i.host)||F(i.hostname)||(i.hostname="::1"),d.equal(i.protocol,o,"protocol mismatch"),f("options",i),new _(i,t)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,a,n){var i=s.request(e,a,n);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})})),a}function S(){}function C(e){var a;if(x)a=new p(e);else if(!F((a=R(c.parse(e))).protocol))throw new g({input:e});return a}function R(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new g({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new g({input:e.href||e});return e}function A(e,a){var n=a||{};for(var i of v)n[i]=e[i];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function T(e,a){var n;for(var i in a)e.test(i)&&(n=a[i],delete a[i]);return null==n?void 0:String(n).trim()}function P(e,a,n){function i(n){N(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?a+": "+this.cause.message:a}return i.prototype=new(n||Error),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),i}function z(e,a){for(var n of h)e.removeListener(n,b[n]);e.on("error",S),e.destroy(a)}function F(e){return"string"==typeof e||e instanceof String}function N(e){return"function"==typeof e}return _.prot