laradumps-js 0.2.0 → 0.2.2
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.
- package/.github/workflows/node.js.yml +3 -2
- package/dist/index.js +4386 -4477
- package/dist/index.js.map +1 -1
- package/dist/laradumps.min.js +1 -1
- package/dist/src/LaraDumps.js +9 -10
- package/dist/src/LaraDumps.js.map +1 -1
- package/dist/src/__tests__/LaraDumps.test.js +1 -1
- package/dist/src/__tests__/LaraDumps.test.js.map +1 -1
- package/package.json +5 -11
- package/src/__tests__/Benchmark.test.ts +0 -32
- package/src/__tests__/Colors.test.ts +0 -26
- package/src/__tests__/Json.test.ts +0 -42
- package/src/__tests__/Label.test.ts +0 -14
- package/src/__tests__/LaraDumps.test.ts +0 -54
- package/src/__tests__/Screen.test.ts +0 -20
- package/src/__tests__/Table.test.ts +0 -42
- package/src/__tests__/TimeTrack.test.ts +0 -35
- package/src/__tests__/Validate.test.ts +0 -40
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gBAMC;AAED,kBAEC;AAED,sBAEC;AAED,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gBAMC;AAED,kBAEC;AAED,sBAEC;AAED,8BAeC;AA/BD,SAAgB,EAAE;IAAC,gBAAS;SAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;QAAT,2BAAS;;IACxB,IAAM,QAAQ,GAAG,aAAI,mBAAS,EAAE,WAAW,EAAE,CAAC;IAE9C,MAAM,CAAC,OAAO,CAAC,UAAC,KAAK,IAAK,OAAA,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAApB,CAAoB,CAAC,CAAC;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G,mBAAS,CAAC"}
|
package/dist/laradumps.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var r={"./index.js":function(e,t,r){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},i=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=n({},c.default).generateIds();return e.forEach(function(e){return r.dump(e)}),r}function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.apply(void 0,i([],o(e),!1)).die()}function u(t){return new Promise(function(e){return setTimeout(e,t)})}Object.defineProperty(t,"__esModule",{value:!0}),t.ds=a,t.dsq=l,t.sleep=u,t.configure=function(e){var t=e.port,t=void 0===t?9191:t,r=e.host,e=e.autoInvoke,e=void 0!==e&&e,r="http://".concat(void 0===r?"127.0.0.1":r,":").concat(t);globalThis.CONFIG_LARADUMPS.host=r,globalThis.CONFIG_LARADUMPS.autoInvokeApp=e},globalThis.ds=a,globalThis.dsd=l,globalThis._sleep=u,globalThis.CONFIG_LARADUMPS={host:"http://127.0.0.1:9191",autoInvokeApp:!1};var c=s(r("./src/LaraDumps.js"));t.default=c.default,globalThis.LaraDumps=c.default},"./src/Benchmark.js":function(e,t){var s=this&&this.__awaiter||function(e,s,a,l){return new(a=a||Promise)(function(r,t){function n(e){try{i(l.next(e))}catch(e){t(e)}}function o(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((l=l.apply(e,s||[])).next())})},a=this&&this.__generator||function(n,o){var i,s,a,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=e(0),u.throw=e(1),u.return=e(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function e(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;l=u&&t[u=0]?0:l;)try{if(i=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return l.label++,{value:t[1],done:!1};case 5:l.label++,s=t[1],t=[0];continue;case 7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3]))l.label=t[1];else if(6===t[0]&&l.label<a[1])l.label=a[1],a=t;else{if(!(a&&l.label<a[2])){a[2]&&l.ops.pop(),l.trys.pop();continue}l.label=a[2],l.ops.push(t)}}t=o.call(n,l)}catch(e){t=[6,e],s=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}};Object.defineProperty(t,"__esModule",{value:!0}),t.default={promise:null,benchmark:function(){for(var n=this,e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=[],i="object"==typeof e[0]?e[0]:e;return this.promise=Promise.all(Object.values(i).map(function(r,e){var t=Object.keys(i)[e];return o[t]={start_time:Date.now(),end_time:null,total_time:null},new Promise(function(t){return s(n,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,r(t)];case 1:return e.sent(),[2]}})})}).finally(function(){o[t].end_time=Date.now(),o[t].total_time=o[t].end_time-o[t].start_time})})).then(function(){return o}).finally(function(){n.sendMarks(o)}),this},sendMarks:function(n){var o={Fastest:[]};return Object.values(n).forEach(function(e,t){var r,t=Object.keys(n)[t];isNaN(parseInt(t))||(t="Closure ".concat(t)),(null!=(r=o.Fastest[1])?r:e.end_time+1)>e.end_time&&(o.Fastest=[t,e.end_time]),o[t]=["Start time: ".concat(new Date(e.start_time).toLocaleString(),"\n End time: ").concat(new Date(e.end_time).toLocaleString(),"\n Total time: ").concat(e.total_time," ms"),e.end_time]}),this.tableV2(o,"Benchmark")}}},"./src/Colors.js":(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={color:function(e){return this.send("color",{color:{color:e}})},info:function(){return this.blue()},success:function(){return this.green()},warning:function(){return this.orange()},danger:function(){return this.red()},red:function(){return this.color("red")},blue:function(){return this.color("blue")},green:function(){return this.color("green")},orange:function(){return this.color("orange")},dark:function(){return this.color("black")}}},"./src/Json.js":(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={json:function(t){try{"string"!=typeof t&&(t=JSON.stringify(t)),this.isValidJson(t)?this.sendJson(t):this.dump(t)}catch(e){return this.dump(this.inspect(t)),this}},inspect:function(e){return this.convertJSONStringToJSON(JSON.stringify(e,null,2))},convertJSONStringToJSON:function(t){var e=t.replace(/([{,]\s*)(\w+)\s*:/g,'$1"$2":').replace(/:\s*'([^']*)'/g,': "$1"').replace(/undefined/g,"null").replace(/\[Object\]/g,"{}").replace(/(\r\n|\n|\r)/gm,"");try{return JSON.parse(e)}catch(e){return t}},isValidJson:function(e){try{JSON.parse(e)}catch(e){return!1}return!0},sendJson:function(e){return e="string"!=typeof e?JSON.stringify(e):e,this.send("json",{json:{string:e,original_content:e}})}}},"./src/Label.js":(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={label:function(e){return this.send("label",{with_label:{label:e}})}}},"./src/LaraDumps.js":function(e,t,r){var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=(Object.defineProperty(t,"__esModule",{value:!0}),n(r("../node_modules/axios/dist/browser/axios.cjs"))),o=n(r("./src/Benchmark.js")),l=n(r("./src/Colors.js")),u=n(r("./src/Json.js")),c=n(r("./src/Label.js")),f=n(r("./src/Screen.js")),d=n(r("./src/Table.js")),h=n(r("./src/TimeTrack.js")),n=n(r("./src/Validate.js")),r=i(i(i(i(i(i(i(i(i({instanceId:null,requestId:null,server:null,params:[],generateIds:function(){var e;return this.server="".concat(null!=(e=null==(e=globalThis.CONFIG_LARADUMPS)?void 0:e.host)?e:"http://127.0.0.1:9191","/api/dumps"),this.instanceId=this.makeUUID(),this.requestId=this.makeUUID(),this},makeUUID:function(){var r=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"==e?t:3&t|8).toString(16)})}},l.default),f.default),c.default),h.default),d.default),u.default),n.default),o.default),{clear:function(){return this.send("clear",{clear:{}})},die:function(){throw new Error("Exception to stop the execution!")},label:function(e){return this.send("label",{label:{label:e}})},dump:function(e){var t=typeof e,r="string"==t&&this.isValidJson(e);if("object"!=t&&!r)return this.send("dump",{dump:{dump:e,original_content:e,variable_type:t}});this.json(e)},send:function(e,t){var r,n=this.getStackTrace(),o=n.file?new URL(n.file):null;return a.default.post(this.server,i({id:this.instanceId,request_id:this.requestId,meta:{laradumps_version:"2.0.2.0",auto_invoke_app:null==(r=globalThis.CONFIG_LARADUMPS)?void 0:r.autoInvokeApp},ide_handle:{separator:"/",line:null==n?void 0:n.line,real_path:null!=(r=null==o?void 0:o.pathname)?r:"terminal",class_name:null!=(n=null==o?void 0:o.pathname.split("/").pop())?n:"terminal",project_path:null!=(r=null==o?void 0:o.pathname.split("/").slice(0,-1).join("/"))?r:"terminal"},type:e,with_label:{label:""},to_screen:{screen_name:"home",raise_in:0,new_window:!1}},t)).catch(function(e){console.error("Error:",e)}),this},getStackTrace:function(){var e=(new Error).stack,t={stack:e},r=e.split("\n"),n=r[4],o=r.findIndex(function(e){return e.includes("at ds")}),o=(e.includes("[Alpine]")?n=null==(e=(r=r.filter(function(e){return e.includes("[Alpine]")}))[0])?void 0:e.split("),")[0]:o&&(n=null==(e=(r=r.slice(o))[1])?void 0:e.split("),")[0]),null==n?void 0:n.match(/(https?:\/\/.*):(\d+):(\d+)/));return o&&((r=s(o,4))[0],e=r[2],n=r[3],t.file=r[1],t.line=e,t.column=n),t}});t.default=r},"./src/Screen.js":(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={s:function(e){return this.toScreen(e)},w:function(e,t){return this.toScreen(e,t=void 0===t?0:t)},toScreen:function(e,t,r){return this.send("screen",{screen:{screen_name:e,raisen_in:t=void 0===t?0:t,new_window:r=void 0===r?!1:r}})},toScreenWindow:function(e,t){return this.toScreen(e,t=void 0===t?0:t,!0)}}},"./src/Table.js":(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={table:function(e,t){var r=Object.keys(e[0]);return this.send("table",{table:{fields:r,header:r,values:e,label:t}}).label(t)},tableV2:function(e,t){return this.send("table_v2",{table_v2:{label:t,values:e}}).label(t)}}},"./src/TimeTrack.js":(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={time:function(e){return this.send("time_track",{time_track:{tracker_id:this.makeUUID(),time:Date.now()/1e3,label:e}}).label(e)},stopTime:function(e){var t=Date.now()/1e3;return this.send("time_track",{time_track:{time:t,label:e,end_time:t,tracker_id:this.makeUUID()}})}}},"./src/Validate.js":(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={isJson:function(){return this.send("json_validate",{json_validate:{}})},validate:function(e,t,r,n){return this.send("validate",{validate:{type:e,content:t,is_case_sensitive:r=void 0===r?!1:r,is_whole_word:n=void 0===n?!1:n}})},contains:function(e,t,r){return this.validate("contains",e,t=void 0===t?!1:t,r=void 0===r?!1:r)}}},"../node_modules/axios/dist/browser/axios.cjs":(D,F,e)=>{function B(e,t){return function(){return e.apply(t,arguments)}}let I=Object.prototype.toString,M=Object.getPrototypeOf,{iterator:o,toStringTag:q}=Symbol,r=(J=Object.create(null),e=>{e=I.call(e);return J[e]||(J[e]=e.slice(8,-1).toLowerCase())});var J,t=t=>(t=t.toLowerCase(),e=>r(e)===t),n=t=>e=>typeof e===t;let l=Array.isArray,i=n("undefined");let z=t("ArrayBuffer");var s=n("string");let a=n("function"),V=n("number"),u=e=>null!==e&&"object"==typeof e;let c=e=>{var t;return"object"===r(e)&&!(null!==(t=M(e))&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||q in e||o in e)};var n=t("Date"),H=t("File"),W=t("Blob"),K=t("FileList"),G=t("URLSearchParams"),[$,f,d,X]=["ReadableStream","Request","Response","Headers"].map(t);function h(t,r,{allOwnKeys:n=!1}={}){if(null!=t){let e;var o;if("object"!=typeof t&&(t=[t]),l(t))for(e=0,o=t.length;e<o;e++)r.call(null,t[e],e,t);else{var i,s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;for(e=0;e<a;e++)i=s[e],r.call(null,t[i],i,t)}}}function Q(e,t){t=t.toLowerCase();var r,n=Object.keys(e);let o=n.length;for(;0<o--;)if(t===(r=n[o]).toLowerCase())return r;return null}let p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e.g,Z=e=>!i(e)&&e!==p;Y="undefined"!=typeof Uint8Array&&M(Uint8Array);var Y,ee,e=e=>Y&&e instanceof Y,m=t("HTMLFormElement"),te=(ee=[Object.prototype.hasOwnProperty][0],(e,t)=>ee.call(e,t)),b=t("RegExp");let re=(n,o)=>{var e=Object.getOwnPropertyDescriptors(n);let i={};h(e,(e,t)=>{var r;!1!==(r=o(e,t,n))&&(i[t]=r||e)}),Object.defineProperties(n,i)};var ne,y,oe=t("AsyncFunction"),g=(g="function"==typeof setImmediate,ie=a(p.postMessage),g?setImmediate:ie?(ne="axios@"+Math.random(),y=[],p.addEventListener("message",({source:e,data:t})=>{e===p&&t===ne&&y.length&&y.shift()()},!1),e=>{y.push(e),p.postMessage(ne,"*")}):e=>setTimeout(e)),ie="undefined"!=typeof queueMicrotask?queueMicrotask.bind(p):"undefined"!=typeof process&&process.nextTick||g,S={isArray:l,isArrayBuffer:z,isBuffer:function(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&a(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{var t;return e&&("function"==typeof FormData&&e instanceof FormData||a(e.append)&&("formdata"===(t=r(e))||"object"===t&&a(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&z(e.buffer)},isString:s,isNumber:V,isBoolean:e=>!0===e||!1===e,isObject:u,isPlainObject:c,isReadableStream:$,isRequest:f,isResponse:d,isHeaders:X,isUndefined:i,isDate:n,isFile:H,isBlob:W,isRegExp:b,isFunction:a,isStream:e=>u(e)&&a(e.pipe),isURLSearchParams:G,isTypedArray:e,isFileList:K,forEach:h,merge:function r(){let n=(Z(this)&&this||{}).caseless,o={};var i=(e,t)=>{t=n&&Q(o,t)||t,c(o[t])&&c(e)?o[t]=r(o[t],e):c(e)?o[t]=r({},e):l(e)?o[t]=e.slice():o[t]=e};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&h(arguments[e],i);return o},extend:(r,e,n,{allOwnKeys:t}={})=>(h(e,(e,t)=>{n&&a(e)?r[t]=B(e,n):r[t]=e},{allOwnKeys:t}),r),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>e=65279===e.charCodeAt(0)?e.slice(1):e,inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{var o,i;let s;var a={};if(t=t||{},null!=e)do{for(o=Object.getOwnPropertyNames(e),s=o.length;0<s--;)i=o[s],n&&!n(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0)}while((e=!1!==r&&M(e))&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:r,kindOfTest:t,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;e=e.indexOf(t,r);return-1!==e&&e===r},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!V(t))return null;for(var r=new Array(t);0<t--;)r[t]=e[t];return r},forEachEntry:(e,t)=>{for(var r=(e&&e[o]).call(e);(n=r.next())&&!n.done;){var n=n.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:m,hasOwnProperty:te,hasOwnProp:te,reduceDescriptors:re,freezeMethods:n=>{re(n,(e,t)=>{if(a(n)&&-1!==["arguments","caller","callee"].indexOf(t))return!1;var r=n[t];a(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")}))})},toObjectSet:(e,t)=>{let r={};var n=e=>{e.forEach(e=>{r[e]=!0})};return l(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Q,global:p,isContextDefined:Z,isSpecCompliantForm:function(e){return!!(e&&a(e.append)&&"FormData"===e[q]&&e[o])},toJSONObject:e=>{let t=new Array(10),o=(e,n)=>{if(u(e)){if(0<=t.indexOf(e))return;if(!("toJSON"in e)){t[n]=e;let r=l(e)?[]:{};return h(e,(e,t)=>{e=o(e,n+1);i(e)||(r[t]=e)}),t[n]=void 0,r}}return e};return o(e,0)},isAsyncFn:oe,isThenable:e=>e&&(u(e)||a(e))&&a(e.then)&&a(e.catch),setImmediate:g,asap:ie,isIterable:e=>null!=e&&a(e[o])};function _(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status||null)}S.inherits(_,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:S.toJSONObject(this.config),code:this.code,status:this.status}}});let se=_.prototype,ae={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ae[e]={value:e}}),Object.defineProperties(_,ae),Object.defineProperty(se,"isAxiosError",{value:!0}),_.from=(e,t,r,n,o,i)=>{var s=Object.create(se);return S.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),_.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function le(e){return S.isPlainObject(e)||S.isArray(e)}function ue(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function ce(e,t,r){return e?e.concat(t).map(function(e,t){return e=ue(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let fe=S.toFlatObject(S,{},null,function(e){return/^is[A-Z]/.test(e)});function v(e,i,t){if(!S.isObject(e))throw new TypeError("target must be an object");i=i||new FormData;let s=(t=S.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!S.isUndefined(t[e])})).metaTokens,o=t.visitor||n,a=t.dots,l=t.indexes;let r=(t.Blob||"undefined"!=typeof Blob&&Blob)&&S.isSpecCompliantForm(i);if(!S.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(S.isDate(e))return e.toISOString();if(!r&&S.isBlob(e))throw new _("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(e)||S.isTypedArray(e)?r&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function n(e,r,t){let n=e;if(e&&!t&&"object"==typeof e)if(S.endsWith(r,"{}"))r=s?r:r.slice(0,-2),e=JSON.stringify(e);else if(S.isArray(e)&&(o=e,S.isArray(o))&&!o.some(le)||(S.isFileList(e)||S.endsWith(r,"[]"))&&(n=S.toArray(e)))return r=ue(r),n.forEach(function(e,t){S.isUndefined(e)||null===e||i.append(!0===l?ce([r],t,a):null===l?r:r+"[]",u(e))}),!1;var o;return!!le(e)||(i.append(ce(t,r,a),u(e)),!1)}let c=[],f=Object.assign(fe,{defaultVisitor:n,convertValue:u,isVisitable:le});if(S.isObject(e))return function r(e,n){if(!S.isUndefined(e)){if(-1!==c.indexOf(e))throw Error("Circular reference detected in "+n.join("."));c.push(e),S.forEach(e,function(e,t){!0===(!(S.isUndefined(e)||null===e)&&o.call(i,e,S.isString(t)?t.trim():t,n,f))&&r(e,n?n.concat(t):[t])}),c.pop()}}(e),i;throw new TypeError("data must be an object")}function de(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function he(e,t){this._pairs=[],e&&v(e,this,t)}s=he.prototype;function pe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function me(t,r,n){if(r){var o=n&&n.encode||pe,i=(n=S.isFunction(n)?{serialize:n}:n)&&n.serialize;let e;(e=i?i(r,n):S.isURLSearchParams(r)?r.toString():new he(r,n).toString(o))&&(-1!==(i=t.indexOf("#"))&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+e)}return t}s.append=function(e,t){this._pairs.push([e,t])};var be=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(e){null!==e&&t(e)})}},ye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!(s.toString=function(t){let r=t?function(e){return t.call(this,e,de)}:de;return this._pairs.map(function(e){return r(e[0])+"="+r(e[1])},"").join("&")})},$={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:he,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},f="undefined"!=typeof window&&"undefined"!=typeof document,d="object"==typeof navigator&&navigator||void 0,X=f&&(!d||["ReactNative","NativeScript","NS"].indexOf(d.product)<0),n="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,H=f&&window.location.href||"http://localhost",w={...Object.freeze({__proto__:null,hasBrowserEnv:f,hasStandardBrowserWebWorkerEnv:n,hasStandardBrowserEnv:X,navigator:d,origin:H}),...$};function ge(e){function a(e,t,r,n){var o,i,s;return"__proto__"===(s=e[n++])||(o=Number.isFinite(+s),i=n>=e.length,s=!s&&S.isArray(r)?r.length:s,i?S.hasOwnProp(r,s)?r[s]=[r[s],t]:r[s]=t:(r[s]&&S.isObject(r[s])||(r[s]=[]),a(e,t,r[s],n)&&S.isArray(r[s])&&(r[s]=(e=>{var t={},r=Object.keys(e);let n;var o,i=r.length;for(n=0;n<i;n++)t[o=r[n]]=e[o];return t})(r[s]))),!o)}if(S.isFormData(e)&&S.isFunction(e.entries)){let r={};return S.forEachEntry(e,(e,t)=>{a(S.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),t,r,0)}),r}return null}let ve={transitional:ye,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var r,n=t.getContentType()||"",o=-1<n.indexOf("application/json"),i=S.isObject(e),s=(i&&S.isHTMLForm(e)&&(e=new FormData(e)),S.isFormData(e));if(s)return o?JSON.stringify(ge(e)):e;if(!(S.isArrayBuffer(e)||S.isBuffer(e)||S.isStream(e)||S.isFile(e)||S.isBlob(e)||S.isReadableStream(e))){if(S.isArrayBufferView(e))return e.buffer;if(S.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(-1<n.indexOf("application/x-www-form-urlencoded"))return s=e,r=this.formSerializer,v(s,new w.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return w.isNode&&S.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},r)).toString();if((s=S.isFileList(e))||-1<n.indexOf("multipart/form-data"))return v(s?{"files[]":e}:e,(r=this.env&&this.env.FormData)&&new r,this.formSerializer)}if(i||o){t.setContentType("application/json",!1);n=e,s=void 0,i=void 0;if(S.isString(n))try{return(s||JSON.parse)(n),S.trim(n)}catch(e){if("SyntaxError"!==e.name)throw e}return(i||JSON.stringify)(n)}}return e}],transformResponse:[function(e){var t=this.transitional||ve.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(!S.isResponse(e)&&!S.isReadableStream(e)&&e&&S.isString(e)&&(r&&!this.responseType||n)){r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw _.from(e,_.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:w.classes.FormData,Blob:w.classes.Blob},validateStatus:function(e){return 200<=e&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{ve.headers[e]={}});var we=ve;let Oe=S.toObjectSet(["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"]);let Ee=Symbol("internals");function O(e){return e&&String(e).trim().toLowerCase()}function E(e){return!1===e||null==e?e:S.isArray(e)?e.map(E):String(e)}function Se(e,t,r,n,o){return S.isFunction(n)?n.call(this,t,r):S.isString(t=o?r:t)&&(S.isString(n)?-1!==t.indexOf(n):S.isRegExp(n)&&n.test(t))}class R{constructor(e){e&&this.set(e)}set(e,t,r){let o=this;function n(e,t,r){var n=O(t);if(!n)throw new Error("header name must be a non-empty string");n=S.findKey(o,n);n&&void 0!==o[n]&&!0!==r&&(void 0!==r||!1===o[n])||(o[n||t]=E(e))}var i=(e,r)=>S.forEach(e,(e,t)=>n(e,t,r));if(S.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(S.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{let t={},r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&Oe[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(S.isObject(e)&&S.isIterable(e)){var s,a,l={};for(a of e){if(!S.isArray(a))throw TypeError("Object iterator must return a key-value pair");l[s=a[0]]=(s=l[s])?S.isArray(s)?[...s,a[1]]:[s,a[1]]:a[1]}i(l,t)}else null!=e&&n(t,e,r);return this}get(e,t){if(e=O(e)){e=S.findKey(this,e);if(e){var r=this[e];if(!t)return r;if(!0===t){for(var n,o=r,i=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;n=s.exec(o);)i[n[1]]=n[2];return i}if(S.isFunction(t))return t.call(this,r,e);if(S.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){return!!(e=O(e))&&!(!(e=S.findKey(this,e))||void 0===this[e]||t&&!Se(0,this[e],e,t))}delete(e,t){let r=this,n=!1;function o(e){(e=O(e))&&(e=S.findKey(r,e))&&(!t||Se(r,r[e],e,t))&&(delete r[e],n=!0)}return S.isArray(e)?e.forEach(o):o(e),n}clear(e){var t=Object.keys(this);let r=t.length,n=!1;for(;r--;){var o=t[r];e&&!Se(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(n){let o=this,i={};return S.forEach(this,(e,t)=>{var r=S.findKey(i,t);r?(o[r]=E(e),delete o[t]):((r=n?t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(t).trim())!==t&&delete o[t],o[r]=E(e),i[r]=!0)}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(r){let n=Object.create(null);return S.forEach(this,(e,t)=>{null!=e&&!1!==e&&(n[t]=r&&S.isArray(e)?e.join(", "):e)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let n=(this[Ee]=this[Ee]={accessors:{}}).accessors,i=this.prototype;function t(t){var e=O(t);if(!n[e]){{var r=i;var o=t;let e=S.toCamelCase(" "+o);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+e,{value:function(e,t,r){return this[n].call(this,o,e,t,r)},configurable:!0})})}n[e]=!0}}return S.isArray(e)?e.forEach(t):t(e),this}}R.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),S.reduceDescriptors(R.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),S.freezeMethods(R);var T=R;function _e(e,t){let r=this||we;var n=t||r;let o=T.from(n.headers),i=n.data;return S.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Re(e){return!(!e||!e.__CANCEL__)}function j(e,t,r){_.call(this,null==e?"canceled":e,_.ERR_CANCELED,t,r),this.name="CanceledError"}function Te(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new _("Request failed with status code "+r.status,[_.ERR_BAD_REQUEST,_.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}S.inherits(j,_,{__CANCEL__:!0});let x=(l,u,e=3)=>{let c=0,f=((i,s)=>{i=i||10;let a=new Array(i),l=new Array(i),u=0,c=0,f;return s=void 0!==s?s:1e3,function(e){var t=Date.now(),r=l[c];f=f||t,a[u]=e,l[u]=t;let n=c,o=0;for(;n!==u;)o+=a[n++],n%=i;return(u=(u+1)%i)===c&&(c=(c+1)%i),!(t-f<s)&&(e=r&&t-r)?Math.round(1e3*o/e):void 0}})(50,250);{var r=e=>{var t=e.loaded,r=e.lengthComputable?e.total:void 0,n=t-c,o=f(n),i=t<=r,n={loaded:c=t,total:r,progress:r?t/r:void 0,bytes:n,rate:o||void 0,estimated:o&&r&&i?(r-t)/o:void 0,event:e,lengthComputable:null!=r,[u?"download":"upload"]:!0};l(n)};let n=0,o=1e3/e,i,s,a=(e,t=Date.now())=>{n=t,i=null,s&&(clearTimeout(s),s=null),r.apply(null,e)};return[(...e)=>{var t=Date.now(),r=t-n;r>=o?a(e,t):(i=e,s=s||setTimeout(()=>{s=null,a(i)},o-r))},()=>i&&a(i)]}},je=(t,r)=>{let n=null!=t;return[e=>r[0]({lengthComputable:n,total:t,loaded:e}),r[1]]},xe=t=>(...e)=>S.asap(()=>t(...e));var A,Ae,Ne=w.hasStandardBrowserEnv?(A=new URL(w.origin),Ae=w.navigator&&/(msie|trident)/i.test(w.navigator.userAgent),e=>(e=new URL(e,w.origin),A.protocol===e.protocol&&A.host===e.host&&(Ae||A.port===e.port))):()=>!0,Pe=w.hasStandardBrowserEnv?{write(e,t,r,n,o,i){e=[e+"="+encodeURIComponent(t)];S.isNumber(r)&&e.push("expires="+new Date(r).toGMTString()),S.isString(n)&&e.push("path="+n),S.isString(o)&&e.push("domain="+o),!0===i&&e.push("secure"),document.cookie=e.join("; ")},read(e){e=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ke(e,t,r){var n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?(n=e,(r=t)?n.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):n):t}let Ce=e=>e instanceof T?{...e}:e;function N(n,o){o=o||{};let i={};function s(e,t,r,n){return S.isPlainObject(e)&&S.isPlainObject(t)?S.merge.call({caseless:n},e,t):S.isPlainObject(t)?S.merge({},t):S.isArray(t)?t.slice():t}function a(e,t,r,n){return S.isUndefined(t)?S.isUndefined(e)?void 0:s(void 0,e,0,n):s(e,t,0,n)}function e(e,t){if(!S.isUndefined(t))return s(void 0,t)}function t(e,t){return S.isUndefined(t)?S.isUndefined(e)?void 0:s(void 0,e):s(void 0,t)}function l(e,t,r){return r in o?s(e,t):r in n?s(void 0,e):void 0}let u={url:e,method:e,data:e,baseURL:t,transformRequest:t,transformResponse:t,paramsSerializer:t,timeout:t,timeoutMessage:t,withCredentials:t,withXSRFToken:t,adapter:t,responseType:t,xsrfCookieName:t,xsrfHeaderName:t,onUploadProgress:t,onDownloadProgress:t,decompress:t,maxContentLength:t,maxBodyLength:t,beforeRedirect:t,transport:t,httpAgent:t,httpsAgent:t,cancelToken:t,socketPath:t,responseEncoding:t,validateStatus:l,headers:(e,t,r)=>a(Ce(e),Ce(t),0,!0)};return S.forEach(Object.keys(Object.assign({},n,o)),function(e){var t=u[e]||a,r=t(n[e],o[e],e);S.isUndefined(r)&&t!==l||(i[e]=r)}),i}var Ue=e=>{var t,r=N({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:l}=r;return r.headers=a=T.from(a),r.url=me(ke(r.baseURL,r.url,r.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),S.isFormData(n)&&(w.hasStandardBrowserEnv||w.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):!1!==(e=a.getContentType())&&([e,...t]=e?e.split(";").map(e=>e.trim()).filter(Boolean):[],a.setContentType([e||"multipart/form-data",...t].join("; ")))),w.hasStandardBrowserEnv&&((o=o&&S.isFunction(o)?o(r):o)||!1!==o&&Ne(r.url))&&(e=i&&s&&Pe.read(s))&&a.set(i,e),r},W="undefined"!=typeof XMLHttpRequest&&function(p){return new Promise(function(t,r){let n=Ue(p);var e=n.data,o=T.from(n.headers).normalize();let{responseType:i,onUploadProgress:s,onDownloadProgress:a}=n,l,u,c;function f(){u&&u(),c&&c(),n.cancelToken&&n.cancelToken.unsubscribe(l),n.signal&&n.signal.removeEventListener("abort",l)}let d=new XMLHttpRequest;function h(){var e;d&&(e=T.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),Te(function(e){t(e),f()},function(e){r(e),f()},{data:i&&"text"!==i&&"json"!==i?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:e,config:p,request:d}),d=null)}d.open(n.method.toUpperCase(),n.url,!0),d.timeout=n.timeout,"onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))&&setTimeout(h)},d.onabort=function(){d&&(r(new _("Request aborted",_.ECONNABORTED,p,d)),d=null)},d.onerror=function(){r(new _("Network Error",_.ERR_NETWORK,p,d)),d=null},d.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";var t=n.transitional||ye;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new _(e,t.clarifyTimeoutError?_.ETIMEDOUT:_.ECONNABORTED,p,d)),d=null},void 0===e&&o.setContentType(null),"setRequestHeader"in d&&S.forEach(o.toJSON(),function(e,t){d.setRequestHeader(t,e)}),S.isUndefined(n.withCredentials)||(d.withCredentials=!!n.withCredentials),i&&"json"!==i&&(d.responseType=n.responseType),a&&([o,c]=x(a,!0),d.addEventListener("progress",o)),s&&d.upload&&([o,u]=x(s),d.upload.addEventListener("progress",o),d.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(l=e=>{d&&(r(!e||e.type?new j(null,p,d):e),d.abort(),d=null)},n.cancelToken&&n.cancelToken.subscribe(l),n.signal)&&(n.signal.aborted?l():n.signal.addEventListener("abort",l));o=n.url;o=(o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o))&&o[1]||"";o&&-1===w.protocols.indexOf(o)?r(new _("Unsupported protocol "+o+":",_.ERR_BAD_REQUEST,p)):d.send(e||null)})},Le=(i,s)=>{var a=(i=i?i.filter(Boolean):[]).length;if(s||a){let t=new AbortController,r,n=function(e){r||(r=!0,o(),e=e instanceof Error?e:this.reason,t.abort(e instanceof _?e:new j(e instanceof Error?e.message:e)))},e=s&&setTimeout(()=>{e=null,n(new _(`timeout ${s} of ms exceeded`,_.ETIMEDOUT))},s),o=()=>{i&&(e&&clearTimeout(e),e=null,i.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),i=null)};i.forEach(e=>e.addEventListener("abort",n));a=t.signal;return a.unsubscribe=()=>S.asap(o),a}};let De=function*(t,r){var n,o=t.byteLength;if(!r||o<r)yield t;else{let e=0;for(;e<o;)n=e+r,yield t.slice(e,n),e=n}},Fe=async function*(e){if(e[Symbol.asyncIterator])yield*e;else{var t=e.getReader();try{for(;;){var{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}}},Be=(e,t,i,r)=>{let s=async function*(e,t){for await(var r of Fe(e))yield*De(r,t)}(e,t),a=0,n,l=e=>{n||(n=!0,r&&r(e))};return new ReadableStream({async pull(e){try{var t,r,{done:n,value:o}=await s.next();n?(l(),e.close()):(t=o.byteLength,i&&(r=a+=t,i(r)),e.enqueue(new Uint8Array(o)))}catch(e){throw l(e),e}},cancel(e){return l(e),s.return()}},{highWaterMark:2})};var Ie,b="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,G=b&&"function"==typeof ReadableStream;let Me=b&&("function"==typeof TextEncoder?(Ie=new TextEncoder,e=>Ie.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var qe,e=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}};let Je=G&&e(()=>{let e=!1;var t=new Request(w.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ze=G&&e(()=>S.isReadableStream(new Response("").body)),P={stream:ze&&(e=>e.body)},Ve=(b&&(qe=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(r=>{P[r]||(P[r]=S.isFunction(qe[r])?e=>e[r]():(e,t)=>{throw new _(`Response type '${r}' is not supported`,_.ERR_NOT_SUPPORT,t)})})),async(e,t)=>{e=S.toFiniteNumber(e.getContentLength());return null==e?(async e=>null==e?0:S.isBlob(e)?e.size:S.isSpecCompliantForm(e)?(await new Request(w.origin,{method:"POST",body:e}).arrayBuffer()).byteLength:S.isArrayBufferView(e)||S.isArrayBuffer(e)?e.byteLength:(S.isURLSearchParams(e)&&(e+=""),S.isString(e)?(await Me(e)).byteLength:void 0))(t):e}),He=b&&(async o=>{let{url:t,method:e,data:i,signal:r,cancelToken:n,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=Ue(o),h=(u=u?(u+"").toLowerCase():"text",Le([r,n&&n.toAbortSignal()],s)),p,m=h&&h.unsubscribe&&(()=>{h.unsubscribe()}),b;try{if(l&&Je&&"get"!==e&&"head"!==e&&0!==(b=await Ve(c,i))){var y,g,v=new Request(t,{method:"POST",body:i,duplex:"half"});let e;S.isFormData(i)&&(e=v.headers.get("content-type"))&&c.setContentType(e),v.body&&([y,g]=je(b,x(xe(l))),i=Be(v.body,65536,y,g))}S.isString(f)||(f=f?"include":"omit");var w="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:e.toUpperCase(),headers:c.normalize().toJSON(),body:i,duplex:"half",credentials:w?f:void 0});let n=await fetch(p);var O=ze&&("stream"===u||"response"===u);if(ze&&(a||O&&m)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=n[e]});var E=S.toFiniteNumber(n.headers.get("content-length"));let[e,r]=a&&je(E,x(xe(a),!0))||[];n=new Response(Be(n.body,65536,e,()=>{r&&r(),m&&m()}),t)}u=u||"text";let r=await P[S.findKey(P,u)||"text"](n,o);return!O&&m&&m(),await new Promise((e,t)=>{Te(e,t,{data:r,headers:T.from(n.headers),status:n.status,statusText:n.statusText,config:o,request:p})})}catch(e){if(m&&m(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new _("Network Error",_.ERR_NETWORK,o,p),{cause:e.cause||e});throw _.from(e,e&&e.code,o,p)}}),We={http:null,xhr:W,fetch:He},Ke=(S.forEach(We,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}),e=>"- "+e);var Ge=r=>{var n,e=(r=S.isArray(r)?r:[r]).length;let o;var i,t,s={};for(let t=0;t<e;t++){n=r[t];let e;if(o=n,i=n,!S.isFunction(i)&&null!==i&&!1!==i&&void 0===(o=We[(e=String(n)).toLowerCase()]))throw new _(`Unknown adapter '${e}'`);if(o)break;s[e||"#"+t]=o}if(o)return o;throw t=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),new _("There is no suitable adapter to dispatch the request "+(e?1<t.length?"since :\n"+t.map(Ke).join("\n"):" "+Ke(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")};We;function $e(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new j(null,e)}function Xe(t){return $e(t),t.headers=T.from(t.headers),t.data=_e.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ge(t.adapter||we.adapter)(t).then(function(e){return $e(t),e.data=_e.call(t,t.transformResponse,e),e.headers=T.from(e.headers),e},function(e){return Re(e)||($e(t),e&&e.response&&(e.response.data=_e.call(t,t.transformResponse,e.response),e.response.headers=T.from(e.response.headers))),Promise.reject(e)})}let k={},Qe=(["object","boolean","number","function","string","symbol"].forEach((t,r)=>{k[t]=function(e){return typeof e===t||"a"+(r<1?"n ":" ")+t}}),{});k.transitional=function(n,o,r){function i(e,t){return"[Axios v1.9.0] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(e,t,r)=>{if(!1===n)throw new _(i(t," has been removed"+(o?" in "+o:"")),_.ERR_DEPRECATED);return o&&!Qe[t]&&(Qe[t]=!0,console.warn(i(t," has been deprecated since v"+o+" and will be removed in the near future"))),!n||n(e,t,r)}},k.spelling=function(r){return(e,t)=>(console.warn(t+" is likely a misspelling of "+r),!0)};var C={assertOptions:function(e,t,r){if("object"!=typeof e)throw new _("options must be an object",_.ERR_BAD_OPTION_VALUE);var n=Object.keys(e);let o=n.length;for(;0<o--;){var i=n[o],s=t[i];if(s){var a=e[i],s=void 0===a||s(a,i,e);if(!0!==s)throw new _("option "+i+" must be "+s,_.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new _("Unknown option "+i,_.ERR_BAD_OPTION)}},validators:k};let U=C.validators;class L{constructor(e){this.defaults=e||{},this.interceptors={request:new be,response:new be}}async request(r,e){try{return await this._request(r,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(e){}}throw t}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:n,headers:o}=t=N(this.defaults,t);void 0!==r&&C.assertOptions(r,{silentJSONParsing:U.transitional(U.boolean),forcedJSONParsing:U.transitional(U.boolean),clarifyTimeoutError:U.transitional(U.boolean)},!1),null!=n&&(S.isFunction(n)?t.paramsSerializer={serialize:n}:C.assertOptions(n,{encode:U.function,serialize:U.function},!0)),void 0===t.allowAbsoluteUrls&&(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),C.assertOptions(t,{baseUrl:U.spelling("baseURL"),withXsrfToken:U.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();e=o&&S.merge(o.common,o[t.method]);o&&S.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=T.concat(e,o);let i=[],s=!0,a=(this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}),[]);this.interceptors.response.forEach(function(e){a.push(e.fulfilled,e.rejected)});let l,u=0,c;if(s){c=i.length;let e=t;for(u=0;u<c;){var f=i[u++],d=i[u++];try{e=f(e)}catch(e){d.call(this,e);break}}try{l=Xe.call(this,e)}catch(e){return Promise.reject(e)}for(u=0,c=a.length;u<c;)l=l.then(a[u++],a[u++])}else{var h=[Xe.bind(this),void 0];for(h.unshift.apply(h,i),h.push.apply(h,a),c=h.length,l=Promise.resolve(t);u<c;)l=l.then(h[u++],h[u++])}return l}getUri(e){return me(ke((e=N(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}S.forEach(["delete","get","head","options"],function(r){L.prototype[r]=function(e,t){return this.request(N(t||{},{method:r,url:e,data:(t||{}).data}))}}),S.forEach(["post","put","patch"],function(o){function e(n){return function(e,t,r){return this.request(N(r||{},{method:o,headers:n?{"Content-Type":"multipart/form-data"}:{},url:e,data:t}))}}L.prototype[o]=e(),L.prototype[o+"Form"]=e(!0)});var Ze=L;K=class et{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let n,o=(this.promise=new Promise(function(e){n=e}),this);this.promise.then(t=>{if(o._listeners){let e=o._listeners.length;for(;0<e--;)o._listeners[e](t);o._listeners=null}}),this.promise.then=e=>{let t;return(e=new Promise(e=>{o.subscribe(e),t=e}).then(e)).cancel=function(){o.unsubscribe(t)},e},e(function(e,t,r){o.reason||(o.reason=new j(e,t,r),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){this._listeners&&-1!==(e=this._listeners.indexOf(e))&&this._listeners.splice(e,1)}toAbortSignal(){let t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new et(function(e){t=e}),cancel:t}}};let Ye={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ye).forEach(([e,t])=>{Ye[t]=e});t=Ye;m=function t(r){var e=new Ze(r),n=B(Ze.prototype.request,e);return S.extend(n,Ze.prototype,e,{allOwnKeys:!0}),S.extend(n,e,null,{allOwnKeys:!0}),n.create=function(e){return t(N(r,e))},n}(we);m.Axios=Ze,m.CanceledError=j,m.CancelToken=K,m.isCancel=Re,m.VERSION="1.9.0",m.toFormData=v,m.AxiosError=_,m.Cancel=m.CanceledError,m.all=function(e){return Promise.all(e)},m.spread=function(t){return function(e){return t.apply(null,e)}},m.isAxiosError=function(e){return S.isObject(e)&&!0===e.isAxiosError},m.mergeConfig=N,m.AxiosHeaders=T,m.formToJSON=e=>ge(S.isHTMLForm(e)?new FormData(e):e),m.getAdapter=Ge,m.HttpStatusCode=t,D.exports=m.default=m}},n={};function o(e){var t=n[e];return void 0!==t||(t=n[e]={exports:{}},r[e].call(t.exports,t,t.exports,o)),t.exports}o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();o("./index.js")})();
|
|
1
|
+
({"./index.js":function(){var ut=this&&this.__assign||function(){return(ut=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ct=this&&this.__awaiter||function(e,a,s,u){return new(s=s||Promise)(function(n,t){function r(e){try{i(u.next(e))}catch(e){t(e)}}function o(e){try{i(u.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}i((u=u.apply(e,a||[])).next())})},lt=this&&this.__generator||function(r,o){var i,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=e(0),c.throw=e(1),c.return=e(2),"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function e(n){return function(e){var t=[n,e];if(i)throw new TypeError("Generator is already executing.");for(;u=c&&t[c=0]?0:u;)try{if(i=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,a=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!(s=0<(s=u.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){u=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))u.label=t[1];else if(6===t[0]&&u.label<s[1])u.label=s[1],s=t;else{if(!(s&&u.label<s[2])){s[2]&&u.ops.pop(),u.trys.pop();continue}u.label=s[2],u.ops.push(t)}}t=o.call(r,u)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},ft=this&&this.__asyncValues||function(a){var e,t;if(Symbol.asyncIterator)return(e=a[Symbol.asyncIterator])?e.call(a):(a="function"==typeof mt?mt(a):a[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);throw new TypeError("Symbol.asyncIterator is not defined.");function n(i){t[i]=a[i]&&function(o){return new Promise(function(e,t){var n,r;o=a[i](o),n=e,e=t,r=o.done,t=o.value,Promise.resolve(t).then(function(e){n({value:e,done:r})},e)})}}},dt=this&&this.__await||function(e){return this instanceof dt?(this.v=e,this):new dt(e)},pt=this&&this.__asyncDelegator||function(r){var o,e={};return t("next"),t("throw",function(e){throw e}),t("return"),e[Symbol.iterator]=function(){return this},e;function t(t,n){e[t]=r[t]?function(e){return(o=!o)?{value:dt(r[t](e)),done:!1}:n?n(e):e}:n}},ht=this&&this.__asyncGenerator||function(e,t,n){var o,i,a;if(Symbol.asyncIterator)return o=n.apply(e,t||[]),i=[],a=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),r("next"),r("throw"),r("return",function(t){return function(e){return Promise.resolve(e).then(t,c)}}),a[Symbol.asyncIterator]=function(){return this},a;throw new TypeError("Symbol.asyncIterator is not defined.");function r(r,e){o[r]&&(a[r]=function(n){return new Promise(function(e,t){1<i.push([r,n,e,t])||s(r,n)})},e)&&(a[r]=e(a[r]))}function s(e,t){try{(n=o[e](t)).value instanceof dt?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}},yt=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},mt=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},bt=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},vt=this,n={"../node_modules/axios/dist/browser/axios.cjs":function(k,N,e){function U(e,t){return function(){return e.apply(t,arguments)}}function t(t){return t=t.toLowerCase(),function(e){return r(e)===t}}function n(t){return function(e){return typeof e===t}}var C,L=Object.prototype.toString,F=Object.getPrototypeOf,o=Symbol.iterator,J=Symbol.toStringTag,r=(C=Object.create(null),function(e){e=L.call(e);return C[e]||(C[e]=e.slice(8,-1).toLowerCase())}),u=Array.isArray,c=n("undefined");function l(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&s(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var z=t("ArrayBuffer");function i(e){return null!==e&&"object"==typeof e}function f(e){var t;return"object"===r(e)&&!(null!==(t=F(e))&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||J in e||o in e)}var a=n("string"),s=n("function"),H=n("number"),V=t("Date"),W=t("File"),d=t("Blob"),K=t("FileList"),G=t("URLSearchParams"),p=yt(["ReadableStream","Request","Response","Headers"].map(t),4),X=p[0],h=p[1],y=p[2],p=p[3];function m(e,t,n){var r,n=(void 0===n?{}:n).allOwnKeys,n=void 0!==n&&n;if(null!=e)if(u(e="object"!=typeof e?[e]:e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else if(!l(e))for(var o,i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,s=0;s<a;s++)o=i[s],t.call(null,e[o],o,e)}function $(e,t){if(!l(e)){t=t.toLowerCase();for(var n,r=Object.keys(e),o=r.length;0<o--;)if(t===(n=r[o]).toLowerCase())return n}return null}function Q(e){return!c(e)&&e!==b}var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e.g;function Z(e){return te&&e instanceof te}te="undefined"!=typeof Uint8Array&&F(Uint8Array);function Y(e,t){return ne.call(e,t)}function ee(r,o){var e=Object.getOwnPropertyDescriptors(r),i={};m(e,function(e,t){var n;!1!==(n=o(e,t,r))&&(i[t]=n||e)}),Object.defineProperties(r,i)}var te,ne,e=t("HTMLFormElement"),re=(ne=Object.prototype.hasOwnProperty,t("RegExp"));var oe,v,ie=t("AsyncFunction"),g=(g="function"==typeof setImmediate,ae=s(b.postMessage),g?setImmediate:ae?(oe="axios@".concat(Math.random()),v=[],b.addEventListener("message",function(e){e.source===b&&e.data===oe&&v.length&&v.shift()()},!1),function(e){v.push(e),b.postMessage(oe,"*")}):function(e){return setTimeout(e)}),ae="undefined"!=typeof queueMicrotask?queueMicrotask.bind(b):"undefined"!=typeof process&&process.nextTick||g,D={isArray:u,isArrayBuffer:z,isBuffer:l,isFormData:function(e){var t;return e&&("function"==typeof FormData&&e instanceof FormData||s(e.append)&&("formdata"===(t=r(e))||"object"===t&&s(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&z(e.buffer)},isString:a,isNumber:H,isBoolean:function(e){return!0===e||!1===e},isObject:i,isPlainObject:f,isEmptyObject:function(e){if(!i(e)||l(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:X,isRequest:h,isResponse:y,isHeaders:p,isUndefined:c,isDate:V,isFile:W,isBlob:d,isRegExp:re,isFunction:s,isStream:function(e){return i(e)&&s(e.pipe)},isURLSearchParams:G,isTypedArray:Z,isFileList:K,forEach:m,merge:function n(){for(var e=Q(this)&&this||{},r=e.caseless,o=e.skipUndefined,i={},t=function(e,t){t=r&&$(i,t)||t,f(i[t])&&f(e)?i[t]=n(i[t],e):f(e)?i[t]=n({},e):u(e)?i[t]=e.slice():o&&c(e)||(i[t]=e)},a=0,s=arguments.length;a<s;a++)arguments[a]&&m(arguments[a],t);return i},extend:function(n,e,r,t){return m(e,function(e,t){r&&s(e)?n[t]=U(e,r):n[t]=e},{allOwnKeys:(void 0===t?{}:t).allOwnKeys}),n},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return e=65279===e.charCodeAt(0)?e.slice(1):e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var o,i,a,s={};if(t=t||{},null!=e)do{for(i=(o=Object.getOwnPropertyNames(e)).length;0<i--;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0)}while((e=!1!==n&&F(e))&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:r,kindOfTest:t,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;e=e.indexOf(t,n);return-1!==e&&e===n},toArray:function(e){if(!e)return null;if(u(e))return e;var t=e.length;if(!H(t))return null;for(var n=new Array(t);0<t--;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n=(e&&e[o]).call(e);(r=n.next())&&!r.done;){var r=r.value;t.call(e,r[0],r[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:e,hasOwnProperty:Y,hasOwnProp:Y,reduceDescriptors:ee,freezeMethods:function(r){ee(r,function(e,t){if(s(r)&&-1!==["arguments","caller","callee"].indexOf(t))return!1;var n=r[t];s(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=function(){throw Error("Can not rewrite read-only method '"+t+"'")}))})},toObjectSet:function(e,t){function n(e){e.forEach(function(e){r[e]=!0})}var r={};return u(e)?n(e):n(String(e).split(t)),r},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n})},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:$,global:b,isContextDefined:Q,isSpecCompliantForm:function(e){return!!(e&&s(e.append)&&"FormData"===e[J]&&e[o])},toJSONObject:function(e){function o(e,n){if(i(e)){if(0<=t.indexOf(e))return;if(l(e))return e;var r;if(!("toJSON"in e))return t[n]=e,r=u(e)?[]:{},m(e,function(e,t){e=o(e,n+1);c(e)||(r[t]=e)}),t[n]=void 0,r}return e}var t=new Array(10);return o(e,0)},isAsyncFn:ie,isThenable:function(e){return e&&(i(e)||s(e))&&s(e.then)&&s(e.catch)},setImmediate:g,asap:ae,isIterable:function(e){return null!=e&&s(e[o])}};function B(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status||null)}D.inherits(B,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:D.toJSONObject(this.config),code:this.code,status:this.status}}});var se=B.prototype,ue={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(e){ue[e]={value:e}}),Object.defineProperties(B,ue),Object.defineProperty(se,"isAxiosError",{value:!0}),B.from=function(e,t,n,r,o,i){var a=Object.create(se),s=(D.toFlatObject(e,a,function(e){return e!==Error.prototype},function(e){return"isAxiosError"!==e}),e&&e.message?e.message:"Error"),t=null==t&&e?e.code:t;return B.call(a,s,t,n,r,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};function ce(e){return D.isPlainObject(e)||D.isArray(e)}function le(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function fe(e,t,n){return e?e.concat(t).map(function(e,t){return e=le(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}var de=D.toFlatObject(D,{},null,function(e){return/^is[A-Z]/.test(e)});function w(e,i,t){if(!D.isObject(e))throw new TypeError("target must be an object");i=i||new FormData;var a=(t=D.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!D.isUndefined(t[e])})).metaTokens,o=t.visitor||r,s=t.dots,u=t.indexes,n=(t.Blob||"undefined"!=typeof Blob&&Blob)&&D.isSpecCompliantForm(i);if(!D.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(D.isDate(e))return e.toISOString();if(D.isBoolean(e))return e.toString();if(!n&&D.isBlob(e))throw new B("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(e)||D.isTypedArray(e)?n&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function r(e,n,t){var r,o=e;if(e&&!t&&"object"==typeof e)if(D.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if(D.isArray(e)&&(r=e,D.isArray(r))&&!r.some(ce)||(D.isFileList(e)||D.endsWith(n,"[]"))&&(o=D.toArray(e)))return n=le(n),o.forEach(function(e,t){D.isUndefined(e)||null===e||i.append(!0===u?fe([n],t,s):null===u?n:n+"[]",c(e))}),!1;return!!ce(e)||(i.append(fe(t,n,s),c(e)),!1)}var l=[],f=Object.assign(de,{defaultVisitor:r,convertValue:c,isVisitable:ce});if(D.isObject(e))return function n(e,r){if(!D.isUndefined(e)){if(-1!==l.indexOf(e))throw Error("Circular reference detected in "+r.join("."));l.push(e),D.forEach(e,function(e,t){!0===(!(D.isUndefined(e)||null===e)&&o.call(i,e,D.isString(t)?t.trim():t,r,f))&&n(e,r?r.concat(t):[t])}),l.pop()}}(e),i;throw new TypeError("data must be an object")}function pe(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function he(e,t){this._pairs=[],e&&w(e,this,t)}a=he.prototype;function ye(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function me(e,t,n){var r,o;return t&&(r=n&&n.encode||ye,o=(o=(n=D.isFunction(n)?{serialize:n}:n)&&n.serialize)?o(t,n):D.isURLSearchParams(t)?t.toString():new he(t,n).toString(r))&&(-1!==(t=e.indexOf("#"))&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o),e}function O(){this.handlers=[]}a.append=function(e,t){this._pairs.push([e,t])},a.toString=function(t){var n=t?function(e){return t.call(this,e,pe)}:pe;return this._pairs.map(function(e){return n(e[0])+"="+n(e[1])},"").join("&")},O.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},O.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},O.prototype.clear=function(){this.handlers&&(this.handlers=[])},O.prototype.forEach=function(t){D.forEach(this.handlers,function(e){null!==e&&t(e)})};var be=O,ve={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},X={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:he,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},h="undefined"!=typeof window&&"undefined"!=typeof document,y="object"==typeof navigator&&navigator||void 0,p=h&&(!y||["ReactNative","NativeScript","NS"].indexOf(y.product)<0),V="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,W=h&&window.location.href||"http://localhost",_=ut(ut({},Object.freeze({__proto__:null,hasBrowserEnv:h,hasStandardBrowserWebWorkerEnv:V,hasStandardBrowserEnv:p,navigator:y,origin:W})),X);function ge(e){function s(e,t,n,r){var o,i,a;return"__proto__"===(a=e[r++])||(o=Number.isFinite(+a),i=r>=e.length,a=!a&&D.isArray(n)?n.length:a,i?D.hasOwnProp(n,a)?n[a]=[n[a],t]:n[a]=t:(n[a]&&D.isObject(n[a])||(n[a]=[]),s(e,t,n[a],r)&&D.isArray(n[a])&&(n[a]=(e=>{for(var t,n={},r=Object.keys(e),o=r.length,i=0;i<o;i++)n[t=r[i]]=e[t];return n})(n[a]))),!o)}var n;return D.isFormData(e)&&D.isFunction(e.entries)?(n={},D.forEachEntry(e,function(e,t){s(D.matchAll(/\w+|\[(\w*)]/g,e).map(function(e){return"[]"===e[0]?"":e[1]||e[0]}),t,n,0)}),n):null}var we={transitional:ve,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,r,o=t.getContentType()||"",i=-1<o.indexOf("application/json"),a=D.isObject(e);if(a&&D.isHTMLForm(e)&&(e=new FormData(e)),D.isFormData(e))return i?JSON.stringify(ge(e)):e;if(!(D.isArrayBuffer(e)||D.isBuffer(e)||D.isStream(e)||D.isFile(e)||D.isBlob(e)||D.isReadableStream(e))){if(D.isArrayBufferView(e))return e.buffer;if(D.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){if(-1<o.indexOf("application/x-www-form-urlencoded"))return n=e,r=this.formSerializer,w(n,new _.classes.URLSearchParams,ut({visitor:function(e,t,n,r){return _.isNode&&D.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},r)).toString();if((n=D.isFileList(e))||-1<o.indexOf("multipart/form-data"))return w(n?{"files[]":e}:e,(r=this.env&&this.env.FormData)&&new r,this.formSerializer)}if(a||i){t.setContentType("application/json",!1);o=e,a=void 0,i=void 0;if(D.isString(o))try{return(a||JSON.parse)(o),D.trim(o)}catch(e){if("SyntaxError"!==e.name)throw e}return(i||JSON.stringify)(o)}}return e}],transformResponse:[function(e){var t=this.transitional||we.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(!D.isResponse(e)&&!D.isReadableStream(e)&&e&&D.isString(e)&&(n&&!this.responseType||r)){n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw B.from(e,B.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_.classes.FormData,Blob:_.classes.Blob},validateStatus:function(e){return 200<=e&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}},Oe=(D.forEach(["delete","get","head","post","put","patch"],function(e){we.headers[e]={}}),we),_e=D.toObjectSet(["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"]),Se=Symbol("internals");function S(e){return e&&String(e).trim().toLowerCase()}function E(e){return!1===e||null==e?e:D.isArray(e)?e.map(E):String(e)}function Ee(e,t,n,r,o){return D.isFunction(r)?r.call(this,t,n):D.isString(t=o?n:t)&&(D.isString(r)?-1!==t.indexOf(r):D.isRegExp(r)&&r.test(t))}R.prototype.set=function(e,t,n){var r,o,i=this;function a(e,t,n){var r=S(t);if(!r)throw new Error("header name must be a non-empty string");r=D.findKey(i,r);r&&void 0!==i[r]&&!0!==n&&(void 0!==n||!1===i[r])||(i[r||t]=E(e))}function s(e,n){D.forEach(e,function(e,t){return a(e,t,n)})}var u,c,l,f;if(D.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(D.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((f={},(u=e)&&u.split("\n").forEach(function(e){l=e.indexOf(":"),c=e.substring(0,l).trim().toLowerCase(),l=e.substring(l+1).trim(),!c||f[c]&&_e[c]||("set-cookie"===c?f[c]?f[c].push(l):f[c]=[l]:f[c]=f[c]?f[c]+", "+l:l)}),f),t);else if(D.isObject(e)&&D.isIterable(e)){var d,p,h={};try{for(var y=mt(e),m=y.next();!m.done;m=y.next()){var b=m.value;if(!D.isArray(b))throw TypeError("Object iterator must return a key-value pair");h[p=b[0]]=(d=h[p])?D.isArray(d)?bt(bt([],yt(d),!1),[b[1]],!1):[d,b[1]]:b[1]}}catch(e){r={error:e}}finally{try{m&&!m.done&&(o=y.return)&&o.call(y)}finally{if(r)throw r.error}}s(h,t)}else null!=e&&a(t,e,n);return this},R.prototype.get=function(e,t){if(e=S(e)){e=D.findKey(this,e);if(e){var n=this[e];if(!t)return n;if(!0===t){for(var r,o=n,i=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;r=a.exec(o);)i[r[1]]=r[2];return i}if(D.isFunction(t))return t.call(this,n,e);if(D.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}},R.prototype.has=function(e,t){return!!(e=S(e))&&!(!(e=D.findKey(this,e))||void 0===this[e]||t&&!Ee(0,this[e],e,t))},R.prototype.delete=function(e,t){var n=this,r=!1;function o(e){(e=S(e))&&(e=D.findKey(n,e))&&(!t||Ee(0,n[e],e,t))&&(delete n[e],r=!0)}return D.isArray(e)?e.forEach(o):o(e),r},R.prototype.clear=function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var o=t[n];e&&!Ee(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r},R.prototype.normalize=function(r){var o=this,i={};return D.forEach(this,function(e,t){var n=D.findKey(i,t);n?(o[n]=E(e),delete o[t]):((n=r?t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}):String(t).trim())!==t&&delete o[t],o[n]=E(e),i[n]=!0)}),this},R.prototype.concat=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this.constructor).concat.apply(e,bt([this],yt(t),!1))},R.prototype.toJSON=function(n){var r=Object.create(null);return D.forEach(this,function(e,t){null!=e&&!1!==e&&(r[t]=n&&D.isArray(e)?e.join(", "):e)}),r},R.prototype[Symbol.iterator]=function(){return Object.entries(this.toJSON())[Symbol.iterator]()},R.prototype.toString=function(){return Object.entries(this.toJSON()).map(function(e){e=yt(e,2);return e[0]+": "+e[1]}).join("\n")},R.prototype.getSetCookie=function(){return this.get("set-cookie")||[]},Object.defineProperty(R.prototype,Symbol.toStringTag,{get:function(){return"AxiosHeaders"},enumerable:!1,configurable:!0}),R.from=function(e){return e instanceof this?e:new this(e)},R.concat=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=new this(e);return t.forEach(function(e){return r.set(e)}),r},R.accessor=function(e){var i=(this[Se]=this[Se]={accessors:{}}).accessors,a=this.prototype;function t(e){var t,o,n,r=S(e);i[r]||(t=a,o=e,n=D.toCamelCase(" "+o),["get","set","has"].forEach(function(r){Object.defineProperty(t,r+n,{value:function(e,t,n){return this[r].call(this,o,e,t,n)},configurable:!0})}),i[r]=!0)}return D.isArray(e)?e.forEach(t):t(e),this};d=R;function R(e){e&&this.set(e)}d.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),D.reduceDescriptors(d.prototype,function(e,t){var n=e.value,r=t[0].toUpperCase()+t.slice(1);return{get:function(){return n},set:function(e){this[r]=e}}}),D.freezeMethods(d);var I=d;function Re(e,t){var n=this||Oe,r=t||n,o=I.from(r.headers),i=r.data;return D.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function xe(e){return!(!e||!e.__CANCEL__)}function x(e,t,n){B.call(this,null==e?"canceled":e,B.ERR_CANCELED,t,n),this.name="CanceledError"}function je(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new B("Request failed with status code "+n.status,[B.ERR_BAD_REQUEST,B.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function Te(n,e){function o(e,t){void 0===t&&(t=Date.now()),s=t,i=null,a&&(clearTimeout(a),a=null),n.apply(void 0,bt([],yt(e),!1))}var i,a,s=0,u=1e3/e;return[function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Date.now(),r=n-s;u<=r?o(e,n):(i=e,a=a||setTimeout(function(){a=null,o(i)},u-r))},function(){return i&&o(i)}]}D.inherits(x,B,{__CANCEL__:!0});var j,Ae,M=function(i,a,e){void 0===e&&(e=3);var s,u,c,l,f,d,p,h=0,y=(u=250,s=(s=50)||10,l=new Array(s),f=new Array(s),u=void(p=d=0)!==u?u:1e3,function(e){for(var t=Date.now(),n=f[p],r=(c=c||t,l[d]=e,f[d]=t,p),o=0;r!==d;)o+=l[r++],r%=s;return(d=(d+1)%s)===p&&(p=(p+1)%s),!(t-c<u)&&(e=n&&t-n)?Math.round(1e3*o/e):void 0});return Te(function(e){var t=e.loaded,n=e.lengthComputable?e.total:void 0,r=t-h,o=y(r);(r={loaded:h=t,total:n,progress:n?t/n:void 0,bytes:r,rate:o||void 0,estimated:o&&n&&t<=n?(n-t)/o:void 0,event:e,lengthComputable:null!=n})[a?"download":"upload"]=!0,i(r)},e)},Pe=function(t,n){var r=null!=t;return[function(e){return n[0]({lengthComputable:r,total:t,loaded:e})},n[1]]},ke=function(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return D.asap(function(){return n.apply(void 0,bt([],yt(e),!1))})}},Ne=_.hasStandardBrowserEnv?(j=new URL(_.origin),Ae=_.navigator&&/(msie|trident)/i.test(_.navigator.userAgent),function(e){return e=new URL(e,_.origin),j.protocol===e.protocol&&j.host===e.host&&(Ae||j.port===e.port)}):function(){return!0},Ue=_.hasStandardBrowserEnv?{write:function(e,t,n,r,o,i,a){"undefined"!=typeof document&&(e=["".concat(e,"=").concat(encodeURIComponent(t))],D.isNumber(n)&&e.push("expires=".concat(new Date(n).toUTCString())),D.isString(r)&&e.push("path=".concat(r)),D.isString(o)&&e.push("domain=".concat(o)),!0===i&&e.push("secure"),D.isString(a)&&e.push("SameSite=".concat(a)),document.cookie=e.join("; "))},read:function(e){return"undefined"!=typeof document&&(e=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)")))?decodeURIComponent(e[1]):null},remove:function(e){this.write(e,"",Date.now()-864e5,"/")}}:{write:function(){},read:function(){return null},remove:function(){}};function Ce(e,t,n){var r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?(r=e,(n=t)?r.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):r):t}var Le=function(e){return e instanceof I?ut({},e):e};function T(r,o){o=o||{};var i={};function a(e,t,n,r){return D.isPlainObject(e)&&D.isPlainObject(t)?D.merge.call({caseless:r},e,t):D.isPlainObject(t)?D.merge({},t):D.isArray(t)?t.slice():t}function s(e,t,n,r){return D.isUndefined(t)?D.isUndefined(e)?void 0:a(void 0,e,0,r):a(e,t,0,r)}function e(e,t){if(!D.isUndefined(t))return a(void 0,t)}function t(e,t){return D.isUndefined(t)?D.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function u(e,t,n){return n in o?a(e,t):n in r?a(void 0,e):void 0}var c={url:e,method:e,data:e,baseURL:t,transformRequest:t,transformResponse:t,paramsSerializer:t,timeout:t,timeoutMessage:t,withCredentials:t,withXSRFToken:t,adapter:t,responseType:t,xsrfCookieName:t,xsrfHeaderName:t,onUploadProgress:t,onDownloadProgress:t,decompress:t,maxContentLength:t,maxBodyLength:t,beforeRedirect:t,transport:t,httpAgent:t,httpsAgent:t,cancelToken:t,socketPath:t,responseEncoding:t,validateStatus:u,headers:function(e,t,n){return s(Le(e),Le(t),0,!0)}};return D.forEach(Object.keys(ut(ut({},r),o)),function(e){var t=c[e]||s,n=t(r[e],o[e],e);D.isUndefined(n)&&t!==u||(i[e]=n)}),i}function Fe(e){var t,i,n,A,P,k,N,U=(e=D.merge.call({skipUndefined:!0},We,e)).fetch,C=e.Request,L=e.Response,e=U?q(U):"function"==typeof fetch,F=q(C),r=q(L);return!!e&&(t=e&&q(Ke),i=e&&("function"==typeof Ge?(n=new Ge,function(e){return n.encode(e)}):function(n){return ct(vt,void 0,void 0,function(){var t;return lt(this,function(e){switch(e.label){case 0:return t=Uint8Array.bind,[4,new C(n).arrayBuffer()];case 1:return[2,new(t.apply(Uint8Array,[void 0,e.sent()]))]}})})}),A=F&&t&&Xe(function(){var e=!1,t=new C(_.origin,{body:new Ke,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),P=r&&t&&Xe(function(){return D.isReadableStream(new L("").body)}),k={stream:P&&function(e){return e.body}},e&&["text","arrayBuffer","blob","formData","stream"].forEach(function(r){k[r]||(k[r]=function(e,t){var n=e&&e[r];if(n)return n.call(e);throw new B("Response type '".concat(r,"' is not supported"),B.ERR_NOT_SUPPORT,t)})}),N=function(r,o){return ct(vt,void 0,void 0,function(){var n;return lt(this,function(e){return[2,null==(n=D.toFiniteNumber(r.getContentLength()))?(t=o,ct(vt,void 0,void 0,function(){return lt(this,function(e){switch(e.label){case 0:return null==t?[2,0]:D.isBlob(t)?[2,t.size]:D.isSpecCompliantForm(t)?[4,new C(_.origin,{method:"POST",body:t}).arrayBuffer()]:[3,2];case 1:return[2,e.sent().byteLength];case 2:return D.isArrayBufferView(t)||D.isArrayBuffer(t)?[2,t.byteLength]:(D.isURLSearchParams(t)&&(t+=""),D.isString(t)?[4,i(t)]:[3,4]);case 3:return[2,e.sent().byteLength];case 4:return[2]}})})):n];var t})})},function(T){return ct(vt,void 0,void 0,function(){var t,n,r,o,i,a,s,u,c,l,f,d,p,h,y,m,b,v,g,w,O,_,S,E,R,x,j;return lt(this,function(e){switch(e.label){case 0:c=Ie(T),t=c.url,n=c.method,r=c.data,m=c.signal,b=c.cancelToken,v=c.timeout,o=c.onDownloadProgress,i=c.onUploadProgress,a=c.responseType,s=c.headers,u=void 0===(u=c.withCredentials)?"same-origin":u,c=c.fetchOptions,l=U||fetch,a=a?(a+"").toLowerCase():"text",f=Me([m,b&&b.toAbortSignal()],v),d=null,p=f&&f.unsubscribe&&function(){f.unsubscribe()},e.label=1;case 1:return(e.trys.push([1,7,,8]),y=i&&A&&"get"!==n&&"head"!==n)?[4,N(s,r)]:[3,3];case 2:y=0!==(h=e.sent()),e.label=3;case 3:return y&&(m=new C(t,{method:"POST",body:r,duplex:"half"}),b=void 0,D.isFormData(r)&&(b=m.headers.get("content-type"))&&s.setContentType(b),m.body)&&(v=yt(Pe(h,M(ke(i))),2),E=v[0],g=v[1],r=He(m.body,Ve,E,g)),D.isString(u)||(u=u?"include":"omit"),g=F&&"credentials"in C.prototype,S=ut(ut({},c),{signal:f,method:n.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:g?u:void 0}),d=F&&new C(t,S),[4,F?l(d,c):l(t,S)];case 4:return w=e.sent(),O=P&&("stream"===a||"response"===a),P&&(o||O&&p)&&(_={},["status","statusText","headers"].forEach(function(e){_[e]=w[e]}),S=D.toFiniteNumber(w.headers.get("content-length")),j=yt(o&&Pe(S,M(ke(o),!0))||[],2),E=j[0],R=j[1],w=new L(He(w.body,Ve,E,function(){R&&R(),p&&p()}),_)),a=a||"text",[4,k[D.findKey(k,a)||"text"](w,T)];case 5:return x=e.sent(),!O&&p&&p(),[4,new Promise(function(e,t){je(e,t,{data:x,headers:I.from(w.headers),status:w.status,statusText:w.statusText,config:T,request:d})})];case 6:return[2,e.sent()];case 7:if(j=e.sent(),p&&p(),j&&"TypeError"===j.name&&/Load failed|fetch/i.test(j.message))throw Object.assign(new B("Network Error",B.ERR_NETWORK,T,d),{cause:j.cause||j});throw B.from(j,j&&j.code,T,d);case 8:return[2]}})})})}function De(e){for(var t,n,r=e&&e.env||{},e=r.fetch,o=[r.Request,r.Response,e],i=o.length,a=$e;i--;)void 0===(n=a.get(t=o[i]))&&a.set(t,n=i?new Map:Fe(r)),a=n;return n}function Be(e){return"- ".concat(e)}var Ie=function(e){var n,t=T({},e),r=t.data,o=t.withXSRFToken,i=t.xsrfHeaderName,a=t.xsrfCookieName,s=t.headers,u=t.auth;return t.headers=s=I.from(s),t.url=me(Ce(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),D.isFormData(r)&&(_.hasStandardBrowserEnv||_.hasStandardBrowserWebWorkerEnv?s.setContentType(void 0):D.isFunction(r.getHeaders)&&(e=r.getHeaders(),n=["content-type","content-length"],Object.entries(e).forEach(function(e){var e=yt(e,2),t=e[0],e=e[1];n.includes(t.toLowerCase())&&s.set(t,e)}))),_.hasStandardBrowserEnv&&((o=o&&D.isFunction(o)?o(t):o)||!1!==o&&Ne(t.url))&&(u=i&&a&&Ue.read(a))&&s.set(i,u),t},re="undefined"!=typeof XMLHttpRequest&&function(h){return new Promise(function(t,n){var e,r,o,i=Ie(h),a=i.data,s=I.from(i.headers).normalize(),u=i.responseType,c=i.onUploadProgress,l=i.onDownloadProgress;function f(){r&&r(),o&&o(),i.cancelToken&&i.cancelToken.unsubscribe(e),i.signal&&i.signal.removeEventListener("abort",e)}var d=new XMLHttpRequest;function p(){var e;d&&(e=I.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),je(function(e){t(e),f()},function(e){n(e),f()},{data:u&&"text"!==u&&"json"!==u?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:e,config:h,request:d}),d=null)}d.open(i.method.toUpperCase(),i.url,!0),d.timeout=i.timeout,"onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))&&setTimeout(p)},d.onabort=function(){d&&(n(new B("Request aborted",B.ECONNABORTED,h,d)),d=null)},d.onerror=function(e){var t=new B(e&&e.message?e.message:"Network Error",B.ERR_NETWORK,h,d);t.event=e||null,n(t),d=null},d.ontimeout=function(){var e=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",t=i.transitional||ve;i.timeoutErrorMessage&&(e=i.timeoutErrorMessage),n(new B(e,t.clarifyTimeoutError?B.ETIMEDOUT:B.ECONNABORTED,h,d)),d=null},void 0===a&&s.setContentType(null),"setRequestHeader"in d&&D.forEach(s.toJSON(),function(e,t){d.setRequestHeader(t,e)}),D.isUndefined(i.withCredentials)||(d.withCredentials=!!i.withCredentials),u&&"json"!==u&&(d.responseType=i.responseType),l&&(l=(s=yt(M(l,!0),2))[0],o=s[1],d.addEventListener("progress",l)),c&&d.upload&&(l=(s=yt(M(c),2))[0],r=s[1],d.upload.addEventListener("progress",l),d.upload.addEventListener("loadend",r)),(i.cancelToken||i.signal)&&(e=function(e){d&&(n(!e||e.type?new x(null,h,d):e),d.abort(),d=null)},i.cancelToken&&i.cancelToken.subscribe(e),i.signal)&&(i.signal.aborted?e():i.signal.addEventListener("abort",e));c=i.url;s=(c=/^([-+\w]{1,25})(:?\/\/|:)/.exec(c))&&c[1]||"";s&&-1===_.protocols.indexOf(s)?n(new B("Unsupported protocol "+s+":",B.ERR_BAD_REQUEST,h)):d.send(a||null)})},Me=function(e,t){var n,r,o,i,a,s=(e=e?e.filter(Boolean):[]).length;if(t||s)return n=new AbortController,o=function(e){r||(r=!0,a(),e=e instanceof Error?e:this.reason,n.abort(e instanceof B?e:new x(e instanceof Error?e.message:e)))},i=t&&setTimeout(function(){i=null,o(new B("timeout ".concat(t," of ms exceeded"),B.ETIMEDOUT))},t),a=function(){e&&(i&&clearTimeout(i),i=null,e.forEach(function(e){e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)},e.forEach(function(e){return e.addEventListener("abort",o)}),(s=n.signal).unsubscribe=function(){return D.asap(a)},s},qe=function(t,n){var r,o,i;return lt(this,function(e){switch(e.label){case 0:return(r=t.byteLength,!n||r<n)?[4,t]:[3,2];case 1:return e.sent(),[2];case 2:o=0,e.label=3;case 3:return o<r?(i=o+n,[4,t.slice(o,i)]):[3,5];case 4:return e.sent(),o=i,[3,3];case 5:return[2]}})},Je=function(s,u){return ht(this,arguments,function(){var t,n,r,o,i,a;return lt(this,function(e){switch(e.label){case 0:e.trys.push([0,7,8,13]),t=!0,n=ft(ze(s)),e.label=1;case 1:return[4,dt(n.next())];case 2:return(r=e.sent(),o=r.done)?[3,6]:(t=!1,[5,mt(pt(ft(qe(r.value,u))))]);case 3:return[4,dt.apply(void 0,[e.sent()])];case 4:e.sent(),e.label=5;case 5:return t=!0,[3,1];case 6:return[3,13];case 7:return r=e.sent(),i={error:r},[3,13];case 8:return e.trys.push([8,,11,12]),t||o||!(a=n.return)?[3,10]:[4,dt(a.call(n))];case 9:e.sent(),e.label=10;case 10:return[3,12];case 11:if(i)throw i.error;return[7];case 12:return[7];case 13:return[2]}})})},ze=function(o){return ht(this,arguments,function(){var t,n,r;return lt(this,function(e){switch(e.label){case 0:return o[Symbol.asyncIterator]?[5,mt(pt(ft(o)))]:[3,4];case 1:return[4,dt.apply(void 0,[e.sent()])];case 2:return e.sent(),[4,dt(void 0)];case 3:return[2,e.sent()];case 4:t=o.getReader(),e.label=5;case 5:e.trys.push([5,,12,14]),e.label=6;case 6:return[4,dt(t.read())];case 7:return r=e.sent(),n=r.done,r=r.value,n?[3,11]:[4,dt(r)];case 8:return[4,e.sent()];case 9:e.sent(),e.label=10;case 10:return[3,6];case 11:return[3,14];case 12:return[4,dt(t.cancel())];case 13:return e.sent(),[7];case 14:return[2]}})})},He=function(e,t,o,n){function i(e){r||(r=!0,n&&n(e))}var r,a=Je(e,t),s=0;return new ReadableStream({pull:function(r){return ct(this,void 0,void 0,function(){var t,n;return lt(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a.next()];case 1:return(t=e.sent(),n=t.done,t=t.value,n)?(i(),r.close(),[2]):(n=t.byteLength,o&&(n=s+=n,o(n)),r.enqueue(new Uint8Array(t)),[3,3]);case 2:throw n=e.sent(),i(n),n;case 3:return[2]}})})},cancel:function(e){return i(e),a.return()}},{highWaterMark:2})},Ve=65536,q=D.isFunction,We={Request:(G=D.global).Request,Response:G.Response},K=D.global,Ke=K.ReadableStream,Ge=K.TextEncoder,Xe=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];try{return!!e.apply(void 0,bt([],yt(t),!1))}catch(e){return!1}},$e=new Map,Qe=(De(),{http:null,xhr:re,fetch:{get:De}});D.forEach(Qe,function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});var Ze={getAdapter:function(e,t){for(var n,r,o=(e=D.isArray(e)?e:[e]).length,i={},a=0;a<o;a++){var s,u=void 0,c=s=e[a];if(n=s,!D.isFunction(n)&&null!==n&&!1!==n&&void 0===(c=Qe[(u=String(s)).toLowerCase()]))throw new B("Unknown adapter '".concat(u,"'"));if(c&&(D.isFunction(c)||(c=c.get(t))))break;i[u||"#"+a]=c}if(c)return c;throw r=Object.entries(i).map(function(e){var e=yt(e,2),t=e[0],e=e[1];return"adapter ".concat(t," ")+(!1===e?"is not supported by the environment":"is not available in the build")}),new B("There is no suitable adapter to dispatch the request "+(o?1<r.length?"since :\n"+r.map(Be).join("\n"):" "+Be(r[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")},adapters:Qe};function Ye(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new x(null,e)}function et(t){return Ye(t),t.headers=I.from(t.headers),t.data=Re.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ze.getAdapter(t.adapter||Oe.adapter,t)(t).then(function(e){return Ye(t),e.data=Re.call(t,t.transformResponse,e),e.headers=I.from(e.headers),e},function(e){return xe(e)||(Ye(t),e&&e.response&&(e.response.data=Re.call(t,t.transformResponse,e.response),e.response.headers=I.from(e.response.headers))),Promise.reject(e)})}var tt={},nt=(["object","boolean","number","function","string","symbol"].forEach(function(t,n){tt[t]=function(e){return typeof e===t||"a"+(n<1?"n ":" ")+t}}),{});tt.transitional=function(r,o,n){function i(e,t){return"[Axios v1.13.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(e,t,n){if(!1===r)throw new B(i(t," has been removed"+(o?" in "+o:"")),B.ERR_DEPRECATED);return o&&!nt[t]&&(nt[t]=!0,console.warn(i(t," has been deprecated since v"+o+" and will be removed in the near future"))),!r||r(e,t,n)}},tt.spelling=function(n){return function(e,t){return console.warn("".concat(t," is likely a misspelling of ").concat(n)),!0}};var rt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new B("options must be an object",B.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;0<o--;){var i=r[o],a=t[i];if(a){var s=e[i],a=void 0===s||a(s,i,e);if(!0!==a)throw new B("option "+i+" must be "+a,B.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new B("Unknown option "+i,B.ERR_BAD_OPTION)}},validators:tt},A=rt.validators,ot=(it.prototype.request=function(r,o){return ct(this,void 0,void 0,function(){var t,n;return lt(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this._request(r,o)];case 1:return[2,e.sent()];case 2:if((t=e.sent())instanceof Error){n={},Error.captureStackTrace?Error.captureStackTrace(n):n=new Error,n=n.stack?n.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(e){}}throw t;case 3:return[2]}})})},it.prototype._request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n,e=(t=T(this.defaults,t)).transitional,r=t.paramsSerializer,o=t.headers,e=(void 0!==e&&rt.assertOptions(e,{silentJSONParsing:A.transitional(A.boolean),forcedJSONParsing:A.transitional(A.boolean),clarifyTimeoutError:A.transitional(A.boolean)},!1),null!=r&&(D.isFunction(r)?t.paramsSerializer={serialize:r}:rt.assertOptions(r,{encode:A.function,serialize:A.function},!0)),void 0===t.allowAbsoluteUrls&&(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),rt.assertOptions(t,{baseUrl:A.spelling("baseURL"),withXsrfToken:A.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),o&&D.merge(o.common,o[t.method])),i=(o&&D.forEach(["delete","get","head","post","put","patch","common"],function(e){delete o[e]}),t.headers=I.concat(e,o),[]),a=!0,s=(this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}),[]),u=(this.interceptors.response.forEach(function(e){s.push(e.fulfilled,e.rejected)}),0);if(a){for(var c=i.length,l=t;u<c;){var f=i[u++],d=i[u++];try{l=f(l)}catch(e){d.call(this,e);break}}try{n=et.call(this,l)}catch(e){return Promise.reject(e)}for(u=0,c=s.length;u<c;)n=n.then(s[u++],s[u++])}else{var p=[et.bind(this),void 0];for(p.unshift.apply(p,bt([],yt(i),!1)),p.push.apply(p,bt([],yt(s),!1)),c=p.length,n=Promise.resolve(t);u<c;)n=n.then(p[u++],p[u++])}return n},it.prototype.getUri=function(e){return me(Ce((e=T(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)},it);function it(e){this.defaults=e||{},this.interceptors={request:new be,response:new be}}D.forEach(["delete","get","head","options"],function(n){ot.prototype[n]=function(e,t){return this.request(T(t||{},{method:n,url:e,data:(t||{}).data}))}}),D.forEach(["post","put","patch"],function(o){function e(r){return function(e,t,n){return this.request(T(n||{},{method:o,headers:r?{"Content-Type":"multipart/form-data"}:{},url:e,data:t}))}}ot.prototype[o]=e(),ot.prototype[o+"Form"]=e(!0)});var at=ot;function P(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");this.promise=new Promise(function(e){r=e});var r,o=this;this.promise.then(function(e){if(o._listeners){for(var t=o._listeners.length;0<t--;)o._listeners[t](e);o._listeners=null}}),this.promise.then=function(e){var t,e=new Promise(function(e){o.subscribe(e),t=e}).then(e);return e.cancel=function(){o.unsubscribe(t)},e},e(function(e,t,n){o.reason||(o.reason=new x(e,t,n),r(o.reason))})}P.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},P.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},P.prototype.unsubscribe=function(e){this._listeners&&-1!==(e=this._listeners.indexOf(e))&&this._listeners.splice(e,1)},P.prototype.toAbortSignal=function(){function e(e){n.abort(e)}var t=this,n=new AbortController;return this.subscribe(e),n.signal.unsubscribe=function(){return t.unsubscribe(e)},n.signal},P.source=function(){var t;return{token:new P(function(e){t=e}),cancel:t}};e=P;var st={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526},ie=(Object.entries(st).forEach(function(e){var e=yt(e,2),t=e[0];st[e[1]]=t}),st);g=function t(n){var e=new at(n),r=U(at.prototype.request,e);return D.extend(r,at.prototype,e,{allOwnKeys:!0}),D.extend(r,e,null,{allOwnKeys:!0}),r.create=function(e){return t(T(n,e))},r}(Oe);g.Axios=at,g.CanceledError=x,g.CancelToken=e,g.isCancel=xe,g.VERSION="1.13.2",g.toFormData=w,g.AxiosError=B,g.Cancel=g.CanceledError,g.all=function(e){return Promise.all(e)},g.spread=function(t){return function(e){return t.apply(null,e)}},g.isAxiosError=function(e){return D.isObject(e)&&!0===e.isAxiosError},g.mergeConfig=T,g.AxiosHeaders=I,g.formToJSON=function(e){return ge(D.isHTMLForm(e)?new FormData(e):e)},g.getAdapter=Ze.getAdapter,g.HttpStatusCode=ie,k.exports=g.default=g},"./index.js":function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r({},l.default).generateIds();return e.forEach(function(e){return n.dump(e)}),n}function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.apply(void 0,i([],o(e),!1)).die()}function c(t){return new Promise(function(e){return setTimeout(e,t)})}Object.defineProperty(t,"__esModule",{value:!0}),t.ds=s,t.dsq=u,t.sleep=c,t.configure=function(e){var t=e.port,t=void 0===t?9191:t,n=e.host,n=void 0===n?"127.0.0.1":n,r=e.auto_invoke_app,r=void 0!==r&&r,o=e.workdir,o=void 0===o?"":o,i=e.wsl_config,i=void 0===i?"":i,e=e.application_path,e=void 0===e?"":e;globalThis.CONFIG_LARADUMPS={host:"http://".concat(n,":").concat(t),auto_invoke_app:r,workdir:o,wsl_config:i,application_path:e}},globalThis.ds=s,globalThis.dsd=u,globalThis._sleep=c,globalThis.CONFIG_LARADUMPS={host:"http://127.0.0.1:9191",auto_invoke_app:!1,workdir:"/var/www/html",wsl_config:"wsl+Ubuntu/",application_path:""};var l=a(n("./src/LaraDumps.js"));t.default=l.default,globalThis.LaraDumps=l.default},"./src/Benchmark.js":function(e,t){var a=this&&this.__awaiter||function(e,a,s,u){return new(s=s||Promise)(function(n,t){function r(e){try{i(u.next(e))}catch(e){t(e)}}function o(e){try{i(u.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}i((u=u.apply(e,a||[])).next())})},s=this&&this.__generator||function(r,o){var i,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=e(0),c.throw=e(1),c.return=e(2),"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function e(n){return function(e){var t=[n,e];if(i)throw new TypeError("Generator is already executing.");for(;u=c&&t[c=0]?0:u;)try{if(i=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,a=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!(s=0<(s=u.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){u=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))u.label=t[1];else if(6===t[0]&&u.label<s[1])u.label=s[1],s=t;else{if(!(s&&u.label<s[2])){s[2]&&u.ops.pop(),u.trys.pop();continue}u.label=s[2],u.ops.push(t)}}t=o.call(r,u)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}};Object.defineProperty(t,"__esModule",{value:!0}),t.default={promise:null,benchmark:function(){for(var r=this,e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=[],i="object"==typeof e[0]?e[0]:e;return this.promise=Promise.all(Object.values(i).map(function(n,e){var t=Object.keys(i)[e];return o[t]={start_time:Date.now(),end_time:null,total_time:null},new Promise(function(t){return a(r,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,n(t)];case 1:return e.sent(),[2]}})})}).finally(function(){o[t].end_time=Date.now(),o[t].total_time=o[t].end_time-o[t].start_time})})).then(function(){return o}).finally(function(){r.sendMarks(o)}),this},sendMarks:function(r){var o={Fastest:[]};return Object.values(r).forEach(function(e,t){var n,t=Object.keys(r)[t];isNaN(parseInt(t))||(t="Closure ".concat(t)),(null!=(n=o.Fastest[1])?n:e.end_time+1)>e.end_time&&(o.Fastest=[t,e.end_time]),o[t]=["Start time: ".concat(new Date(e.start_time).toLocaleString(),"\n End time: ").concat(new Date(e.end_time).toLocaleString(),"\n Total time: ").concat(e.total_time," ms"),e.end_time]}),this.tableV2(o,"Benchmark")}}},"./src/Colors.js":function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={color:function(e){return this.send("color",{color:{color:e}})},info:function(){return this.blue()},success:function(){return this.green()},warning:function(){return this.orange()},danger:function(){return this.red()},red:function(){return this.color("red")},blue:function(){return this.color("blue")},green:function(){return this.color("green")},orange:function(){return this.color("orange")},dark:function(){return this.color("black")}}},"./src/Json.js":function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={json:function(t){try{"string"!=typeof t&&(t=JSON.stringify(t)),this.isValidJson(t)?this.sendJson(t):this.dump(t)}catch(e){return this.dump(this.inspect(t)),this}},inspect:function(e){return this.convertJSONStringToJSON(JSON.stringify(e,null,2))},convertJSONStringToJSON:function(t){var e=t.replace(/([{,]\s*)(\w+)\s*:/g,'$1"$2":').replace(/:\s*'([^']*)'/g,': "$1"').replace(/undefined/g,"null").replace(/\[Object\]/g,"{}").replace(/(\r\n|\n|\r)/gm,"");try{return JSON.parse(e)}catch(e){return t}},isValidJson:function(e){try{JSON.parse(e)}catch(e){return!1}return!0},sendJson:function(e){return e="string"!=typeof e?JSON.stringify(e):e,this.send("json",{json:{string:e,original_content:e}})}}},"./src/Label.js":function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={label:function(e){return this.send("label",{with_label:{label:e}})}}},"./src/LaraDumps.js":function(e,t,n){var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=(Object.defineProperty(t,"__esModule",{value:!0}),r(n("../node_modules/axios/dist/browser/axios.cjs"))),o=r(n("./src/Benchmark.js")),u=r(n("./src/Colors.js")),c=r(n("./src/Json.js")),l=r(n("./src/Label.js")),f=r(n("./src/Screen.js")),d=r(n("./src/Table.js")),p=r(n("./src/TimeTrack.js")),r=r(n("./src/Validate.js")),n=i(i(i(i(i(i(i(i(i({instanceId:null,requestId:null,server:null,params:[],generateIds:function(){var e;return this.server="".concat(null!=(e=null==(e=globalThis.CONFIG_LARADUMPS)?void 0:e.host)?e:"http://127.0.0.1:9191","/api/dumps"),this.instanceId=this.makeUUID(),this.requestId=this.makeUUID(),this},makeUUID:function(){var n=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==e?t:3&t|8).toString(16)})}},u.default),f.default),l.default),p.default),d.default),c.default),r.default),o.default),{clear:function(){return this.send("clear",{clear:{}})},die:function(){throw new Error("Exception to stop the execution!")},label:function(e){return this.send("label",{with_label:{label:e}})},dump:function(e){var t=typeof e,n="string"==t&&this.isValidJson(e);if("object"!=t&&!n)return this.send("dump",{dump:{dump:e,original_content:e,variable_type:t}});this.json(e)},send:function(e,t){var n,r=this.getStackTrace(),o=r.file?new URL(r.file):null;return s.default.post(this.server,i({id:this.instanceId,request_id:this.requestId,application_path:null!=(n=null==(n=globalThis.CONFIG_LARADUMPS)?void 0:n.application_path)?n:"",auto_invoke_app:null==(n=globalThis.CONFIG_LARADUMPS)?void 0:n.auto_invoke_app,ide_handle:{separator:"/",line:null==r?void 0:r.line,real_path:null!=(n=null==o?void 0:o.pathname)?n:"Browser",class_name:null!=(r=null==o?void 0:o.pathname.split("/").pop())?r:"Browser",project_path:null!=(n=null==o?void 0:o.pathname.split("/").slice(0,-1).join("/"))?n:"Browser",workdir:null==(r=globalThis.CONFIG_LARADUMPS)?void 0:r.workdir,wsl_config:null==(o=globalThis.CONFIG_LARADUMPS)?void 0:o.wsl_config},type:e,with_label:{label:""},to_screen:{screen_name:"home",raise_in:0,new_window:!1},extra:{},code_snippet:""},t)).catch(function(e){console.error("Error:",e)}),this},getStackTrace:function(){var e=(new Error).stack,t={stack:e},n=e.split("\n"),r=n[4],o=n.findIndex(function(e){return e.includes("at ds")}),o=(e.includes("[Alpine]")?r=null==(e=(n=n.filter(function(e){return e.includes("[Alpine]")}))[0])?void 0:e.split("),")[0]:o&&(r=null==(e=(n=n.slice(o))[1])?void 0:e.split("),")[0]),null==r?void 0:r.match(/(https?:\/\/.*):(\d+):(\d+)/));return o&&((n=a(o,4))[0],e=n[2],r=n[3],t.file=n[1],t.line=e,t.column=r),t}});t.default=n},"./src/Screen.js":function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={s:function(e){return this.toScreen(e)},w:function(e,t){return this.toScreen(e,t=void 0===t?0:t)},toScreen:function(e,t,n){return this.send("screen",{screen:{screen_name:e,raisen_in:t=void 0===t?0:t,new_window:n=void 0===n?!1:n}})},toScreenWindow:function(e,t){return this.toScreen(e,t=void 0===t?0:t,!0)}}},"./src/Table.js":function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={table:function(e,t){var n=Object.keys(e[0]);return this.send("table",{table:{fields:n,header:n,values:e,label:t}}).label(t)},tableV2:function(e,t){return this.send("table_v2",{table_v2:{label:t,values:e}}).label(t)}}},"./src/TimeTrack.js":function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={time:function(e){return this.send("time_track",{time_track:{tracker_id:this.makeUUID(),time:Date.now()/1e3,label:e}}).label(e)},stopTime:function(e){var t=Date.now()/1e3;return this.send("time_track",{time_track:{time:t,label:e,end_time:t,tracker_id:this.makeUUID()}})}}},"./src/Validate.js":function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={isJson:function(){return this.send("json_validate",{json_validate:{}})},validate:function(e,t,n,r){return this.send("validate",{validate:{type:e,content:t,is_case_sensitive:n=void 0===n?!1:n,is_whole_word:r=void 0===r?!1:r}})},contains:function(e,t,n){return this.validate("contains",e,t=void 0===t?!1:t,n=void 0===n?!1:n)}}}},r={};function o(e){var t=r[e];return void 0!==t||(t=r[e]={exports:{}},n[e].call(t.exports,t,t.exports,o)),t.exports}o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o("./index.js")}})["./index.js"].call({});
|
package/dist/src/LaraDumps.js
CHANGED
|
@@ -61,7 +61,7 @@ var LaraDumps = __assign(__assign(__assign(__assign(__assign(__assign(__assign(_
|
|
|
61
61
|
throw new Error("Exception to stop the execution!");
|
|
62
62
|
}, label: function (label) {
|
|
63
63
|
return this.send("label", {
|
|
64
|
-
"
|
|
64
|
+
"with_label": {
|
|
65
65
|
label: label
|
|
66
66
|
}
|
|
67
67
|
});
|
|
@@ -80,25 +80,24 @@ var LaraDumps = __assign(__assign(__assign(__assign(__assign(__assign(__assign(_
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
}, send: function (type, data) {
|
|
83
|
-
var _a, _b, _c, _d;
|
|
83
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
84
84
|
var trace = this.getStackTrace();
|
|
85
85
|
var url = trace.file ? new URL(trace.file) : null;
|
|
86
|
-
axios_1.default.post(this.server, __assign({ id: this.instanceId, request_id: this.requestId,
|
|
87
|
-
laradumps_version: "2.0.2.0",
|
|
88
|
-
auto_invoke_app: (_a = globalThis.CONFIG_LARADUMPS) === null || _a === void 0 ? void 0 : _a.autoInvokeApp
|
|
89
|
-
}, ide_handle: {
|
|
86
|
+
axios_1.default.post(this.server, __assign({ id: this.instanceId, request_id: this.requestId, application_path: (_b = (_a = globalThis.CONFIG_LARADUMPS) === null || _a === void 0 ? void 0 : _a.application_path) !== null && _b !== void 0 ? _b : "", auto_invoke_app: (_c = globalThis.CONFIG_LARADUMPS) === null || _c === void 0 ? void 0 : _c.auto_invoke_app, ide_handle: {
|
|
90
87
|
separator: "/",
|
|
91
88
|
line: trace === null || trace === void 0 ? void 0 : trace.line,
|
|
92
|
-
real_path: (
|
|
93
|
-
class_name: (
|
|
94
|
-
project_path: (
|
|
89
|
+
real_path: (_d = url === null || url === void 0 ? void 0 : url.pathname) !== null && _d !== void 0 ? _d : "Browser",
|
|
90
|
+
class_name: (_e = url === null || url === void 0 ? void 0 : url.pathname.split('/').pop()) !== null && _e !== void 0 ? _e : "Browser",
|
|
91
|
+
project_path: (_f = url === null || url === void 0 ? void 0 : url.pathname.split('/').slice(0, -1).join('/')) !== null && _f !== void 0 ? _f : "Browser",
|
|
92
|
+
workdir: (_g = globalThis.CONFIG_LARADUMPS) === null || _g === void 0 ? void 0 : _g.workdir,
|
|
93
|
+
wsl_config: (_h = globalThis.CONFIG_LARADUMPS) === null || _h === void 0 ? void 0 : _h.wsl_config,
|
|
95
94
|
}, type: type, with_label: {
|
|
96
95
|
label: ""
|
|
97
96
|
}, to_screen: {
|
|
98
97
|
screen_name: "home",
|
|
99
98
|
raise_in: 0,
|
|
100
99
|
new_window: false,
|
|
101
|
-
} }, data)).catch(function (error) {
|
|
100
|
+
}, extra: {}, code_snippet: '' }, data)).catch(function (error) {
|
|
102
101
|
console.error("Error:", error);
|
|
103
102
|
});
|
|
104
103
|
return this;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LaraDumps.js","sourceRoot":"","sources":["../../src/LaraDumps.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,0DAAoC;AACpC,oDAA8B;AAC9B,gDAA0B;AAC1B,kDAA4B;AAC5B,oDAA8B;AAC9B,kDAA4B;AAC5B,0DAAoC;AACpC,wDAAkC;AAGlC,IAAM,WAAW,GAAG,uBAAuB,CAAC;AAE5C,IAAM,SAAS,sFACX,UAAU,EAAE,IAAI,EAChB,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,IAAI,EACZ,MAAM,EAAE,EAAE,EAEV,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ourceRoot":"","sources":["../../../src/__tests__/LaraDumps.test.ts"],"names":[],"mappings":"AAAO,IAAS,SAAS,GAAI,OAAO,CAAC,cAAc,CAAC,QAA3B,CAA4B;AAErD,QAAQ,CAAC,WAAW,EAAE;IAClB,EAAE,CAAC,8BAA8B,EAAE;QAC/B,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QAC3B,SAAS,CAAC,KAAK,EAAE,CAAC;QAElB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC,OAAO,EAAE;YACjD,OAAO,EAAE,EAAE;SACd,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE;QAC7B,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE;QAC/B,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QAC3B,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAExB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC,OAAO,EAAE;YACjD,
|
|
1
|
+
{"version":3,"file":"LaraDumps.test.js","sourceRoot":"","sources":["../../../src/__tests__/LaraDumps.test.ts"],"names":[],"mappings":"AAAO,IAAS,SAAS,GAAI,OAAO,CAAC,cAAc,CAAC,QAA3B,CAA4B;AAErD,QAAQ,CAAC,WAAW,EAAE;IAClB,EAAE,CAAC,8BAA8B,EAAE;QAC/B,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QAC3B,SAAS,CAAC,KAAK,EAAE,CAAC;QAElB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC,OAAO,E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AC,CAAC,QAAQ,EAAE,CAAC;QAEvC,SAAS,CAAC,WAAW,EAAE,CAAC;QAExB,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1C,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "laradumps-js",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"repository": {
|
|
@@ -23,21 +23,15 @@
|
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"private": false,
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"axios": "^1.
|
|
27
|
-
"ts-loader": "^9.5.
|
|
28
|
-
"typescript": "^5.
|
|
29
|
-
"yarn": "^1.22.22"
|
|
26
|
+
"axios": "^1.15.0",
|
|
27
|
+
"ts-loader": "^9.5.4",
|
|
28
|
+
"typescript": "^5.9.3"
|
|
30
29
|
},
|
|
31
30
|
"scripts": {
|
|
32
31
|
"minify": "uglifyjs dist/index.js -c -m -o dist/laradumps.min.js",
|
|
33
|
-
"build": "
|
|
34
|
-
"test": "jest --passWithNoTests"
|
|
32
|
+
"build": "webpack && yarn minify"
|
|
35
33
|
},
|
|
36
34
|
"devDependencies": {
|
|
37
|
-
"@types/jest": "^29.5.14",
|
|
38
|
-
"jest": "^29.7.0",
|
|
39
|
-
"ts-jest": "^29.2.5",
|
|
40
|
-
"ts-node": "^10.9.2",
|
|
41
35
|
"uglify-js": "^3.19.3",
|
|
42
36
|
"webpack": "^5.96.1",
|
|
43
37
|
"webpack-cli": "^5.1.4"
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const {default: Benchmark} = require("../Benchmark");
|
|
2
|
-
|
|
3
|
-
describe('Benchmark', () => {
|
|
4
|
-
it('should be able to send marks', async () => {
|
|
5
|
-
Benchmark.tableV2 = jest.fn();
|
|
6
|
-
Benchmark.benchmark(
|
|
7
|
-
(resolve) => resolve('First'),
|
|
8
|
-
(resolve) => resolve('Second'),
|
|
9
|
-
);
|
|
10
|
-
|
|
11
|
-
Benchmark.promise.then(
|
|
12
|
-
([
|
|
13
|
-
firstMark,
|
|
14
|
-
secondMark
|
|
15
|
-
]) => expect(Benchmark.tableV2).toHaveBeenCalledWith({
|
|
16
|
-
Fastest: [ 'Closure 0', firstMark.end_time ],
|
|
17
|
-
'Closure 0': [
|
|
18
|
-
`Start time: ${new Date(firstMark.start_time).toLocaleString()}
|
|
19
|
-
End time: ${new Date(firstMark.end_time).toLocaleString()}
|
|
20
|
-
Total time: ${firstMark.total_time} ms`,
|
|
21
|
-
firstMark.end_time
|
|
22
|
-
],
|
|
23
|
-
'Closure 1': [
|
|
24
|
-
`Start time: ${new Date(secondMark.start_time).toLocaleString()}
|
|
25
|
-
End time: ${new Date(secondMark.end_time).toLocaleString()}
|
|
26
|
-
Total time: ${secondMark.total_time} ms`,
|
|
27
|
-
secondMark.end_time
|
|
28
|
-
]
|
|
29
|
-
}, 'Benchmark')
|
|
30
|
-
);
|
|
31
|
-
});
|
|
32
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const {default: Colors} = require("../Colors");
|
|
2
|
-
|
|
3
|
-
describe('Color Tag', () => {
|
|
4
|
-
it.each([
|
|
5
|
-
// Shortcuts
|
|
6
|
-
["info", "blue"],
|
|
7
|
-
["success", "green"],
|
|
8
|
-
["warning", "orange"],
|
|
9
|
-
["danger", "red"],
|
|
10
|
-
["dark", "black"],
|
|
11
|
-
// Primary colors
|
|
12
|
-
["red", "red"],
|
|
13
|
-
["blue", "blue"],
|
|
14
|
-
["green", "green"],
|
|
15
|
-
["orange", "orange"],
|
|
16
|
-
])('should be able to send color when calling method %s', (method: string, color: string) => {
|
|
17
|
-
Colors.send = jest.fn();
|
|
18
|
-
Colors[method](color);
|
|
19
|
-
|
|
20
|
-
expect(Colors.send).toHaveBeenCalledWith("color", {
|
|
21
|
-
"color": {
|
|
22
|
-
"color": color
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
});
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const {default: Json} = require("../Json");
|
|
2
|
-
|
|
3
|
-
describe('Json', () => {
|
|
4
|
-
it('should be able to send json', () => {
|
|
5
|
-
Json.send = jest.fn();
|
|
6
|
-
const user = {"first_name": "hecktor", "last_name": "viegas"};
|
|
7
|
-
|
|
8
|
-
Json.json(user);
|
|
9
|
-
|
|
10
|
-
expect(Json.send).toHaveBeenCalledWith("json", {
|
|
11
|
-
"json": {
|
|
12
|
-
"string": JSON.stringify(user),
|
|
13
|
-
"original_content": JSON.stringify(user)
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should be able to send json if data is a string', () => {
|
|
19
|
-
Json.send = jest.fn();
|
|
20
|
-
const user = JSON.stringify({"first_name": "hecktor", "last_name": "viegas"});
|
|
21
|
-
|
|
22
|
-
Json.json(user);
|
|
23
|
-
|
|
24
|
-
expect(Json.send).toHaveBeenCalledWith("json", {
|
|
25
|
-
"json": {
|
|
26
|
-
"string": user,
|
|
27
|
-
"original_content": user
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
it('should be able to send a invalid json', () => {
|
|
33
|
-
Json.send = jest.fn();
|
|
34
|
-
Json.dump = jest.fn();
|
|
35
|
-
|
|
36
|
-
const user = '"user": "hecktor", "last_name": "viegas"}';
|
|
37
|
-
Json.json(user);
|
|
38
|
-
|
|
39
|
-
expect(Json.send).not.toHaveBeenCalled();
|
|
40
|
-
expect(Json.dump).toHaveBeenCalledWith(user);
|
|
41
|
-
});
|
|
42
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const {default: Label} = require("../Label");
|
|
2
|
-
|
|
3
|
-
describe('Label', () => {
|
|
4
|
-
it('should be able to send label', () => {
|
|
5
|
-
Label.send = jest.fn();
|
|
6
|
-
Label.label("test");
|
|
7
|
-
|
|
8
|
-
expect(Label.send).toHaveBeenCalledWith("label", {
|
|
9
|
-
"with_label": {
|
|
10
|
-
"label": "test"
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
})
|
|
14
|
-
});
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
const {default: LaraDumps} = require("../LaraDumps");
|
|
2
|
-
|
|
3
|
-
describe('LaraDumps', () => {
|
|
4
|
-
it('should be able to send clear', () => {
|
|
5
|
-
LaraDumps.send = jest.fn();
|
|
6
|
-
LaraDumps.clear();
|
|
7
|
-
|
|
8
|
-
expect(LaraDumps.send).toHaveBeenCalledWith("clear", {
|
|
9
|
-
"clear": {}
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
it('should be able to send die', () => {
|
|
14
|
-
LaraDumps.send = jest.fn();
|
|
15
|
-
expect(LaraDumps.die).toThrow("Exception to stop the execution!");
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should be able to send label', () => {
|
|
19
|
-
LaraDumps.send = jest.fn();
|
|
20
|
-
LaraDumps.label("test");
|
|
21
|
-
|
|
22
|
-
expect(LaraDumps.send).toHaveBeenCalledWith("label", {
|
|
23
|
-
"with_label": {
|
|
24
|
-
"label": "test"
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
it('should be able to send dump', () => {
|
|
30
|
-
LaraDumps.send = jest.fn();
|
|
31
|
-
LaraDumps.dump("test");
|
|
32
|
-
|
|
33
|
-
expect(LaraDumps.send).toHaveBeenCalledWith("dump", {
|
|
34
|
-
"dump": {
|
|
35
|
-
"dump": "test",
|
|
36
|
-
"original_content": "test",
|
|
37
|
-
"variable_type": "string"
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
it('should be able to send generateIds', () => {
|
|
43
|
-
LaraDumps.send = jest.fn();
|
|
44
|
-
LaraDumps.makeUUID = jest.fn().mockReturnValue("test");
|
|
45
|
-
|
|
46
|
-
expect(LaraDumps.instanceId).toBeNull();
|
|
47
|
-
expect(LaraDumps.requestId).toBeNull();
|
|
48
|
-
|
|
49
|
-
LaraDumps.generateIds();
|
|
50
|
-
|
|
51
|
-
expect(LaraDumps.instanceId).toBe("test");
|
|
52
|
-
expect(LaraDumps.requestId).toBe("test");
|
|
53
|
-
});
|
|
54
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const {default: _Screen} = require("../Screen");
|
|
2
|
-
|
|
3
|
-
describe('Screen', () => {
|
|
4
|
-
it.each([
|
|
5
|
-
{method: 's'},
|
|
6
|
-
{method: 'w', screenRaisenIn: 3},
|
|
7
|
-
{method: 'toScreenWindow', newWindow: true},
|
|
8
|
-
])('should be able to send screen when calling with %s', ({method, screenRaisenIn=0, newWindow=false}) => {
|
|
9
|
-
_Screen.send = jest.fn();
|
|
10
|
-
_Screen[method]('new screen', screenRaisenIn);
|
|
11
|
-
|
|
12
|
-
expect(_Screen.send).toHaveBeenCalledWith("screen", {
|
|
13
|
-
"screen": {
|
|
14
|
-
"screen_name": "new screen",
|
|
15
|
-
"raisen_in": screenRaisenIn,
|
|
16
|
-
"new_window": newWindow
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
});
|