@likable-hair/cciaa-service 0.0.3 → 0.0.4

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.
@@ -6,5 +6,5 @@
6
6
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ze]=this[Ze]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=G(i);r[c]||(Ur(s,i),r[c]=!0)}return u.isArray(t)?t.forEach(o):o(t),this}};x.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);u.reduceDescriptors(x.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});u.freezeMethods(x);function Se(e,t){const n=this||te,r=t||n,s=x.from(r.headers);let o=r.data;return u.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Rt(e){return!!(e&&e.__CANCEL__)}let ne=class extends m{constructor(t,n,r){super(t??"canceled",m.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function At(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function kr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Br(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const a=Date.now(),f=r[o];i||(i=a),n[s]=l,r[s]=a;let d=o,E=0;for(;d!==s;)E+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),a-i<t)return;const T=f&&a-f;return T?Math.round(E*1e3/T):void 0}}function jr(e,t){let n=0,r=1e3/t,s,o;const i=(a,f=Date.now())=>{n=f,s=null,o&&(clearTimeout(o),o=null),e(...a)};return[(...a)=>{const f=Date.now(),d=f-n;d>=r?i(a,f):(s=a,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const fe=(e,t,n=3)=>{let r=0;const s=Br(50,250);return jr(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,l=i-r,a=s(l),f=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:l,rate:a||void 0,estimated:a&&c&&f?(c-i)/a:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},Ge=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Qe=e=>(...t)=>u.asap(()=>e(...t)),vr=O.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,O.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,Mr=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];u.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),u.isString(r)&&c.push(`path=${r}`),u.isString(s)&&c.push(`domain=${s}`),o===!0&&c.push("secure"),u.isString(i)&&c.push(`SameSite=${i}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function $r(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ct(e,t,n){let r=!$r(t);return e&&(r||n==!1)?zr(e,t):t}const De=e=>e instanceof x?{...e}:e;function H(e,t){t=t||{};const n={};function r(a,f,d,E){return u.isPlainObject(a)&&u.isPlainObject(f)?u.merge.call({caseless:E},a,f):u.isPlainObject(f)?u.merge({},f):u.isArray(f)?f.slice():f}function s(a,f,d,E){if(u.isUndefined(f)){if(!u.isUndefined(a))return r(void 0,a,d,E)}else return r(a,f,d,E)}function o(a,f){if(!u.isUndefined(f))return r(void 0,f)}function i(a,f){if(u.isUndefined(f)){if(!u.isUndefined(a))return r(void 0,a)}else return r(void 0,f)}function c(a,f,d){if(d in t)return r(a,f);if(d in e)return r(void 0,a)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(a,f,d)=>s(De(a),De(f),d,!0)};return u.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const d=u.hasOwnProp(l,f)?l[f]:s,E=d(e[f],t[f],f);u.isUndefined(E)&&d!==c||(n[f]=E)}),n}const It=e=>{const t=H({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;if(t.headers=i=x.from(i),t.url=Nt(Ct(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),u.isFormData(n)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(u.isFunction(n.getHeaders)){const l=n.getHeaders(),a=["content-type","content-length"];Object.entries(l).forEach(([f,d])=>{a.includes(f.toLowerCase())&&i.set(f,d)})}}if(O.hasStandardBrowserEnv&&(r&&u.isFunction(r)&&(r=r(t)),r||r!==!1&&vr(t.url))){const l=s&&o&&Mr.read(o);l&&i.set(s,l)}return t},Vr=typeof XMLHttpRequest<"u",qr=Vr&&function(e){return new Promise(function(n,r){const s=It(e);let o=s.data;const i=x.from(s.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:a}=s,f,d,E,T,p;function g(){T&&T(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function y(){if(!h)return;const S=x.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),L={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:S,config:e,request:h};At(function(_){n(_),g()},function(_){r(_),g()},L),h=null}"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(y)},h.onabort=function(){h&&(r(new m("Request aborted",m.ECONNABORTED,e,h)),h=null)},h.onerror=function(A){const L=A&&A.message?A.message:"Network Error",v=new m(L,m.ERR_NETWORK,e,h);v.event=A||null,r(v),h=null},h.ontimeout=function(){let A=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const L=s.transitional||Fe;s.timeoutErrorMessage&&(A=s.timeoutErrorMessage),r(new m(A,L.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&u.forEach(i.toJSON(),function(A,L){h.setRequestHeader(L,A)}),u.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),a&&([E,p]=fe(a,!0),h.addEventListener("progress",E)),l&&h.upload&&([d,T]=fe(l),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",T)),(s.cancelToken||s.signal)&&(f=S=>{h&&(r(!S||S.type?new ne(null,e,h):S),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const N=kr(s.url);if(N&&O.protocols.indexOf(N)===-1){r(new m("Unsupported protocol "+N+":",m.ERR_BAD_REQUEST,e));return}h.send(o||null)})},Hr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(a){if(!s){s=!0,c();const f=a instanceof Error?a:this.reason;r.abort(f instanceof m?f:new ne(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,o(new m(`timeout of ${t}ms exceeded`,m.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(o):a.removeEventListener("abort",o)}),e=null)};e.forEach(a=>a.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>u.asap(c),l}},Jr=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Wr=async function*(e,t){for await(const n of Xr(e))yield*Jr(n,t)},Xr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},et=(e,t,n,r)=>{const s=Wr(e,t);let o=0,i,c=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:a,value:f}=await s.next();if(a){c(),l.close();return}let d=f.byteLength;if(n){let E=o+=d;n(E)}l.enqueue(new Uint8Array(f))}catch(a){throw c(a),a}},cancel(l){return c(l),s.return()}},{highWaterMark:2})},tt=64*1024,{isFunction:ie}=u,Kr=(({Request:e,Response:t})=>({Request:e,Response:t}))(u.global),{ReadableStream:nt,TextEncoder:rt}=u.global,st=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Yr=e=>{e=u.merge.call({skipUndefined:!0},Kr,e);const{fetch:t,Request:n,Response:r}=e,s=t?ie(t):typeof fetch=="function",o=ie(n),i=ie(r);if(!s)return!1;const c=s&&ie(nt),l=s&&(typeof rt=="function"?(p=>g=>p.encode(g))(new rt):async p=>new Uint8Array(await new n(p).arrayBuffer())),a=o&&c&&st(()=>{let p=!1;const g=new n(O.origin,{body:new nt,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!g}),f=i&&c&&st(()=>u.isReadableStream(new r("").body)),d={stream:f&&(p=>p.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!d[p]&&(d[p]=(g,h)=>{let y=g&&g[p];if(y)return y.call(g);throw new m(`Response type '${p}' is not supported`,m.ERR_NOT_SUPPORT,h)})});const E=async p=>{if(p==null)return 0;if(u.isBlob(p))return p.size;if(u.isSpecCompliantForm(p))return(await new n(O.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(u.isArrayBufferView(p)||u.isArrayBuffer(p))return p.byteLength;if(u.isURLSearchParams(p)&&(p=p+""),u.isString(p))return(await l(p)).byteLength},T=async(p,g)=>{const h=u.toFiniteNumber(p.getContentLength());return h??E(g)};return async p=>{let{url:g,method:h,data:y,signal:N,cancelToken:S,timeout:A,onDownloadProgress:L,onUploadProgress:v,responseType:_,headers:ye,withCredentials:re="same-origin",fetchOptions:ke}=It(p),Be=t||fetch;_=_?(_+"").toLowerCase():"text";let se=Hr([N,S&&S.toAbortSignal()],A),K=null;const M=se&&se.unsubscribe&&(()=>{se.unsubscribe()});let je;try{if(v&&a&&h!=="get"&&h!=="head"&&(je=await T(ye,y))!==0){let B=new n(g,{method:"POST",body:y,duplex:"half"}),J;if(u.isFormData(y)&&(J=B.headers.get("content-type"))&&ye.setContentType(J),B.body){const[be,oe]=Ge(je,fe(Qe(v)));y=et(B.body,tt,be,oe)}}u.isString(re)||(re=re?"include":"omit");const C=o&&"credentials"in n.prototype,ve={...ke,signal:se,method:h.toUpperCase(),headers:ye.normalize().toJSON(),body:y,duplex:"half",credentials:C?re:void 0};K=o&&new n(g,ve);let k=await(o?Be(K,ke):Be(g,ve));const Me=f&&(_==="stream"||_==="response");if(f&&(L||Me&&M)){const B={};["status","statusText","headers"].forEach($e=>{B[$e]=k[$e]});const J=u.toFiniteNumber(k.headers.get("content-length")),[be,oe]=L&&Ge(J,fe(Qe(L),!0))||[];k=new r(et(k.body,tt,be,()=>{oe&&oe(),M&&M()}),B)}_=_||"text";let Ut=await d[u.findKey(d,_)||"text"](k,p);return!Me&&M&&M(),await new Promise((B,J)=>{At(B,J,{data:Ut,headers:x.from(k.headers),status:k.status,statusText:k.statusText,config:p,request:K})})}catch(C){throw M&&M(),C&&C.name==="TypeError"&&/Load failed|fetch/i.test(C.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,p,K,C&&C.response),{cause:C.cause||C}):m.from(C,C&&C.code,p,K,C&&C.response)}}},Zr=new Map,Pt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,c=i,l,a,f=Zr;for(;c--;)l=o[c],a=f.get(l),a===void 0&&f.set(l,a=c?new Map:Yr(t)),f=a;return a};Pt();const Ue={http:pr,xhr:qr,fetch:{get:Pt}};u.forEach(Ue,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ot=e=>`- ${e}`,Gr=e=>u.isFunction(e)||e===null||e===!1;function Qr(e,t){e=u.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let i=0;i<n;i++){r=e[i];let c;if(s=r,!Gr(r)&&(s=Ue[(c=String(r)).toLowerCase()],s===void 0))throw new m(`Unknown adapter '${c}'`);if(s&&(u.isFunction(s)||(s=s.get(t))))break;o[c||"#"+i]=s}if(!s){const i=Object.entries(o).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let c=n?i.length>1?`since :
7
7
  `+i.map(ot).join(`
8
8
  `):" "+ot(i[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const xt={getAdapter:Qr,adapters:Ue};function Ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ne(null,e)}function it(e){return Ne(e),e.headers=x.from(e.headers),e.data=Se.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xt.getAdapter(e.adapter||te.adapter,e)(e).then(function(r){return Ne(e),r.data=Se.call(e,e.transformResponse,r),r.headers=x.from(r.headers),r},function(r){return Rt(r)||(Ne(e),r&&r.response&&(r.response.data=Se.call(e,e.transformResponse,r.response),r.response.headers=x.from(r.response.headers))),Promise.reject(r)})}const _t="1.13.5",Ee={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ee[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const at={};Ee.transitional=function(t,n,r){function s(o,i){return"[Axios v"+_t+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!at[i]&&(at[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};Ee.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Dr(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],l=c===void 0||i(c,o,e);if(l!==!0)throw new m("option "+o+" must be "+l,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const le={assertOptions:Dr,validators:Ee},F=le.validators;let q=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ye,response:new Ye}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
9
- `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=H(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&le.assertOptions(r,{silentJSONParsing:F.transitional(F.boolean),forcedJSONParsing:F.transitional(F.boolean),clarifyTimeoutError:F.transitional(F.boolean),legacyInterceptorReqResOrdering:F.transitional(F.boolean)},!1),s!=null&&(u.isFunction(s)?n.paramsSerializer={serialize:s}:le.assertOptions(s,{encode:F.function,serialize:F.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),le.assertOptions(n,{baseUrl:F.spelling("baseURL"),withXsrfToken:F.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&u.merge(o.common,o[n.method]);o&&u.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=x.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;l=l&&g.synchronous;const h=n.transitional||Fe;h&&h.legacyInterceptorReqResOrdering?c.unshift(g.fulfilled,g.rejected):c.push(g.fulfilled,g.rejected)});const a=[];this.interceptors.response.forEach(function(g){a.push(g.fulfilled,g.rejected)});let f,d=0,E;if(!l){const p=[it.bind(this),void 0];for(p.unshift(...c),p.push(...a),E=p.length,f=Promise.resolve(n);d<E;)f=f.then(p[d++],p[d++]);return f}E=c.length;let T=n;for(;d<E;){const p=c[d++],g=c[d++];try{T=p(T)}catch(h){g.call(this,h);break}}try{f=it.call(this,T)}catch(p){return Promise.reject(p)}for(d=0,E=a.length;d<E;)f=f.then(a[d++],a[d++]);return f}getUri(t){t=H(this.defaults,t);const n=Ct(t.baseURL,t.url,t.allowAbsoluteUrls);return Nt(n,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){q.prototype[t]=function(n,r){return this.request(H(r||{},{method:t,url:n,data:(r||{}).data}))}});u.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(H(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}q.prototype[t]=n(),q.prototype[t+"Form"]=n(!0)});let es=class Ft{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new ne(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ft(function(s){t=s}),cancel:t}}};function ts(e){return function(n){return e.apply(null,n)}}function ns(e){return u.isObject(e)&&e.isAxiosError===!0}const Pe={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};Object.entries(Pe).forEach(([e,t])=>{Pe[t]=e});function Lt(e){const t=new q(e),n=dt(q.prototype.request,t);return u.extend(n,q.prototype,t,{allOwnKeys:!0}),u.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Lt(H(e,s))},n}const w=Lt(te);w.Axios=q;w.CanceledError=ne;w.CancelToken=es;w.isCancel=Rt;w.VERSION=_t;w.toFormData=me;w.AxiosError=m;w.Cancel=w.CanceledError;w.all=function(t){return Promise.all(t)};w.spread=ts;w.isAxiosError=ns;w.mergeConfig=H;w.AxiosHeaders=x;w.formToJSON=e=>Ot(u.isHTMLForm(e)?new FormData(e):e);w.getAdapter=xt.getAdapter;w.HttpStatusCode=Pe;w.default=w;const{Axios:as,AxiosError:cs,CanceledError:ls,isCancel:us,CancelToken:fs,VERSION:ds,all:ps,Cancel:hs,isAxiosError:gs,spread:ms,toFormData:Es,AxiosHeaders:ys,HttpStatusCode:bs,formToJSON:ws,getAdapter:Ts,mergeConfig:Ss}=w;class rs{constructor(t){Object.defineProperty(this,"axiosInstance",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"companies",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const n=t.environment==="production"?"https://aiws.infocamere.it/aiws/rest":"https://aiwscl.infocamere.it/aiws/rest";this.axiosInstance=w.create({baseURL:n,headers:{username:t.username,password:t.password,Accept:"application/xml"},validateStatus:()=>!0}),this.companies=new Cn(this.axiosInstance)}}exports.AIWSService=rs;
9
+ `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=H(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&le.assertOptions(r,{silentJSONParsing:F.transitional(F.boolean),forcedJSONParsing:F.transitional(F.boolean),clarifyTimeoutError:F.transitional(F.boolean),legacyInterceptorReqResOrdering:F.transitional(F.boolean)},!1),s!=null&&(u.isFunction(s)?n.paramsSerializer={serialize:s}:le.assertOptions(s,{encode:F.function,serialize:F.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),le.assertOptions(n,{baseUrl:F.spelling("baseURL"),withXsrfToken:F.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&u.merge(o.common,o[n.method]);o&&u.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=x.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;l=l&&g.synchronous;const h=n.transitional||Fe;h&&h.legacyInterceptorReqResOrdering?c.unshift(g.fulfilled,g.rejected):c.push(g.fulfilled,g.rejected)});const a=[];this.interceptors.response.forEach(function(g){a.push(g.fulfilled,g.rejected)});let f,d=0,E;if(!l){const p=[it.bind(this),void 0];for(p.unshift(...c),p.push(...a),E=p.length,f=Promise.resolve(n);d<E;)f=f.then(p[d++],p[d++]);return f}E=c.length;let T=n;for(;d<E;){const p=c[d++],g=c[d++];try{T=p(T)}catch(h){g.call(this,h);break}}try{f=it.call(this,T)}catch(p){return Promise.reject(p)}for(d=0,E=a.length;d<E;)f=f.then(a[d++],a[d++]);return f}getUri(t){t=H(this.defaults,t);const n=Ct(t.baseURL,t.url,t.allowAbsoluteUrls);return Nt(n,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){q.prototype[t]=function(n,r){return this.request(H(r||{},{method:t,url:n,data:(r||{}).data}))}});u.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(H(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}q.prototype[t]=n(),q.prototype[t+"Form"]=n(!0)});let es=class Ft{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new ne(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ft(function(s){t=s}),cancel:t}}};function ts(e){return function(n){return e.apply(null,n)}}function ns(e){return u.isObject(e)&&e.isAxiosError===!0}const Pe={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};Object.entries(Pe).forEach(([e,t])=>{Pe[t]=e});function Lt(e){const t=new q(e),n=dt(q.prototype.request,t);return u.extend(n,q.prototype,t,{allOwnKeys:!0}),u.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Lt(H(e,s))},n}const w=Lt(te);w.Axios=q;w.CanceledError=ne;w.CancelToken=es;w.isCancel=Rt;w.VERSION=_t;w.toFormData=me;w.AxiosError=m;w.Cancel=w.CanceledError;w.all=function(t){return Promise.all(t)};w.spread=ts;w.isAxiosError=ns;w.mergeConfig=H;w.AxiosHeaders=x;w.formToJSON=e=>Ot(u.isHTMLForm(e)?new FormData(e):e);w.getAdapter=xt.getAdapter;w.HttpStatusCode=Pe;w.default=w;const{Axios:as,AxiosError:cs,CanceledError:ls,isCancel:us,CancelToken:fs,VERSION:ds,all:ps,Cancel:hs,isAxiosError:gs,spread:ms,toFormData:Es,AxiosHeaders:ys,HttpStatusCode:bs,formToJSON:ws,getAdapter:Ts,mergeConfig:Ss}=w;class rs{constructor(t){Object.defineProperty(this,"axiosInstance",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"companyService",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const n=t.environment==="production"?"https://aiws.infocamere.it/aiws/rest":"https://aiwscl.infocamere.it/aiws/rest";this.axiosInstance=w.create({baseURL:n,headers:{username:t.username,password:t.password,Accept:"application/xml"},validateStatus:()=>!0}),this.companyService=new Cn(this.axiosInstance)}}exports.AIWSClient=rs;
10
10
  //# sourceMappingURL=cciaa-service.cjs.map