laradumps-js 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +22 -0
- package/dist/laradumps.min.js +4 -1
- package/package.json +4 -11
- package/src/LaraDumps.ts +31 -26
- package/vite.config.mjs +28 -0
- package/dist/index.js +0 -4404
- package/dist/index.js.map +0 -1
- package/dist/src/Benchmark.js +0 -100
- package/dist/src/Benchmark.js.map +0 -1
- package/dist/src/Benchmark.test.js +0 -78
- package/dist/src/Benchmark.test.js.map +0 -1
- package/dist/src/Colors.js +0 -39
- package/dist/src/Colors.js.map +0 -1
- package/dist/src/Colors.test.js +0 -25
- package/dist/src/Colors.test.js.map +0 -1
- package/dist/src/Json.js +0 -59
- package/dist/src/Json.js.map +0 -1
- package/dist/src/Json.test.js +0 -34
- package/dist/src/Json.test.js.map +0 -1
- package/dist/src/Label.js +0 -12
- package/dist/src/Label.js.map +0 -1
- package/dist/src/Label.test.js +0 -13
- package/dist/src/Label.test.js.map +0 -1
- package/dist/src/LaraDumps.js +0 -129
- package/dist/src/LaraDumps.js.map +0 -1
- package/dist/src/LaraDumps.test.js +0 -44
- package/dist/src/LaraDumps.test.js.map +0 -1
- package/dist/src/Screen.js +0 -27
- package/dist/src/Screen.js.map +0 -1
- package/dist/src/Screen.test.js +0 -20
- package/dist/src/Screen.test.js.map +0 -1
- package/dist/src/Table.js +0 -24
- package/dist/src/Table.js.map +0 -1
- package/dist/src/Table.test.js +0 -34
- package/dist/src/Table.test.js.map +0 -1
- package/dist/src/TimeTrack.js +0 -25
- package/dist/src/TimeTrack.js.map +0 -1
- package/dist/src/TimeTrack.test.js +0 -30
- package/dist/src/TimeTrack.test.js.map +0 -1
- package/dist/src/Validate.js +0 -27
- package/dist/src/Validate.js.map +0 -1
- package/dist/src/Validate.test.js +0 -35
- package/dist/src/Validate.test.js.map +0 -1
- package/dist/src/__tests__/Benchmark.test.js +0 -78
- package/dist/src/__tests__/Benchmark.test.js.map +0 -1
- package/dist/src/__tests__/Colors.test.js +0 -25
- package/dist/src/__tests__/Colors.test.js.map +0 -1
- package/dist/src/__tests__/Json.test.js +0 -34
- package/dist/src/__tests__/Json.test.js.map +0 -1
- package/dist/src/__tests__/Label.test.js +0 -13
- package/dist/src/__tests__/Label.test.js.map +0 -1
- package/dist/src/__tests__/LaraDumps.test.js +0 -44
- package/dist/src/__tests__/LaraDumps.test.js.map +0 -1
- package/dist/src/__tests__/Screen.test.js +0 -20
- package/dist/src/__tests__/Screen.test.js.map +0 -1
- package/dist/src/__tests__/Table.test.js +0 -34
- package/dist/src/__tests__/Table.test.js.map +0 -1
- package/dist/src/__tests__/TimeTrack.test.js +0 -30
- package/dist/src/__tests__/TimeTrack.test.js.map +0 -1
- package/dist/src/__tests__/Validate.test.js +0 -35
- package/dist/src/__tests__/Validate.test.js.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(yarn install *)",
|
|
5
|
+
"Bash(npm install *)",
|
|
6
|
+
"Bash(yarn build *)",
|
|
7
|
+
"Bash(npx tsc *)",
|
|
8
|
+
"Bash(echo \"EXIT:$?\")",
|
|
9
|
+
"Bash(awk '{print $5, $9}')",
|
|
10
|
+
"Bash(echo \"=== EXIT: $? ===\")",
|
|
11
|
+
"Read(//Users/luan.freitas/Dev/devsquad/scholars-in-medicine/resources/js/**)",
|
|
12
|
+
"Bash(git mv *)",
|
|
13
|
+
"Bash(node /private/tmp/claude-502/-Users-luan-freitas-Dev-laradumps-laradumps-js/38e49061-ede4-4b9b-ad95-e7b30418b345/scratchpad/smoke_cdn.cjs)",
|
|
14
|
+
"Bash(git checkout *)",
|
|
15
|
+
"Bash(git add *)",
|
|
16
|
+
"Bash(git commit *)",
|
|
17
|
+
"Bash(echo \"=== EXIT $? ===\")",
|
|
18
|
+
"Bash(git rm *)",
|
|
19
|
+
"Bash(echo \"EXIT $?\")"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
}
|
package/dist/laradumps.min.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
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({});
|
|
1
|
+
var LaraDumpsBundle=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e,n){if(t(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||`default`);if(t(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(e)}function r(e){var r=n(e,`string`);return t(r)==`symbol`?r:r+``}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?a(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){s(a,r,i,o,c,`next`,e)}function c(e){s(a,r,i,o,c,`throw`,e)}o(void 0)})}}var l={promise:null,benchmark(...e){let t=[],n=typeof e[0]==`object`?e[0]:e;return this.promise=Promise.all(Object.values(n).map((e,r)=>{let i=Object.keys(n)[r];return t[i]={start_time:Date.now(),end_time:null,total_time:null},new Promise(function(){var t=c(function*(t){yield e(t)});return function(e){return t.apply(this,arguments)}}()).finally(()=>{t[i].end_time=Date.now(),t[i].total_time=t[i].end_time-t[i].start_time})})).then(()=>t).finally(()=>{this.sendMarks(t)}),this},sendMarks(e){let t={Fastest:[]};return Object.values(e).forEach((n,r)=>{var i;let a=Object.keys(e)[r];isNaN(parseInt(a))||(a=`Closure ${a}`),((i=t.Fastest[1])==null?n.end_time+1:i)>n.end_time&&(t.Fastest=[a,n.end_time]),t[a]=[`Start time: ${new Date(n.start_time).toLocaleString()}
|
|
2
|
+
End time: ${new Date(n.end_time).toLocaleString()}
|
|
3
|
+
Total time: ${n.total_time} ms`,n.end_time]}),this.tableV2(t,`Benchmark`)}},u={color(e){return this.send(`color`,{color:{color:e}})},info(){return this.blue()},success(){return this.green()},warning(){return this.orange()},danger(){return this.red()},red(){return this.color(`red`)},blue(){return this.color(`blue`)},green(){return this.color(`green`)},orange(){return this.color(`orange`)},dark(){return this.color(`black`)}},d={json(e){try{typeof e!=`string`&&(e=JSON.stringify(e)),this.isValidJson(e)?this.sendJson(e):this.dump(e)}catch(t){return this.dump(this.inspect(e)),this}},inspect(e){return this.convertJSONStringToJSON(JSON.stringify(e,null,2))},convertJSONStringToJSON(e){let t=e.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(t)}catch(t){return e}},isValidJson(e){try{JSON.parse(e)}catch(e){return!1}return!0},sendJson(e){return e=typeof e==`string`?e:JSON.stringify(e),this.send(`json`,{json:{string:e,original_content:e}})}},f={label(e){return this.send(`label`,{with_label:{label:e}})}},p={s(e){return this.toScreen(e)},w(e,t=0){return this.toScreen(e,t)},toScreen(e,t=0,n=!1){return this.send(`screen`,{screen:{screen_name:e,raisen_in:t,new_window:n}})},toScreenWindow(e,t=0){return this.toScreen(e,t,!0)}},m={table(e,t){let n=Object.keys(e[0]);return this.send(`table`,{table:{fields:n,header:n,values:e,label:t}}).label(t)},tableV2(e,t){return this.send(`table_v2`,{table_v2:{label:t,values:e}}).label(t)}},h={time(e){return this.send(`time_track`,{time_track:{tracker_id:this.makeUUID(),time:Date.now()/1e3,label:e}}).label(e)},stopTime(e){let t=Date.now()/1e3;return this.send(`time_track`,{time_track:{time:t,label:e,end_time:t,tracker_id:this.makeUUID()}})}},g={isJson(){return this.send(`json_validate`,{json_validate:{}})},validate(e,t,n=!1,r=!1){return this.send(`validate`,{validate:{type:e,content:t,is_case_sensitive:n,is_whole_word:r}})},contains(e,t=!1,n=!1){return this.validate(`contains`,e,t,n)}},_=`http://127.0.0.1:9191`,v=o(o(o(o(o(o(o(o(o({instanceId:null,requestId:null,server:null,params:[],generateIds(){var e,t;return this.server=`${(e=(t=globalThis.CONFIG_LARADUMPS)==null?void 0:t.host)==null?_:e}/api/dumps`,this.instanceId=this.makeUUID(),this.requestId=this.makeUUID(),this},makeUUID(){let e=new Date().getTime();return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(t){let n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t==`x`?n:n&3|8).toString(16)})}},u),p),f),h),m),d),g),l),{},{clear(){return this.send(`clear`,{clear:{}})},die(){throw Error(`Exception to stop the execution!`)},label(e){return this.send(`label`,{with_label:{label:e}})},dump(e){let t=typeof e,n=t===`string`&&this.isValidJson(e);if(t===`object`||n){this.json(e);return}return this.send(`dump`,{dump:{dump:e,original_content:e,variable_type:t}})},send(e,t){var n,r,i,a,s,c,l,u;let d=this.getStackTrace(),f=d.file?new URL(d.file):null;return fetch(this.server,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(o({id:this.instanceId,request_id:this.requestId,application_path:(n=(r=globalThis.CONFIG_LARADUMPS)==null?void 0:r.application_path)==null?``:n,auto_invoke_app:(i=globalThis.CONFIG_LARADUMPS)==null?void 0:i.auto_invoke_app,ide_handle:{separator:`/`,line:d==null?void 0:d.line,real_path:(a=f==null?void 0:f.pathname)==null?`Browser`:a,class_name:(s=f==null?void 0:f.pathname.split(`/`).pop())==null?`Browser`:s,project_path:(c=f==null?void 0:f.pathname.split(`/`).slice(0,-1).join(`/`))==null?`Browser`:c,workdir:(l=globalThis.CONFIG_LARADUMPS)==null?void 0:l.workdir,wsl_config:(u=globalThis.CONFIG_LARADUMPS)==null?void 0:u.wsl_config},type:e,with_label:{label:``},to_screen:{screen_name:`home`,raise_in:0,new_window:!1},extra:{},code_snippet:``},t))}).catch(e=>{console.error(`Error:`,e)}),this},getStackTrace(){let e=Error().stack,t={stack:e},n=e.split(`
|
|
4
|
+
`),r=n[4],i=n.findIndex(e=>e.includes(`at ds`));if(e.includes(`[Alpine]`)){var a;n=n.filter(e=>e.includes(`[Alpine]`)),r=(a=n[0])==null?void 0:a.split(`),`)[0]}else if(i){var o;n=n.slice(i),r=(o=n[1])==null?void 0:o.split(`),`)[0]}let s=r==null?void 0:r.match(/(https?:\/\/.*):(\d+):(\d+)/);if(s){let[e,n,r,i]=s;t.file=n,t.line=r,t.column=i}return t}});function y(...e){let t=o({},v).generateIds();return e.forEach(e=>t.dump(e)),t}function b(...e){return y(...e).die()}function x(e){return new Promise(t=>setTimeout(t,e))}function S({port:e=9191,host:t=`127.0.0.1`,auto_invoke_app:n=!1,workdir:r=``,wsl_config:i=``,application_path:a=``}){globalThis.CONFIG_LARADUMPS={host:`http://${t}:${e}`,auto_invoke_app:n,workdir:r,wsl_config:i,application_path:a}}globalThis.ds=y,globalThis.dsd=b,globalThis._sleep=x,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 C=v;return globalThis.LaraDumps=v,e.configure=S,e.default=C,e.ds=y,e.dsq=b,e.sleep=x,e})({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "laradumps-js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"repository": {
|
|
@@ -22,18 +22,11 @@
|
|
|
22
22
|
],
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"private": false,
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"axios": "^1.15.0",
|
|
27
|
-
"ts-loader": "^9.5.4",
|
|
28
|
-
"typescript": "^5.9.3"
|
|
29
|
-
},
|
|
30
25
|
"scripts": {
|
|
31
|
-
"
|
|
32
|
-
"build": "webpack && yarn minify"
|
|
26
|
+
"build": "vite build"
|
|
33
27
|
},
|
|
34
28
|
"devDependencies": {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"webpack-cli": "^5.1.4"
|
|
29
|
+
"typescript": "^5.9.3",
|
|
30
|
+
"vite": "^8.0.0"
|
|
38
31
|
}
|
|
39
32
|
}
|
package/src/LaraDumps.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import axios from 'axios';
|
|
2
1
|
import Benchmark from './Benchmark';
|
|
3
2
|
import Colors from './Colors';
|
|
4
3
|
import Json from './Json';
|
|
@@ -85,32 +84,38 @@ const LaraDumps: _LaraDumps = {
|
|
|
85
84
|
const trace = this.getStackTrace();
|
|
86
85
|
const url = trace.file ? new URL(trace.file) : null;
|
|
87
86
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
auto_invoke_app: globalThis.CONFIG_LARADUMPS?.auto_invoke_app,
|
|
93
|
-
ide_handle: {
|
|
94
|
-
separator: "/",
|
|
95
|
-
line: trace?.line,
|
|
96
|
-
real_path: url?.pathname ?? "Browser",
|
|
97
|
-
class_name: url?.pathname.split('/').pop() ?? "Browser",
|
|
98
|
-
project_path: url?.pathname.split('/').slice(0, -1).join('/') ?? "Browser",
|
|
99
|
-
workdir: globalThis.CONFIG_LARADUMPS?.workdir,
|
|
100
|
-
wsl_config: globalThis.CONFIG_LARADUMPS?.wsl_config,
|
|
87
|
+
fetch(this.server, {
|
|
88
|
+
method: 'POST',
|
|
89
|
+
headers: {
|
|
90
|
+
'Content-Type': 'application/json',
|
|
101
91
|
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
92
|
+
body: JSON.stringify({
|
|
93
|
+
id: this.instanceId,
|
|
94
|
+
request_id: this.requestId,
|
|
95
|
+
application_path: globalThis.CONFIG_LARADUMPS?.application_path ?? "",
|
|
96
|
+
auto_invoke_app: globalThis.CONFIG_LARADUMPS?.auto_invoke_app,
|
|
97
|
+
ide_handle: {
|
|
98
|
+
separator: "/",
|
|
99
|
+
line: trace?.line,
|
|
100
|
+
real_path: url?.pathname ?? "Browser",
|
|
101
|
+
class_name: url?.pathname.split('/').pop() ?? "Browser",
|
|
102
|
+
project_path: url?.pathname.split('/').slice(0, -1).join('/') ?? "Browser",
|
|
103
|
+
workdir: globalThis.CONFIG_LARADUMPS?.workdir,
|
|
104
|
+
wsl_config: globalThis.CONFIG_LARADUMPS?.wsl_config,
|
|
105
|
+
},
|
|
106
|
+
type: type,
|
|
107
|
+
with_label: {
|
|
108
|
+
label: ""
|
|
109
|
+
},
|
|
110
|
+
to_screen: {
|
|
111
|
+
screen_name: "home",
|
|
112
|
+
raise_in: 0,
|
|
113
|
+
new_window: false,
|
|
114
|
+
},
|
|
115
|
+
extra: {},
|
|
116
|
+
code_snippet: '',
|
|
117
|
+
...data
|
|
118
|
+
}),
|
|
114
119
|
}).catch((error) => {
|
|
115
120
|
console.error("Error:", error);
|
|
116
121
|
});
|
package/vite.config.mjs
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
|
|
3
|
+
// Browser build served via CDN (dist/laradumps.min.js).
|
|
4
|
+
// The entry (index.js) attaches ds/dsd/_sleep/LaraDumps to globalThis as a
|
|
5
|
+
// side effect, so a self-executing IIFE bundle is all that is needed.
|
|
6
|
+
// Bundler/ESM consumers use `main` (index.js) + src/*.ts directly and do not
|
|
7
|
+
// touch this output.
|
|
8
|
+
export default defineConfig({
|
|
9
|
+
build: {
|
|
10
|
+
target: 'es2015',
|
|
11
|
+
minify: 'oxc',
|
|
12
|
+
emptyOutDir: true,
|
|
13
|
+
lib: {
|
|
14
|
+
entry: 'index.js',
|
|
15
|
+
// Not "LaraDumps": the IIFE wrapper assigns this global to the
|
|
16
|
+
// exports object, which would clobber the real `globalThis.LaraDumps`
|
|
17
|
+
// the entry sets as a side effect. A distinct name avoids the collision.
|
|
18
|
+
name: 'LaraDumpsBundle',
|
|
19
|
+
formats: ['iife'],
|
|
20
|
+
},
|
|
21
|
+
rollupOptions: {
|
|
22
|
+
output: {
|
|
23
|
+
entryFileNames: 'laradumps.min.js',
|
|
24
|
+
exports: 'named',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
});
|