@sovity.de/edc-client 13.0.3 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(n,A){typeof exports=="object"&&typeof module<"u"?A(exports):typeof define=="function"&&define.amd?define(["exports"],A):(n=typeof globalThis<"u"?globalThis:n||self,A(n["sovity-edc-client"]={}))})(this,function(n){"use strict";var Fd=Object.defineProperty;var Ed=(n,A,L)=>A in n?Fd(n,A,{enumerable:!0,configurable:!0,writable:!0,value:L}):n[A]=L;var E=(n,A,L)=>Ed(n,typeof A!="symbol"?A+"":A,L);const A="https://my-connector/api/management".replace(/\/+$/,"");class L{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:A}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||st}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const Rt=new L,ot=class ot{constructor(t=Rt){E(this,"middleware");E(this,"fetchApi",async(t,r)=>{let i={url:t,init:r};for(const o of this.middleware)o.pre&&(i=await o.pre({fetch:this.fetchApi,...i})||i);let a;try{a=await(this.configuration.fetchApi||fetch)(i.url,i.init)}catch(o){for(const s of this.middleware)s.onError&&(a=await s.onError({fetch:this.fetchApi,url:i.url,init:i.init,error:o,response:a?a.clone():void 0})||a);if(a===void 0)throw o instanceof Error?new Ft(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(a=await o.post({fetch:this.fetchApi,url:i.url,init:i.init,response:a.clone()})||a);return a});this.configuration=t,this.middleware=t.middleware}withMiddleware(...t){const r=this.clone();return r.middleware=r.middleware.concat(...t),r}withPreMiddleware(...t){const r=t.map(i=>({pre:i}));return this.withMiddleware(...r)}withPostMiddleware(...t){const r=t.map(i=>({post:i}));return this.withMiddleware(...r)}isJsonMime(t){return t?ot.jsonRegex.test(t):!1}async request(t,r){const{url:i,init:a}=await this.createFetchParams(t,r),o=await this.fetchApi(i,a);if(o&&o.status>=200&&o.status<300)return o;throw new vt(o,"Response returned an error code")}async createFetchParams(t,r){let i=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(i+="?"+this.configuration.queryParamsStringify(t.query));const a=Object.assign({},this.configuration.headers,t.headers);Object.keys(a).forEach(O=>a[O]===void 0?delete a[O]:{});const o=typeof r=="function"?r:async()=>r,s={method:t.method,headers:a,body:t.body,credentials:this.configuration.credentials},c={...s,...await o({init:s,context:t})};let p;Jo(c.body)||c.body instanceof URLSearchParams||Po(c.body)?p=c.body:this.isJsonMime(a["Content-Type"])?p=JSON.stringify(c.body):p=c.body;const d={...c,body:p};return{url:i,init:d}}clone(){const t=this.constructor,r=new t(this.configuration);return r.middleware=this.middleware.slice(),r}};E(ot,"jsonRegex",new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"));let G=ot;function Po(e){return typeof Blob<"u"&&e instanceof Blob}function Jo(e){return typeof FormData<"u"&&e instanceof FormData}class vt extends Error{constructor(r,i){super(i);E(this,"name","ResponseError");this.response=r}}class Ft extends Error{constructor(r,i){super(i);E(this,"name","FetchError");this.cause=r}}class C extends Error{constructor(r,i){super(i);E(this,"name","RequiredError");this.field=r}}const wo={csv:",",ssv:" ",tsv:" ",pipes:"|"};function st(e,t=""){return Object.keys(e).map(r=>Et(r,e[r],t)).filter(r=>r.length>0).join("&")}function Et(e,t,r=""){const i=r+(r.length?`[${e}]`:e);if(t instanceof Array){const a=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(i)}=`);return`${encodeURIComponent(i)}=${a}`}if(t instanceof Set){const a=Array.from(t);return Et(e,a,r)}return t instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?st(t,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`}function Ao(e,t){const r=e[t];return r!=null}function Io(e,t){return Object.keys(e).reduce((r,i)=>({...r,[i]:t(e[i])}),{})}function bo(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class h{constructor(t,r=i=>i){this.raw=t,this.transformer=r}async value(){return this.transformer(await this.raw.json())}}class kt{constructor(t){this.raw=t}async value(){}}class Uo{constructor(t){this.raw=t}async value(){return await this.raw.blob()}}class qt{constructor(t){this.raw=t}async value(){return await this.raw.text()}}const Se={Like:"LIKE",Eq:"EQ",In:"IN"};function _o(e){for(const t in Se)if(Object.prototype.hasOwnProperty.call(Se,t)&&Se[t]===e)return!0;return!1}function Lt(e){return Mt(e)}function Mt(e,t){return e}function Ro(e){return e}function vo(e,t){return e}function Fo(e){return!(!("assetPropertyPath"in e)||e.assetPropertyPath===void 0||!("operator"in e)||e.operator===void 0)}function ct(e){return Ht(e)}function Ht(e,t){return e==null?e:{assetPropertyPath:e.assetPropertyPath,operator:Lt(e.operator),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function ut(e){return Zt(e,!1)}function Zt(e,t=!1){return e==null?e:{assetPropertyPath:e.assetPropertyPath,operator:e.operator,value:e.value,valueList:e.valueList}}const Oe={Live:"LIVE",OnRequest:"ON_REQUEST"};function Eo(e){for(const t in Oe)if(Object.prototype.hasOwnProperty.call(Oe,t)&&Oe[t]===e)return!0;return!1}function Vt(e){return Bt(e)}function Bt(e,t){return e}function ko(e){return e}function qo(e,t){return e}function Lo(e){return!(!("dataSourceAvailability"in e)||e.dataSourceAvailability===void 0||!("assetId"in e)||e.assetId===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0||!("title"in e)||e.title===void 0||!("creatorOrganizationName"in e)||e.creatorOrganizationName===void 0||!("isOwnConnector"in e)||e.isOwnConnector===void 0)}function K(e){return $t(e)}function $t(e,t){return e==null?e:{dataSourceAvailability:Vt(e.dataSourceAvailability),assetId:e.assetId,connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,title:e.title,creatorOrganizationName:e.creatorOrganizationName,onRequestContactEmail:e.onRequestContactEmail==null?void 0:e.onRequestContactEmail,onRequestContactEmailSubject:e.onRequestContactEmailSubject==null?void 0:e.onRequestContactEmailSubject,language:e.language==null?void 0:e.language,description:e.description==null?void 0:e.description,descriptionShortText:e.descriptionShortText==null?void 0:e.descriptionShortText,isOwnConnector:e.isOwnConnector,publisherHomepage:e.publisherHomepage==null?void 0:e.publisherHomepage,licenseUrl:e.licenseUrl==null?void 0:e.licenseUrl,version:e.version==null?void 0:e.version,keywords:e.keywords==null?void 0:e.keywords,mediaType:e.mediaType==null?void 0:e.mediaType,landingPageUrl:e.landingPageUrl==null?void 0:e.landingPageUrl,httpDatasourceHintsProxyMethod:e.httpDatasourceHintsProxyMethod==null?void 0:e.httpDatasourceHintsProxyMethod,httpDatasourceHintsProxyPath:e.httpDatasourceHintsProxyPath==null?void 0:e.httpDatasourceHintsProxyPath,httpDatasourceHintsProxyQueryParams:e.httpDatasourceHintsProxyQueryParams==null?void 0:e.httpDatasourceHintsProxyQueryParams,httpDatasourceHintsProxyBody:e.httpDatasourceHintsProxyBody==null?void 0:e.httpDatasourceHintsProxyBody,dataModel:e.dataModel==null?void 0:e.dataModel,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),assetJsonLd:e.assetJsonLd==null?void 0:e.assetJsonLd,customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function j(e){return zt(e,!1)}function zt(e,t=!1){return e==null?e:{dataSourceAvailability:e.dataSourceAvailability,assetId:e.assetId,connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,title:e.title,creatorOrganizationName:e.creatorOrganizationName,onRequestContactEmail:e.onRequestContactEmail,onRequestContactEmailSubject:e.onRequestContactEmailSubject,language:e.language,description:e.description,descriptionShortText:e.descriptionShortText,isOwnConnector:e.isOwnConnector,publisherHomepage:e.publisherHomepage,licenseUrl:e.licenseUrl,version:e.version,keywords:e.keywords,mediaType:e.mediaType,landingPageUrl:e.landingPageUrl,httpDatasourceHintsProxyMethod:e.httpDatasourceHintsProxyMethod,httpDatasourceHintsProxyPath:e.httpDatasourceHintsProxyPath,httpDatasourceHintsProxyQueryParams:e.httpDatasourceHintsProxyQueryParams,httpDatasourceHintsProxyBody:e.httpDatasourceHintsProxyBody,dataModel:e.dataModel,sovereignLegalName:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),assetJsonLd:e.assetJsonLd,customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function Mo(e){return!(!("assets"in e)||e.assets===void 0)}function Qt(e){return Gt(e)}function Gt(e,t){return e==null?e:{assets:e.assets.map(K)}}function Ho(e){return Kt(e,!1)}function Kt(e,t=!1){return e==null?e:{assets:e.assets.map(j)}}function Zo(e){return!(!("buildDate"in e)||e.buildDate===void 0||!("buildVersion"in e)||e.buildVersion===void 0)}function Wt(e){return Yt(e)}function Yt(e,t){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}function Vo(e){return Xt(e,!1)}function Xt(e,t=!1){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}const Ne={ContractNegotiationFinalized:"CONTRACT_NEGOTIATION_FINALIZED",ContractNegotiationTerminated:"CONTRACT_NEGOTIATION_TERMINATED",TransferProcessStarted:"TRANSFER_PROCESS_STARTED",TransferProcessTerminated:"TRANSFER_PROCESS_TERMINATED",TransferProcessCompleted:"TRANSFER_PROCESS_COMPLETED"};function Bo(e){for(const t in Ne)if(Object.prototype.hasOwnProperty.call(Ne,t)&&Ne[t]===e)return!0;return!1}function xt(e){return jt(e)}function jt(e,t){return e}function er(e){return e}function $o(e,t){return e}function zo(e){return!(!("url"in e)||e.url===void 0||!("events"in e)||e.events===void 0)}function Ce(e){return tr(e)}function tr(e,t){return e==null?e:{url:e.url,events:e.events.map(xt),authHeaderName:e.authHeaderName==null?void 0:e.authHeaderName,authHeaderVaultSecretName:e.authHeaderVaultSecretName==null?void 0:e.authHeaderVaultSecretName}}function De(e){return rr(e,!1)}function rr(e,t=!1){return e==null?e:{url:e.url,events:e.events.map(er),authHeaderName:e.authHeaderName,authHeaderVaultSecretName:e.authHeaderVaultSecretName}}const Pe={Value:"VALUE",ValueList:"VALUE_LIST"};function Qo(e){for(const t in Pe)if(Object.prototype.hasOwnProperty.call(Pe,t)&&Pe[t]===e)return!0;return!1}function nr(e){return ir(e)}function ir(e,t){return e}function Go(e){return e}function Ko(e,t){return e}function Wo(e){return!0}function ar(e){return or(e)}function or(e,t){return e==null?e:{type:e.type==null?void 0:nr(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function sr(e){return cr(e,!1)}function cr(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const Je={Like:"LIKE",Eq:"EQ",In:"IN"};function Yo(e){for(const t in Je)if(Object.prototype.hasOwnProperty.call(Je,t)&&Je[t]===e)return!0;return!1}function ur(e){return dr(e)}function dr(e,t){return e}function Xo(e){return e}function xo(e,t){return e}function jo(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function lr(e){return fr(e)}function fr(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:ur(e.operator),operandRight:ar(e.operandRight)}}function pr(e){return mr(e,!1)}function mr(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:sr(e.operandRight)}}function es(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function ts(e){return yr(e)}function yr(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId==null?void 0:e.participantId,limit:e.limit==null?void 0:e.limit,offset:e.offset==null?void 0:e.offset,filterExpressions:e.filterExpressions==null?void 0:e.filterExpressions.map(lr)}}function gr(e){return hr(e,!1)}function hr(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,limit:e.limit,offset:e.offset,filterExpressions:e.filterExpressions==null?void 0:e.filterExpressions.map(pr)}}const we={Asc:"ASC",Desc:"DESC"};function rs(e){for(const t in we)if(Object.prototype.hasOwnProperty.call(we,t)&&we[t]===e)return!0;return!1}function Tr(e){return Sr(e)}function Sr(e,t){return e}function ns(e){return e}function is(e,t){return e}function as(e){return!(!("assetPropertyPath"in e)||e.assetPropertyPath===void 0)}function Or(e){return Nr(e)}function Nr(e,t){return e==null?e:{assetPropertyPath:e.assetPropertyPath,direction:e.direction==null?void 0:Tr(e.direction)}}function Cr(e){return Dr(e,!1)}function Dr(e,t=!1){return e==null?e:{assetPropertyPath:e.assetPropertyPath,direction:e.direction}}function os(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0)}function ss(e){return Pr(e)}function Pr(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter==null?void 0:e.filter.map(ct),limit:e.limit==null?void 0:e.limit,offset:e.offset==null?void 0:e.offset,sortBy:e.sortBy==null?void 0:Or(e.sortBy)}}function Jr(e){return wr(e,!1)}function wr(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter==null?void 0:e.filter.map(ut),limit:e.limit,offset:e.offset,sortBy:Cr(e.sortBy)}}function cs(e){return!(!("numActiveConsumingContractAgreements"in e)||e.numActiveConsumingContractAgreements===void 0)}function Ar(e){return Ir(e)}function Ir(e,t){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements==null?void 0:e.maxActiveConsumingContractAgreements}}function us(e){return br(e,!1)}function br(e,t=!1){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements}}const Ae={Consuming:"CONSUMING",Providing:"PROVIDING"};function ds(e){for(const t in Ae)if(Object.prototype.hasOwnProperty.call(Ae,t)&&Ae[t]===e)return!0;return!1}function dt(e){return Ur(e)}function Ur(e,t){return e}function ls(e){return e}function fs(e,t){return e}const Ie={Self:"SELF",Counterparty:"COUNTERPARTY"};function ps(e){for(const t in Ie)if(Object.prototype.hasOwnProperty.call(Ie,t)&&Ie[t]===e)return!0;return!1}function _r(e){return Rr(e)}function Rr(e,t){return e}function ms(e){return e}function ys(e,t){return e}function gs(e){return!(!("terminatedAt"in e)||e.terminatedAt===void 0||!("reason"in e)||e.reason===void 0||!("detail"in e)||e.detail===void 0||!("terminatedBy"in e)||e.terminatedBy===void 0)}function lt(e){return vr(e)}function vr(e,t){return e==null?e:{terminatedAt:new Date(e.terminatedAt),reason:e.reason,detail:e.detail,terminatedBy:_r(e.terminatedBy)}}function ft(e){return Fr(e,!1)}function Fr(e,t=!1){return e==null?e:{terminatedAt:e.terminatedAt.toISOString(),reason:e.reason,detail:e.detail,terminatedBy:e.terminatedBy}}const be={Running:"RUNNING",Ok:"OK",Error:"ERROR"};function hs(e){for(const t in be)if(Object.prototype.hasOwnProperty.call(be,t)&&be[t]===e)return!0;return!1}function Er(e){return kr(e)}function kr(e,t){return e}function Ts(e){return e}function Ss(e,t){return e}function Os(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function Ue(e){return qr(e)}function qr(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:Er(e.simplifiedState)}}function _e(e){return Lr(e,!1)}function Lr(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function Ns(e){return!(!("transferProcessId"in e)||e.transferProcessId===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0||!("state"in e)||e.state===void 0)}function Mr(e){return Hr(e)}function Hr(e,t){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:new Date(e.lastUpdatedDate),state:Ue(e.state),errorMessage:e.errorMessage==null?void 0:e.errorMessage}}function Zr(e){return Vr(e,!1)}function Vr(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:e.lastUpdatedDate.toISOString(),state:_e(e.state),errorMessage:e.errorMessage}}const Re={Ongoing:"ONGOING",Terminated:"TERMINATED"};function Cs(e){for(const t in Re)if(Object.prototype.hasOwnProperty.call(Re,t)&&Re[t]===e)return!0;return!1}function pt(e){return Br(e)}function Br(e,t){return e}function Ds(e){return e}function Ps(e,t){return e}const ve={Eq:"EQ",Neq:"NEQ",Gt:"GT",Geq:"GEQ",Lt:"LT",Leq:"LEQ",In:"IN",HasPart:"HAS_PART",IsA:"IS_A",IsAllOf:"IS_ALL_OF",IsAnyOf:"IS_ANY_OF",IsNoneOf:"IS_NONE_OF"};function Js(e){for(const t in ve)if(Object.prototype.hasOwnProperty.call(ve,t)&&ve[t]===e)return!0;return!1}function $r(e){return zr(e)}function zr(e,t){return e}function ws(e){return e}function As(e,t){return e}const Fe={String:"STRING",StringList:"STRING_LIST",Json:"JSON"};function Is(e){for(const t in Fe)if(Object.prototype.hasOwnProperty.call(Fe,t)&&Fe[t]===e)return!0;return!1}function Qr(e){return Gr(e)}function Gr(e,t){return e}function bs(e){return e}function Us(e,t){return e}function _s(e){return!(!("type"in e)||e.type===void 0)}function Kr(e){return Wr(e)}function Wr(e,t){return e==null?e:{type:Qr(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Yr(e){return Xr(e,!1)}function Xr(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}function Rs(e){return!(!("left"in e)||e.left===void 0||!("operator"in e)||e.operator===void 0||!("right"in e)||e.right===void 0)}function mt(e){return xr(e)}function xr(e,t){return e==null?e:{left:e.left,operator:$r(e.operator),right:Kr(e.right)}}function yt(e){return jr(e,!1)}function jr(e,t=!1){return e==null?e:{left:e.left,operator:e.operator,right:Yr(e.right)}}const Ee={Empty:"EMPTY",Constraint:"CONSTRAINT",And:"AND",Or:"OR",Xone:"XONE"};function vs(e){for(const t in Ee)if(Object.prototype.hasOwnProperty.call(Ee,t)&&Ee[t]===e)return!0;return!1}function en(e){return tn(e)}function tn(e,t){return e}function Fs(e){return e}function Es(e,t){return e}function ks(e){return!(!("type"in e)||e.type===void 0)}function ee(e){return rn(e)}function rn(e,t){return e==null?e:{type:en(e.type),expressions:e.expressions==null?void 0:e.expressions.map(ee),constraint:e.constraint==null?void 0:mt(e.constraint)}}function te(e){return nn(e,!1)}function nn(e,t=!1){return e==null?e:{type:e.type,expressions:e.expressions==null?void 0:e.expressions.map(te),constraint:yt(e.constraint)}}function qs(e){return!(!("policyJsonLd"in e)||e.policyJsonLd===void 0||!("errors"in e)||e.errors===void 0)}function re(e){return an(e)}function an(e,t){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:e.expression==null?void 0:ee(e.expression),errors:e.errors}}function ne(e){return on(e,!1)}function on(e,t=!1){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:te(e.expression),errors:e.errors}}function Ls(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("direction"in e)||e.direction===void 0||!("counterPartyAddress"in e)||e.counterPartyAddress===void 0||!("counterPartyId"in e)||e.counterPartyId===void 0||!("contractSigningDate"in e)||e.contractSigningDate===void 0||!("asset"in e)||e.asset===void 0||!("contractPolicy"in e)||e.contractPolicy===void 0||!("transferProcesses"in e)||e.transferProcesses===void 0||!("terminationStatus"in e)||e.terminationStatus===void 0)}function gt(e){return sn(e)}function sn(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,contractNegotiationId:e.contractNegotiationId,direction:dt(e.direction),counterPartyAddress:e.counterPartyAddress,counterPartyId:e.counterPartyId,contractSigningDate:new Date(e.contractSigningDate),asset:K(e.asset),contractPolicy:re(e.contractPolicy),transferProcesses:e.transferProcesses.map(Mr),terminationStatus:pt(e.terminationStatus),terminationInformation:e.terminationInformation==null?void 0:lt(e.terminationInformation)}}function cn(e){return un(e,!1)}function un(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,contractNegotiationId:e.contractNegotiationId,direction:e.direction,counterPartyAddress:e.counterPartyAddress,counterPartyId:e.counterPartyId,contractSigningDate:e.contractSigningDate.toISOString(),asset:j(e.asset),contractPolicy:ne(e.contractPolicy),transferProcesses:e.transferProcesses.map(Zr),terminationStatus:e.terminationStatus,terminationInformation:ft(e.terminationInformation)}}function Ms(e){return!(!("contractAgreements"in e)||e.contractAgreements===void 0)}function dn(e){return ln(e)}function ln(e,t){return e==null?e:{contractAgreements:e.contractAgreements.map(gt)}}function Hs(e){return fn(e,!1)}function fn(e,t=!1){return e==null?e:{contractAgreements:e.contractAgreements.map(cn)}}function Zs(e){return!0}function Vs(e){return pn(e)}function pn(e,t){return e==null?e:{terminationStatus:e.terminationStatus==null?void 0:pt(e.terminationStatus)}}function mn(e){return yn(e,!1)}function yn(e,t=!1){return e==null?e:{terminationStatus:e.terminationStatus}}const ke={Value:"VALUE",ValueList:"VALUE_LIST"};function Bs(e){for(const t in ke)if(Object.prototype.hasOwnProperty.call(ke,t)&&ke[t]===e)return!0;return!1}function gn(e){return hn(e)}function hn(e,t){return e}function $s(e){return e}function zs(e,t){return e}function Qs(e){return!0}function Tn(e){return Sn(e)}function Sn(e,t){return e==null?e:{type:e.type==null?void 0:gn(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function On(e){return Nn(e,!1)}function Nn(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const qe={Eq:"EQ",In:"IN",Like:"LIKE"};function Gs(e){for(const t in qe)if(Object.prototype.hasOwnProperty.call(qe,t)&&qe[t]===e)return!0;return!1}function Cn(e){return Dn(e)}function Dn(e,t){return e}function Ks(e){return e}function Ws(e,t){return e}function Ys(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function ht(e){return Pn(e)}function Pn(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:Cn(e.operator),operandRight:Tn(e.operandRight)}}function Tt(e){return Jn(e,!1)}function Jn(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:On(e.operandRight)}}function Xs(e){return!(!("contractDefinitionId"in e)||e.contractDefinitionId===void 0||!("accessPolicyId"in e)||e.accessPolicyId===void 0||!("contractPolicyId"in e)||e.contractPolicyId===void 0||!("assetSelector"in e)||e.assetSelector===void 0)}function wn(e){return An(e)}function An(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(ht)}}function In(e){return bn(e,!1)}function bn(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(Tt)}}function xs(e){return!(!("contractDefinitions"in e)||e.contractDefinitions===void 0)}function Un(e){return _n(e)}function _n(e,t){return e==null?e:{contractDefinitions:e.contractDefinitions.map(wn)}}function js(e){return Rn(e,!1)}function Rn(e,t=!1){return e==null?e:{contractDefinitions:e.contractDefinitions.map(In)}}function ec(e){return!(!("contractDefinitionId"in e)||e.contractDefinitionId===void 0||!("contractPolicyId"in e)||e.contractPolicyId===void 0||!("accessPolicyId"in e)||e.accessPolicyId===void 0||!("assetSelector"in e)||e.assetSelector===void 0)}function tc(e){return vn(e)}function vn(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(ht)}}function Fn(e){return En(e,!1)}function En(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(Tt)}}function rc(e){return!(!("counterPartyId"in e)||e.counterPartyId===void 0||!("counterPartyAddress"in e)||e.counterPartyAddress===void 0||!("contractOfferId"in e)||e.contractOfferId===void 0||!("policyJsonLd"in e)||e.policyJsonLd===void 0||!("assetId"in e)||e.assetId===void 0)}function nc(e){return kn(e)}function kn(e,t){return e==null?e:{counterPartyId:e.counterPartyId,counterPartyAddress:e.counterPartyAddress,contractOfferId:e.contractOfferId,policyJsonLd:e.policyJsonLd,assetId:e.assetId,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Ce)}}function qn(e){return Ln(e,!1)}function Ln(e,t=!1){return e==null?e:{counterPartyId:e.counterPartyId,counterPartyAddress:e.counterPartyAddress,contractOfferId:e.contractOfferId,policyJsonLd:e.policyJsonLd,assetId:e.assetId,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(De)}}const Le={InProgress:"IN_PROGRESS",Agreed:"AGREED",Terminated:"TERMINATED"};function ic(e){for(const t in Le)if(Object.prototype.hasOwnProperty.call(Le,t)&&Le[t]===e)return!0;return!1}function Mn(e){return Hn(e)}function Hn(e,t){return e}function ac(e){return e}function oc(e,t){return e}function sc(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function Me(e){return Zn(e)}function Zn(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:Mn(e.simplifiedState)}}function He(e){return Vn(e,!1)}function Vn(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function cc(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("state"in e)||e.state===void 0||!("stateChangedAt"in e)||e.stateChangedAt===void 0)}function Bn(e){return $n(e)}function $n(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,state:Me(e.state),contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,contractAgreementTerminationInfo:e.contractAgreementTerminationInfo==null?void 0:lt(e.contractAgreementTerminationInfo),stateChangedAt:new Date(e.stateChangedAt)}}function uc(e){return zn(e,!1)}function zn(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,state:He(e.state),contractAgreementId:e.contractAgreementId,contractAgreementTerminationInfo:ft(e.contractAgreementTerminationInfo),stateChangedAt:e.stateChangedAt.toISOString()}}function dc(e){return!(!("detail"in e)||e.detail===void 0||!("reason"in e)||e.reason===void 0)}function lc(e){return Qn(e)}function Qn(e,t){return e==null?e:{detail:e.detail,reason:e.reason}}function Gn(e){return Kn(e,!1)}function Kn(e,t=!1){return e==null?e:{detail:e.detail,reason:e.reason}}function fc(e){return!(!("myDid"in e)||e.myDid===void 0||!("walletTokenUrl"in e)||e.walletTokenUrl===void 0||!("trustedVcIssuer"in e)||e.trustedVcIssuer===void 0||!("bdrsUrl"in e)||e.bdrsUrl===void 0||!("dimUrl"in e)||e.dimUrl===void 0)}function Wn(e){return Yn(e)}function Yn(e,t){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function Xn(e){return xn(e,!1)}function xn(e,t=!1){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function pc(e){return!(!("tokenUrl"in e)||e.tokenUrl===void 0||!("jwksUrl"in e)||e.jwksUrl===void 0)}function jn(e){return ei(e)}function ei(e,t){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function ti(e){return ri(e,!1)}function ri(e,t=!1){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function mc(e){return!(!("numTotal"in e)||e.numTotal===void 0||!("numRunning"in e)||e.numRunning===void 0||!("numOk"in e)||e.numOk===void 0||!("numError"in e)||e.numError===void 0)}function St(e){return ni(e)}function ni(e,t){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function Ot(e){return ii(e,!1)}function ii(e,t=!1){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function yc(e){return!(!("numAssets"in e)||e.numAssets===void 0||!("numPolicies"in e)||e.numPolicies===void 0||!("numContractDefinitions"in e)||e.numContractDefinitions===void 0||!("numContractAgreementsConsuming"in e)||e.numContractAgreementsConsuming===void 0||!("numContractAgreementsProviding"in e)||e.numContractAgreementsProviding===void 0||!("transferProcessesConsuming"in e)||e.transferProcessesConsuming===void 0||!("transferProcessesProviding"in e)||e.transferProcessesProviding===void 0||!("managementApiUrlShownInDashboard"in e)||e.managementApiUrlShownInDashboard===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("connectorParticipantId"in e)||e.connectorParticipantId===void 0||!("connectorTitle"in e)||e.connectorTitle===void 0||!("connectorDescription"in e)||e.connectorDescription===void 0||!("connectorCuratorUrl"in e)||e.connectorCuratorUrl===void 0||!("connectorCuratorName"in e)||e.connectorCuratorName===void 0||!("connectorMaintainerUrl"in e)||e.connectorMaintainerUrl===void 0||!("connectorMaintainerName"in e)||e.connectorMaintainerName===void 0)}function ai(e){return oi(e)}function oi(e,t){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:St(e.transferProcessesConsuming),transferProcessesProviding:St(e.transferProcessesProviding),managementApiUrlShownInDashboard:e.managementApiUrlShownInDashboard,connectorEndpoint:e.connectorEndpoint,connectorParticipantId:e.connectorParticipantId,connectorTitle:e.connectorTitle,connectorDescription:e.connectorDescription,connectorCuratorUrl:e.connectorCuratorUrl,connectorCuratorName:e.connectorCuratorName,connectorMaintainerUrl:e.connectorMaintainerUrl,connectorMaintainerName:e.connectorMaintainerName,connectorDapsConfig:e.connectorDapsConfig==null?void 0:jn(e.connectorDapsConfig),connectorCxDidConfig:e.connectorCxDidConfig==null?void 0:Wn(e.connectorCxDidConfig)}}function gc(e){return si(e,!1)}function si(e,t=!1){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:Ot(e.transferProcessesConsuming),transferProcessesProviding:Ot(e.transferProcessesProviding),managementApiUrlShownInDashboard:e.managementApiUrlShownInDashboard,connectorEndpoint:e.connectorEndpoint,connectorParticipantId:e.connectorParticipantId,connectorTitle:e.connectorTitle,connectorDescription:e.connectorDescription,connectorCuratorUrl:e.connectorCuratorUrl,connectorCuratorName:e.connectorCuratorName,connectorMaintainerUrl:e.connectorMaintainerUrl,connectorMaintainerName:e.connectorMaintainerName,connectorDapsConfig:ti(e.connectorDapsConfig),connectorCxDidConfig:Xn(e.connectorCxDidConfig)}}const Ze={DontPublish:"DONT_PUBLISH",PublishUnrestricted:"PUBLISH_UNRESTRICTED",PublishRestricted:"PUBLISH_RESTRICTED"};function hc(e){for(const t in Ze)if(Object.prototype.hasOwnProperty.call(Ze,t)&&Ze[t]===e)return!0;return!1}function ci(e){return ui(e)}function ui(e,t){return e}function Tc(e){return e}function Sc(e,t){return e}const Ve={HttpData:"HTTP_DATA",OnRequest:"ON_REQUEST",Custom:"CUSTOM"};function Oc(e){for(const t in Ve)if(Object.prototype.hasOwnProperty.call(Ve,t)&&Ve[t]===e)return!0;return!1}function di(e){return li(e)}function li(e,t){return e}function Nc(e){return e}function Cc(e,t){return e}function Dc(e){return!0}function Nt(e){return fi(e)}function fi(e,t){return e==null?e:{secretName:e.secretName==null?void 0:e.secretName,rawValue:e.rawValue==null?void 0:e.rawValue}}function Ct(e){return pi(e,!1)}function pi(e,t=!1){return e==null?e:{secretName:e.secretName,rawValue:e.rawValue}}const Be={Get:"GET",Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Options:"OPTIONS"};function Pc(e){for(const t in Be)if(Object.prototype.hasOwnProperty.call(Be,t)&&Be[t]===e)return!0;return!1}function mi(e){return yi(e)}function yi(e,t){return e}function Jc(e){return e}function wc(e,t){return e}function Ac(e){return!(!("baseUrl"in e)||e.baseUrl===void 0)}function gi(e){return hi(e)}function hi(e,t){return e==null?e:{method:e.method==null?void 0:mi(e.method),baseUrl:e.baseUrl,queryString:e.queryString==null?void 0:e.queryString,authHeaderName:e.authHeaderName==null?void 0:e.authHeaderName,authHeaderValue:e.authHeaderValue==null?void 0:Nt(e.authHeaderValue),headers:e.headers==null?void 0:e.headers,enableMethodParameterization:e.enableMethodParameterization==null?void 0:e.enableMethodParameterization,enablePathParameterization:e.enablePathParameterization==null?void 0:e.enablePathParameterization,enableQueryParameterization:e.enableQueryParameterization==null?void 0:e.enableQueryParameterization,enableBodyParameterization:e.enableBodyParameterization==null?void 0:e.enableBodyParameterization}}function Ti(e){return Si(e,!1)}function Si(e,t=!1){return e==null?e:{method:e.method,baseUrl:e.baseUrl,queryString:e.queryString,authHeaderName:e.authHeaderName,authHeaderValue:Ct(e.authHeaderValue),headers:e.headers,enableMethodParameterization:e.enableMethodParameterization,enablePathParameterization:e.enablePathParameterization,enableQueryParameterization:e.enableQueryParameterization,enableBodyParameterization:e.enableBodyParameterization}}function Ic(e){return!(!("contactEmail"in e)||e.contactEmail===void 0||!("contactPreferredEmailSubject"in e)||e.contactPreferredEmailSubject===void 0)}function Oi(e){return Ni(e)}function Ni(e,t){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function Ci(e){return Di(e,!1)}function Di(e,t=!1){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function bc(e){return!(!("type"in e)||e.type===void 0)}function Dt(e){return Pi(e)}function Pi(e,t){return e==null?e:{type:di(e.type),httpData:e.httpData==null?void 0:gi(e.httpData),onRequest:e.onRequest==null?void 0:Oi(e.onRequest),customProperties:e.customProperties==null?void 0:e.customProperties}}function Pt(e){return Ji(e,!1)}function Ji(e,t=!1){return e==null?e:{type:e.type,httpData:Ti(e.httpData),onRequest:Ci(e.onRequest),customProperties:e.customProperties}}function Uc(e){return!(!("dataSource"in e)||e.dataSource===void 0||!("id"in e)||e.id===void 0)}function wi(e){return Ai(e)}function Ai(e,t){return e==null?e:{dataSource:Dt(e.dataSource),id:e.id,title:e.title==null?void 0:e.title,language:e.language==null?void 0:e.language,description:e.description==null?void 0:e.description,publisherHomepage:e.publisherHomepage==null?void 0:e.publisherHomepage,licenseUrl:e.licenseUrl==null?void 0:e.licenseUrl,version:e.version==null?void 0:e.version,keywords:e.keywords==null?void 0:e.keywords,mediaType:e.mediaType==null?void 0:e.mediaType,landingPageUrl:e.landingPageUrl==null?void 0:e.landingPageUrl,dataModel:e.dataModel==null?void 0:e.dataModel,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function $e(e){return Ii(e,!1)}function Ii(e,t=!1){return e==null?e:{dataSource:Pt(e.dataSource),id:e.id,title:e.title,language:e.language,description:e.description,publisherHomepage:e.publisherHomepage,licenseUrl:e.licenseUrl,version:e.version,keywords:e.keywords,mediaType:e.mediaType,landingPageUrl:e.landingPageUrl,dataModel:e.dataModel,sovereignLegalName:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function _c(e){return!(!("asset"in e)||e.asset===void 0||!("publishType"in e)||e.publishType===void 0)}function Rc(e){return bi(e)}function bi(e,t){return e==null?e:{asset:wi(e.asset),publishType:ci(e.publishType),policyExpression:e.policyExpression==null?void 0:ee(e.policyExpression)}}function Ui(e){return _i(e,!1)}function _i(e,t=!1){return e==null?e:{asset:$e(e.asset),publishType:e.publishType,policyExpression:te(e.policyExpression)}}function vc(e){return!(!("baseUrl"in e)||e.baseUrl===void 0||!("authorizationHeaderValue"in e)||e.authorizationHeaderValue===void 0)}function Ri(e){return vi(e)}function vi(e,t){return e==null?e:{baseUrl:e.baseUrl,authorizationHeaderValue:e.authorizationHeaderValue,expiresAt:e.expiresAt==null?void 0:new Date(e.expiresAt)}}function Fc(e){return Fi(e,!1)}function Fi(e,t=!1){return e==null?e:{baseUrl:e.baseUrl,authorizationHeaderValue:e.authorizationHeaderValue,expiresAt:e.expiresAt==null?void 0:e.expiresAt.toISOString()}}function Ec(e){return!(!("id"in e)||e.id===void 0)}function ze(e){return Ei(e)}function Ei(e,t){return e==null?e:{id:e.id,available:e.available==null?void 0:e.available}}function kc(e){return ki(e,!1)}function ki(e,t=!1){return e==null?e:{id:e.id,available:e.available}}function qc(e){return!(!("id"in e)||e.id===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0)}function J(e){return qi(e)}function qi(e,t){return e==null?e:{id:e.id,lastUpdatedDate:new Date(e.lastUpdatedDate)}}function Lc(e){return Li(e,!1)}function Li(e,t=!1){return e==null?e:{id:e.id,lastUpdatedDate:e.lastUpdatedDate.toISOString()}}function Mc(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("transferProcessRequestJsonLd"in e)||e.transferProcessRequestJsonLd===void 0)}function Hc(e){return Mi(e)}function Mi(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function Hi(e){return Zi(e,!1)}function Zi(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function Zc(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("transferType"in e)||e.transferType===void 0||!("dataSinkProperties"in e)||e.dataSinkProperties===void 0||!("transferProcessProperties"in e)||e.transferProcessProperties===void 0)}function Vc(e){return Vi(e)}function Vi(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function Bi(e){return $i(e,!1)}function $i(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function Bc(e){return!(!("incomingTransferProcessCounts"in e)||e.incomingTransferProcessCounts===void 0||!("outgoingTransferProcessCounts"in e)||e.outgoingTransferProcessCounts===void 0)}function zi(e){return Qi(e)}function Qi(e,t){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function Gi(e){return Ki(e,!1)}function Ki(e,t=!1){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function $c(e){return!(!("assetsCount"in e)||e.assetsCount===void 0||!("policiesCount"in e)||e.policiesCount===void 0||!("contractDefinitionsCount"in e)||e.contractDefinitionsCount===void 0||!("contractAgreementsCount"in e)||e.contractAgreementsCount===void 0||!("transferProcessDto"in e)||e.transferProcessDto===void 0)}function Wi(e){return Yi(e)}function Yi(e,t){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:zi(e.transferProcessDto)}}function zc(e){return Xi(e,!1)}function Xi(e,t=!1){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:Gi(e.transferProcessDto)}}function Qc(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0||!("filter"in e)||e.filter===void 0)}function Gc(e){return xi(e)}function xi(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter.map(ct),limit:e.limit==null?void 0:e.limit,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Ce)}}function ji(e){return ea(e,!1)}function ea(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter.map(ut),limit:e.limit,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(De)}}function Kc(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("state"in e)||e.state===void 0||!("stateChangedAt"in e)||e.stateChangedAt===void 0||!("asset"in e)||e.asset===void 0||!("policy"in e)||e.policy===void 0)}function ta(e){return ra(e)}function ra(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,state:Me(e.state),stateChangedAt:new Date(e.stateChangedAt),asset:K(e.asset),policy:re(e.policy)}}function Wc(e){return na(e,!1)}function na(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,contractAgreementId:e.contractAgreementId,state:He(e.state),stateChangedAt:e.stateChangedAt.toISOString(),asset:j(e.asset),policy:ne(e.policy)}}function Yc(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("expression"in e)||e.expression===void 0)}function Xc(e){return ia(e)}function ia(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,expression:ee(e.expression)}}function aa(e){return oa(e,!1)}function oa(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,expression:te(e.expression)}}function xc(e){return!0}function sa(e){return ca(e)}function ca(e,t){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(mt)}}function ua(e){return da(e,!1)}function da(e,t=!1){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(yt)}}function jc(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function eu(e){return la(e)}function la(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:sa(e.policy)}}function fa(e){return pa(e,!1)}function pa(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:ua(e.policy)}}function tu(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function ma(e){return ya(e)}function ya(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:re(e.policy)}}function ga(e){return ha(e,!1)}function ha(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:ne(e.policy)}}function ru(e){return!(!("policies"in e)||e.policies===void 0)}function Ta(e){return Sa(e)}function Sa(e,t){return e==null?e:{policies:e.policies.map(ma)}}function nu(e){return Oa(e,!1)}function Oa(e,t=!1){return e==null?e:{policies:e.policies.map(ga)}}function iu(e){return!(!("transferProcessId"in e)||e.transferProcessId===void 0||!("createdDate"in e)||e.createdDate===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0||!("transferType"in e)||e.transferType===void 0||!("state"in e)||e.state===void 0||!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("direction"in e)||e.direction===void 0||!("counterPartyConnectorEndpoint"in e)||e.counterPartyConnectorEndpoint===void 0||!("counterPartyParticipantId"in e)||e.counterPartyParticipantId===void 0||!("assetName"in e)||e.assetName===void 0||!("assetId"in e)||e.assetId===void 0||!("isEdrConsumable"in e)||e.isEdrConsumable===void 0)}function Na(e){return Ca(e)}function Ca(e,t){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:new Date(e.createdDate),lastUpdatedDate:new Date(e.lastUpdatedDate),transferType:e.transferType,state:Ue(e.state),contractAgreementId:e.contractAgreementId,direction:dt(e.direction),counterPartyConnectorEndpoint:e.counterPartyConnectorEndpoint,counterPartyParticipantId:e.counterPartyParticipantId,assetName:e.assetName,assetId:e.assetId,errorMessage:e.errorMessage==null?void 0:e.errorMessage,isEdrConsumable:e.isEdrConsumable}}function Da(e){return Pa(e,!1)}function Pa(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:e.createdDate.toISOString(),lastUpdatedDate:e.lastUpdatedDate.toISOString(),transferType:e.transferType,state:_e(e.state),contractAgreementId:e.contractAgreementId,direction:e.direction,counterPartyConnectorEndpoint:e.counterPartyConnectorEndpoint,counterPartyParticipantId:e.counterPartyParticipantId,assetName:e.assetName,assetId:e.assetId,errorMessage:e.errorMessage,isEdrConsumable:e.isEdrConsumable}}function au(e){return!(!("transferEntries"in e)||e.transferEntries===void 0)}function Ja(e){return wa(e)}function wa(e,t){return e==null?e:{transferEntries:e.transferEntries.map(Na)}}function ou(e){return Aa(e,!1)}function Aa(e,t=!1){return e==null?e:{transferEntries:e.transferEntries.map(Da)}}function su(e){return!(!("transferId"in e)||e.transferId===void 0||!("state"in e)||e.state===void 0||!("stateChangedAt"in e)||e.stateChangedAt===void 0||!("isEdrConsumable"in e)||e.isEdrConsumable===void 0)}function Ia(e){return ba(e)}function ba(e,t){return e==null?e:{transferId:e.transferId,state:Ue(e.state),stateChangedAt:new Date(e.stateChangedAt),isEdrConsumable:e.isEdrConsumable}}function cu(e){return Ua(e,!1)}function Ua(e,t=!1){return e==null?e:{transferId:e.transferId,state:_e(e.state),stateChangedAt:e.stateChangedAt.toISOString(),isEdrConsumable:e.isEdrConsumable}}function uu(e){return!0}function du(e){return _a(e)}function _a(e,t){return e==null?e:{dataSourceOverrideOrNull:e.dataSourceOverrideOrNull==null?void 0:Dt(e.dataSourceOverrideOrNull),title:e.title==null?void 0:e.title,language:e.language==null?void 0:e.language,description:e.description==null?void 0:e.description,publisherHomepage:e.publisherHomepage==null?void 0:e.publisherHomepage,licenseUrl:e.licenseUrl==null?void 0:e.licenseUrl,version:e.version==null?void 0:e.version,keywords:e.keywords==null?void 0:e.keywords,mediaType:e.mediaType==null?void 0:e.mediaType,landingPageUrl:e.landingPageUrl==null?void 0:e.landingPageUrl,dataModel:e.dataModel==null?void 0:e.dataModel,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function Ra(e){return va(e,!1)}function va(e,t=!1){return e==null?e:{dataSourceOverrideOrNull:Pt(e.dataSourceOverrideOrNull),title:e.title,language:e.language,description:e.description,publisherHomepage:e.publisherHomepage,licenseUrl:e.licenseUrl,version:e.version,keywords:e.keywords,mediaType:e.mediaType,landingPageUrl:e.landingPageUrl,dataModel:e.dataModel,sovereignLegalName:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}const Qe={ConnectorLimits:"CONNECTOR_LIMITS",OpenSourceMarketing:"OPEN_SOURCE_MARKETING",EeBasicMarketing:"EE_BASIC_MARKETING"};function lu(e){for(const t in Qe)if(Object.prototype.hasOwnProperty.call(Qe,t)&&Qe[t]===e)return!0;return!1}function Fa(e){return Ea(e)}function Ea(e,t){return e}function ka(e){return e}function fu(e,t){return e}function pu(e){return!(!("participantId"in e)||e.participantId===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function qa(e){return La(e)}function La(e,t){return e==null?e:{participantId:e.participantId,connectorEndpoint:e.connectorEndpoint}}function Ma(e){return Ha(e,!1)}function Ha(e,t=!1){return e==null?e:{participantId:e.participantId,connectorEndpoint:e.connectorEndpoint}}function mu(e){return!(!("features"in e)||e.features===void 0||!("preconfiguredCounterparties"in e)||e.preconfiguredCounterparties===void 0)}function Za(e){return Va(e)}function Va(e,t){return e==null?e:{features:e.features.map(Fa),preconfiguredCounterparties:e.preconfiguredCounterparties.map(qa),logoutUrl:e.logoutUrl==null?void 0:e.logoutUrl,documentationUrl:e.documentationUrl==null?void 0:e.documentationUrl,supportUrl:e.supportUrl==null?void 0:e.supportUrl,privacyPolicyUrl:e.privacyPolicyUrl==null?void 0:e.privacyPolicyUrl,legalNoticeUrl:e.legalNoticeUrl==null?void 0:e.legalNoticeUrl}}function yu(e){return Ba(e,!1)}function Ba(e,t=!1){return e==null?e:{features:e.features.map(ka),preconfiguredCounterparties:e.preconfiguredCounterparties.map(Ma),logoutUrl:e.logoutUrl,documentationUrl:e.documentationUrl,supportUrl:e.supportUrl,privacyPolicyUrl:e.privacyPolicyUrl,legalNoticeUrl:e.legalNoticeUrl}}function gu(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("createdAt"in e)||e.createdAt===void 0||!("state"in e)||e.state===void 0)}function Jt(e){return $a(e)}function $a(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:new Date(e.createdAt),contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,state:Me(e.state)}}function hu(e){return za(e,!1)}function za(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:e.createdAt.toISOString(),contractAgreementId:e.contractAgreementId,state:He(e.state)}}function Tu(e){return!(!("contractOfferId"in e)||e.contractOfferId===void 0||!("policy"in e)||e.policy===void 0)}function Qa(e){return Ga(e)}function Ga(e,t){return e==null?e:{contractOfferId:e.contractOfferId,policy:re(e.policy)}}function Ka(e){return Wa(e,!1)}function Wa(e,t=!1){return e==null?e:{contractOfferId:e.contractOfferId,policy:ne(e.policy)}}function Su(e){return!(!("endpoint"in e)||e.endpoint===void 0||!("participantId"in e)||e.participantId===void 0||!("asset"in e)||e.asset===void 0||!("contractOffers"in e)||e.contractOffers===void 0)}function ie(e){return Ya(e)}function Ya(e,t){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:K(e.asset),contractOffers:e.contractOffers.map(Qa)}}function Ou(e){return Xa(e,!1)}function Xa(e,t=!1){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:j(e.asset),contractOffers:e.contractOffers.map(Ka)}}const Ge={Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Options:"OPTIONS"};function Nu(e){for(const t in Ge)if(Object.prototype.hasOwnProperty.call(Ge,t)&&Ge[t]===e)return!0;return!1}function xa(e){return ja(e)}function ja(e,t){return e}function Cu(e){return e}function Du(e,t){return e}function Pu(e){return!(!("baseUrl"in e)||e.baseUrl===void 0)}function eo(e){return to(e)}function to(e,t){return e==null?e:{method:e.method==null?void 0:xa(e.method),baseUrl:e.baseUrl,queryString:e.queryString==null?void 0:e.queryString,authHeaderName:e.authHeaderName==null?void 0:e.authHeaderName,authHeaderValue:e.authHeaderValue==null?void 0:Nt(e.authHeaderValue),headers:e.headers==null?void 0:e.headers}}function ro(e){return no(e,!1)}function no(e,t=!1){return e==null?e:{method:e.method,baseUrl:e.baseUrl,queryString:e.queryString,authHeaderName:e.authHeaderName,authHeaderValue:Ct(e.authHeaderValue),headers:e.headers}}const Ke={HttpDataPush:"HTTP_DATA_PUSH",HttpDataProxy:"HTTP_DATA_PROXY",Custom:"CUSTOM"};function Ju(e){for(const t in Ke)if(Object.prototype.hasOwnProperty.call(Ke,t)&&Ke[t]===e)return!0;return!1}function io(e){return ao(e)}function ao(e,t){return e}function wu(e){return e}function Au(e,t){return e}function Iu(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("type"in e)||e.type===void 0)}function bu(e){return oo(e)}function oo(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,type:io(e.type),httpDataPush:e.httpDataPush==null?void 0:eo(e.httpDataPush),callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Ce),customDataSinkProperties:e.customDataSinkProperties==null?void 0:e.customDataSinkProperties,customTransferPrivateProperties:e.customTransferPrivateProperties==null?void 0:e.customTransferPrivateProperties,customTransferType:e.customTransferType==null?void 0:e.customTransferType}}function so(e){return co(e,!1)}function co(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,type:e.type,httpDataPush:ro(e.httpDataPush),callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(De),customDataSinkProperties:e.customDataSinkProperties,customTransferPrivateProperties:e.customTransferPrivateProperties,customTransferType:e.customTransferType}}class uo extends G{async connectorLimitsRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ee/connector-limits",method:"GET",headers:i,query:r},t);return new h(a,o=>Ar(o))}async connectorLimits(t){return await(await this.connectorLimitsRaw(t)).value()}async fileUploadCreateAssetRaw(t,r){if(t.blobId==null)throw new C("blobId",'Required parameter "blobId" was null or undefined when calling fileUploadCreateAsset().');if(t.uiAssetCreateRequest==null)throw new C("uiAssetCreateRequest",'Required parameter "uiAssetCreateRequest" was null or undefined when calling fileUploadCreateAsset().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ee/file-upload/blobs/{blobId}/asset".replace("{blobId}",encodeURIComponent(String(t.blobId))),method:"POST",headers:a,query:i,body:$e(t.uiAssetCreateRequest)},r);return new kt(o)}async fileUploadCreateAsset(t,r){await this.fileUploadCreateAssetRaw(t,r)}async fileUploadRequestSasTokenRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ee/file-upload/blobs",method:"POST",headers:i,query:r},t);return this.isJsonMime(a.headers.get("content-type"))?new h(a):new qt(a)}async fileUploadRequestSasToken(t){return await(await this.fileUploadRequestSasTokenRaw(t)).value()}}class lo extends G{async buildInfoRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/build-info",method:"GET",headers:i,query:r},t);return new h(a,o=>Wt(o))}async buildInfo(t){return await(await this.buildInfoRaw(t)).value()}async createAssetRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/asset-page/assets",method:"POST",headers:a,query:i,body:$e(t.uiAssetCreateRequest)},r);return new h(o,s=>J(s))}async createAsset(t={},r){return await(await this.createAssetRaw(t,r)).value()}async createContractDefinitionRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-definition-page/contract-definitions",method:"POST",headers:a,query:i,body:Fn(t.contractDefinitionRequest)},r);return new h(o,s=>J(s))}async createContractDefinition(t={},r){return await(await this.createContractDefinitionRaw(t,r)).value()}async createDataOfferRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/create-data-offer",method:"POST",headers:a,query:i,body:Ui(t.dataOfferCreateRequest)},r);return new h(o,s=>J(s))}async createDataOffer(t={},r){return await(await this.createDataOfferRaw(t,r)).value()}async createPolicyDefinitionRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/policy-page/policy-definitions",method:"POST",headers:a,query:i,body:fa(t.policyDefinitionCreateRequest)},r);return new h(o,s=>J(s))}async createPolicyDefinition(t={},r){return await(await this.createPolicyDefinitionRaw(t,r)).value()}async createPolicyDefinitionV2Raw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/v2/pages/policy-page/policy-definitions",method:"POST",headers:a,query:i,body:aa(t.policyDefinitionCreateDto)},r);return new h(o,s=>J(s))}async createPolicyDefinitionV2(t={},r){return await(await this.createPolicyDefinitionV2Raw(t,r)).value()}async deleteAssetRaw(t,r){if(t.assetId==null)throw new C("assetId",'Required parameter "assetId" was null or undefined when calling deleteAsset().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/asset-page/assets/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"DELETE",headers:a,query:i},r);return new h(o,s=>J(s))}async deleteAsset(t,r){return await(await this.deleteAssetRaw(t,r)).value()}async deleteContractDefinitionRaw(t,r){if(t.contractDefinitionId==null)throw new C("contractDefinitionId",'Required parameter "contractDefinitionId" was null or undefined when calling deleteContractDefinition().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/contract-definition-page/contract-definitions/{contractDefinitionId}".replace("{contractDefinitionId}",encodeURIComponent(String(t.contractDefinitionId))),method:"DELETE",headers:a,query:i},r);return new h(o,s=>J(s))}async deleteContractDefinition(t,r){return await(await this.deleteContractDefinitionRaw(t,r)).value()}async deletePolicyDefinitionRaw(t,r){if(t.policyId==null)throw new C("policyId",'Required parameter "policyId" was null or undefined when calling deletePolicyDefinition().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/policy-page/policy-definitions/{policyId}".replace("{policyId}",encodeURIComponent(String(t.policyId))),method:"DELETE",headers:a,query:i},r);return new h(o,s=>J(s))}async deletePolicyDefinition(t,r){return await(await this.deletePolicyDefinitionRaw(t,r)).value()}async editAssetRaw(t,r){if(t.assetId==null)throw new C("assetId",'Required parameter "assetId" was null or undefined when calling editAsset().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/asset-page/assets/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"PUT",headers:a,query:i,body:Ra(t.uiAssetEditRequest)},r);return new h(o,s=>J(s))}async editAsset(t,r){return await(await this.editAssetRaw(t,r)).value()}async getAssetPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/asset-page",method:"GET",headers:i,query:r},t);return new h(a,o=>Qt(o))}async getAssetPage(t){return await(await this.getAssetPageRaw(t)).value()}async getCatalogPageDataOfferRaw(t,r){if(t.participantId==null)throw new C("participantId",'Required parameter "participantId" was null or undefined when calling getCatalogPageDataOffer().');if(t.connectorEndpoint==null)throw new C("connectorEndpoint",'Required parameter "connectorEndpoint" was null or undefined when calling getCatalogPageDataOffer().');if(t.dataOfferId==null)throw new C("dataOfferId",'Required parameter "dataOfferId" was null or undefined when calling getCatalogPageDataOffer().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/catalog-page/{connectorEndpoint}/{participantId}/data-offers/{dataOfferId}".replace("{participantId}",encodeURIComponent(String(t.participantId))).replace("{connectorEndpoint}",encodeURIComponent(String(t.connectorEndpoint))).replace("{dataOfferId}",encodeURIComponent(String(t.dataOfferId))),method:"GET",headers:a,query:i},r);return new h(o,s=>ie(s))}async getCatalogPageDataOffer(t,r){return await(await this.getCatalogPageDataOfferRaw(t,r)).value()}async getCatalogPageDataOffersRaw(t,r){const i={};t.participantId!=null&&(i.participantId=t.participantId),t.connectorEndpoint!=null&&(i.connectorEndpoint=t.connectorEndpoint);const a={},o=await this.request({path:"/wrapper/ui/pages/catalog-page/data-offers",method:"GET",headers:a,query:i},r);return new h(o,s=>s.map(ie))}async getCatalogPageDataOffers(t={},r){return await(await this.getCatalogPageDataOffersRaw(t,r)).value()}async getContractAgreementCardRaw(t,r){if(t.contractAgreementId==null)throw new C("contractAgreementId",'Required parameter "contractAgreementId" was null or undefined when calling getContractAgreementCard().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/{contractAgreementId}".replace("{contractAgreementId}",encodeURIComponent(String(t.contractAgreementId))),method:"GET",headers:a,query:i},r);return new h(o,s=>gt(s))}async getContractAgreementCard(t,r){return await(await this.getContractAgreementCardRaw(t,r)).value()}async getContractAgreementPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page",method:"POST",headers:a,query:i,body:mn(t.contractAgreementPageQuery)},r);return new h(o,s=>dn(s))}async getContractAgreementPage(t={},r){return await(await this.getContractAgreementPageRaw(t,r)).value()}async getContractDefinitionPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/contract-definition-page",method:"GET",headers:i,query:r},t);return new h(a,o=>Un(o))}async getContractDefinitionPage(t){return await(await this.getContractDefinitionPageRaw(t)).value()}async getContractNegotiationRaw(t,r){if(t.contractNegotiationId==null)throw new C("contractNegotiationId",'Required parameter "contractNegotiationId" was null or undefined when calling getContractNegotiation().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/catalog-page/contract-negotiations/{contractNegotiationId}".replace("{contractNegotiationId}",encodeURIComponent(String(t.contractNegotiationId))),method:"GET",headers:a,query:i},r);return new h(o,s=>Jt(s))}async getContractNegotiation(t,r){return await(await this.getContractNegotiationRaw(t,r)).value()}async getDashboardPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/dashboard-page",method:"GET",headers:i,query:r},t);return new h(a,o=>ai(o))}async getDashboardPage(t){return await(await this.getDashboardPageRaw(t)).value()}async getPolicyDefinitionPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/policy-page",method:"GET",headers:i,query:r},t);return new h(a,o=>Ta(o))}async getPolicyDefinitionPage(t){return await(await this.getPolicyDefinitionPageRaw(t)).value()}async getTransferHistoryPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/transfer-history-page",method:"GET",headers:i,query:r},t);return new h(a,o=>Ja(o))}async getTransferHistoryPage(t){return await(await this.getTransferHistoryPageRaw(t)).value()}async getTransferProcessAssetRaw(t,r){if(t.transferProcessId==null)throw new C("transferProcessId",'Required parameter "transferProcessId" was null or undefined when calling getTransferProcessAsset().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/transfer-history-page/transfer-processes/{transferProcessId}/asset".replace("{transferProcessId}",encodeURIComponent(String(t.transferProcessId))),method:"GET",headers:a,query:i},r);return new h(o,s=>K(s))}async getTransferProcessAsset(t,r){return await(await this.getTransferProcessAssetRaw(t,r)).value()}async initiateContractNegotiationRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/catalog-page/contract-negotiations",method:"POST",headers:a,query:i,body:qn(t.contractNegotiationRequest)},r);return new h(o,s=>Jt(s))}async initiateContractNegotiation(t={},r){return await(await this.initiateContractNegotiationRaw(t,r)).value()}async initiateCustomTransferRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/transfers/custom",method:"POST",headers:a,query:i,body:Hi(t.initiateCustomTransferRequest)},r);return new h(o,s=>J(s))}async initiateCustomTransfer(t={},r){return await(await this.initiateCustomTransferRaw(t,r)).value()}async initiateTransferRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/transfers",method:"POST",headers:a,query:i,body:Bi(t.initiateTransferRequest)},r);return new h(o,s=>J(s))}async initiateTransfer(t={},r){return await(await this.initiateTransferRaw(t,r)).value()}async initiateTransferV2Raw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/initiate-transfer-v2",method:"POST",headers:a,query:i,body:so(t.uiInitiateTransferRequest)},r);return new h(o,s=>J(s))}async initiateTransferV2(t={},r){return await(await this.initiateTransferV2Raw(t,r)).value()}async isAssetIdAvailableRaw(t,r){if(t.assetId==null)throw new C("assetId",'Required parameter "assetId" was null or undefined when calling isAssetIdAvailable().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/data-offer-page/validate-asset-id/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"GET",headers:a,query:i},r);return new h(o,s=>ze(s))}async isAssetIdAvailable(t,r){return await(await this.isAssetIdAvailableRaw(t,r)).value()}async isContractDefinitionIdAvailableRaw(t,r){if(t.contractDefinitionId==null)throw new C("contractDefinitionId",'Required parameter "contractDefinitionId" was null or undefined when calling isContractDefinitionIdAvailable().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/data-offer-page/validate-contract-definition-id/{contractDefinitionId}".replace("{contractDefinitionId}",encodeURIComponent(String(t.contractDefinitionId))),method:"GET",headers:a,query:i},r);return new h(o,s=>ze(s))}async isContractDefinitionIdAvailable(t,r){return await(await this.isContractDefinitionIdAvailableRaw(t,r)).value()}async isPolicyIdAvailableRaw(t,r){if(t.policyId==null)throw new C("policyId",'Required parameter "policyId" was null or undefined when calling isPolicyIdAvailable().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/data-offer-page/validate-policy-id/{policyId}".replace("{policyId}",encodeURIComponent(String(t.policyId))),method:"GET",headers:a,query:i},r);return new h(o,s=>ze(s))}async isPolicyIdAvailable(t,r){return await(await this.isPolicyIdAvailableRaw(t,r)).value()}async terminateContractAgreementRaw(t,r){if(t.contractAgreementId==null)throw new C("contractAgreementId",'Required parameter "contractAgreementId" was null or undefined when calling terminateContractAgreement().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/content-agreement-page/{contractAgreementId}/terminate".replace("{contractAgreementId}",encodeURIComponent(String(t.contractAgreementId))),method:"POST",headers:a,query:i,body:Gn(t.contractTerminationRequest)},r);return new h(o,s=>J(s))}async terminateContractAgreement(t,r){return await(await this.terminateContractAgreementRaw(t,r)).value()}async uiConfigRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/config",method:"GET",headers:i,query:r},t);return new h(a,o=>Za(o))}async uiConfig(t){return await(await this.uiConfigRaw(t)).value()}}class fo extends G{async getContractNegotiationStatesRaw(t,r){if(t.requestBody==null)throw new C("requestBody",'Required parameter "requestBody" was null or undefined when calling getContractNegotiationStates().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/contract-negotiations/states",method:"POST",headers:a,query:i,body:t.requestBody},r);return new h(o,s=>s.map(Bn))}async getContractNegotiationStates(t,r){return await(await this.getContractNegotiationStatesRaw(t,r)).value()}async getKpisRaw(t){const r={},i={},a=await this.request({path:"/wrapper/use-case-api/kpis",method:"GET",headers:i,query:r},t);return new h(a,o=>Wi(o))}async getKpis(t){return await(await this.getKpisRaw(t)).value()}async getSupportedFunctionsRaw(t){const r={},i={},a=await this.request({path:"/wrapper/use-case-api/supported-policy-functions",method:"GET",headers:i,query:r},t);return new h(a)}async getSupportedFunctions(t){return await(await this.getSupportedFunctionsRaw(t)).value()}async getTransferProcessEdrRaw(t,r){if(t.transferId==null)throw new C("transferId",'Required parameter "transferId" was null or undefined when calling getTransferProcessEdr().');const i={},a={},o=await this.request({path:"/wrapper/use-case-api/transfers/{transferId}/edr".replace("{transferId}",encodeURIComponent(String(t.transferId))),method:"POST",headers:a,query:i},r);return new h(o,s=>Ri(s))}async getTransferProcessEdr(t,r){return await(await this.getTransferProcessEdrRaw(t,r)).value()}async getTransferProcessStatesRaw(t,r){if(t.requestBody==null)throw new C("requestBody",'Required parameter "requestBody" was null or undefined when calling getTransferProcessStates().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/transfers/states",method:"POST",headers:a,query:i,body:t.requestBody},r);return new h(o,s=>s.map(Ia))}async getTransferProcessStates(t,r){return await(await this.getTransferProcessStatesRaw(t,r)).value()}async negotiateAllRaw(t,r){if(t.negotiateAllQuery==null)throw new C("negotiateAllQuery",'Required parameter "negotiateAllQuery" was null or undefined when calling negotiateAll().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/negotiations/quick-initiate",method:"POST",headers:a,query:i,body:ji(t.negotiateAllQuery)},r);return new h(o,s=>s.map(ta))}async negotiateAll(t,r){return await(await this.negotiateAllRaw(t,r)).value()}async queryCatalogRaw(t,r){if(t.catalogQuery==null)throw new C("catalogQuery",'Required parameter "catalogQuery" was null or undefined when calling queryCatalog().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/catalog",method:"POST",headers:a,query:i,body:gr(t.catalogQuery)},r);return new h(o,s=>s.map(ie))}async queryCatalog(t,r){return await(await this.queryCatalogRaw(t,r)).value()}async queryCatalogV2Raw(t,r){if(t.catalogQueryV2==null)throw new C("catalogQueryV2",'Required parameter "catalogQueryV2" was null or undefined when calling queryCatalogV2().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/catalog-v2",method:"POST",headers:a,query:i,body:Jr(t.catalogQueryV2)},r);return new h(o,s=>s.map(ie))}async queryCatalogV2(t,r){return await(await this.queryCatalogV2Raw(t,r)).value()}async terminateTransferProcessRaw(t,r){if(t.transferId==null)throw new C("transferId",'Required parameter "transferId" was null or undefined when calling terminateTransferProcess().');const i={},a={},o=await this.request({path:"/wrapper/use-case-api/transfers/{transferId}/terminate".replace("{transferId}",encodeURIComponent(String(t.transferId))),method:"POST",headers:a,query:i},r);return new h(o,s=>J(s))}async terminateTransferProcess(t,r){return await(await this.terminateTransferProcessRaw(t,r)).value()}}var N;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function r(a){throw new Error}e.assertNever=r,e.arrayToEnum=a=>{const o={};for(const s of a)o[s]=s;return o},e.getValidEnumValues=a=>{const o=e.objectKeys(a).filter(c=>typeof a[a[c]]!="number"),s={};for(const c of o)s[c]=a[c];return e.objectValues(s)},e.objectValues=a=>e.objectKeys(a).map(function(o){return a[o]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const o=[];for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&o.push(s);return o},e.find=(a,o)=>{for(const s of a)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function i(a,o=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(a,o)=>typeof o=="bigint"?o.toString():o})(N||(N={}));var wt;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(wt||(wt={}));const l=N.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),M=e=>{switch(typeof e){case"undefined":return l.undefined;case"string":return l.string;case"number":return isNaN(e)?l.nan:l.number;case"boolean":return l.boolean;case"function":return l.function;case"bigint":return l.bigint;case"symbol":return l.symbol;case"object":return Array.isArray(e)?l.array:e===null?l.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?l.promise:typeof Map<"u"&&e instanceof Map?l.map:typeof Set<"u"&&e instanceof Set?l.set:typeof Date<"u"&&e instanceof Date?l.date:l.object;default:return l.unknown}},u=N.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Uu=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class b extends Error{constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(o){return o.message},i={_errors:[]},a=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)i._errors.push(r(s));else{let c=i,p=0;for(;p<s.path.length;){const d=s.path[p];p===s.path.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(r(s))):c[d]=c[d]||{_errors:[]},c=c[d],p++}}};return a(this),i}toString(){return this.message}get message(){return JSON.stringify(this.issues,N.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},i=[];for(const a of this.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(t(a))):i.push(t(a));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}}b.create=e=>new b(e);const ae=(e,t)=>{let r;switch(e.code){case u.invalid_type:e.received===l.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case u.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,N.jsonStringifyReplacer)}`;break;case u.unrecognized_keys:r=`Unrecognized key(s) in object: ${N.joinValues(e.keys,", ")}`;break;case u.invalid_union:r="Invalid input";break;case u.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${N.joinValues(e.options)}`;break;case u.invalid_enum_value:r=`Invalid enum value. Expected ${N.joinValues(e.options)}, received '${e.received}'`;break;case u.invalid_arguments:r="Invalid function arguments";break;case u.invalid_return_type:r="Invalid function return type";break;case u.invalid_date:r="Invalid date";break;case u.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:N.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case u.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case u.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case u.custom:r="Invalid input";break;case u.invalid_intersection_types:r="Intersection results could not be merged";break;case u.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case u.not_finite:r="Number must be finite";break;default:r=t.defaultError,N.assertNever(e)}return{message:r}};let po=ae;function _u(e){po=e}function We(){return po}const Ye=e=>{const{data:t,path:r,errorMaps:i,issueData:a}=e,o=[...r,...a.path||[]],s={...a,path:o};let c="";const p=i.filter(d=>!!d).slice().reverse();for(const d of p)c=d(s,{data:t,defaultError:c}).message;return{...a,path:o,message:a.message||c}},Ru=[];function f(e,t){const r=Ye({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,We(),ae].filter(i=>!!i)});e.common.issues.push(r)}class P{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const i=[];for(const a of r){if(a.status==="aborted")return g;a.status==="dirty"&&t.dirty(),i.push(a.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,r){const i=[];for(const a of r)i.push({key:await a.key,value:await a.value});return P.mergeObjectSync(t,i)}static mergeObjectSync(t,r){const i={};for(const a of r){const{key:o,value:s}=a;if(o.status==="aborted"||s.status==="aborted")return g;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(i[o.value]=s.value)}return{status:t.value,value:i}}}const g=Object.freeze({status:"aborted"}),mo=e=>({status:"dirty",value:e}),w=e=>({status:"valid",value:e}),At=e=>e.status==="aborted",It=e=>e.status==="dirty",oe=e=>e.status==="valid",Xe=e=>typeof Promise<"u"&&e instanceof Promise;var m;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(m||(m={}));class v{constructor(t,r,i,a){this._cachedPath=[],this.parent=t,this.data=r,this._path=i,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const yo=(e,t)=>{if(oe(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new b(e.common.issues);return this._error=r,this._error}}};function T(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:i,description:a}=e;if(t&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(s,c)=>s.code!=="invalid_type"?{message:c.defaultError}:typeof c.data>"u"?{message:i??c.defaultError}:{message:r??c.defaultError},description:a}}class S{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return M(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:M(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new P,ctx:{common:t.parent.common,data:t.data,parsedType:M(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(Xe(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const i=this.safeParse(t,r);if(i.success)return i.data;throw i.error}safeParse(t,r){var i;const a={common:{issues:[],async:(i=r==null?void 0:r.async)!==null&&i!==void 0?i:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:M(t)},o=this._parseSync({data:t,path:a.path,parent:a});return yo(a,o)}async parseAsync(t,r){const i=await this.safeParseAsync(t,r);if(i.success)return i.data;throw i.error}async safeParseAsync(t,r){const i={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:M(t)},a=this._parse({data:t,path:i.path,parent:i}),o=await(Xe(a)?a:Promise.resolve(a));return yo(i,o)}refine(t,r){const i=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,o)=>{const s=t(a),c=()=>o.addIssue({code:u.custom,...i(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(p=>p?!0:(c(),!1)):s?!0:(c(),!1)})}refinement(t,r){return this._refinement((i,a)=>t(i)?!0:(a.addIssue(typeof r=="function"?r(i,a):r),!1))}_refinement(t){return new R({schema:this,typeName:y.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return q.create(this,this._def)}nullable(){return Q.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return _.create(this,this._def)}promise(){return x.create(this,this._def)}or(t){return de.create([this,t],this._def)}and(t){return le.create(this,t,this._def)}transform(t){return new R({...T(this._def),schema:this,typeName:y.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new ge({...T(this._def),innerType:this,defaultValue:r,typeName:y.ZodDefault})}brand(){return new ho({typeName:y.ZodBranded,type:this,...T(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new nt({...T(this._def),innerType:this,catchValue:r,typeName:y.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return he.create(this,t)}readonly(){return at.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const vu=/^c[^\s-]{8,}$/i,Fu=/^[a-z][a-z0-9]*$/,Eu=/^[0-9A-HJKMNP-TV-Z]{26}$/,ku=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,qu=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Lu="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let bt;const Mu=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Hu=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Zu=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Vu(e,t){return!!((t==="v4"||!t)&&Mu.test(e)||(t==="v6"||!t)&&Hu.test(e))}class U extends S{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==l.string){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.string,received:o.parsedType}),g}const i=new P;let a;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")t.data.length>o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){const s=t.data.length>o.value,c=t.data.length<o.value;(s||c)&&(a=this._getOrReturnCtx(t,a),s?f(a,{code:u.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):c&&f(a,{code:u.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")qu.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"email",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")bt||(bt=new RegExp(Lu,"u")),bt.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"emoji",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")ku.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"uuid",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")vu.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"cuid",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")Fu.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"cuid2",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")Eu.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"ulid",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),f(a,{validation:"url",code:u.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"regex",code:u.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?Zu(o).test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="ip"?Vu(t.data,o.version)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"ip",code:u.invalid_string,message:o.message}),i.dirty()):N.assertNever(o);return{status:i.value,value:t.data}}_regex(t,r,i){return this.refinement(a=>t.test(a),{validation:r,code:u.invalid_string,...m.errToObj(i)})}_addCheck(t){return new U({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...m.errToObj(t)})}url(t){return this._addCheck({kind:"url",...m.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...m.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...m.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...m.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...m.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...m.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...m.errToObj(t)})}datetime(t){var r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,...m.errToObj(t==null?void 0:t.message)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...m.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...m.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...m.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...m.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...m.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...m.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...m.errToObj(r)})}nonempty(t){return this.min(1,m.errToObj(t))}trim(){return new U({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}U.create=e=>{var t;return new U({checks:[],typeName:y.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...T(e)})};function Bu(e,t){const r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,a=r>i?r:i,o=parseInt(e.toFixed(a).replace(".","")),s=parseInt(t.toFixed(a).replace(".",""));return o%s/Math.pow(10,a)}class H extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==l.number){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.number,received:o.parsedType}),g}let i;const a=new P;for(const o of this._def.checks)o.kind==="int"?N.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),f(i,{code:u.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?Bu(t.data,o.value)!==0&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),f(i,{code:u.not_finite,message:o.message}),a.dirty()):N.assertNever(o);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,m.toString(r))}gt(t,r){return this.setLimit("min",t,!1,m.toString(r))}lte(t,r){return this.setLimit("max",t,!0,m.toString(r))}lt(t,r){return this.setLimit("max",t,!1,m.toString(r))}setLimit(t,r,i,a){return new H({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:m.toString(a)}]})}_addCheck(t){return new H({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:m.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:m.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:m.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:m.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:m.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:m.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:m.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:m.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:m.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&N.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(r)&&Number.isFinite(t)}}H.create=e=>new H({checks:[],typeName:y.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...T(e)});class Z extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==l.bigint){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.bigint,received:o.parsedType}),g}let i;const a=new P;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):N.assertNever(o);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,m.toString(r))}gt(t,r){return this.setLimit("min",t,!1,m.toString(r))}lte(t,r){return this.setLimit("max",t,!0,m.toString(r))}lt(t,r){return this.setLimit("max",t,!1,m.toString(r))}setLimit(t,r,i,a){return new Z({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:m.toString(a)}]})}_addCheck(t){return new Z({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:m.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:m.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:m.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:m.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:m.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Z.create=e=>{var t;return new Z({checks:[],typeName:y.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...T(e)})};class se extends S{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==l.boolean){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.boolean,received:i.parsedType}),g}return w(t.data)}}se.create=e=>new se({typeName:y.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...T(e)});class B extends S{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==l.date){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.date,received:o.parsedType}),g}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_date}),g}const i=new P;let a;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):N.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new B({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:m.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:m.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}B.create=e=>new B({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:y.ZodDate,...T(e)});class xe extends S{_parse(t){if(this._getType(t)!==l.symbol){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.symbol,received:i.parsedType}),g}return w(t.data)}}xe.create=e=>new xe({typeName:y.ZodSymbol,...T(e)});class ce extends S{_parse(t){if(this._getType(t)!==l.undefined){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.undefined,received:i.parsedType}),g}return w(t.data)}}ce.create=e=>new ce({typeName:y.ZodUndefined,...T(e)});class ue extends S{_parse(t){if(this._getType(t)!==l.null){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.null,received:i.parsedType}),g}return w(t.data)}}ue.create=e=>new ue({typeName:y.ZodNull,...T(e)});class W extends S{constructor(){super(...arguments),this._any=!0}_parse(t){return w(t.data)}}W.create=e=>new W({typeName:y.ZodAny,...T(e)});class $ extends S{constructor(){super(...arguments),this._unknown=!0}_parse(t){return w(t.data)}}$.create=e=>new $({typeName:y.ZodUnknown,...T(e)});class k extends S{_parse(t){const r=this._getOrReturnCtx(t);return f(r,{code:u.invalid_type,expected:l.never,received:r.parsedType}),g}}k.create=e=>new k({typeName:y.ZodNever,...T(e)});class je extends S{_parse(t){if(this._getType(t)!==l.undefined){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.void,received:i.parsedType}),g}return w(t.data)}}je.create=e=>new je({typeName:y.ZodVoid,...T(e)});class _ extends S{_parse(t){const{ctx:r,status:i}=this._processInputParams(t),a=this._def;if(r.parsedType!==l.array)return f(r,{code:u.invalid_type,expected:l.array,received:r.parsedType}),g;if(a.exactLength!==null){const s=r.data.length>a.exactLength.value,c=r.data.length<a.exactLength.value;(s||c)&&(f(r,{code:s?u.too_big:u.too_small,minimum:c?a.exactLength.value:void 0,maximum:s?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(f(r,{code:u.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(f(r,{code:u.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((s,c)=>a.type._parseAsync(new v(r,s,r.path,c)))).then(s=>P.mergeArray(i,s));const o=[...r.data].map((s,c)=>a.type._parseSync(new v(r,s,r.path,c)));return P.mergeArray(i,o)}get element(){return this._def.type}min(t,r){return new _({...this._def,minLength:{value:t,message:m.toString(r)}})}max(t,r){return new _({...this._def,maxLength:{value:t,message:m.toString(r)}})}length(t,r){return new _({...this._def,exactLength:{value:t,message:m.toString(r)}})}nonempty(t){return this.min(1,t)}}_.create=(e,t)=>new _({type:e,minLength:null,maxLength:null,exactLength:null,typeName:y.ZodArray,...T(t)});function Y(e){if(e instanceof D){const t={};for(const r in e.shape){const i=e.shape[r];t[r]=q.create(Y(i))}return new D({...e._def,shape:()=>t})}else return e instanceof _?new _({...e._def,type:Y(e.element)}):e instanceof q?q.create(Y(e.unwrap())):e instanceof Q?Q.create(Y(e.unwrap())):e instanceof F?F.create(e.items.map(t=>Y(t))):e}class D extends S{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=N.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==l.object){const d=this._getOrReturnCtx(t);return f(d,{code:u.invalid_type,expected:l.object,received:d.parsedType}),g}const{status:i,ctx:a}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),c=[];if(!(this._def.catchall instanceof k&&this._def.unknownKeys==="strip"))for(const d in a.data)s.includes(d)||c.push(d);const p=[];for(const d of s){const O=o[d],I=a.data[d];p.push({key:{status:"valid",value:d},value:O._parse(new v(a,I,a.path,d)),alwaysSet:d in a.data})}if(this._def.catchall instanceof k){const d=this._def.unknownKeys;if(d==="passthrough")for(const O of c)p.push({key:{status:"valid",value:O},value:{status:"valid",value:a.data[O]}});else if(d==="strict")c.length>0&&(f(a,{code:u.unrecognized_keys,keys:c}),i.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const O of c){const I=a.data[O];p.push({key:{status:"valid",value:O},value:d._parse(new v(a,I,a.path,O)),alwaysSet:O in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const d=[];for(const O of p){const I=await O.key;d.push({key:I,value:await O.value,alwaysSet:O.alwaysSet})}return d}).then(d=>P.mergeObjectSync(i,d)):P.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(t){return m.errToObj,new D({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,i)=>{var a,o,s,c;const p=(s=(o=(a=this._def).errorMap)===null||o===void 0?void 0:o.call(a,r,i).message)!==null&&s!==void 0?s:i.defaultError;return r.code==="unrecognized_keys"?{message:(c=m.errToObj(t).message)!==null&&c!==void 0?c:p}:{message:p}}}:{}})}strip(){return new D({...this._def,unknownKeys:"strip"})}passthrough(){return new D({...this._def,unknownKeys:"passthrough"})}extend(t){return new D({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new D({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:y.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new D({...this._def,catchall:t})}pick(t){const r={};return N.objectKeys(t).forEach(i=>{t[i]&&this.shape[i]&&(r[i]=this.shape[i])}),new D({...this._def,shape:()=>r})}omit(t){const r={};return N.objectKeys(this.shape).forEach(i=>{t[i]||(r[i]=this.shape[i])}),new D({...this._def,shape:()=>r})}deepPartial(){return Y(this)}partial(t){const r={};return N.objectKeys(this.shape).forEach(i=>{const a=this.shape[i];t&&!t[i]?r[i]=a:r[i]=a.optional()}),new D({...this._def,shape:()=>r})}required(t){const r={};return N.objectKeys(this.shape).forEach(i=>{if(t&&!t[i])r[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof q;)o=o._def.innerType;r[i]=o}}),new D({...this._def,shape:()=>r})}keyof(){return go(N.objectKeys(this.shape))}}D.create=(e,t)=>new D({shape:()=>e,unknownKeys:"strip",catchall:k.create(),typeName:y.ZodObject,...T(t)}),D.strictCreate=(e,t)=>new D({shape:()=>e,unknownKeys:"strict",catchall:k.create(),typeName:y.ZodObject,...T(t)}),D.lazycreate=(e,t)=>new D({shape:e,unknownKeys:"strip",catchall:k.create(),typeName:y.ZodObject,...T(t)});class de extends S{_parse(t){const{ctx:r}=this._processInputParams(t),i=this._def.options;function a(o){for(const c of o)if(c.result.status==="valid")return c.result;for(const c of o)if(c.result.status==="dirty")return r.common.issues.push(...c.ctx.common.issues),c.result;const s=o.map(c=>new b(c.ctx.common.issues));return f(r,{code:u.invalid_union,unionErrors:s}),g}if(r.common.async)return Promise.all(i.map(async o=>{const s={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(a);{let o;const s=[];for(const p of i){const d={...r,common:{...r.common,issues:[]},parent:null},O=p._parseSync({data:r.data,path:r.path,parent:d});if(O.status==="valid")return O;O.status==="dirty"&&!o&&(o={result:O,ctx:d}),d.common.issues.length&&s.push(d.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;const c=s.map(p=>new b(p));return f(r,{code:u.invalid_union,unionErrors:c}),g}}get options(){return this._def.options}}de.create=(e,t)=>new de({options:e,typeName:y.ZodUnion,...T(t)});const et=e=>e instanceof pe?et(e.schema):e instanceof R?et(e.innerType()):e instanceof me?[e.value]:e instanceof V?e.options:e instanceof ye?Object.keys(e.enum):e instanceof ge?et(e._def.innerType):e instanceof ce?[void 0]:e instanceof ue?[null]:null;class tt extends S{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==l.object)return f(r,{code:u.invalid_type,expected:l.object,received:r.parsedType}),g;const i=this.discriminator,a=r.data[i],o=this.optionsMap.get(a);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(f(r,{code:u.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),g)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,i){const a=new Map;for(const o of r){const s=et(o.shape[t]);if(!s)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const c of s){if(a.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);a.set(c,o)}}return new tt({typeName:y.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:a,...T(i)})}}function Ut(e,t){const r=M(e),i=M(t);if(e===t)return{valid:!0,data:e};if(r===l.object&&i===l.object){const a=N.objectKeys(t),o=N.objectKeys(e).filter(c=>a.indexOf(c)!==-1),s={...e,...t};for(const c of o){const p=Ut(e[c],t[c]);if(!p.valid)return{valid:!1};s[c]=p.data}return{valid:!0,data:s}}else if(r===l.array&&i===l.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let o=0;o<e.length;o++){const s=e[o],c=t[o],p=Ut(s,c);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return r===l.date&&i===l.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class le extends S{_parse(t){const{status:r,ctx:i}=this._processInputParams(t),a=(o,s)=>{if(At(o)||At(s))return g;const c=Ut(o.value,s.value);return c.valid?((It(o)||It(s))&&r.dirty(),{status:r.value,value:c.data}):(f(i,{code:u.invalid_intersection_types}),g)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,s])=>a(o,s)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}le.create=(e,t,r)=>new le({left:e,right:t,typeName:y.ZodIntersection,...T(r)});class F extends S{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.array)return f(i,{code:u.invalid_type,expected:l.array,received:i.parsedType}),g;if(i.data.length<this._def.items.length)return f(i,{code:u.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),g;!this._def.rest&&i.data.length>this._def.items.length&&(f(i,{code:u.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const o=[...i.data].map((s,c)=>{const p=this._def.items[c]||this._def.rest;return p?p._parse(new v(i,s,i.path,c)):null}).filter(s=>!!s);return i.common.async?Promise.all(o).then(s=>P.mergeArray(r,s)):P.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new F({...this._def,rest:t})}}F.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new F({items:e,typeName:y.ZodTuple,rest:null,...T(t)})};class fe extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.object)return f(i,{code:u.invalid_type,expected:l.object,received:i.parsedType}),g;const a=[],o=this._def.keyType,s=this._def.valueType;for(const c in i.data)a.push({key:o._parse(new v(i,c,i.path,c)),value:s._parse(new v(i,i.data[c],i.path,c))});return i.common.async?P.mergeObjectAsync(r,a):P.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(t,r,i){return r instanceof S?new fe({keyType:t,valueType:r,typeName:y.ZodRecord,...T(i)}):new fe({keyType:U.create(),valueType:t,typeName:y.ZodRecord,...T(r)})}}class rt extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.map)return f(i,{code:u.invalid_type,expected:l.map,received:i.parsedType}),g;const a=this._def.keyType,o=this._def.valueType,s=[...i.data.entries()].map(([c,p],d)=>({key:a._parse(new v(i,c,i.path,[d,"key"])),value:o._parse(new v(i,p,i.path,[d,"value"]))}));if(i.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const p of s){const d=await p.key,O=await p.value;if(d.status==="aborted"||O.status==="aborted")return g;(d.status==="dirty"||O.status==="dirty")&&r.dirty(),c.set(d.value,O.value)}return{status:r.value,value:c}})}else{const c=new Map;for(const p of s){const d=p.key,O=p.value;if(d.status==="aborted"||O.status==="aborted")return g;(d.status==="dirty"||O.status==="dirty")&&r.dirty(),c.set(d.value,O.value)}return{status:r.value,value:c}}}}rt.create=(e,t,r)=>new rt({valueType:t,keyType:e,typeName:y.ZodMap,...T(r)});class z extends S{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.set)return f(i,{code:u.invalid_type,expected:l.set,received:i.parsedType}),g;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(f(i,{code:u.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(f(i,{code:u.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const o=this._def.valueType;function s(p){const d=new Set;for(const O of p){if(O.status==="aborted")return g;O.status==="dirty"&&r.dirty(),d.add(O.value)}return{status:r.value,value:d}}const c=[...i.data.values()].map((p,d)=>o._parse(new v(i,p,i.path,d)));return i.common.async?Promise.all(c).then(p=>s(p)):s(c)}min(t,r){return new z({...this._def,minSize:{value:t,message:m.toString(r)}})}max(t,r){return new z({...this._def,maxSize:{value:t,message:m.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}z.create=(e,t)=>new z({valueType:e,minSize:null,maxSize:null,typeName:y.ZodSet,...T(t)});class X extends S{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==l.function)return f(r,{code:u.invalid_type,expected:l.function,received:r.parsedType}),g;function i(c,p){return Ye({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,We(),ae].filter(d=>!!d),issueData:{code:u.invalid_arguments,argumentsError:p}})}function a(c,p){return Ye({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,We(),ae].filter(d=>!!d),issueData:{code:u.invalid_return_type,returnTypeError:p}})}const o={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof x){const c=this;return w(async function(...p){const d=new b([]),O=await c._def.args.parseAsync(p,o).catch(_t=>{throw d.addIssue(i(p,_t)),d}),I=await Reflect.apply(s,this,O);return await c._def.returns._def.type.parseAsync(I,o).catch(_t=>{throw d.addIssue(a(I,_t)),d})})}else{const c=this;return w(function(...p){const d=c._def.args.safeParse(p,o);if(!d.success)throw new b([i(p,d.error)]);const O=Reflect.apply(s,this,d.data),I=c._def.returns.safeParse(O,o);if(!I.success)throw new b([a(O,I.error)]);return I.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new X({...this._def,args:F.create(t).rest($.create())})}returns(t){return new X({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,i){return new X({args:t||F.create([]).rest($.create()),returns:r||$.create(),typeName:y.ZodFunction,...T(i)})}}class pe extends S{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}pe.create=(e,t)=>new pe({getter:e,typeName:y.ZodLazy,...T(t)});class me extends S{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return f(r,{received:r.data,code:u.invalid_literal,expected:this._def.value}),g}return{status:"valid",value:t.data}}get value(){return this._def.value}}me.create=(e,t)=>new me({value:e,typeName:y.ZodLiteral,...T(t)});function go(e,t){return new V({values:e,typeName:y.ZodEnum,...T(t)})}class V extends S{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),i=this._def.values;return f(r,{expected:N.joinValues(i),received:r.parsedType,code:u.invalid_type}),g}if(this._def.values.indexOf(t.data)===-1){const r=this._getOrReturnCtx(t),i=this._def.values;return f(r,{received:r.data,code:u.invalid_enum_value,options:i}),g}return w(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t){return V.create(t)}exclude(t){return V.create(this.options.filter(r=>!t.includes(r)))}}V.create=go;class ye extends S{_parse(t){const r=N.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==l.string&&i.parsedType!==l.number){const a=N.objectValues(r);return f(i,{expected:N.joinValues(a),received:i.parsedType,code:u.invalid_type}),g}if(r.indexOf(t.data)===-1){const a=N.objectValues(r);return f(i,{received:i.data,code:u.invalid_enum_value,options:a}),g}return w(t.data)}get enum(){return this._def.values}}ye.create=(e,t)=>new ye({values:e,typeName:y.ZodNativeEnum,...T(t)});class x extends S{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==l.promise&&r.common.async===!1)return f(r,{code:u.invalid_type,expected:l.promise,received:r.parsedType}),g;const i=r.parsedType===l.promise?r.data:Promise.resolve(r.data);return w(i.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}x.create=(e,t)=>new x({type:e,typeName:y.ZodPromise,...T(t)});class R extends S{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===y.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:i}=this._processInputParams(t),a=this._def.effect||null,o={addIssue:s=>{f(i,s),s.fatal?r.abort():r.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),a.type==="preprocess"){const s=a.transform(i.data,o);return i.common.issues.length?{status:"dirty",value:i.data}:i.common.async?Promise.resolve(s).then(c=>this._def.schema._parseAsync({data:c,path:i.path,parent:i})):this._def.schema._parseSync({data:s,path:i.path,parent:i})}if(a.type==="refinement"){const s=c=>{const p=a.refinement(c,o);if(i.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(i.common.async===!1){const c=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return c.status==="aborted"?g:(c.status==="dirty"&&r.dirty(),s(c.value),{status:r.value,value:c.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(c=>c.status==="aborted"?g:(c.status==="dirty"&&r.dirty(),s(c.value).then(()=>({status:r.value,value:c.value}))))}if(a.type==="transform")if(i.common.async===!1){const s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!oe(s))return s;const c=a.transform(s.value,o);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:c}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>oe(s)?Promise.resolve(a.transform(s.value,o)).then(c=>({status:r.value,value:c})):s);N.assertNever(a)}}R.create=(e,t,r)=>new R({schema:e,typeName:y.ZodEffects,effect:t,...T(r)}),R.createWithPreprocess=(e,t,r)=>new R({schema:t,effect:{type:"preprocess",transform:e},typeName:y.ZodEffects,...T(r)});class q extends S{_parse(t){return this._getType(t)===l.undefined?w(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}q.create=(e,t)=>new q({innerType:e,typeName:y.ZodOptional,...T(t)});class Q extends S{_parse(t){return this._getType(t)===l.null?w(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Q.create=(e,t)=>new Q({innerType:e,typeName:y.ZodNullable,...T(t)});class ge extends S{_parse(t){const{ctx:r}=this._processInputParams(t);let i=r.data;return r.parsedType===l.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}ge.create=(e,t)=>new ge({innerType:e,typeName:y.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...T(t)});class nt extends S{_parse(t){const{ctx:r}=this._processInputParams(t),i={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Xe(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new b(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new b(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}nt.create=(e,t)=>new nt({innerType:e,typeName:y.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...T(t)});class it extends S{_parse(t){if(this._getType(t)!==l.nan){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.nan,received:i.parsedType}),g}return{status:"valid",value:t.data}}}it.create=e=>new it({typeName:y.ZodNaN,...T(e)});const $u=Symbol("zod_brand");class ho extends S{_parse(t){const{ctx:r}=this._processInputParams(t),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}}class he extends S{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?g:o.status==="dirty"?(r.dirty(),mo(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?g:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(t,r){return new he({in:t,out:r,typeName:y.ZodPipeline})}}class at extends S{_parse(t){const r=this._def.innerType._parse(t);return oe(r)&&(r.value=Object.freeze(r.value)),r}}at.create=(e,t)=>new at({innerType:e,typeName:y.ZodReadonly,...T(t)});const To=(e,t={},r)=>e?W.create().superRefine((i,a)=>{var o,s;if(!e(i)){const c=typeof t=="function"?t(i):typeof t=="string"?{message:t}:t,p=(s=(o=c.fatal)!==null&&o!==void 0?o:r)!==null&&s!==void 0?s:!0,d=typeof c=="string"?{message:c}:c;a.addIssue({code:"custom",...d,fatal:p})}}):W.create(),zu={object:D.lazycreate};var y;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(y||(y={}));const Qu=(e,t={message:`Input not instance of ${e.name}`})=>To(r=>r instanceof e,t),So=U.create,Oo=H.create,Gu=it.create,Ku=Z.create,No=se.create,Wu=B.create,Yu=xe.create,Xu=ce.create,xu=ue.create,ju=W.create,ed=$.create,td=k.create,rd=je.create,nd=_.create,id=D.create,ad=D.strictCreate,od=de.create,sd=tt.create,cd=le.create,ud=F.create,dd=fe.create,ld=rt.create,fd=z.create,pd=X.create,md=pe.create,yd=me.create,gd=V.create,hd=ye.create,Td=x.create,Co=R.create,Sd=q.create,Od=Q.create,Nd=R.createWithPreprocess,Cd=he.create;var Te=Object.freeze({__proto__:null,defaultErrorMap:ae,setErrorMap:_u,getErrorMap:We,makeIssue:Ye,EMPTY_PATH:Ru,addIssueToContext:f,ParseStatus:P,INVALID:g,DIRTY:mo,OK:w,isAborted:At,isDirty:It,isValid:oe,isAsync:Xe,get util(){return N},get objectUtil(){return wt},ZodParsedType:l,getParsedType:M,ZodType:S,ZodString:U,ZodNumber:H,ZodBigInt:Z,ZodBoolean:se,ZodDate:B,ZodSymbol:xe,ZodUndefined:ce,ZodNull:ue,ZodAny:W,ZodUnknown:$,ZodNever:k,ZodVoid:je,ZodArray:_,ZodObject:D,ZodUnion:de,ZodDiscriminatedUnion:tt,ZodIntersection:le,ZodTuple:F,ZodRecord:fe,ZodMap:rt,ZodSet:z,ZodFunction:X,ZodLazy:pe,ZodLiteral:me,ZodEnum:V,ZodNativeEnum:ye,ZodPromise:x,ZodEffects:R,ZodTransformer:R,ZodOptional:q,ZodNullable:Q,ZodDefault:ge,ZodCatch:nt,ZodNaN:it,BRAND:$u,ZodBranded:ho,ZodPipeline:he,ZodReadonly:at,custom:To,Schema:S,ZodSchema:S,late:zu,get ZodFirstPartyTypeKind(){return y},coerce:{string:e=>U.create({...e,coerce:!0}),number:e=>H.create({...e,coerce:!0}),boolean:e=>se.create({...e,coerce:!0}),bigint:e=>Z.create({...e,coerce:!0}),date:e=>B.create({...e,coerce:!0})},any:ju,array:nd,bigint:Ku,boolean:No,date:Wu,discriminatedUnion:sd,effect:Co,enum:gd,function:pd,instanceof:Qu,intersection:cd,lazy:md,literal:yd,map:ld,nan:Gu,nativeEnum:hd,never:td,null:xu,nullable:Od,number:Oo,object:id,oboolean:()=>No().optional(),onumber:()=>Oo().optional(),optional:Sd,ostring:()=>So().optional(),pipeline:Cd,preprocess:Nd,promise:Td,record:dd,set:fd,strictObject:ad,string:So,symbol:Yu,transformer:Co,tuple:ud,undefined:Xu,union:od,unknown:ed,void:rd,NEVER:g,ZodIssueCode:u,quotelessJson:Uu,ZodError:b});function Dd(e){return e===401||e===403}function Pd(e){return Object.entries(e).map(([t,r])=>`${encodeURIComponent(t)}=${encodeURIComponent(r)}`).join("&")}const Jd=Te.object({access_token:Te.string().min(1),token_type:Te.string(),expires_in:Te.number(),scope:Te.string()});async function wd(e){const r=await(await fetch(e.tokenUrl,{method:"POST",body:Pd({grant_type:"client_credentials",client_id:e.clientId,client_secret:e.clientSecret}),headers:{"Content-Type":"application/x-www-form-urlencoded"}})).json();return Ad(r)}function Ad(e){const t=Jd.safeParse(e);if(!t.success)throw new Error("Bad access token response");return t.data}class Id{constructor(t){E(this,"activeRequest",null);E(this,"refreshTimeout");E(this,"accessToken",null);this.clientCredentials=t}async getAccessToken(){return this.accessToken?this.accessToken:await this.refreshAccessToken()}async refreshAccessToken(){if(this.activeRequest)return await this.activeRequest,this.accessToken;this.accessToken=null,this.activeRequest=wd(this.clientCredentials);const t=await this.activeRequest;return this.scheduleNextRefresh(t),this.accessToken=t.access_token,this.activeRequest=null,this.accessToken}scheduleNextRefresh(t){clearTimeout(this.refreshTimeout);const r=(t.expires_in-2)*1e3;this.refreshTimeout=setTimeout(()=>{this.accessToken=null},r)}}function Do(e,t){e.headers=bd("Authorization",`Bearer ${t}`,e.headers)}function bd(e,t,r){return r?Array.isArray(r)?r.map(([i,a])=>i!==e?[i,a]:[e,t]):Ud(r)?(r.has(e)?r.set(e,t):r.append(e,t),r):(r[e]=t,r):(r={},r[e]=t,r)}function Ud(e){return"append"in e&&"delete"in e&&"get"in e&&"has"in e&&"set"in e&&"forEach"in e}function _d(e){const t=new Id(e);return{pre:async r=>{const i=await t.getAccessToken();return Do(r.init,i),Promise.resolve({url:r.url,init:r.init})},post:async r=>{if(Dd(r.response.status)){const i=await t.refreshAccessToken();return Do(r.init,i),await fetch(r.url,r.init)}return Promise.resolve(r.response)}}}function Rd(e){const t=[];let r={};e.clientCredentials&&t.push(_d(e.clientCredentials)),e.managementApiKey&&(r=vd(e.managementApiKey));const i=new L({basePath:e.managementApiUrl,headers:r,credentials:"same-origin",middleware:t,...e.configOverrides});return{uiApi:new lo(i),useCaseApi:new fo(i),enterpriseEditionApi:new uo(i)}}function vd(e){return{"X-Api-Key":e}}n.AssetFilterConstraintFromJSON=ct,n.AssetFilterConstraintFromJSONTyped=Ht,n.AssetFilterConstraintOperator=Se,n.AssetFilterConstraintOperatorFromJSON=Lt,n.AssetFilterConstraintOperatorFromJSONTyped=Mt,n.AssetFilterConstraintOperatorToJSON=Ro,n.AssetFilterConstraintOperatorToJSONTyped=vo,n.AssetFilterConstraintToJSON=ut,n.AssetFilterConstraintToJSONTyped=Zt,n.AssetPageFromJSON=Qt,n.AssetPageFromJSONTyped=Gt,n.AssetPageToJSON=Ho,n.AssetPageToJSONTyped=Kt,n.BASE_PATH=A,n.BaseAPI=G,n.BlobApiResponse=Uo,n.BuildInfoFromJSON=Wt,n.BuildInfoFromJSONTyped=Yt,n.BuildInfoToJSON=Vo,n.BuildInfoToJSONTyped=Xt,n.COLLECTION_FORMATS=wo,n.CallbackAddressDtoFromJSON=Ce,n.CallbackAddressDtoFromJSONTyped=tr,n.CallbackAddressDtoToJSON=De,n.CallbackAddressDtoToJSONTyped=rr,n.CallbackAddressEventType=Ne,n.CallbackAddressEventTypeFromJSON=xt,n.CallbackAddressEventTypeFromJSONTyped=jt,n.CallbackAddressEventTypeToJSON=er,n.CallbackAddressEventTypeToJSONTyped=$o,n.CatalogFilterExpressionFromJSON=lr,n.CatalogFilterExpressionFromJSONTyped=fr,n.CatalogFilterExpressionLiteralFromJSON=ar,n.CatalogFilterExpressionLiteralFromJSONTyped=or,n.CatalogFilterExpressionLiteralToJSON=sr,n.CatalogFilterExpressionLiteralToJSONTyped=cr,n.CatalogFilterExpressionLiteralType=Pe,n.CatalogFilterExpressionLiteralTypeFromJSON=nr,n.CatalogFilterExpressionLiteralTypeFromJSONTyped=ir,n.CatalogFilterExpressionLiteralTypeToJSON=Go,n.CatalogFilterExpressionLiteralTypeToJSONTyped=Ko,n.CatalogFilterExpressionOperator=Je,n.CatalogFilterExpressionOperatorFromJSON=ur,n.CatalogFilterExpressionOperatorFromJSONTyped=dr,n.CatalogFilterExpressionOperatorToJSON=Xo,n.CatalogFilterExpressionOperatorToJSONTyped=xo,n.CatalogFilterExpressionToJSON=pr,n.CatalogFilterExpressionToJSONTyped=mr,n.CatalogQueryFromJSON=ts,n.CatalogQueryFromJSONTyped=yr,n.CatalogQueryToJSON=gr,n.CatalogQueryToJSONTyped=hr,n.CatalogQueryV2FromJSON=ss,n.CatalogQueryV2FromJSONTyped=Pr,n.CatalogQueryV2ToJSON=Jr,n.CatalogQueryV2ToJSONTyped=wr,n.CatalogSortByDirection=we,n.CatalogSortByDirectionFromJSON=Tr,n.CatalogSortByDirectionFromJSONTyped=Sr,n.CatalogSortByDirectionToJSON=ns,n.CatalogSortByDirectionToJSONTyped=is,n.CatalogSortByFromJSON=Or,n.CatalogSortByFromJSONTyped=Nr,n.CatalogSortByToJSON=Cr,n.CatalogSortByToJSONTyped=Dr,n.Configuration=L,n.ConnectorLimitsFromJSON=Ar,n.ConnectorLimitsFromJSONTyped=Ir,n.ConnectorLimitsToJSON=us,n.ConnectorLimitsToJSONTyped=br,n.ContractAgreementCardFromJSON=gt,n.ContractAgreementCardFromJSONTyped=sn,n.ContractAgreementCardToJSON=cn,n.ContractAgreementCardToJSONTyped=un,n.ContractAgreementDirection=Ae,n.ContractAgreementDirectionFromJSON=dt,n.ContractAgreementDirectionFromJSONTyped=Ur,n.ContractAgreementDirectionToJSON=ls,n.ContractAgreementDirectionToJSONTyped=fs,n.ContractAgreementPageFromJSON=dn,n.ContractAgreementPageFromJSONTyped=ln,n.ContractAgreementPageQueryFromJSON=Vs,n.ContractAgreementPageQueryFromJSONTyped=pn,n.ContractAgreementPageQueryToJSON=mn,n.ContractAgreementPageQueryToJSONTyped=yn,n.ContractAgreementPageToJSON=Hs,n.ContractAgreementPageToJSONTyped=fn,n.ContractAgreementTerminationInfoFromJSON=lt,n.ContractAgreementTerminationInfoFromJSONTyped=vr,n.ContractAgreementTerminationInfoToJSON=ft,n.ContractAgreementTerminationInfoToJSONTyped=Fr,n.ContractAgreementTransferProcessFromJSON=Mr,n.ContractAgreementTransferProcessFromJSONTyped=Hr,n.ContractAgreementTransferProcessToJSON=Zr,n.ContractAgreementTransferProcessToJSONTyped=Vr,n.ContractDefinitionEntryFromJSON=wn,n.ContractDefinitionEntryFromJSONTyped=An,n.ContractDefinitionEntryToJSON=In,n.ContractDefinitionEntryToJSONTyped=bn,n.ContractDefinitionPageFromJSON=Un,n.ContractDefinitionPageFromJSONTyped=_n,n.ContractDefinitionPageToJSON=js,n.ContractDefinitionPageToJSONTyped=Rn,n.ContractDefinitionRequestFromJSON=tc,n.ContractDefinitionRequestFromJSONTyped=vn,n.ContractDefinitionRequestToJSON=Fn,n.ContractDefinitionRequestToJSONTyped=En,n.ContractNegotiationRequestFromJSON=nc,n.ContractNegotiationRequestFromJSONTyped=kn,n.ContractNegotiationRequestToJSON=qn,n.ContractNegotiationRequestToJSONTyped=Ln,n.ContractNegotiationSimplifiedState=Le,n.ContractNegotiationSimplifiedStateFromJSON=Mn,n.ContractNegotiationSimplifiedStateFromJSONTyped=Hn,n.ContractNegotiationSimplifiedStateToJSON=ac,n.ContractNegotiationSimplifiedStateToJSONTyped=oc,n.ContractNegotiationStateFromJSON=Me,n.ContractNegotiationStateFromJSONTyped=Zn,n.ContractNegotiationStateResultFromJSON=Bn,n.ContractNegotiationStateResultFromJSONTyped=$n,n.ContractNegotiationStateResultToJSON=uc,n.ContractNegotiationStateResultToJSONTyped=zn,n.ContractNegotiationStateToJSON=He,n.ContractNegotiationStateToJSONTyped=Vn,n.ContractTerminatedBy=Ie,n.ContractTerminatedByFromJSON=_r,n.ContractTerminatedByFromJSONTyped=Rr,n.ContractTerminatedByToJSON=ms,n.ContractTerminatedByToJSONTyped=ys,n.ContractTerminationRequestFromJSON=lc,n.ContractTerminationRequestFromJSONTyped=Qn,n.ContractTerminationRequestToJSON=Gn,n.ContractTerminationRequestToJSONTyped=Kn,n.ContractTerminationStatus=Re,n.ContractTerminationStatusFromJSON=pt,n.ContractTerminationStatusFromJSONTyped=Br,n.ContractTerminationStatusToJSON=Ds,n.ContractTerminationStatusToJSONTyped=Ps,n.DashboardCxDidConfigFromJSON=Wn,n.DashboardCxDidConfigFromJSONTyped=Yn,n.DashboardCxDidConfigToJSON=Xn,n.DashboardCxDidConfigToJSONTyped=xn,n.DashboardDapsConfigFromJSON=jn,n.DashboardDapsConfigFromJSONTyped=ei,n.DashboardDapsConfigToJSON=ti,n.DashboardDapsConfigToJSONTyped=ri,n.DashboardPageFromJSON=ai,n.DashboardPageFromJSONTyped=oi,n.DashboardPageToJSON=gc,n.DashboardPageToJSONTyped=si,n.DashboardTransferAmountsFromJSON=St,n.DashboardTransferAmountsFromJSONTyped=ni,n.DashboardTransferAmountsToJSON=Ot,n.DashboardTransferAmountsToJSONTyped=ii,n.DataOfferCreateRequestFromJSON=Rc,n.DataOfferCreateRequestFromJSONTyped=bi,n.DataOfferCreateRequestToJSON=Ui,n.DataOfferCreateRequestToJSONTyped=_i,n.DataOfferPublishType=Ze,n.DataOfferPublishTypeFromJSON=ci,n.DataOfferPublishTypeFromJSONTyped=ui,n.DataOfferPublishTypeToJSON=Tc,n.DataOfferPublishTypeToJSONTyped=Sc,n.DataSourceAvailability=Oe,n.DataSourceAvailabilityFromJSON=Vt,n.DataSourceAvailabilityFromJSONTyped=Bt,n.DataSourceAvailabilityToJSON=ko,n.DataSourceAvailabilityToJSONTyped=qo,n.DataSourceType=Ve,n.DataSourceTypeFromJSON=di,n.DataSourceTypeFromJSONTyped=li,n.DataSourceTypeToJSON=Nc,n.DataSourceTypeToJSONTyped=Cc,n.DefaultConfig=Rt,n.EdrDtoFromJSON=Ri,n.EdrDtoFromJSONTyped=vi,n.EdrDtoToJSON=Fc,n.EdrDtoToJSONTyped=Fi,n.EnterpriseEditionApi=uo,n.FetchError=Ft,n.IdAvailabilityResponseFromJSON=ze,n.IdAvailabilityResponseFromJSONTyped=Ei,n.IdAvailabilityResponseToJSON=kc,n.IdAvailabilityResponseToJSONTyped=ki,n.IdResponseDtoFromJSON=J,n.IdResponseDtoFromJSONTyped=qi,n.IdResponseDtoToJSON=Lc,n.IdResponseDtoToJSONTyped=Li,n.InitiateCustomTransferRequestFromJSON=Hc,n.InitiateCustomTransferRequestFromJSONTyped=Mi,n.InitiateCustomTransferRequestToJSON=Hi,n.InitiateCustomTransferRequestToJSONTyped=Zi,n.InitiateTransferRequestFromJSON=Vc,n.InitiateTransferRequestFromJSONTyped=Vi,n.InitiateTransferRequestToJSON=Bi,n.InitiateTransferRequestToJSONTyped=$i,n.JSONApiResponse=h,n.KpiResultFromJSON=Wi,n.KpiResultFromJSONTyped=Yi,n.KpiResultToJSON=zc,n.KpiResultToJSONTyped=Xi,n.NegotiateAllQueryFromJSON=Gc,n.NegotiateAllQueryFromJSONTyped=xi,n.NegotiateAllQueryToJSON=ji,n.NegotiateAllQueryToJSONTyped=ea,n.NegotiateAllResultFromJSON=ta,n.NegotiateAllResultFromJSONTyped=ra,n.NegotiateAllResultToJSON=Wc,n.NegotiateAllResultToJSONTyped=na,n.OperatorDto=ve,n.OperatorDtoFromJSON=$r,n.OperatorDtoFromJSONTyped=zr,n.OperatorDtoToJSON=ws,n.OperatorDtoToJSONTyped=As,n.PolicyDefinitionCreateDtoFromJSON=Xc,n.PolicyDefinitionCreateDtoFromJSONTyped=ia,n.PolicyDefinitionCreateDtoToJSON=aa,n.PolicyDefinitionCreateDtoToJSONTyped=oa,n.PolicyDefinitionCreateRequestFromJSON=eu,n.PolicyDefinitionCreateRequestFromJSONTyped=la,n.PolicyDefinitionCreateRequestToJSON=fa,n.PolicyDefinitionCreateRequestToJSONTyped=pa,n.PolicyDefinitionDtoFromJSON=ma,n.PolicyDefinitionDtoFromJSONTyped=ya,n.PolicyDefinitionDtoToJSON=ga,n.PolicyDefinitionDtoToJSONTyped=ha,n.PolicyDefinitionPageFromJSON=Ta,n.PolicyDefinitionPageFromJSONTyped=Sa,n.PolicyDefinitionPageToJSON=nu,n.PolicyDefinitionPageToJSONTyped=Oa,n.RequiredError=C,n.ResponseError=vt,n.SecretValueFromJSON=Nt,n.SecretValueFromJSONTyped=fi,n.SecretValueToJSON=Ct,n.SecretValueToJSONTyped=pi,n.TextApiResponse=qt,n.TransferHistoryEntryFromJSON=Na,n.TransferHistoryEntryFromJSONTyped=Ca,n.TransferHistoryEntryToJSON=Da,n.TransferHistoryEntryToJSONTyped=Pa,n.TransferHistoryPageFromJSON=Ja,n.TransferHistoryPageFromJSONTyped=wa,n.TransferHistoryPageToJSON=ou,n.TransferHistoryPageToJSONTyped=Aa,n.TransferProcessSimplifiedState=be,n.TransferProcessSimplifiedStateFromJSON=Er,n.TransferProcessSimplifiedStateFromJSONTyped=kr,n.TransferProcessSimplifiedStateToJSON=Ts,n.TransferProcessSimplifiedStateToJSONTyped=Ss,n.TransferProcessStateFromJSON=Ue,n.TransferProcessStateFromJSONTyped=qr,n.TransferProcessStateResultFromJSON=Ia,n.TransferProcessStateResultFromJSONTyped=ba,n.TransferProcessStateResultToJSON=cu,n.TransferProcessStateResultToJSONTyped=Ua,n.TransferProcessStateToJSON=_e,n.TransferProcessStateToJSONTyped=Lr,n.TransferProcessStatesDtoFromJSON=zi,n.TransferProcessStatesDtoFromJSONTyped=Qi,n.TransferProcessStatesDtoToJSON=Gi,n.TransferProcessStatesDtoToJSONTyped=Ki,n.UIApi=lo,n.UiAssetCreateRequestFromJSON=wi,n.UiAssetCreateRequestFromJSONTyped=Ai,n.UiAssetCreateRequestToJSON=$e,n.UiAssetCreateRequestToJSONTyped=Ii,n.UiAssetEditRequestFromJSON=du,n.UiAssetEditRequestFromJSONTyped=_a,n.UiAssetEditRequestToJSON=Ra,n.UiAssetEditRequestToJSONTyped=va,n.UiAssetFromJSON=K,n.UiAssetFromJSONTyped=$t,n.UiAssetToJSON=j,n.UiAssetToJSONTyped=zt,n.UiConfigFeature=Qe,n.UiConfigFeatureFromJSON=Fa,n.UiConfigFeatureFromJSONTyped=Ea,n.UiConfigFeatureToJSON=ka,n.UiConfigFeatureToJSONTyped=fu,n.UiConfigFromJSON=Za,n.UiConfigFromJSONTyped=Va,n.UiConfigPreconfiguredCounterpartyFromJSON=qa,n.UiConfigPreconfiguredCounterpartyFromJSONTyped=La,n.UiConfigPreconfiguredCounterpartyToJSON=Ma,n.UiConfigPreconfiguredCounterpartyToJSONTyped=Ha,n.UiConfigToJSON=yu,n.UiConfigToJSONTyped=Ba,n.UiContractNegotiationFromJSON=Jt,n.UiContractNegotiationFromJSONTyped=$a,n.UiContractNegotiationToJSON=hu,n.UiContractNegotiationToJSONTyped=za,n.UiContractOfferFromJSON=Qa,n.UiContractOfferFromJSONTyped=Ga,n.UiContractOfferToJSON=Ka,n.UiContractOfferToJSONTyped=Wa,n.UiCriterionFromJSON=ht,n.UiCriterionFromJSONTyped=Pn,n.UiCriterionLiteralFromJSON=Tn,n.UiCriterionLiteralFromJSONTyped=Sn,n.UiCriterionLiteralToJSON=On,n.UiCriterionLiteralToJSONTyped=Nn,n.UiCriterionLiteralType=ke,n.UiCriterionLiteralTypeFromJSON=gn,n.UiCriterionLiteralTypeFromJSONTyped=hn,n.UiCriterionLiteralTypeToJSON=$s,n.UiCriterionLiteralTypeToJSONTyped=zs,n.UiCriterionOperator=qe,n.UiCriterionOperatorFromJSON=Cn,n.UiCriterionOperatorFromJSONTyped=Dn,n.UiCriterionOperatorToJSON=Ks,n.UiCriterionOperatorToJSONTyped=Ws,n.UiCriterionToJSON=Tt,n.UiCriterionToJSONTyped=Jn,n.UiDataOfferFromJSON=ie,n.UiDataOfferFromJSONTyped=Ya,n.UiDataOfferToJSON=Ou,n.UiDataOfferToJSONTyped=Xa,n.UiDataSinkHttpDataPushFromJSON=eo,n.UiDataSinkHttpDataPushFromJSONTyped=to,n.UiDataSinkHttpDataPushMethod=Ge,n.UiDataSinkHttpDataPushMethodFromJSON=xa,n.UiDataSinkHttpDataPushMethodFromJSONTyped=ja,n.UiDataSinkHttpDataPushMethodToJSON=Cu,n.UiDataSinkHttpDataPushMethodToJSONTyped=Du,n.UiDataSinkHttpDataPushToJSON=ro,n.UiDataSinkHttpDataPushToJSONTyped=no,n.UiDataSourceFromJSON=Dt,n.UiDataSourceFromJSONTyped=Pi,n.UiDataSourceHttpDataFromJSON=gi,n.UiDataSourceHttpDataFromJSONTyped=hi,n.UiDataSourceHttpDataMethod=Be,n.UiDataSourceHttpDataMethodFromJSON=mi,n.UiDataSourceHttpDataMethodFromJSONTyped=yi,n.UiDataSourceHttpDataMethodToJSON=Jc,n.UiDataSourceHttpDataMethodToJSONTyped=wc,n.UiDataSourceHttpDataToJSON=Ti,n.UiDataSourceHttpDataToJSONTyped=Si,n.UiDataSourceOnRequestFromJSON=Oi,n.UiDataSourceOnRequestFromJSONTyped=Ni,n.UiDataSourceOnRequestToJSON=Ci,n.UiDataSourceOnRequestToJSONTyped=Di,n.UiDataSourceToJSON=Pt,n.UiDataSourceToJSONTyped=Ji,n.UiInitiateTransferRequestFromJSON=bu,n.UiInitiateTransferRequestFromJSONTyped=oo,n.UiInitiateTransferRequestToJSON=so,n.UiInitiateTransferRequestToJSONTyped=co,n.UiInitiateTransferType=Ke,n.UiInitiateTransferTypeFromJSON=io,n.UiInitiateTransferTypeFromJSONTyped=ao,n.UiInitiateTransferTypeToJSON=wu,n.UiInitiateTransferTypeToJSONTyped=Au,n.UiPolicyConstraintFromJSON=mt,n.UiPolicyConstraintFromJSONTyped=xr,n.UiPolicyConstraintToJSON=yt,n.UiPolicyConstraintToJSONTyped=jr,n.UiPolicyCreateRequestFromJSON=sa,n.UiPolicyCreateRequestFromJSONTyped=ca,n.UiPolicyCreateRequestToJSON=ua,n.UiPolicyCreateRequestToJSONTyped=da,n.UiPolicyExpressionFromJSON=ee,n.UiPolicyExpressionFromJSONTyped=rn,n.UiPolicyExpressionToJSON=te,n.UiPolicyExpressionToJSONTyped=nn,n.UiPolicyExpressionType=Ee,n.UiPolicyExpressionTypeFromJSON=en,n.UiPolicyExpressionTypeFromJSONTyped=tn,n.UiPolicyExpressionTypeToJSON=Fs,n.UiPolicyExpressionTypeToJSONTyped=Es,n.UiPolicyFromJSON=re,n.UiPolicyFromJSONTyped=an,n.UiPolicyLiteralFromJSON=Kr,n.UiPolicyLiteralFromJSONTyped=Wr,n.UiPolicyLiteralToJSON=Yr,n.UiPolicyLiteralToJSONTyped=Xr,n.UiPolicyLiteralType=Fe,n.UiPolicyLiteralTypeFromJSON=Qr,n.UiPolicyLiteralTypeFromJSONTyped=Gr,n.UiPolicyLiteralTypeToJSON=bs,n.UiPolicyLiteralTypeToJSONTyped=Us,n.UiPolicyToJSON=ne,n.UiPolicyToJSONTyped=on,n.UseCaseApi=fo,n.VoidApiResponse=kt,n.buildEdcClient=Rd,n.canConsumeForm=bo,n.exists=Ao,n.instanceOfAssetFilterConstraint=Fo,n.instanceOfAssetFilterConstraintOperator=_o,n.instanceOfAssetPage=Mo,n.instanceOfBuildInfo=Zo,n.instanceOfCallbackAddressDto=zo,n.instanceOfCallbackAddressEventType=Bo,n.instanceOfCatalogFilterExpression=jo,n.instanceOfCatalogFilterExpressionLiteral=Wo,n.instanceOfCatalogFilterExpressionLiteralType=Qo,n.instanceOfCatalogFilterExpressionOperator=Yo,n.instanceOfCatalogQuery=es,n.instanceOfCatalogQueryV2=os,n.instanceOfCatalogSortBy=as,n.instanceOfCatalogSortByDirection=rs,n.instanceOfConnectorLimits=cs,n.instanceOfContractAgreementCard=Ls,n.instanceOfContractAgreementDirection=ds,n.instanceOfContractAgreementPage=Ms,n.instanceOfContractAgreementPageQuery=Zs,n.instanceOfContractAgreementTerminationInfo=gs,n.instanceOfContractAgreementTransferProcess=Ns,n.instanceOfContractDefinitionEntry=Xs,n.instanceOfContractDefinitionPage=xs,n.instanceOfContractDefinitionRequest=ec,n.instanceOfContractNegotiationRequest=rc,n.instanceOfContractNegotiationSimplifiedState=ic,n.instanceOfContractNegotiationState=sc,n.instanceOfContractNegotiationStateResult=cc,n.instanceOfContractTerminatedBy=ps,n.instanceOfContractTerminationRequest=dc,n.instanceOfContractTerminationStatus=Cs,n.instanceOfDashboardCxDidConfig=fc,n.instanceOfDashboardDapsConfig=pc,n.instanceOfDashboardPage=yc,n.instanceOfDashboardTransferAmounts=mc,n.instanceOfDataOfferCreateRequest=_c,n.instanceOfDataOfferPublishType=hc,n.instanceOfDataSourceAvailability=Eo,n.instanceOfDataSourceType=Oc,n.instanceOfEdrDto=vc,n.instanceOfIdAvailabilityResponse=Ec,n.instanceOfIdResponseDto=qc,n.instanceOfInitiateCustomTransferRequest=Mc,n.instanceOfInitiateTransferRequest=Zc,n.instanceOfKpiResult=$c,n.instanceOfNegotiateAllQuery=Qc,n.instanceOfNegotiateAllResult=Kc,n.instanceOfOperatorDto=Js,n.instanceOfPolicyDefinitionCreateDto=Yc,n.instanceOfPolicyDefinitionCreateRequest=jc,n.instanceOfPolicyDefinitionDto=tu,n.instanceOfPolicyDefinitionPage=ru,n.instanceOfSecretValue=Dc,n.instanceOfTransferHistoryEntry=iu,n.instanceOfTransferHistoryPage=au,n.instanceOfTransferProcessSimplifiedState=hs,n.instanceOfTransferProcessState=Os,n.instanceOfTransferProcessStateResult=su,n.instanceOfTransferProcessStatesDto=Bc,n.instanceOfUiAsset=Lo,n.instanceOfUiAssetCreateRequest=Uc,n.instanceOfUiAssetEditRequest=uu,n.instanceOfUiConfig=mu,n.instanceOfUiConfigFeature=lu,n.instanceOfUiConfigPreconfiguredCounterparty=pu,n.instanceOfUiContractNegotiation=gu,n.instanceOfUiContractOffer=Tu,n.instanceOfUiCriterion=Ys,n.instanceOfUiCriterionLiteral=Qs,n.instanceOfUiCriterionLiteralType=Bs,n.instanceOfUiCriterionOperator=Gs,n.instanceOfUiDataOffer=Su,n.instanceOfUiDataSinkHttpDataPush=Pu,n.instanceOfUiDataSinkHttpDataPushMethod=Nu,n.instanceOfUiDataSource=bc,n.instanceOfUiDataSourceHttpData=Ac,n.instanceOfUiDataSourceHttpDataMethod=Pc,n.instanceOfUiDataSourceOnRequest=Ic,n.instanceOfUiInitiateTransferRequest=Iu,n.instanceOfUiInitiateTransferType=Ju,n.instanceOfUiPolicy=qs,n.instanceOfUiPolicyConstraint=Rs,n.instanceOfUiPolicyCreateRequest=xc,n.instanceOfUiPolicyExpression=ks,n.instanceOfUiPolicyExpressionType=vs,n.instanceOfUiPolicyLiteral=_s,n.instanceOfUiPolicyLiteralType=Is,n.mapValues=Io,n.querystring=st,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(n,w){typeof exports=="object"&&typeof module<"u"?w(exports):typeof define=="function"&&define.amd?define(["exports"],w):(n=typeof globalThis<"u"?globalThis:n||self,w(n["sovity-edc-client"]={}))})(this,function(n){"use strict";var jl=Object.defineProperty;var ef=(n,w,L)=>w in n?jl(n,w,{enumerable:!0,configurable:!0,writable:!0,value:L}):n[w]=L;var E=(n,w,L)=>ef(n,typeof w!="symbol"?w+"":w,L);const w="https://my-connector/api/management".replace(/\/+$/,"");class L{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:w}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||dt}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const qt=new L,ut=class ut{constructor(t=qt){E(this,"middleware");E(this,"fetchApi",async(t,r)=>{let i={url:t,init:r};for(const o of this.middleware)o.pre&&(i=await o.pre({fetch:this.fetchApi,...i})||i);let a;try{a=await(this.configuration.fetchApi||fetch)(i.url,i.init)}catch(o){for(const s of this.middleware)s.onError&&(a=await s.onError({fetch:this.fetchApi,url:i.url,init:i.init,error:o,response:a?a.clone():void 0})||a);if(a===void 0)throw o instanceof Error?new Ht(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(a=await o.post({fetch:this.fetchApi,url:i.url,init:i.init,response:a.clone()})||a);return a});this.configuration=t,this.middleware=t.middleware}withMiddleware(...t){const r=this.clone();return r.middleware=r.middleware.concat(...t),r}withPreMiddleware(...t){const r=t.map(i=>({pre:i}));return this.withMiddleware(...r)}withPostMiddleware(...t){const r=t.map(i=>({post:i}));return this.withMiddleware(...r)}isJsonMime(t){return t?ut.jsonRegex.test(t):!1}async request(t,r){const{url:i,init:a}=await this.createFetchParams(t,r),o=await this.fetchApi(i,a);if(o&&o.status>=200&&o.status<300)return o;throw new Lt(o,"Response returned an error code")}async createFetchParams(t,r){let i=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(i+="?"+this.configuration.queryParamsStringify(t.query));const a=Object.assign({},this.configuration.headers,t.headers);Object.keys(a).forEach(O=>a[O]===void 0?delete a[O]:{});const o=typeof r=="function"?r:async()=>r,s={method:t.method,headers:a,body:t.body,credentials:this.configuration.credentials},c={...s,...await o({init:s,context:t})};let p;Ts(c.body)||c.body instanceof URLSearchParams||Ss(c.body)?p=c.body:this.isJsonMime(a["Content-Type"])?p=JSON.stringify(c.body):p=c.body;const d={...c,body:p};return{url:i,init:d}}clone(){const t=this.constructor,r=new t(this.configuration);return r.middleware=this.middleware.slice(),r}};E(ut,"jsonRegex",new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"));let K=ut;function Ss(e){return typeof Blob<"u"&&e instanceof Blob}function Ts(e){return typeof FormData<"u"&&e instanceof FormData}class Lt extends Error{constructor(r,i){super(i);E(this,"name","ResponseError");this.response=r}}class Ht extends Error{constructor(r,i){super(i);E(this,"name","FetchError");this.cause=r}}class C extends Error{constructor(r,i){super(i);E(this,"name","RequiredError");this.field=r}}const Os={csv:",",ssv:" ",tsv:" ",pipes:"|"};function dt(e,t=""){return Object.keys(e).map(r=>Vt(r,e[r],t)).filter(r=>r.length>0).join("&")}function Vt(e,t,r=""){const i=r+(r.length?`[${e}]`:e);if(t instanceof Array){const a=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(i)}=`);return`${encodeURIComponent(i)}=${a}`}if(t instanceof Set){const a=Array.from(t);return Vt(e,a,r)}return t instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?dt(t,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`}function Ns(e,t){const r=e[t];return r!=null}function Cs(e,t){return Object.keys(e).reduce((r,i)=>({...r,[i]:t(e[i])}),{})}function Ps(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class g{constructor(t,r=i=>i){this.raw=t,this.transformer=r}async value(){return this.transformer(await this.raw.json())}}class Mt{constructor(t){this.raw=t}async value(){}}class Ds{constructor(t){this.raw=t}async value(){return await this.raw.blob()}}class Zt{constructor(t){this.raw=t}async value(){return await this.raw.text()}}const Te={Like:"LIKE",Eq:"EQ",In:"IN"};function Js(e){for(const t in Te)if(Object.prototype.hasOwnProperty.call(Te,t)&&Te[t]===e)return!0;return!1}function Bt(e){return zt(e)}function zt(e,t){return e}function As(e){return e}function ws(e,t){return e}function Us(e){return!(!("assetPropertyPath"in e)||e.assetPropertyPath===void 0||!("operator"in e)||e.operator===void 0)}function lt(e){return Qt(e)}function Qt(e,t){return e==null?e:{assetPropertyPath:e.assetPropertyPath,operator:Bt(e.operator),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function ft(e){return $t(e,!1)}function $t(e,t=!1){return e==null?e:{assetPropertyPath:e.assetPropertyPath,operator:e.operator,value:e.value,valueList:e.valueList}}const Oe={Live:"LIVE",OnRequest:"ON_REQUEST"};function Is(e){for(const t in Oe)if(Object.prototype.hasOwnProperty.call(Oe,t)&&Oe[t]===e)return!0;return!1}function Kt(e){return Gt(e)}function Gt(e,t){return e}function bs(e){return e}function _s(e,t){return e}function Fs(e){return!(!("dataSourceAvailability"in e)||e.dataSourceAvailability===void 0||!("assetId"in e)||e.assetId===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0||!("title"in e)||e.title===void 0||!("creatorOrganizationName"in e)||e.creatorOrganizationName===void 0||!("isOwnConnector"in e)||e.isOwnConnector===void 0)}function G(e){return Wt(e)}function Wt(e,t){return e==null?e:{dataSourceAvailability:Kt(e.dataSourceAvailability),assetId:e.assetId,connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,title:e.title,creatorOrganizationName:e.creatorOrganizationName,onRequestContactEmail:e.onRequestContactEmail==null?void 0:e.onRequestContactEmail,onRequestContactEmailSubject:e.onRequestContactEmailSubject==null?void 0:e.onRequestContactEmailSubject,language:e.language==null?void 0:e.language,description:e.description==null?void 0:e.description,descriptionShortText:e.descriptionShortText==null?void 0:e.descriptionShortText,isOwnConnector:e.isOwnConnector,publisherHomepage:e.publisherHomepage==null?void 0:e.publisherHomepage,licenseUrl:e.licenseUrl==null?void 0:e.licenseUrl,version:e.version==null?void 0:e.version,keywords:e.keywords==null?void 0:e.keywords,mediaType:e.mediaType==null?void 0:e.mediaType,landingPageUrl:e.landingPageUrl==null?void 0:e.landingPageUrl,httpDatasourceHintsProxyMethod:e.httpDatasourceHintsProxyMethod==null?void 0:e.httpDatasourceHintsProxyMethod,httpDatasourceHintsProxyPath:e.httpDatasourceHintsProxyPath==null?void 0:e.httpDatasourceHintsProxyPath,httpDatasourceHintsProxyQueryParams:e.httpDatasourceHintsProxyQueryParams==null?void 0:e.httpDatasourceHintsProxyQueryParams,httpDatasourceHintsProxyBody:e.httpDatasourceHintsProxyBody==null?void 0:e.httpDatasourceHintsProxyBody,dataModel:e.dataModel==null?void 0:e.dataModel,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),assetJsonLd:e.assetJsonLd==null?void 0:e.assetJsonLd,customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function j(e){return Yt(e,!1)}function Yt(e,t=!1){return e==null?e:{dataSourceAvailability:e.dataSourceAvailability,assetId:e.assetId,connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,title:e.title,creatorOrganizationName:e.creatorOrganizationName,onRequestContactEmail:e.onRequestContactEmail,onRequestContactEmailSubject:e.onRequestContactEmailSubject,language:e.language,description:e.description,descriptionShortText:e.descriptionShortText,isOwnConnector:e.isOwnConnector,publisherHomepage:e.publisherHomepage,licenseUrl:e.licenseUrl,version:e.version,keywords:e.keywords,mediaType:e.mediaType,landingPageUrl:e.landingPageUrl,httpDatasourceHintsProxyMethod:e.httpDatasourceHintsProxyMethod,httpDatasourceHintsProxyPath:e.httpDatasourceHintsProxyPath,httpDatasourceHintsProxyQueryParams:e.httpDatasourceHintsProxyQueryParams,httpDatasourceHintsProxyBody:e.httpDatasourceHintsProxyBody,dataModel:e.dataModel,sovereignLegalName:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),assetJsonLd:e.assetJsonLd,customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function Rs(e){return!(!("assets"in e)||e.assets===void 0)}function Xt(e){return xt(e)}function xt(e,t){return e==null?e:{assets:e.assets.map(G)}}function vs(e){return jt(e,!1)}function jt(e,t=!1){return e==null?e:{assets:e.assets.map(j)}}function Es(e){return!(!("buildDate"in e)||e.buildDate===void 0||!("buildVersion"in e)||e.buildVersion===void 0)}function er(e){return tr(e)}function tr(e,t){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}function ks(e){return rr(e,!1)}function rr(e,t=!1){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}const Ne={ContractNegotiationFinalized:"CONTRACT_NEGOTIATION_FINALIZED",ContractNegotiationTerminated:"CONTRACT_NEGOTIATION_TERMINATED",TransferProcessStarted:"TRANSFER_PROCESS_STARTED",TransferProcessTerminated:"TRANSFER_PROCESS_TERMINATED",TransferProcessCompleted:"TRANSFER_PROCESS_COMPLETED"};function qs(e){for(const t in Ne)if(Object.prototype.hasOwnProperty.call(Ne,t)&&Ne[t]===e)return!0;return!1}function nr(e){return ir(e)}function ir(e,t){return e}function ar(e){return e}function Ls(e,t){return e}function Hs(e){return!(!("url"in e)||e.url===void 0||!("events"in e)||e.events===void 0)}function Ce(e){return or(e)}function or(e,t){return e==null?e:{url:e.url,events:e.events.map(nr),authHeaderName:e.authHeaderName==null?void 0:e.authHeaderName,authHeaderVaultSecretName:e.authHeaderVaultSecretName==null?void 0:e.authHeaderVaultSecretName}}function Pe(e){return sr(e,!1)}function sr(e,t=!1){return e==null?e:{url:e.url,events:e.events.map(ar),authHeaderName:e.authHeaderName,authHeaderVaultSecretName:e.authHeaderVaultSecretName}}const De={Value:"VALUE",ValueList:"VALUE_LIST"};function Vs(e){for(const t in De)if(Object.prototype.hasOwnProperty.call(De,t)&&De[t]===e)return!0;return!1}function cr(e){return ur(e)}function ur(e,t){return e}function Ms(e){return e}function Zs(e,t){return e}function Bs(e){return!0}function dr(e){return lr(e)}function lr(e,t){return e==null?e:{type:e.type==null?void 0:cr(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function fr(e){return pr(e,!1)}function pr(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const Je={Like:"LIKE",Eq:"EQ",In:"IN"};function zs(e){for(const t in Je)if(Object.prototype.hasOwnProperty.call(Je,t)&&Je[t]===e)return!0;return!1}function mr(e){return yr(e)}function yr(e,t){return e}function Qs(e){return e}function $s(e,t){return e}function Ks(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function gr(e){return hr(e)}function hr(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:mr(e.operator),operandRight:dr(e.operandRight)}}function Sr(e){return Tr(e,!1)}function Tr(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:fr(e.operandRight)}}function Gs(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function Ws(e){return Or(e)}function Or(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId==null?void 0:e.participantId,limit:e.limit==null?void 0:e.limit,offset:e.offset==null?void 0:e.offset,filterExpressions:e.filterExpressions==null?void 0:e.filterExpressions.map(gr)}}function Nr(e){return Cr(e,!1)}function Cr(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,limit:e.limit,offset:e.offset,filterExpressions:e.filterExpressions==null?void 0:e.filterExpressions.map(Sr)}}const Ae={Asc:"ASC",Desc:"DESC"};function Ys(e){for(const t in Ae)if(Object.prototype.hasOwnProperty.call(Ae,t)&&Ae[t]===e)return!0;return!1}function Pr(e){return Dr(e)}function Dr(e,t){return e}function Xs(e){return e}function xs(e,t){return e}function js(e){return!(!("assetPropertyPath"in e)||e.assetPropertyPath===void 0)}function Jr(e){return Ar(e)}function Ar(e,t){return e==null?e:{assetPropertyPath:e.assetPropertyPath,direction:e.direction==null?void 0:Pr(e.direction)}}function wr(e){return Ur(e,!1)}function Ur(e,t=!1){return e==null?e:{assetPropertyPath:e.assetPropertyPath,direction:e.direction}}function ec(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0)}function tc(e){return Ir(e)}function Ir(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter==null?void 0:e.filter.map(lt),limit:e.limit==null?void 0:e.limit,offset:e.offset==null?void 0:e.offset,sortBy:e.sortBy==null?void 0:Jr(e.sortBy)}}function br(e){return _r(e,!1)}function _r(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter==null?void 0:e.filter.map(ft),limit:e.limit,offset:e.offset,sortBy:wr(e.sortBy)}}function rc(e){return!(!("numActiveConsumingContractAgreements"in e)||e.numActiveConsumingContractAgreements===void 0)}function Fr(e){return Rr(e)}function Rr(e,t){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements==null?void 0:e.maxActiveConsumingContractAgreements}}function nc(e){return vr(e,!1)}function vr(e,t=!1){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements}}const we={Consuming:"CONSUMING",Providing:"PROVIDING"};function ic(e){for(const t in we)if(Object.prototype.hasOwnProperty.call(we,t)&&we[t]===e)return!0;return!1}function pt(e){return Er(e)}function Er(e,t){return e}function ac(e){return e}function oc(e,t){return e}const Ue={Self:"SELF",Counterparty:"COUNTERPARTY"};function sc(e){for(const t in Ue)if(Object.prototype.hasOwnProperty.call(Ue,t)&&Ue[t]===e)return!0;return!1}function kr(e){return qr(e)}function qr(e,t){return e}function cc(e){return e}function uc(e,t){return e}function dc(e){return!(!("terminatedAt"in e)||e.terminatedAt===void 0||!("reason"in e)||e.reason===void 0||!("detail"in e)||e.detail===void 0||!("terminatedBy"in e)||e.terminatedBy===void 0)}function mt(e){return Lr(e)}function Lr(e,t){return e==null?e:{terminatedAt:new Date(e.terminatedAt),reason:e.reason,detail:e.detail,terminatedBy:kr(e.terminatedBy)}}function yt(e){return Hr(e,!1)}function Hr(e,t=!1){return e==null?e:{terminatedAt:e.terminatedAt.toISOString(),reason:e.reason,detail:e.detail,terminatedBy:e.terminatedBy}}const Ie={Running:"RUNNING",Ok:"OK",Error:"ERROR"};function lc(e){for(const t in Ie)if(Object.prototype.hasOwnProperty.call(Ie,t)&&Ie[t]===e)return!0;return!1}function Vr(e){return Mr(e)}function Mr(e,t){return e}function fc(e){return e}function pc(e,t){return e}function mc(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function be(e){return Zr(e)}function Zr(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:Vr(e.simplifiedState)}}function _e(e){return Br(e,!1)}function Br(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function yc(e){return!(!("transferProcessId"in e)||e.transferProcessId===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0||!("state"in e)||e.state===void 0)}function zr(e){return Qr(e)}function Qr(e,t){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:new Date(e.lastUpdatedDate),state:be(e.state),errorMessage:e.errorMessage==null?void 0:e.errorMessage}}function $r(e){return Kr(e,!1)}function Kr(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:e.lastUpdatedDate.toISOString(),state:_e(e.state),errorMessage:e.errorMessage}}const Fe={Ongoing:"ONGOING",Terminated:"TERMINATED"};function gc(e){for(const t in Fe)if(Object.prototype.hasOwnProperty.call(Fe,t)&&Fe[t]===e)return!0;return!1}function gt(e){return Gr(e)}function Gr(e,t){return e}function hc(e){return e}function Sc(e,t){return e}const Re={Eq:"EQ",Neq:"NEQ",Gt:"GT",Geq:"GEQ",Lt:"LT",Leq:"LEQ",In:"IN",HasPart:"HAS_PART",IsA:"IS_A",IsAllOf:"IS_ALL_OF",IsAnyOf:"IS_ANY_OF",IsNoneOf:"IS_NONE_OF"};function Tc(e){for(const t in Re)if(Object.prototype.hasOwnProperty.call(Re,t)&&Re[t]===e)return!0;return!1}function Wr(e){return Yr(e)}function Yr(e,t){return e}function Oc(e){return e}function Nc(e,t){return e}const ve={String:"STRING",StringList:"STRING_LIST",Json:"JSON"};function Cc(e){for(const t in ve)if(Object.prototype.hasOwnProperty.call(ve,t)&&ve[t]===e)return!0;return!1}function Xr(e){return xr(e)}function xr(e,t){return e}function Pc(e){return e}function Dc(e,t){return e}function Jc(e){return!(!("type"in e)||e.type===void 0)}function jr(e){return en(e)}function en(e,t){return e==null?e:{type:Xr(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function tn(e){return rn(e,!1)}function rn(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}function Ac(e){return!(!("left"in e)||e.left===void 0||!("operator"in e)||e.operator===void 0||!("right"in e)||e.right===void 0)}function ht(e){return nn(e)}function nn(e,t){return e==null?e:{left:e.left,operator:Wr(e.operator),right:jr(e.right)}}function St(e){return an(e,!1)}function an(e,t=!1){return e==null?e:{left:e.left,operator:e.operator,right:tn(e.right)}}const Ee={Empty:"EMPTY",Constraint:"CONSTRAINT",And:"AND",Or:"OR",Xone:"XONE"};function wc(e){for(const t in Ee)if(Object.prototype.hasOwnProperty.call(Ee,t)&&Ee[t]===e)return!0;return!1}function on(e){return sn(e)}function sn(e,t){return e}function Uc(e){return e}function Ic(e,t){return e}function bc(e){return!(!("type"in e)||e.type===void 0)}function ee(e){return cn(e)}function cn(e,t){return e==null?e:{type:on(e.type),expressions:e.expressions==null?void 0:e.expressions.map(ee),constraint:e.constraint==null?void 0:ht(e.constraint)}}function te(e){return un(e,!1)}function un(e,t=!1){return e==null?e:{type:e.type,expressions:e.expressions==null?void 0:e.expressions.map(te),constraint:St(e.constraint)}}function _c(e){return!(!("policyJsonLd"in e)||e.policyJsonLd===void 0||!("errors"in e)||e.errors===void 0)}function re(e){return dn(e)}function dn(e,t){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:e.expression==null?void 0:ee(e.expression),errors:e.errors}}function ne(e){return ln(e,!1)}function ln(e,t=!1){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:te(e.expression),errors:e.errors}}function Fc(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("direction"in e)||e.direction===void 0||!("counterPartyAddress"in e)||e.counterPartyAddress===void 0||!("counterPartyId"in e)||e.counterPartyId===void 0||!("contractSigningDate"in e)||e.contractSigningDate===void 0||!("asset"in e)||e.asset===void 0||!("contractPolicy"in e)||e.contractPolicy===void 0||!("transferProcesses"in e)||e.transferProcesses===void 0||!("terminationStatus"in e)||e.terminationStatus===void 0)}function Tt(e){return fn(e)}function fn(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,contractNegotiationId:e.contractNegotiationId,direction:pt(e.direction),counterPartyAddress:e.counterPartyAddress,counterPartyId:e.counterPartyId,contractSigningDate:new Date(e.contractSigningDate),asset:G(e.asset),contractPolicy:re(e.contractPolicy),transferProcesses:e.transferProcesses.map(zr),terminationStatus:gt(e.terminationStatus),terminationInformation:e.terminationInformation==null?void 0:mt(e.terminationInformation)}}function pn(e){return mn(e,!1)}function mn(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,contractNegotiationId:e.contractNegotiationId,direction:e.direction,counterPartyAddress:e.counterPartyAddress,counterPartyId:e.counterPartyId,contractSigningDate:e.contractSigningDate.toISOString(),asset:j(e.asset),contractPolicy:ne(e.contractPolicy),transferProcesses:e.transferProcesses.map($r),terminationStatus:e.terminationStatus,terminationInformation:yt(e.terminationInformation)}}function Rc(e){return!(!("contractAgreements"in e)||e.contractAgreements===void 0)}function yn(e){return gn(e)}function gn(e,t){return e==null?e:{contractAgreements:e.contractAgreements.map(Tt)}}function vc(e){return hn(e,!1)}function hn(e,t=!1){return e==null?e:{contractAgreements:e.contractAgreements.map(pn)}}function Ec(e){return!0}function kc(e){return Sn(e)}function Sn(e,t){return e==null?e:{terminationStatus:e.terminationStatus==null?void 0:gt(e.terminationStatus)}}function Tn(e){return On(e,!1)}function On(e,t=!1){return e==null?e:{terminationStatus:e.terminationStatus}}const ke={Value:"VALUE",ValueList:"VALUE_LIST"};function qc(e){for(const t in ke)if(Object.prototype.hasOwnProperty.call(ke,t)&&ke[t]===e)return!0;return!1}function Nn(e){return Cn(e)}function Cn(e,t){return e}function Lc(e){return e}function Hc(e,t){return e}function Vc(e){return!0}function Pn(e){return Dn(e)}function Dn(e,t){return e==null?e:{type:e.type==null?void 0:Nn(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Jn(e){return An(e,!1)}function An(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const qe={Eq:"EQ",In:"IN",Like:"LIKE"};function Mc(e){for(const t in qe)if(Object.prototype.hasOwnProperty.call(qe,t)&&qe[t]===e)return!0;return!1}function wn(e){return Un(e)}function Un(e,t){return e}function Zc(e){return e}function Bc(e,t){return e}function zc(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function Ot(e){return In(e)}function In(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:wn(e.operator),operandRight:Pn(e.operandRight)}}function Nt(e){return bn(e,!1)}function bn(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:Jn(e.operandRight)}}function Qc(e){return!(!("contractDefinitionId"in e)||e.contractDefinitionId===void 0||!("accessPolicyId"in e)||e.accessPolicyId===void 0||!("contractPolicyId"in e)||e.contractPolicyId===void 0||!("assetSelector"in e)||e.assetSelector===void 0)}function _n(e){return Fn(e)}function Fn(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(Ot)}}function Rn(e){return vn(e,!1)}function vn(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(Nt)}}function $c(e){return!(!("contractDefinitions"in e)||e.contractDefinitions===void 0)}function En(e){return kn(e)}function kn(e,t){return e==null?e:{contractDefinitions:e.contractDefinitions.map(_n)}}function Kc(e){return qn(e,!1)}function qn(e,t=!1){return e==null?e:{contractDefinitions:e.contractDefinitions.map(Rn)}}function Gc(e){return!(!("contractDefinitionId"in e)||e.contractDefinitionId===void 0||!("contractPolicyId"in e)||e.contractPolicyId===void 0||!("accessPolicyId"in e)||e.accessPolicyId===void 0||!("assetSelector"in e)||e.assetSelector===void 0)}function Wc(e){return Ln(e)}function Ln(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(Ot)}}function Hn(e){return Vn(e,!1)}function Vn(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(Nt)}}function Yc(e){return!(!("counterPartyId"in e)||e.counterPartyId===void 0||!("counterPartyAddress"in e)||e.counterPartyAddress===void 0||!("contractOfferId"in e)||e.contractOfferId===void 0||!("policyJsonLd"in e)||e.policyJsonLd===void 0||!("assetId"in e)||e.assetId===void 0)}function Xc(e){return Mn(e)}function Mn(e,t){return e==null?e:{counterPartyId:e.counterPartyId,counterPartyAddress:e.counterPartyAddress,contractOfferId:e.contractOfferId,policyJsonLd:e.policyJsonLd,assetId:e.assetId,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Ce)}}function Zn(e){return Bn(e,!1)}function Bn(e,t=!1){return e==null?e:{counterPartyId:e.counterPartyId,counterPartyAddress:e.counterPartyAddress,contractOfferId:e.contractOfferId,policyJsonLd:e.policyJsonLd,assetId:e.assetId,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Pe)}}const Le={InProgress:"IN_PROGRESS",Agreed:"AGREED",Terminated:"TERMINATED"};function xc(e){for(const t in Le)if(Object.prototype.hasOwnProperty.call(Le,t)&&Le[t]===e)return!0;return!1}function zn(e){return Qn(e)}function Qn(e,t){return e}function jc(e){return e}function eu(e,t){return e}function tu(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function He(e){return $n(e)}function $n(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:zn(e.simplifiedState)}}function Ve(e){return Kn(e,!1)}function Kn(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function ru(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("state"in e)||e.state===void 0||!("stateChangedAt"in e)||e.stateChangedAt===void 0)}function Gn(e){return Wn(e)}function Wn(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,state:He(e.state),contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,contractAgreementTerminationInfo:e.contractAgreementTerminationInfo==null?void 0:mt(e.contractAgreementTerminationInfo),stateChangedAt:new Date(e.stateChangedAt)}}function nu(e){return Yn(e,!1)}function Yn(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,state:Ve(e.state),contractAgreementId:e.contractAgreementId,contractAgreementTerminationInfo:yt(e.contractAgreementTerminationInfo),stateChangedAt:e.stateChangedAt.toISOString()}}function iu(e){return!(!("detail"in e)||e.detail===void 0||!("reason"in e)||e.reason===void 0)}function au(e){return Xn(e)}function Xn(e,t){return e==null?e:{detail:e.detail,reason:e.reason}}function xn(e){return jn(e,!1)}function jn(e,t=!1){return e==null?e:{detail:e.detail,reason:e.reason}}function ou(e){return!(!("myDid"in e)||e.myDid===void 0||!("walletTokenUrl"in e)||e.walletTokenUrl===void 0||!("trustedVcIssuer"in e)||e.trustedVcIssuer===void 0||!("bdrsUrl"in e)||e.bdrsUrl===void 0||!("dimUrl"in e)||e.dimUrl===void 0)}function ei(e){return ti(e)}function ti(e,t){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function ri(e){return ni(e,!1)}function ni(e,t=!1){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function su(e){return!(!("tokenUrl"in e)||e.tokenUrl===void 0||!("jwksUrl"in e)||e.jwksUrl===void 0)}function ii(e){return ai(e)}function ai(e,t){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function oi(e){return si(e,!1)}function si(e,t=!1){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function cu(e){return!(!("numTotal"in e)||e.numTotal===void 0||!("numRunning"in e)||e.numRunning===void 0||!("numOk"in e)||e.numOk===void 0||!("numError"in e)||e.numError===void 0)}function Ct(e){return ci(e)}function ci(e,t){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function Pt(e){return ui(e,!1)}function ui(e,t=!1){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function uu(e){return!(!("numAssets"in e)||e.numAssets===void 0||!("numPolicies"in e)||e.numPolicies===void 0||!("numContractDefinitions"in e)||e.numContractDefinitions===void 0||!("numContractAgreementsConsuming"in e)||e.numContractAgreementsConsuming===void 0||!("numContractAgreementsProviding"in e)||e.numContractAgreementsProviding===void 0||!("transferProcessesConsuming"in e)||e.transferProcessesConsuming===void 0||!("transferProcessesProviding"in e)||e.transferProcessesProviding===void 0||!("managementApiUrlShownInDashboard"in e)||e.managementApiUrlShownInDashboard===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("connectorParticipantId"in e)||e.connectorParticipantId===void 0||!("connectorTitle"in e)||e.connectorTitle===void 0||!("connectorDescription"in e)||e.connectorDescription===void 0||!("connectorCuratorUrl"in e)||e.connectorCuratorUrl===void 0||!("connectorCuratorName"in e)||e.connectorCuratorName===void 0||!("connectorMaintainerUrl"in e)||e.connectorMaintainerUrl===void 0||!("connectorMaintainerName"in e)||e.connectorMaintainerName===void 0)}function di(e){return li(e)}function li(e,t){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:Ct(e.transferProcessesConsuming),transferProcessesProviding:Ct(e.transferProcessesProviding),managementApiUrlShownInDashboard:e.managementApiUrlShownInDashboard,connectorEndpoint:e.connectorEndpoint,connectorParticipantId:e.connectorParticipantId,connectorTitle:e.connectorTitle,connectorDescription:e.connectorDescription,connectorCuratorUrl:e.connectorCuratorUrl,connectorCuratorName:e.connectorCuratorName,connectorMaintainerUrl:e.connectorMaintainerUrl,connectorMaintainerName:e.connectorMaintainerName,connectorDapsConfig:e.connectorDapsConfig==null?void 0:ii(e.connectorDapsConfig),connectorCxDidConfig:e.connectorCxDidConfig==null?void 0:ei(e.connectorCxDidConfig)}}function du(e){return fi(e,!1)}function fi(e,t=!1){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:Pt(e.transferProcessesConsuming),transferProcessesProviding:Pt(e.transferProcessesProviding),managementApiUrlShownInDashboard:e.managementApiUrlShownInDashboard,connectorEndpoint:e.connectorEndpoint,connectorParticipantId:e.connectorParticipantId,connectorTitle:e.connectorTitle,connectorDescription:e.connectorDescription,connectorCuratorUrl:e.connectorCuratorUrl,connectorCuratorName:e.connectorCuratorName,connectorMaintainerUrl:e.connectorMaintainerUrl,connectorMaintainerName:e.connectorMaintainerName,connectorDapsConfig:oi(e.connectorDapsConfig),connectorCxDidConfig:ri(e.connectorCxDidConfig)}}const Me={DontPublish:"DONT_PUBLISH",PublishUnrestricted:"PUBLISH_UNRESTRICTED",PublishRestricted:"PUBLISH_RESTRICTED"};function lu(e){for(const t in Me)if(Object.prototype.hasOwnProperty.call(Me,t)&&Me[t]===e)return!0;return!1}function pi(e){return mi(e)}function mi(e,t){return e}function fu(e){return e}function pu(e,t){return e}const Ze={HttpData:"HTTP_DATA",OnRequest:"ON_REQUEST",Custom:"CUSTOM"};function mu(e){for(const t in Ze)if(Object.prototype.hasOwnProperty.call(Ze,t)&&Ze[t]===e)return!0;return!1}function yi(e){return gi(e)}function gi(e,t){return e}function yu(e){return e}function gu(e,t){return e}const Be={Get:"GET",Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Options:"OPTIONS"};function hu(e){for(const t in Be)if(Object.prototype.hasOwnProperty.call(Be,t)&&Be[t]===e)return!0;return!1}function hi(e){return Si(e)}function Si(e,t){return e}function Su(e){return e}function Tu(e,t){return e}function Ou(e){return!(!("headerName"in e)||e.headerName===void 0||!("vaultKey"in e)||e.vaultKey===void 0)}function Dt(e){return Ti(e)}function Ti(e,t){return e==null?e:{headerName:e.headerName,vaultKey:e.vaultKey}}function Jt(e){return Oi(e,!1)}function Oi(e,t=!1){return e==null?e:{headerName:e.headerName,vaultKey:e.vaultKey}}function Nu(e){return!(!("username"in e)||e.username===void 0||!("password"in e)||e.password===void 0)}function At(e){return Ni(e)}function Ni(e,t){return e==null?e:{username:e.username,password:e.password}}function wt(e){return Ci(e,!1)}function Ci(e,t=!1){return e==null?e:{username:e.username,password:e.password}}const ze={SharedSecret:"SHARED_SECRET",PrivateKey:"PRIVATE_KEY"};function Cu(e){for(const t in ze)if(Object.prototype.hasOwnProperty.call(ze,t)&&ze[t]===e)return!0;return!1}function Pi(e){return Di(e)}function Di(e,t){return e}function Pu(e){return e}function Du(e,t){return e}function Ju(e){return!(!("privateKeyName"in e)||e.privateKeyName===void 0||!("tokenValidityInSeconds"in e)||e.tokenValidityInSeconds===void 0)}function Ji(e){return Ai(e)}function Ai(e,t){return e==null?e:{privateKeyName:e.privateKeyName,tokenValidityInSeconds:e.tokenValidityInSeconds}}function wi(e){return Ui(e,!1)}function Ui(e,t=!1){return e==null?e:{privateKeyName:e.privateKeyName,tokenValidityInSeconds:e.tokenValidityInSeconds}}function Au(e){return!(!("clientId"in e)||e.clientId===void 0||!("clientSecretName"in e)||e.clientSecretName===void 0)}function Ii(e){return bi(e)}function bi(e,t){return e==null?e:{clientId:e.clientId,clientSecretName:e.clientSecretName}}function _i(e){return Fi(e,!1)}function Fi(e,t=!1){return e==null?e:{clientId:e.clientId,clientSecretName:e.clientSecretName}}function wu(e){return!(!("tokenUrl"in e)||e.tokenUrl===void 0||!("type"in e)||e.type===void 0)}function Ri(e){return vi(e)}function vi(e,t){return e==null?e:{tokenUrl:e.tokenUrl,scope:e.scope==null?void 0:e.scope,type:Pi(e.type),privateKey:e.privateKey==null?void 0:Ji(e.privateKey),sharedSecret:e.sharedSecret==null?void 0:Ii(e.sharedSecret)}}function Ei(e){return ki(e,!1)}function ki(e,t=!1){return e==null?e:{tokenUrl:e.tokenUrl,scope:e.scope,type:e.type,privateKey:wi(e.privateKey),sharedSecret:_i(e.sharedSecret)}}const Qe={Basic:"BASIC",Oauth2:"OAUTH2",ApiKey:"API_KEY"};function Uu(e){for(const t in Qe)if(Object.prototype.hasOwnProperty.call(Qe,t)&&Qe[t]===e)return!0;return!1}function qi(e){return Li(e)}function Li(e,t){return e}function Iu(e){return e}function bu(e,t){return e}function _u(e){return!(!("type"in e)||e.type===void 0)}function Hi(e){return Vi(e)}function Vi(e,t){return e==null?e:{type:qi(e.type),basic:e.basic==null?void 0:At(e.basic),apiKey:e.apiKey==null?void 0:Dt(e.apiKey),oauth:e.oauth==null?void 0:Ri(e.oauth)}}function Mi(e){return Zi(e,!1)}function Zi(e,t=!1){return e==null?e:{type:e.type,basic:wt(e.basic),apiKey:Jt(e.apiKey),oauth:Ei(e.oauth)}}function Fu(e){return!(!("baseUrl"in e)||e.baseUrl===void 0)}function Bi(e){return zi(e)}function zi(e,t){return e==null?e:{method:e.method==null?void 0:hi(e.method),baseUrl:e.baseUrl,queryString:e.queryString==null?void 0:e.queryString,auth:e.auth==null?void 0:Hi(e.auth),headers:e.headers==null?void 0:e.headers,enableMethodParameterization:e.enableMethodParameterization==null?void 0:e.enableMethodParameterization,enablePathParameterization:e.enablePathParameterization==null?void 0:e.enablePathParameterization,enableQueryParameterization:e.enableQueryParameterization==null?void 0:e.enableQueryParameterization,enableBodyParameterization:e.enableBodyParameterization==null?void 0:e.enableBodyParameterization}}function Qi(e){return $i(e,!1)}function $i(e,t=!1){return e==null?e:{method:e.method,baseUrl:e.baseUrl,queryString:e.queryString,auth:Mi(e.auth),headers:e.headers,enableMethodParameterization:e.enableMethodParameterization,enablePathParameterization:e.enablePathParameterization,enableQueryParameterization:e.enableQueryParameterization,enableBodyParameterization:e.enableBodyParameterization}}function Ru(e){return!(!("contactEmail"in e)||e.contactEmail===void 0||!("contactPreferredEmailSubject"in e)||e.contactPreferredEmailSubject===void 0)}function Ki(e){return Gi(e)}function Gi(e,t){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function Wi(e){return Yi(e,!1)}function Yi(e,t=!1){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function vu(e){return!(!("type"in e)||e.type===void 0)}function Ut(e){return Xi(e)}function Xi(e,t){return e==null?e:{type:yi(e.type),httpData:e.httpData==null?void 0:Bi(e.httpData),onRequest:e.onRequest==null?void 0:Ki(e.onRequest),customProperties:e.customProperties==null?void 0:e.customProperties}}function It(e){return xi(e,!1)}function xi(e,t=!1){return e==null?e:{type:e.type,httpData:Qi(e.httpData),onRequest:Wi(e.onRequest),customProperties:e.customProperties}}function Eu(e){return!(!("dataSource"in e)||e.dataSource===void 0||!("id"in e)||e.id===void 0)}function ji(e){return ea(e)}function ea(e,t){return e==null?e:{dataSource:Ut(e.dataSource),id:e.id,title:e.title==null?void 0:e.title,language:e.language==null?void 0:e.language,description:e.description==null?void 0:e.description,publisherHomepage:e.publisherHomepage==null?void 0:e.publisherHomepage,licenseUrl:e.licenseUrl==null?void 0:e.licenseUrl,version:e.version==null?void 0:e.version,keywords:e.keywords==null?void 0:e.keywords,mediaType:e.mediaType==null?void 0:e.mediaType,landingPageUrl:e.landingPageUrl==null?void 0:e.landingPageUrl,dataModel:e.dataModel==null?void 0:e.dataModel,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function $e(e){return ta(e,!1)}function ta(e,t=!1){return e==null?e:{dataSource:It(e.dataSource),id:e.id,title:e.title,language:e.language,description:e.description,publisherHomepage:e.publisherHomepage,licenseUrl:e.licenseUrl,version:e.version,keywords:e.keywords,mediaType:e.mediaType,landingPageUrl:e.landingPageUrl,dataModel:e.dataModel,sovereignLegalName:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function ku(e){return!(!("asset"in e)||e.asset===void 0||!("publishType"in e)||e.publishType===void 0)}function qu(e){return ra(e)}function ra(e,t){return e==null?e:{asset:ji(e.asset),publishType:pi(e.publishType),policyExpression:e.policyExpression==null?void 0:ee(e.policyExpression)}}function na(e){return ia(e,!1)}function ia(e,t=!1){return e==null?e:{asset:$e(e.asset),publishType:e.publishType,policyExpression:te(e.policyExpression)}}function Lu(e){return!(!("baseUrl"in e)||e.baseUrl===void 0||!("authorizationHeaderValue"in e)||e.authorizationHeaderValue===void 0)}function aa(e){return oa(e)}function oa(e,t){return e==null?e:{baseUrl:e.baseUrl,authorizationHeaderValue:e.authorizationHeaderValue,expiresAt:e.expiresAt==null?void 0:new Date(e.expiresAt)}}function Hu(e){return sa(e,!1)}function sa(e,t=!1){return e==null?e:{baseUrl:e.baseUrl,authorizationHeaderValue:e.authorizationHeaderValue,expiresAt:e.expiresAt==null?void 0:e.expiresAt.toISOString()}}function Vu(e){return!(!("id"in e)||e.id===void 0)}function Ke(e){return ca(e)}function ca(e,t){return e==null?e:{id:e.id,available:e.available==null?void 0:e.available}}function Mu(e){return ua(e,!1)}function ua(e,t=!1){return e==null?e:{id:e.id,available:e.available}}function Zu(e){return!(!("id"in e)||e.id===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0)}function D(e){return da(e)}function da(e,t){return e==null?e:{id:e.id,lastUpdatedDate:new Date(e.lastUpdatedDate)}}function Bu(e){return la(e,!1)}function la(e,t=!1){return e==null?e:{id:e.id,lastUpdatedDate:e.lastUpdatedDate.toISOString()}}function zu(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("transferProcessRequestJsonLd"in e)||e.transferProcessRequestJsonLd===void 0)}function Qu(e){return fa(e)}function fa(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function pa(e){return ma(e,!1)}function ma(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function $u(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("transferType"in e)||e.transferType===void 0||!("dataSinkProperties"in e)||e.dataSinkProperties===void 0||!("transferProcessProperties"in e)||e.transferProcessProperties===void 0)}function Ku(e){return ya(e)}function ya(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function ga(e){return ha(e,!1)}function ha(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function Gu(e){return!(!("incomingTransferProcessCounts"in e)||e.incomingTransferProcessCounts===void 0||!("outgoingTransferProcessCounts"in e)||e.outgoingTransferProcessCounts===void 0)}function Sa(e){return Ta(e)}function Ta(e,t){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function Oa(e){return Na(e,!1)}function Na(e,t=!1){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function Wu(e){return!(!("assetsCount"in e)||e.assetsCount===void 0||!("policiesCount"in e)||e.policiesCount===void 0||!("contractDefinitionsCount"in e)||e.contractDefinitionsCount===void 0||!("contractAgreementsCount"in e)||e.contractAgreementsCount===void 0||!("transferProcessDto"in e)||e.transferProcessDto===void 0)}function Ca(e){return Pa(e)}function Pa(e,t){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:Sa(e.transferProcessDto)}}function Yu(e){return Da(e,!1)}function Da(e,t=!1){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:Oa(e.transferProcessDto)}}function Xu(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0||!("filter"in e)||e.filter===void 0)}function xu(e){return Ja(e)}function Ja(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter.map(lt),limit:e.limit==null?void 0:e.limit,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Ce)}}function Aa(e){return wa(e,!1)}function wa(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter.map(ft),limit:e.limit,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Pe)}}function ju(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("state"in e)||e.state===void 0||!("stateChangedAt"in e)||e.stateChangedAt===void 0||!("asset"in e)||e.asset===void 0||!("policy"in e)||e.policy===void 0)}function Ua(e){return Ia(e)}function Ia(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,state:He(e.state),stateChangedAt:new Date(e.stateChangedAt),asset:G(e.asset),policy:re(e.policy)}}function ed(e){return ba(e,!1)}function ba(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,contractAgreementId:e.contractAgreementId,state:Ve(e.state),stateChangedAt:e.stateChangedAt.toISOString(),asset:j(e.asset),policy:ne(e.policy)}}function td(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("expression"in e)||e.expression===void 0)}function rd(e){return _a(e)}function _a(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,expression:ee(e.expression)}}function Fa(e){return Ra(e,!1)}function Ra(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,expression:te(e.expression)}}function nd(e){return!0}function va(e){return Ea(e)}function Ea(e,t){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(ht)}}function ka(e){return qa(e,!1)}function qa(e,t=!1){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(St)}}function id(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function ad(e){return La(e)}function La(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:va(e.policy)}}function Ha(e){return Va(e,!1)}function Va(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:ka(e.policy)}}function od(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function Ma(e){return Za(e)}function Za(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:re(e.policy)}}function Ba(e){return za(e,!1)}function za(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:ne(e.policy)}}function sd(e){return!(!("policies"in e)||e.policies===void 0)}function Qa(e){return $a(e)}function $a(e,t){return e==null?e:{policies:e.policies.map(Ma)}}function cd(e){return Ka(e,!1)}function Ka(e,t=!1){return e==null?e:{policies:e.policies.map(Ba)}}function ud(e){return!(!("transferProcessId"in e)||e.transferProcessId===void 0||!("createdDate"in e)||e.createdDate===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0||!("transferType"in e)||e.transferType===void 0||!("state"in e)||e.state===void 0||!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("direction"in e)||e.direction===void 0||!("counterPartyConnectorEndpoint"in e)||e.counterPartyConnectorEndpoint===void 0||!("counterPartyParticipantId"in e)||e.counterPartyParticipantId===void 0||!("assetName"in e)||e.assetName===void 0||!("assetId"in e)||e.assetId===void 0||!("isEdrConsumable"in e)||e.isEdrConsumable===void 0)}function Ga(e){return Wa(e)}function Wa(e,t){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:new Date(e.createdDate),lastUpdatedDate:new Date(e.lastUpdatedDate),transferType:e.transferType,state:be(e.state),contractAgreementId:e.contractAgreementId,direction:pt(e.direction),counterPartyConnectorEndpoint:e.counterPartyConnectorEndpoint,counterPartyParticipantId:e.counterPartyParticipantId,assetName:e.assetName,assetId:e.assetId,errorMessage:e.errorMessage==null?void 0:e.errorMessage,isEdrConsumable:e.isEdrConsumable}}function Ya(e){return Xa(e,!1)}function Xa(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:e.createdDate.toISOString(),lastUpdatedDate:e.lastUpdatedDate.toISOString(),transferType:e.transferType,state:_e(e.state),contractAgreementId:e.contractAgreementId,direction:e.direction,counterPartyConnectorEndpoint:e.counterPartyConnectorEndpoint,counterPartyParticipantId:e.counterPartyParticipantId,assetName:e.assetName,assetId:e.assetId,errorMessage:e.errorMessage,isEdrConsumable:e.isEdrConsumable}}function dd(e){return!(!("transferEntries"in e)||e.transferEntries===void 0)}function xa(e){return ja(e)}function ja(e,t){return e==null?e:{transferEntries:e.transferEntries.map(Ga)}}function ld(e){return eo(e,!1)}function eo(e,t=!1){return e==null?e:{transferEntries:e.transferEntries.map(Ya)}}function fd(e){return!(!("transferId"in e)||e.transferId===void 0||!("state"in e)||e.state===void 0||!("stateChangedAt"in e)||e.stateChangedAt===void 0||!("isEdrConsumable"in e)||e.isEdrConsumable===void 0)}function to(e){return ro(e)}function ro(e,t){return e==null?e:{transferId:e.transferId,state:be(e.state),stateChangedAt:new Date(e.stateChangedAt),isEdrConsumable:e.isEdrConsumable}}function pd(e){return no(e,!1)}function no(e,t=!1){return e==null?e:{transferId:e.transferId,state:_e(e.state),stateChangedAt:e.stateChangedAt.toISOString(),isEdrConsumable:e.isEdrConsumable}}function md(e){return!0}function yd(e){return io(e)}function io(e,t){return e==null?e:{dataSourceOverrideOrNull:e.dataSourceOverrideOrNull==null?void 0:Ut(e.dataSourceOverrideOrNull),title:e.title==null?void 0:e.title,language:e.language==null?void 0:e.language,description:e.description==null?void 0:e.description,publisherHomepage:e.publisherHomepage==null?void 0:e.publisherHomepage,licenseUrl:e.licenseUrl==null?void 0:e.licenseUrl,version:e.version==null?void 0:e.version,keywords:e.keywords==null?void 0:e.keywords,mediaType:e.mediaType==null?void 0:e.mediaType,landingPageUrl:e.landingPageUrl==null?void 0:e.landingPageUrl,dataModel:e.dataModel==null?void 0:e.dataModel,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function ao(e){return oo(e,!1)}function oo(e,t=!1){return e==null?e:{dataSourceOverrideOrNull:It(e.dataSourceOverrideOrNull),title:e.title,language:e.language,description:e.description,publisherHomepage:e.publisherHomepage,licenseUrl:e.licenseUrl,version:e.version,keywords:e.keywords,mediaType:e.mediaType,landingPageUrl:e.landingPageUrl,dataModel:e.dataModel,sovereignLegalName:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}const Ge={ConnectorLimits:"CONNECTOR_LIMITS",OpenSourceMarketing:"OPEN_SOURCE_MARKETING",EeBasicMarketing:"EE_BASIC_MARKETING",CatenaPolicies:"CATENA_POLICIES",SovityPolicies:"SOVITY_POLICIES"};function gd(e){for(const t in Ge)if(Object.prototype.hasOwnProperty.call(Ge,t)&&Ge[t]===e)return!0;return!1}function so(e){return co(e)}function co(e,t){return e}function uo(e){return e}function hd(e,t){return e}function Sd(e){return!(!("participantId"in e)||e.participantId===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function lo(e){return fo(e)}function fo(e,t){return e==null?e:{participantId:e.participantId,connectorEndpoint:e.connectorEndpoint}}function po(e){return mo(e,!1)}function mo(e,t=!1){return e==null?e:{participantId:e.participantId,connectorEndpoint:e.connectorEndpoint}}function Td(e){return!(!("features"in e)||e.features===void 0||!("preconfiguredCounterparties"in e)||e.preconfiguredCounterparties===void 0)}function yo(e){return go(e)}function go(e,t){return e==null?e:{features:e.features.map(so),preconfiguredCounterparties:e.preconfiguredCounterparties.map(lo),logoutUrl:e.logoutUrl==null?void 0:e.logoutUrl,documentationUrl:e.documentationUrl==null?void 0:e.documentationUrl,supportUrl:e.supportUrl==null?void 0:e.supportUrl,privacyPolicyUrl:e.privacyPolicyUrl==null?void 0:e.privacyPolicyUrl,legalNoticeUrl:e.legalNoticeUrl==null?void 0:e.legalNoticeUrl}}function Od(e){return ho(e,!1)}function ho(e,t=!1){return e==null?e:{features:e.features.map(uo),preconfiguredCounterparties:e.preconfiguredCounterparties.map(po),logoutUrl:e.logoutUrl,documentationUrl:e.documentationUrl,supportUrl:e.supportUrl,privacyPolicyUrl:e.privacyPolicyUrl,legalNoticeUrl:e.legalNoticeUrl}}function Nd(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("createdAt"in e)||e.createdAt===void 0||!("state"in e)||e.state===void 0)}function bt(e){return So(e)}function So(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:new Date(e.createdAt),contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,state:He(e.state)}}function Cd(e){return To(e,!1)}function To(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:e.createdAt.toISOString(),contractAgreementId:e.contractAgreementId,state:Ve(e.state)}}function Pd(e){return!(!("contractOfferId"in e)||e.contractOfferId===void 0||!("policy"in e)||e.policy===void 0)}function Oo(e){return No(e)}function No(e,t){return e==null?e:{contractOfferId:e.contractOfferId,policy:re(e.policy)}}function Co(e){return Po(e,!1)}function Po(e,t=!1){return e==null?e:{contractOfferId:e.contractOfferId,policy:ne(e.policy)}}function Dd(e){return!(!("endpoint"in e)||e.endpoint===void 0||!("participantId"in e)||e.participantId===void 0||!("asset"in e)||e.asset===void 0||!("contractOffers"in e)||e.contractOffers===void 0)}function ie(e){return Do(e)}function Do(e,t){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:G(e.asset),contractOffers:e.contractOffers.map(Oo)}}function Jd(e){return Jo(e,!1)}function Jo(e,t=!1){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:j(e.asset),contractOffers:e.contractOffers.map(Co)}}const We={Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Options:"OPTIONS"};function Ad(e){for(const t in We)if(Object.prototype.hasOwnProperty.call(We,t)&&We[t]===e)return!0;return!1}function Ao(e){return wo(e)}function wo(e,t){return e}function wd(e){return e}function Ud(e,t){return e}const Ye={Basic:"BASIC",ApiKey:"API_KEY"};function Id(e){for(const t in Ye)if(Object.prototype.hasOwnProperty.call(Ye,t)&&Ye[t]===e)return!0;return!1}function Uo(e){return Io(e)}function Io(e,t){return e}function bd(e){return e}function _d(e,t){return e}function Fd(e){return!(!("type"in e)||e.type===void 0)}function bo(e){return _o(e)}function _o(e,t){return e==null?e:{type:Uo(e.type),basic:e.basic==null?void 0:At(e.basic),apiKey:e.apiKey==null?void 0:Dt(e.apiKey)}}function Fo(e){return Ro(e,!1)}function Ro(e,t=!1){return e==null?e:{type:e.type,basic:wt(e.basic),apiKey:Jt(e.apiKey)}}function Rd(e){return!(!("baseUrl"in e)||e.baseUrl===void 0)}function vo(e){return Eo(e)}function Eo(e,t){return e==null?e:{method:e.method==null?void 0:Ao(e.method),baseUrl:e.baseUrl,queryString:e.queryString==null?void 0:e.queryString,auth:e.auth==null?void 0:bo(e.auth),headers:e.headers==null?void 0:e.headers}}function ko(e){return qo(e,!1)}function qo(e,t=!1){return e==null?e:{method:e.method,baseUrl:e.baseUrl,queryString:e.queryString,auth:Fo(e.auth),headers:e.headers}}const Xe={HttpDataPush:"HTTP_DATA_PUSH",HttpDataProxy:"HTTP_DATA_PROXY",Custom:"CUSTOM"};function vd(e){for(const t in Xe)if(Object.prototype.hasOwnProperty.call(Xe,t)&&Xe[t]===e)return!0;return!1}function Lo(e){return Ho(e)}function Ho(e,t){return e}function Ed(e){return e}function kd(e,t){return e}function qd(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("type"in e)||e.type===void 0)}function Ld(e){return Vo(e)}function Vo(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,type:Lo(e.type),httpDataPush:e.httpDataPush==null?void 0:vo(e.httpDataPush),callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Ce),customDataSinkProperties:e.customDataSinkProperties==null?void 0:e.customDataSinkProperties,customTransferPrivateProperties:e.customTransferPrivateProperties==null?void 0:e.customTransferPrivateProperties,customTransferType:e.customTransferType==null?void 0:e.customTransferType}}function Mo(e){return Zo(e,!1)}function Zo(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,type:e.type,httpDataPush:ko(e.httpDataPush),callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Pe),customDataSinkProperties:e.customDataSinkProperties,customTransferPrivateProperties:e.customTransferPrivateProperties,customTransferType:e.customTransferType}}function Hd(e){return!(!("key"in e)||e.key===void 0||!("value"in e)||e.value===void 0||!("description"in e)||e.description===void 0)}function Vd(e){return Bo(e)}function Bo(e,t){return e==null?e:{key:e.key,value:e.value,description:e.description}}function zo(e){return Qo(e,!1)}function Qo(e,t=!1){return e==null?e:{key:e.key,value:e.value,description:e.description}}function Md(e){return!(!("key"in e)||e.key===void 0||!("description"in e)||e.description===void 0)}function $o(e){return Ko(e)}function Ko(e,t){return e==null?e:{key:e.key,description:e.description}}function Zd(e){return Go(e,!1)}function Go(e,t=!1){return e==null?e:{key:e.key,description:e.description}}function Bd(e){return!(!("description"in e)||e.description===void 0)}function zd(e){return Wo(e)}function Wo(e,t){return e==null?e:{value:e.value==null?void 0:e.value,description:e.description}}function Yo(e){return Xo(e,!1)}function Xo(e,t=!1){return e==null?e:{value:e.value,description:e.description}}function Qd(e){return!(!("key"in e)||e.key===void 0||!("description"in e)||e.description===void 0||!("updatedAt"in e)||e.updatedAt===void 0)}function xo(e){return jo(e)}function jo(e,t){return e==null?e:{key:e.key,description:e.description,updatedAt:new Date(e.updatedAt)}}function $d(e){return es(e,!1)}function es(e,t=!1){return e==null?e:{key:e.key,description:e.description,updatedAt:e.updatedAt.toISOString()}}function Kd(e){return!0}function Gd(e){return ts(e)}function ts(e,t){return e==null?e:{searchQuery:e.searchQuery==null?void 0:e.searchQuery,limit:e.limit==null?void 0:e.limit}}function rs(e){return ns(e,!1)}function ns(e,t=!1){return e==null?e:{searchQuery:e.searchQuery,limit:e.limit}}class is extends K{async connectorLimitsRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ee/connector-limits",method:"GET",headers:i,query:r},t);return new g(a,o=>Fr(o))}async connectorLimits(t){return await(await this.connectorLimitsRaw(t)).value()}async fileUploadCreateAssetRaw(t,r){if(t.blobId==null)throw new C("blobId",'Required parameter "blobId" was null or undefined when calling fileUploadCreateAsset().');if(t.uiAssetCreateRequest==null)throw new C("uiAssetCreateRequest",'Required parameter "uiAssetCreateRequest" was null or undefined when calling fileUploadCreateAsset().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ee/file-upload/blobs/{blobId}/asset".replace("{blobId}",encodeURIComponent(String(t.blobId))),method:"POST",headers:a,query:i,body:$e(t.uiAssetCreateRequest)},r);return new Mt(o)}async fileUploadCreateAsset(t,r){await this.fileUploadCreateAssetRaw(t,r)}async fileUploadRequestSasTokenRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ee/file-upload/blobs",method:"POST",headers:i,query:r},t);return this.isJsonMime(a.headers.get("content-type"))?new g(a):new Zt(a)}async fileUploadRequestSasToken(t){return await(await this.fileUploadRequestSasTokenRaw(t)).value()}}class as extends K{async buildInfoRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/build-info",method:"GET",headers:i,query:r},t);return new g(a,o=>er(o))}async buildInfo(t){return await(await this.buildInfoRaw(t)).value()}async createAssetRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/asset-page/assets",method:"POST",headers:a,query:i,body:$e(t.uiAssetCreateRequest)},r);return new g(o,s=>D(s))}async createAsset(t={},r){return await(await this.createAssetRaw(t,r)).value()}async createContractDefinitionRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-definition-page/contract-definitions",method:"POST",headers:a,query:i,body:Hn(t.contractDefinitionRequest)},r);return new g(o,s=>D(s))}async createContractDefinition(t={},r){return await(await this.createContractDefinitionRaw(t,r)).value()}async createDataOfferRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/create-data-offer",method:"POST",headers:a,query:i,body:na(t.dataOfferCreateRequest)},r);return new g(o,s=>D(s))}async createDataOffer(t={},r){return await(await this.createDataOfferRaw(t,r)).value()}async createPolicyDefinitionRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/policy-page/policy-definitions",method:"POST",headers:a,query:i,body:Ha(t.policyDefinitionCreateRequest)},r);return new g(o,s=>D(s))}async createPolicyDefinition(t={},r){return await(await this.createPolicyDefinitionRaw(t,r)).value()}async createPolicyDefinitionV2Raw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/v2/pages/policy-page/policy-definitions",method:"POST",headers:a,query:i,body:Fa(t.policyDefinitionCreateDto)},r);return new g(o,s=>D(s))}async createPolicyDefinitionV2(t={},r){return await(await this.createPolicyDefinitionV2Raw(t,r)).value()}async createVaultSecretRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/vault-secrets/create-secret",method:"POST",headers:a,query:i,body:zo(t.vaultSecretCreateSubmit)},r);return new g(o,s=>D(s))}async createVaultSecret(t={},r){return await(await this.createVaultSecretRaw(t,r)).value()}async deleteAssetRaw(t,r){if(t.assetId==null)throw new C("assetId",'Required parameter "assetId" was null or undefined when calling deleteAsset().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/asset-page/assets/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"DELETE",headers:a,query:i},r);return new g(o,s=>D(s))}async deleteAsset(t,r){return await(await this.deleteAssetRaw(t,r)).value()}async deleteContractDefinitionRaw(t,r){if(t.contractDefinitionId==null)throw new C("contractDefinitionId",'Required parameter "contractDefinitionId" was null or undefined when calling deleteContractDefinition().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/contract-definition-page/contract-definitions/{contractDefinitionId}".replace("{contractDefinitionId}",encodeURIComponent(String(t.contractDefinitionId))),method:"DELETE",headers:a,query:i},r);return new g(o,s=>D(s))}async deleteContractDefinition(t,r){return await(await this.deleteContractDefinitionRaw(t,r)).value()}async deletePolicyDefinitionRaw(t,r){if(t.policyId==null)throw new C("policyId",'Required parameter "policyId" was null or undefined when calling deletePolicyDefinition().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/policy-page/policy-definitions/{policyId}".replace("{policyId}",encodeURIComponent(String(t.policyId))),method:"DELETE",headers:a,query:i},r);return new g(o,s=>D(s))}async deletePolicyDefinition(t,r){return await(await this.deletePolicyDefinitionRaw(t,r)).value()}async deleteVaultSecretRaw(t,r){if(t.key==null)throw new C("key",'Required parameter "key" was null or undefined when calling deleteVaultSecret().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/vault-secrets/{key}".replace("{key}",encodeURIComponent(String(t.key))),method:"DELETE",headers:a,query:i},r);return new g(o,s=>D(s))}async deleteVaultSecret(t,r){return await(await this.deleteVaultSecretRaw(t,r)).value()}async editAssetRaw(t,r){if(t.assetId==null)throw new C("assetId",'Required parameter "assetId" was null or undefined when calling editAsset().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/asset-page/assets/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"PUT",headers:a,query:i,body:ao(t.uiAssetEditRequest)},r);return new g(o,s=>D(s))}async editAsset(t,r){return await(await this.editAssetRaw(t,r)).value()}async editVaultSecretRaw(t,r){if(t.key==null)throw new C("key",'Required parameter "key" was null or undefined when calling editVaultSecret().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/vault-secrets/{key}/edit-secret".replace("{key}",encodeURIComponent(String(t.key))),method:"POST",headers:a,query:i,body:Yo(t.vaultSecretEditSubmit)},r);return new g(o,s=>D(s))}async editVaultSecret(t,r){return await(await this.editVaultSecretRaw(t,r)).value()}async editVaultSecretPageRaw(t,r){if(t.key==null)throw new C("key",'Required parameter "key" was null or undefined when calling editVaultSecretPage().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/vault-secrets/{key}/edit-secret".replace("{key}",encodeURIComponent(String(t.key))),method:"GET",headers:a,query:i},r);return new g(o,s=>$o(s))}async editVaultSecretPage(t,r){return await(await this.editVaultSecretPageRaw(t,r)).value()}async getAssetPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/asset-page",method:"GET",headers:i,query:r},t);return new g(a,o=>Xt(o))}async getAssetPage(t){return await(await this.getAssetPageRaw(t)).value()}async getCatalogPageDataOfferRaw(t,r){if(t.participantId==null)throw new C("participantId",'Required parameter "participantId" was null or undefined when calling getCatalogPageDataOffer().');if(t.connectorEndpoint==null)throw new C("connectorEndpoint",'Required parameter "connectorEndpoint" was null or undefined when calling getCatalogPageDataOffer().');if(t.dataOfferId==null)throw new C("dataOfferId",'Required parameter "dataOfferId" was null or undefined when calling getCatalogPageDataOffer().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/catalog-page/{connectorEndpoint}/{participantId}/data-offers/{dataOfferId}".replace("{participantId}",encodeURIComponent(String(t.participantId))).replace("{connectorEndpoint}",encodeURIComponent(String(t.connectorEndpoint))).replace("{dataOfferId}",encodeURIComponent(String(t.dataOfferId))),method:"GET",headers:a,query:i},r);return new g(o,s=>ie(s))}async getCatalogPageDataOffer(t,r){return await(await this.getCatalogPageDataOfferRaw(t,r)).value()}async getCatalogPageDataOffersRaw(t,r){const i={};t.participantId!=null&&(i.participantId=t.participantId),t.connectorEndpoint!=null&&(i.connectorEndpoint=t.connectorEndpoint);const a={},o=await this.request({path:"/wrapper/ui/pages/catalog-page/data-offers",method:"GET",headers:a,query:i},r);return new g(o,s=>s.map(ie))}async getCatalogPageDataOffers(t={},r){return await(await this.getCatalogPageDataOffersRaw(t,r)).value()}async getContractAgreementCardRaw(t,r){if(t.contractAgreementId==null)throw new C("contractAgreementId",'Required parameter "contractAgreementId" was null or undefined when calling getContractAgreementCard().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/{contractAgreementId}".replace("{contractAgreementId}",encodeURIComponent(String(t.contractAgreementId))),method:"GET",headers:a,query:i},r);return new g(o,s=>Tt(s))}async getContractAgreementCard(t,r){return await(await this.getContractAgreementCardRaw(t,r)).value()}async getContractAgreementPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page",method:"POST",headers:a,query:i,body:Tn(t.contractAgreementPageQuery)},r);return new g(o,s=>yn(s))}async getContractAgreementPage(t={},r){return await(await this.getContractAgreementPageRaw(t,r)).value()}async getContractDefinitionPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/contract-definition-page",method:"GET",headers:i,query:r},t);return new g(a,o=>En(o))}async getContractDefinitionPage(t){return await(await this.getContractDefinitionPageRaw(t)).value()}async getContractNegotiationRaw(t,r){if(t.contractNegotiationId==null)throw new C("contractNegotiationId",'Required parameter "contractNegotiationId" was null or undefined when calling getContractNegotiation().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/catalog-page/contract-negotiations/{contractNegotiationId}".replace("{contractNegotiationId}",encodeURIComponent(String(t.contractNegotiationId))),method:"GET",headers:a,query:i},r);return new g(o,s=>bt(s))}async getContractNegotiation(t,r){return await(await this.getContractNegotiationRaw(t,r)).value()}async getDashboardPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/dashboard-page",method:"GET",headers:i,query:r},t);return new g(a,o=>di(o))}async getDashboardPage(t){return await(await this.getDashboardPageRaw(t)).value()}async getPolicyDefinitionPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/policy-page",method:"GET",headers:i,query:r},t);return new g(a,o=>Qa(o))}async getPolicyDefinitionPage(t){return await(await this.getPolicyDefinitionPageRaw(t)).value()}async getTransferHistoryPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/transfer-history-page",method:"GET",headers:i,query:r},t);return new g(a,o=>xa(o))}async getTransferHistoryPage(t){return await(await this.getTransferHistoryPageRaw(t)).value()}async getTransferProcessAssetRaw(t,r){if(t.transferProcessId==null)throw new C("transferProcessId",'Required parameter "transferProcessId" was null or undefined when calling getTransferProcessAsset().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/transfer-history-page/transfer-processes/{transferProcessId}/asset".replace("{transferProcessId}",encodeURIComponent(String(t.transferProcessId))),method:"GET",headers:a,query:i},r);return new g(o,s=>G(s))}async getTransferProcessAsset(t,r){return await(await this.getTransferProcessAssetRaw(t,r)).value()}async initiateContractNegotiationRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/catalog-page/contract-negotiations",method:"POST",headers:a,query:i,body:Zn(t.contractNegotiationRequest)},r);return new g(o,s=>bt(s))}async initiateContractNegotiation(t={},r){return await(await this.initiateContractNegotiationRaw(t,r)).value()}async initiateCustomTransferRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/transfers/custom",method:"POST",headers:a,query:i,body:pa(t.initiateCustomTransferRequest)},r);return new g(o,s=>D(s))}async initiateCustomTransfer(t={},r){return await(await this.initiateCustomTransferRaw(t,r)).value()}async initiateTransferRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/transfers",method:"POST",headers:a,query:i,body:ga(t.initiateTransferRequest)},r);return new g(o,s=>D(s))}async initiateTransfer(t={},r){return await(await this.initiateTransferRaw(t,r)).value()}async initiateTransferV2Raw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/initiate-transfer-v2",method:"POST",headers:a,query:i,body:Mo(t.uiInitiateTransferRequest)},r);return new g(o,s=>D(s))}async initiateTransferV2(t={},r){return await(await this.initiateTransferV2Raw(t,r)).value()}async isAssetIdAvailableRaw(t,r){if(t.assetId==null)throw new C("assetId",'Required parameter "assetId" was null or undefined when calling isAssetIdAvailable().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/data-offer-page/validate-asset-id/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"GET",headers:a,query:i},r);return new g(o,s=>Ke(s))}async isAssetIdAvailable(t,r){return await(await this.isAssetIdAvailableRaw(t,r)).value()}async isContractDefinitionIdAvailableRaw(t,r){if(t.contractDefinitionId==null)throw new C("contractDefinitionId",'Required parameter "contractDefinitionId" was null or undefined when calling isContractDefinitionIdAvailable().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/data-offer-page/validate-contract-definition-id/{contractDefinitionId}".replace("{contractDefinitionId}",encodeURIComponent(String(t.contractDefinitionId))),method:"GET",headers:a,query:i},r);return new g(o,s=>Ke(s))}async isContractDefinitionIdAvailable(t,r){return await(await this.isContractDefinitionIdAvailableRaw(t,r)).value()}async isPolicyIdAvailableRaw(t,r){if(t.policyId==null)throw new C("policyId",'Required parameter "policyId" was null or undefined when calling isPolicyIdAvailable().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/data-offer-page/validate-policy-id/{policyId}".replace("{policyId}",encodeURIComponent(String(t.policyId))),method:"GET",headers:a,query:i},r);return new g(o,s=>Ke(s))}async isPolicyIdAvailable(t,r){return await(await this.isPolicyIdAvailableRaw(t,r)).value()}async listVaultSecretsPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/vault-secrets/list-page",method:"GET",headers:a,query:i,body:rs(t.vaultSecretQuery)},r);return new g(o,s=>s.map(xo))}async listVaultSecretsPage(t={},r){return await(await this.listVaultSecretsPageRaw(t,r)).value()}async terminateContractAgreementRaw(t,r){if(t.contractAgreementId==null)throw new C("contractAgreementId",'Required parameter "contractAgreementId" was null or undefined when calling terminateContractAgreement().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/content-agreement-page/{contractAgreementId}/terminate".replace("{contractAgreementId}",encodeURIComponent(String(t.contractAgreementId))),method:"POST",headers:a,query:i,body:xn(t.contractTerminationRequest)},r);return new g(o,s=>D(s))}async terminateContractAgreement(t,r){return await(await this.terminateContractAgreementRaw(t,r)).value()}async uiConfigRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/config",method:"GET",headers:i,query:r},t);return new g(a,o=>yo(o))}async uiConfig(t){return await(await this.uiConfigRaw(t)).value()}}class os extends K{async getContractNegotiationStatesRaw(t,r){if(t.requestBody==null)throw new C("requestBody",'Required parameter "requestBody" was null or undefined when calling getContractNegotiationStates().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/contract-negotiations/states",method:"POST",headers:a,query:i,body:t.requestBody},r);return new g(o,s=>s.map(Gn))}async getContractNegotiationStates(t,r){return await(await this.getContractNegotiationStatesRaw(t,r)).value()}async getKpisRaw(t){const r={},i={},a=await this.request({path:"/wrapper/use-case-api/kpis",method:"GET",headers:i,query:r},t);return new g(a,o=>Ca(o))}async getKpis(t){return await(await this.getKpisRaw(t)).value()}async getSupportedFunctionsRaw(t){const r={},i={},a=await this.request({path:"/wrapper/use-case-api/supported-policy-functions",method:"GET",headers:i,query:r},t);return new g(a)}async getSupportedFunctions(t){return await(await this.getSupportedFunctionsRaw(t)).value()}async getTransferProcessEdrRaw(t,r){if(t.transferId==null)throw new C("transferId",'Required parameter "transferId" was null or undefined when calling getTransferProcessEdr().');const i={},a={},o=await this.request({path:"/wrapper/use-case-api/transfers/{transferId}/edr".replace("{transferId}",encodeURIComponent(String(t.transferId))),method:"POST",headers:a,query:i},r);return new g(o,s=>aa(s))}async getTransferProcessEdr(t,r){return await(await this.getTransferProcessEdrRaw(t,r)).value()}async getTransferProcessStatesRaw(t,r){if(t.requestBody==null)throw new C("requestBody",'Required parameter "requestBody" was null or undefined when calling getTransferProcessStates().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/transfers/states",method:"POST",headers:a,query:i,body:t.requestBody},r);return new g(o,s=>s.map(to))}async getTransferProcessStates(t,r){return await(await this.getTransferProcessStatesRaw(t,r)).value()}async negotiateAllRaw(t,r){if(t.negotiateAllQuery==null)throw new C("negotiateAllQuery",'Required parameter "negotiateAllQuery" was null or undefined when calling negotiateAll().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/negotiations/quick-initiate",method:"POST",headers:a,query:i,body:Aa(t.negotiateAllQuery)},r);return new g(o,s=>s.map(Ua))}async negotiateAll(t,r){return await(await this.negotiateAllRaw(t,r)).value()}async queryCatalogRaw(t,r){if(t.catalogQuery==null)throw new C("catalogQuery",'Required parameter "catalogQuery" was null or undefined when calling queryCatalog().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/catalog",method:"POST",headers:a,query:i,body:Nr(t.catalogQuery)},r);return new g(o,s=>s.map(ie))}async queryCatalog(t,r){return await(await this.queryCatalogRaw(t,r)).value()}async queryCatalogV2Raw(t,r){if(t.catalogQueryV2==null)throw new C("catalogQueryV2",'Required parameter "catalogQueryV2" was null or undefined when calling queryCatalogV2().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/catalog-v2",method:"POST",headers:a,query:i,body:br(t.catalogQueryV2)},r);return new g(o,s=>s.map(ie))}async queryCatalogV2(t,r){return await(await this.queryCatalogV2Raw(t,r)).value()}async terminateTransferProcessRaw(t,r){if(t.transferId==null)throw new C("transferId",'Required parameter "transferId" was null or undefined when calling terminateTransferProcess().');const i={},a={},o=await this.request({path:"/wrapper/use-case-api/transfers/{transferId}/terminate".replace("{transferId}",encodeURIComponent(String(t.transferId))),method:"POST",headers:a,query:i},r);return new g(o,s=>D(s))}async terminateTransferProcess(t,r){return await(await this.terminateTransferProcessRaw(t,r)).value()}}var N;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function r(a){throw new Error}e.assertNever=r,e.arrayToEnum=a=>{const o={};for(const s of a)o[s]=s;return o},e.getValidEnumValues=a=>{const o=e.objectKeys(a).filter(c=>typeof a[a[c]]!="number"),s={};for(const c of o)s[c]=a[c];return e.objectValues(s)},e.objectValues=a=>e.objectKeys(a).map(function(o){return a[o]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const o=[];for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&o.push(s);return o},e.find=(a,o)=>{for(const s of a)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function i(a,o=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(a,o)=>typeof o=="bigint"?o.toString():o})(N||(N={}));var _t;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(_t||(_t={}));const l=N.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),H=e=>{switch(typeof e){case"undefined":return l.undefined;case"string":return l.string;case"number":return isNaN(e)?l.nan:l.number;case"boolean":return l.boolean;case"function":return l.function;case"bigint":return l.bigint;case"symbol":return l.symbol;case"object":return Array.isArray(e)?l.array:e===null?l.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?l.promise:typeof Map<"u"&&e instanceof Map?l.map:typeof Set<"u"&&e instanceof Set?l.set:typeof Date<"u"&&e instanceof Date?l.date:l.object;default:return l.unknown}},u=N.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Wd=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class I extends Error{constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(o){return o.message},i={_errors:[]},a=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)i._errors.push(r(s));else{let c=i,p=0;for(;p<s.path.length;){const d=s.path[p];p===s.path.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(r(s))):c[d]=c[d]||{_errors:[]},c=c[d],p++}}};return a(this),i}toString(){return this.message}get message(){return JSON.stringify(this.issues,N.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},i=[];for(const a of this.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(t(a))):i.push(t(a));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}}I.create=e=>new I(e);const ae=(e,t)=>{let r;switch(e.code){case u.invalid_type:e.received===l.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case u.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,N.jsonStringifyReplacer)}`;break;case u.unrecognized_keys:r=`Unrecognized key(s) in object: ${N.joinValues(e.keys,", ")}`;break;case u.invalid_union:r="Invalid input";break;case u.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${N.joinValues(e.options)}`;break;case u.invalid_enum_value:r=`Invalid enum value. Expected ${N.joinValues(e.options)}, received '${e.received}'`;break;case u.invalid_arguments:r="Invalid function arguments";break;case u.invalid_return_type:r="Invalid function return type";break;case u.invalid_date:r="Invalid date";break;case u.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:N.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case u.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case u.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case u.custom:r="Invalid input";break;case u.invalid_intersection_types:r="Intersection results could not be merged";break;case u.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case u.not_finite:r="Number must be finite";break;default:r=t.defaultError,N.assertNever(e)}return{message:r}};let ss=ae;function Yd(e){ss=e}function xe(){return ss}const je=e=>{const{data:t,path:r,errorMaps:i,issueData:a}=e,o=[...r,...a.path||[]],s={...a,path:o};let c="";const p=i.filter(d=>!!d).slice().reverse();for(const d of p)c=d(s,{data:t,defaultError:c}).message;return{...a,path:o,message:a.message||c}},Xd=[];function f(e,t){const r=je({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,xe(),ae].filter(i=>!!i)});e.common.issues.push(r)}class J{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const i=[];for(const a of r){if(a.status==="aborted")return h;a.status==="dirty"&&t.dirty(),i.push(a.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,r){const i=[];for(const a of r)i.push({key:await a.key,value:await a.value});return J.mergeObjectSync(t,i)}static mergeObjectSync(t,r){const i={};for(const a of r){const{key:o,value:s}=a;if(o.status==="aborted"||s.status==="aborted")return h;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(i[o.value]=s.value)}return{status:t.value,value:i}}}const h=Object.freeze({status:"aborted"}),cs=e=>({status:"dirty",value:e}),A=e=>({status:"valid",value:e}),Ft=e=>e.status==="aborted",Rt=e=>e.status==="dirty",oe=e=>e.status==="valid",et=e=>typeof Promise<"u"&&e instanceof Promise;var m;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(m||(m={}));class R{constructor(t,r,i,a){this._cachedPath=[],this.parent=t,this.data=r,this._path=i,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const us=(e,t)=>{if(oe(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new I(e.common.issues);return this._error=r,this._error}}};function S(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:i,description:a}=e;if(t&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(s,c)=>s.code!=="invalid_type"?{message:c.defaultError}:typeof c.data>"u"?{message:i??c.defaultError}:{message:r??c.defaultError},description:a}}class T{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return H(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:H(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new J,ctx:{common:t.parent.common,data:t.data,parsedType:H(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(et(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const i=this.safeParse(t,r);if(i.success)return i.data;throw i.error}safeParse(t,r){var i;const a={common:{issues:[],async:(i=r==null?void 0:r.async)!==null&&i!==void 0?i:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:H(t)},o=this._parseSync({data:t,path:a.path,parent:a});return us(a,o)}async parseAsync(t,r){const i=await this.safeParseAsync(t,r);if(i.success)return i.data;throw i.error}async safeParseAsync(t,r){const i={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:H(t)},a=this._parse({data:t,path:i.path,parent:i}),o=await(et(a)?a:Promise.resolve(a));return us(i,o)}refine(t,r){const i=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,o)=>{const s=t(a),c=()=>o.addIssue({code:u.custom,...i(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(p=>p?!0:(c(),!1)):s?!0:(c(),!1)})}refinement(t,r){return this._refinement((i,a)=>t(i)?!0:(a.addIssue(typeof r=="function"?r(i,a):r),!1))}_refinement(t){return new F({schema:this,typeName:y.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return q.create(this,this._def)}nullable(){return $.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return _.create(this,this._def)}promise(){return x.create(this,this._def)}or(t){return de.create([this,t],this._def)}and(t){return le.create(this,t,this._def)}transform(t){return new F({...S(this._def),schema:this,typeName:y.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new ge({...S(this._def),innerType:this,defaultValue:r,typeName:y.ZodDefault})}brand(){return new ls({typeName:y.ZodBranded,type:this,...S(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new ot({...S(this._def),innerType:this,catchValue:r,typeName:y.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return he.create(this,t)}readonly(){return ct.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const xd=/^c[^\s-]{8,}$/i,jd=/^[a-z][a-z0-9]*$/,el=/^[0-9A-HJKMNP-TV-Z]{26}$/,tl=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,rl=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,nl="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let vt;const il=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,al=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ol=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function sl(e,t){return!!((t==="v4"||!t)&&il.test(e)||(t==="v6"||!t)&&al.test(e))}class b extends T{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==l.string){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.string,received:o.parsedType}),h}const i=new J;let a;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")t.data.length>o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){const s=t.data.length>o.value,c=t.data.length<o.value;(s||c)&&(a=this._getOrReturnCtx(t,a),s?f(a,{code:u.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):c&&f(a,{code:u.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")rl.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"email",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")vt||(vt=new RegExp(nl,"u")),vt.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"emoji",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")tl.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"uuid",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")xd.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"cuid",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")jd.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"cuid2",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")el.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"ulid",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),f(a,{validation:"url",code:u.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"regex",code:u.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?ol(o).test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="ip"?sl(t.data,o.version)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"ip",code:u.invalid_string,message:o.message}),i.dirty()):N.assertNever(o);return{status:i.value,value:t.data}}_regex(t,r,i){return this.refinement(a=>t.test(a),{validation:r,code:u.invalid_string,...m.errToObj(i)})}_addCheck(t){return new b({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...m.errToObj(t)})}url(t){return this._addCheck({kind:"url",...m.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...m.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...m.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...m.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...m.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...m.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...m.errToObj(t)})}datetime(t){var r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,...m.errToObj(t==null?void 0:t.message)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...m.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...m.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...m.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...m.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...m.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...m.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...m.errToObj(r)})}nonempty(t){return this.min(1,m.errToObj(t))}trim(){return new b({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new b({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new b({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}b.create=e=>{var t;return new b({checks:[],typeName:y.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...S(e)})};function cl(e,t){const r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,a=r>i?r:i,o=parseInt(e.toFixed(a).replace(".","")),s=parseInt(t.toFixed(a).replace(".",""));return o%s/Math.pow(10,a)}class V extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==l.number){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.number,received:o.parsedType}),h}let i;const a=new J;for(const o of this._def.checks)o.kind==="int"?N.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),f(i,{code:u.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?cl(t.data,o.value)!==0&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),f(i,{code:u.not_finite,message:o.message}),a.dirty()):N.assertNever(o);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,m.toString(r))}gt(t,r){return this.setLimit("min",t,!1,m.toString(r))}lte(t,r){return this.setLimit("max",t,!0,m.toString(r))}lt(t,r){return this.setLimit("max",t,!1,m.toString(r))}setLimit(t,r,i,a){return new V({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:m.toString(a)}]})}_addCheck(t){return new V({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:m.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:m.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:m.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:m.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:m.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:m.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:m.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:m.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:m.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&N.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(r)&&Number.isFinite(t)}}V.create=e=>new V({checks:[],typeName:y.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...S(e)});class M extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==l.bigint){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.bigint,received:o.parsedType}),h}let i;const a=new J;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):N.assertNever(o);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,m.toString(r))}gt(t,r){return this.setLimit("min",t,!1,m.toString(r))}lte(t,r){return this.setLimit("max",t,!0,m.toString(r))}lt(t,r){return this.setLimit("max",t,!1,m.toString(r))}setLimit(t,r,i,a){return new M({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:m.toString(a)}]})}_addCheck(t){return new M({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:m.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:m.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:m.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:m.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:m.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}M.create=e=>{var t;return new M({checks:[],typeName:y.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...S(e)})};class se extends T{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==l.boolean){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.boolean,received:i.parsedType}),h}return A(t.data)}}se.create=e=>new se({typeName:y.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...S(e)});class B extends T{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==l.date){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.date,received:o.parsedType}),h}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_date}),h}const i=new J;let a;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):N.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new B({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:m.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:m.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}B.create=e=>new B({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:y.ZodDate,...S(e)});class tt extends T{_parse(t){if(this._getType(t)!==l.symbol){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.symbol,received:i.parsedType}),h}return A(t.data)}}tt.create=e=>new tt({typeName:y.ZodSymbol,...S(e)});class ce extends T{_parse(t){if(this._getType(t)!==l.undefined){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.undefined,received:i.parsedType}),h}return A(t.data)}}ce.create=e=>new ce({typeName:y.ZodUndefined,...S(e)});class ue extends T{_parse(t){if(this._getType(t)!==l.null){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.null,received:i.parsedType}),h}return A(t.data)}}ue.create=e=>new ue({typeName:y.ZodNull,...S(e)});class W extends T{constructor(){super(...arguments),this._any=!0}_parse(t){return A(t.data)}}W.create=e=>new W({typeName:y.ZodAny,...S(e)});class z extends T{constructor(){super(...arguments),this._unknown=!0}_parse(t){return A(t.data)}}z.create=e=>new z({typeName:y.ZodUnknown,...S(e)});class k extends T{_parse(t){const r=this._getOrReturnCtx(t);return f(r,{code:u.invalid_type,expected:l.never,received:r.parsedType}),h}}k.create=e=>new k({typeName:y.ZodNever,...S(e)});class rt extends T{_parse(t){if(this._getType(t)!==l.undefined){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.void,received:i.parsedType}),h}return A(t.data)}}rt.create=e=>new rt({typeName:y.ZodVoid,...S(e)});class _ extends T{_parse(t){const{ctx:r,status:i}=this._processInputParams(t),a=this._def;if(r.parsedType!==l.array)return f(r,{code:u.invalid_type,expected:l.array,received:r.parsedType}),h;if(a.exactLength!==null){const s=r.data.length>a.exactLength.value,c=r.data.length<a.exactLength.value;(s||c)&&(f(r,{code:s?u.too_big:u.too_small,minimum:c?a.exactLength.value:void 0,maximum:s?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(f(r,{code:u.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(f(r,{code:u.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((s,c)=>a.type._parseAsync(new R(r,s,r.path,c)))).then(s=>J.mergeArray(i,s));const o=[...r.data].map((s,c)=>a.type._parseSync(new R(r,s,r.path,c)));return J.mergeArray(i,o)}get element(){return this._def.type}min(t,r){return new _({...this._def,minLength:{value:t,message:m.toString(r)}})}max(t,r){return new _({...this._def,maxLength:{value:t,message:m.toString(r)}})}length(t,r){return new _({...this._def,exactLength:{value:t,message:m.toString(r)}})}nonempty(t){return this.min(1,t)}}_.create=(e,t)=>new _({type:e,minLength:null,maxLength:null,exactLength:null,typeName:y.ZodArray,...S(t)});function Y(e){if(e instanceof P){const t={};for(const r in e.shape){const i=e.shape[r];t[r]=q.create(Y(i))}return new P({...e._def,shape:()=>t})}else return e instanceof _?new _({...e._def,type:Y(e.element)}):e instanceof q?q.create(Y(e.unwrap())):e instanceof $?$.create(Y(e.unwrap())):e instanceof v?v.create(e.items.map(t=>Y(t))):e}class P extends T{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=N.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==l.object){const d=this._getOrReturnCtx(t);return f(d,{code:u.invalid_type,expected:l.object,received:d.parsedType}),h}const{status:i,ctx:a}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),c=[];if(!(this._def.catchall instanceof k&&this._def.unknownKeys==="strip"))for(const d in a.data)s.includes(d)||c.push(d);const p=[];for(const d of s){const O=o[d],U=a.data[d];p.push({key:{status:"valid",value:d},value:O._parse(new R(a,U,a.path,d)),alwaysSet:d in a.data})}if(this._def.catchall instanceof k){const d=this._def.unknownKeys;if(d==="passthrough")for(const O of c)p.push({key:{status:"valid",value:O},value:{status:"valid",value:a.data[O]}});else if(d==="strict")c.length>0&&(f(a,{code:u.unrecognized_keys,keys:c}),i.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const O of c){const U=a.data[O];p.push({key:{status:"valid",value:O},value:d._parse(new R(a,U,a.path,O)),alwaysSet:O in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const d=[];for(const O of p){const U=await O.key;d.push({key:U,value:await O.value,alwaysSet:O.alwaysSet})}return d}).then(d=>J.mergeObjectSync(i,d)):J.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(t){return m.errToObj,new P({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,i)=>{var a,o,s,c;const p=(s=(o=(a=this._def).errorMap)===null||o===void 0?void 0:o.call(a,r,i).message)!==null&&s!==void 0?s:i.defaultError;return r.code==="unrecognized_keys"?{message:(c=m.errToObj(t).message)!==null&&c!==void 0?c:p}:{message:p}}}:{}})}strip(){return new P({...this._def,unknownKeys:"strip"})}passthrough(){return new P({...this._def,unknownKeys:"passthrough"})}extend(t){return new P({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new P({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:y.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new P({...this._def,catchall:t})}pick(t){const r={};return N.objectKeys(t).forEach(i=>{t[i]&&this.shape[i]&&(r[i]=this.shape[i])}),new P({...this._def,shape:()=>r})}omit(t){const r={};return N.objectKeys(this.shape).forEach(i=>{t[i]||(r[i]=this.shape[i])}),new P({...this._def,shape:()=>r})}deepPartial(){return Y(this)}partial(t){const r={};return N.objectKeys(this.shape).forEach(i=>{const a=this.shape[i];t&&!t[i]?r[i]=a:r[i]=a.optional()}),new P({...this._def,shape:()=>r})}required(t){const r={};return N.objectKeys(this.shape).forEach(i=>{if(t&&!t[i])r[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof q;)o=o._def.innerType;r[i]=o}}),new P({...this._def,shape:()=>r})}keyof(){return ds(N.objectKeys(this.shape))}}P.create=(e,t)=>new P({shape:()=>e,unknownKeys:"strip",catchall:k.create(),typeName:y.ZodObject,...S(t)}),P.strictCreate=(e,t)=>new P({shape:()=>e,unknownKeys:"strict",catchall:k.create(),typeName:y.ZodObject,...S(t)}),P.lazycreate=(e,t)=>new P({shape:e,unknownKeys:"strip",catchall:k.create(),typeName:y.ZodObject,...S(t)});class de extends T{_parse(t){const{ctx:r}=this._processInputParams(t),i=this._def.options;function a(o){for(const c of o)if(c.result.status==="valid")return c.result;for(const c of o)if(c.result.status==="dirty")return r.common.issues.push(...c.ctx.common.issues),c.result;const s=o.map(c=>new I(c.ctx.common.issues));return f(r,{code:u.invalid_union,unionErrors:s}),h}if(r.common.async)return Promise.all(i.map(async o=>{const s={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(a);{let o;const s=[];for(const p of i){const d={...r,common:{...r.common,issues:[]},parent:null},O=p._parseSync({data:r.data,path:r.path,parent:d});if(O.status==="valid")return O;O.status==="dirty"&&!o&&(o={result:O,ctx:d}),d.common.issues.length&&s.push(d.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;const c=s.map(p=>new I(p));return f(r,{code:u.invalid_union,unionErrors:c}),h}}get options(){return this._def.options}}de.create=(e,t)=>new de({options:e,typeName:y.ZodUnion,...S(t)});const nt=e=>e instanceof pe?nt(e.schema):e instanceof F?nt(e.innerType()):e instanceof me?[e.value]:e instanceof Z?e.options:e instanceof ye?Object.keys(e.enum):e instanceof ge?nt(e._def.innerType):e instanceof ce?[void 0]:e instanceof ue?[null]:null;class it extends T{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==l.object)return f(r,{code:u.invalid_type,expected:l.object,received:r.parsedType}),h;const i=this.discriminator,a=r.data[i],o=this.optionsMap.get(a);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(f(r,{code:u.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,i){const a=new Map;for(const o of r){const s=nt(o.shape[t]);if(!s)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const c of s){if(a.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);a.set(c,o)}}return new it({typeName:y.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:a,...S(i)})}}function Et(e,t){const r=H(e),i=H(t);if(e===t)return{valid:!0,data:e};if(r===l.object&&i===l.object){const a=N.objectKeys(t),o=N.objectKeys(e).filter(c=>a.indexOf(c)!==-1),s={...e,...t};for(const c of o){const p=Et(e[c],t[c]);if(!p.valid)return{valid:!1};s[c]=p.data}return{valid:!0,data:s}}else if(r===l.array&&i===l.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let o=0;o<e.length;o++){const s=e[o],c=t[o],p=Et(s,c);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return r===l.date&&i===l.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class le extends T{_parse(t){const{status:r,ctx:i}=this._processInputParams(t),a=(o,s)=>{if(Ft(o)||Ft(s))return h;const c=Et(o.value,s.value);return c.valid?((Rt(o)||Rt(s))&&r.dirty(),{status:r.value,value:c.data}):(f(i,{code:u.invalid_intersection_types}),h)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,s])=>a(o,s)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}le.create=(e,t,r)=>new le({left:e,right:t,typeName:y.ZodIntersection,...S(r)});class v extends T{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.array)return f(i,{code:u.invalid_type,expected:l.array,received:i.parsedType}),h;if(i.data.length<this._def.items.length)return f(i,{code:u.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&i.data.length>this._def.items.length&&(f(i,{code:u.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const o=[...i.data].map((s,c)=>{const p=this._def.items[c]||this._def.rest;return p?p._parse(new R(i,s,i.path,c)):null}).filter(s=>!!s);return i.common.async?Promise.all(o).then(s=>J.mergeArray(r,s)):J.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new v({...this._def,rest:t})}}v.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new v({items:e,typeName:y.ZodTuple,rest:null,...S(t)})};class fe extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.object)return f(i,{code:u.invalid_type,expected:l.object,received:i.parsedType}),h;const a=[],o=this._def.keyType,s=this._def.valueType;for(const c in i.data)a.push({key:o._parse(new R(i,c,i.path,c)),value:s._parse(new R(i,i.data[c],i.path,c))});return i.common.async?J.mergeObjectAsync(r,a):J.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(t,r,i){return r instanceof T?new fe({keyType:t,valueType:r,typeName:y.ZodRecord,...S(i)}):new fe({keyType:b.create(),valueType:t,typeName:y.ZodRecord,...S(r)})}}class at extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.map)return f(i,{code:u.invalid_type,expected:l.map,received:i.parsedType}),h;const a=this._def.keyType,o=this._def.valueType,s=[...i.data.entries()].map(([c,p],d)=>({key:a._parse(new R(i,c,i.path,[d,"key"])),value:o._parse(new R(i,p,i.path,[d,"value"]))}));if(i.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const p of s){const d=await p.key,O=await p.value;if(d.status==="aborted"||O.status==="aborted")return h;(d.status==="dirty"||O.status==="dirty")&&r.dirty(),c.set(d.value,O.value)}return{status:r.value,value:c}})}else{const c=new Map;for(const p of s){const d=p.key,O=p.value;if(d.status==="aborted"||O.status==="aborted")return h;(d.status==="dirty"||O.status==="dirty")&&r.dirty(),c.set(d.value,O.value)}return{status:r.value,value:c}}}}at.create=(e,t,r)=>new at({valueType:t,keyType:e,typeName:y.ZodMap,...S(r)});class Q extends T{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.set)return f(i,{code:u.invalid_type,expected:l.set,received:i.parsedType}),h;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(f(i,{code:u.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(f(i,{code:u.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const o=this._def.valueType;function s(p){const d=new Set;for(const O of p){if(O.status==="aborted")return h;O.status==="dirty"&&r.dirty(),d.add(O.value)}return{status:r.value,value:d}}const c=[...i.data.values()].map((p,d)=>o._parse(new R(i,p,i.path,d)));return i.common.async?Promise.all(c).then(p=>s(p)):s(c)}min(t,r){return new Q({...this._def,minSize:{value:t,message:m.toString(r)}})}max(t,r){return new Q({...this._def,maxSize:{value:t,message:m.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Q.create=(e,t)=>new Q({valueType:e,minSize:null,maxSize:null,typeName:y.ZodSet,...S(t)});class X extends T{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==l.function)return f(r,{code:u.invalid_type,expected:l.function,received:r.parsedType}),h;function i(c,p){return je({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,xe(),ae].filter(d=>!!d),issueData:{code:u.invalid_arguments,argumentsError:p}})}function a(c,p){return je({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,xe(),ae].filter(d=>!!d),issueData:{code:u.invalid_return_type,returnTypeError:p}})}const o={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof x){const c=this;return A(async function(...p){const d=new I([]),O=await c._def.args.parseAsync(p,o).catch(kt=>{throw d.addIssue(i(p,kt)),d}),U=await Reflect.apply(s,this,O);return await c._def.returns._def.type.parseAsync(U,o).catch(kt=>{throw d.addIssue(a(U,kt)),d})})}else{const c=this;return A(function(...p){const d=c._def.args.safeParse(p,o);if(!d.success)throw new I([i(p,d.error)]);const O=Reflect.apply(s,this,d.data),U=c._def.returns.safeParse(O,o);if(!U.success)throw new I([a(O,U.error)]);return U.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new X({...this._def,args:v.create(t).rest(z.create())})}returns(t){return new X({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,i){return new X({args:t||v.create([]).rest(z.create()),returns:r||z.create(),typeName:y.ZodFunction,...S(i)})}}class pe extends T{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}pe.create=(e,t)=>new pe({getter:e,typeName:y.ZodLazy,...S(t)});class me extends T{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return f(r,{received:r.data,code:u.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:t.data}}get value(){return this._def.value}}me.create=(e,t)=>new me({value:e,typeName:y.ZodLiteral,...S(t)});function ds(e,t){return new Z({values:e,typeName:y.ZodEnum,...S(t)})}class Z extends T{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),i=this._def.values;return f(r,{expected:N.joinValues(i),received:r.parsedType,code:u.invalid_type}),h}if(this._def.values.indexOf(t.data)===-1){const r=this._getOrReturnCtx(t),i=this._def.values;return f(r,{received:r.data,code:u.invalid_enum_value,options:i}),h}return A(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t){return Z.create(t)}exclude(t){return Z.create(this.options.filter(r=>!t.includes(r)))}}Z.create=ds;class ye extends T{_parse(t){const r=N.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==l.string&&i.parsedType!==l.number){const a=N.objectValues(r);return f(i,{expected:N.joinValues(a),received:i.parsedType,code:u.invalid_type}),h}if(r.indexOf(t.data)===-1){const a=N.objectValues(r);return f(i,{received:i.data,code:u.invalid_enum_value,options:a}),h}return A(t.data)}get enum(){return this._def.values}}ye.create=(e,t)=>new ye({values:e,typeName:y.ZodNativeEnum,...S(t)});class x extends T{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==l.promise&&r.common.async===!1)return f(r,{code:u.invalid_type,expected:l.promise,received:r.parsedType}),h;const i=r.parsedType===l.promise?r.data:Promise.resolve(r.data);return A(i.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}x.create=(e,t)=>new x({type:e,typeName:y.ZodPromise,...S(t)});class F extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===y.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:i}=this._processInputParams(t),a=this._def.effect||null,o={addIssue:s=>{f(i,s),s.fatal?r.abort():r.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),a.type==="preprocess"){const s=a.transform(i.data,o);return i.common.issues.length?{status:"dirty",value:i.data}:i.common.async?Promise.resolve(s).then(c=>this._def.schema._parseAsync({data:c,path:i.path,parent:i})):this._def.schema._parseSync({data:s,path:i.path,parent:i})}if(a.type==="refinement"){const s=c=>{const p=a.refinement(c,o);if(i.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(i.common.async===!1){const c=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return c.status==="aborted"?h:(c.status==="dirty"&&r.dirty(),s(c.value),{status:r.value,value:c.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(c=>c.status==="aborted"?h:(c.status==="dirty"&&r.dirty(),s(c.value).then(()=>({status:r.value,value:c.value}))))}if(a.type==="transform")if(i.common.async===!1){const s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!oe(s))return s;const c=a.transform(s.value,o);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:c}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>oe(s)?Promise.resolve(a.transform(s.value,o)).then(c=>({status:r.value,value:c})):s);N.assertNever(a)}}F.create=(e,t,r)=>new F({schema:e,typeName:y.ZodEffects,effect:t,...S(r)}),F.createWithPreprocess=(e,t,r)=>new F({schema:t,effect:{type:"preprocess",transform:e},typeName:y.ZodEffects,...S(r)});class q extends T{_parse(t){return this._getType(t)===l.undefined?A(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}q.create=(e,t)=>new q({innerType:e,typeName:y.ZodOptional,...S(t)});class $ extends T{_parse(t){return this._getType(t)===l.null?A(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}$.create=(e,t)=>new $({innerType:e,typeName:y.ZodNullable,...S(t)});class ge extends T{_parse(t){const{ctx:r}=this._processInputParams(t);let i=r.data;return r.parsedType===l.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}ge.create=(e,t)=>new ge({innerType:e,typeName:y.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...S(t)});class ot extends T{_parse(t){const{ctx:r}=this._processInputParams(t),i={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return et(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new I(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new I(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}ot.create=(e,t)=>new ot({innerType:e,typeName:y.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...S(t)});class st extends T{_parse(t){if(this._getType(t)!==l.nan){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.nan,received:i.parsedType}),h}return{status:"valid",value:t.data}}}st.create=e=>new st({typeName:y.ZodNaN,...S(e)});const ul=Symbol("zod_brand");class ls extends T{_parse(t){const{ctx:r}=this._processInputParams(t),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}}class he extends T{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?h:o.status==="dirty"?(r.dirty(),cs(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?h:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(t,r){return new he({in:t,out:r,typeName:y.ZodPipeline})}}class ct extends T{_parse(t){const r=this._def.innerType._parse(t);return oe(r)&&(r.value=Object.freeze(r.value)),r}}ct.create=(e,t)=>new ct({innerType:e,typeName:y.ZodReadonly,...S(t)});const fs=(e,t={},r)=>e?W.create().superRefine((i,a)=>{var o,s;if(!e(i)){const c=typeof t=="function"?t(i):typeof t=="string"?{message:t}:t,p=(s=(o=c.fatal)!==null&&o!==void 0?o:r)!==null&&s!==void 0?s:!0,d=typeof c=="string"?{message:c}:c;a.addIssue({code:"custom",...d,fatal:p})}}):W.create(),dl={object:P.lazycreate};var y;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(y||(y={}));const ll=(e,t={message:`Input not instance of ${e.name}`})=>fs(r=>r instanceof e,t),ps=b.create,ms=V.create,fl=st.create,pl=M.create,ys=se.create,ml=B.create,yl=tt.create,gl=ce.create,hl=ue.create,Sl=W.create,Tl=z.create,Ol=k.create,Nl=rt.create,Cl=_.create,Pl=P.create,Dl=P.strictCreate,Jl=de.create,Al=it.create,wl=le.create,Ul=v.create,Il=fe.create,bl=at.create,_l=Q.create,Fl=X.create,Rl=pe.create,vl=me.create,El=Z.create,kl=ye.create,ql=x.create,gs=F.create,Ll=q.create,Hl=$.create,Vl=F.createWithPreprocess,Ml=he.create;var Se=Object.freeze({__proto__:null,defaultErrorMap:ae,setErrorMap:Yd,getErrorMap:xe,makeIssue:je,EMPTY_PATH:Xd,addIssueToContext:f,ParseStatus:J,INVALID:h,DIRTY:cs,OK:A,isAborted:Ft,isDirty:Rt,isValid:oe,isAsync:et,get util(){return N},get objectUtil(){return _t},ZodParsedType:l,getParsedType:H,ZodType:T,ZodString:b,ZodNumber:V,ZodBigInt:M,ZodBoolean:se,ZodDate:B,ZodSymbol:tt,ZodUndefined:ce,ZodNull:ue,ZodAny:W,ZodUnknown:z,ZodNever:k,ZodVoid:rt,ZodArray:_,ZodObject:P,ZodUnion:de,ZodDiscriminatedUnion:it,ZodIntersection:le,ZodTuple:v,ZodRecord:fe,ZodMap:at,ZodSet:Q,ZodFunction:X,ZodLazy:pe,ZodLiteral:me,ZodEnum:Z,ZodNativeEnum:ye,ZodPromise:x,ZodEffects:F,ZodTransformer:F,ZodOptional:q,ZodNullable:$,ZodDefault:ge,ZodCatch:ot,ZodNaN:st,BRAND:ul,ZodBranded:ls,ZodPipeline:he,ZodReadonly:ct,custom:fs,Schema:T,ZodSchema:T,late:dl,get ZodFirstPartyTypeKind(){return y},coerce:{string:e=>b.create({...e,coerce:!0}),number:e=>V.create({...e,coerce:!0}),boolean:e=>se.create({...e,coerce:!0}),bigint:e=>M.create({...e,coerce:!0}),date:e=>B.create({...e,coerce:!0})},any:Sl,array:Cl,bigint:pl,boolean:ys,date:ml,discriminatedUnion:Al,effect:gs,enum:El,function:Fl,instanceof:ll,intersection:wl,lazy:Rl,literal:vl,map:bl,nan:fl,nativeEnum:kl,never:Ol,null:hl,nullable:Hl,number:ms,object:Pl,oboolean:()=>ys().optional(),onumber:()=>ms().optional(),optional:Ll,ostring:()=>ps().optional(),pipeline:Ml,preprocess:Vl,promise:ql,record:Il,set:_l,strictObject:Dl,string:ps,symbol:yl,transformer:gs,tuple:Ul,undefined:gl,union:Jl,unknown:Tl,void:Nl,NEVER:h,ZodIssueCode:u,quotelessJson:Wd,ZodError:I});function Zl(e){return e===401||e===403}function Bl(e){return Object.entries(e).map(([t,r])=>`${encodeURIComponent(t)}=${encodeURIComponent(r)}`).join("&")}const zl=Se.object({access_token:Se.string().min(1),token_type:Se.string(),expires_in:Se.number(),scope:Se.string()});async function Ql(e){const r=await(await fetch(e.tokenUrl,{method:"POST",body:Bl({grant_type:"client_credentials",client_id:e.clientId,client_secret:e.clientSecret}),headers:{"Content-Type":"application/x-www-form-urlencoded"}})).json();return $l(r)}function $l(e){const t=zl.safeParse(e);if(!t.success)throw new Error("Bad access token response");return t.data}class Kl{constructor(t){E(this,"activeRequest",null);E(this,"refreshTimeout");E(this,"accessToken",null);this.clientCredentials=t}async getAccessToken(){return this.accessToken?this.accessToken:await this.refreshAccessToken()}async refreshAccessToken(){if(this.activeRequest)return await this.activeRequest,this.accessToken;this.accessToken=null,this.activeRequest=Ql(this.clientCredentials);const t=await this.activeRequest;return this.scheduleNextRefresh(t),this.accessToken=t.access_token,this.activeRequest=null,this.accessToken}scheduleNextRefresh(t){clearTimeout(this.refreshTimeout);const r=(t.expires_in-2)*1e3;this.refreshTimeout=setTimeout(()=>{this.accessToken=null},r)}}function hs(e,t){e.headers=Gl("Authorization",`Bearer ${t}`,e.headers)}function Gl(e,t,r){return r?Array.isArray(r)?r.map(([i,a])=>i!==e?[i,a]:[e,t]):Wl(r)?(r.has(e)?r.set(e,t):r.append(e,t),r):(r[e]=t,r):(r={},r[e]=t,r)}function Wl(e){return"append"in e&&"delete"in e&&"get"in e&&"has"in e&&"set"in e&&"forEach"in e}function Yl(e){const t=new Kl(e);return{pre:async r=>{const i=await t.getAccessToken();return hs(r.init,i),Promise.resolve({url:r.url,init:r.init})},post:async r=>{if(Zl(r.response.status)){const i=await t.refreshAccessToken();return hs(r.init,i),await fetch(r.url,r.init)}return Promise.resolve(r.response)}}}function Xl(e){const t=[];let r={};e.clientCredentials&&t.push(Yl(e.clientCredentials)),e.managementApiKey&&(r=xl(e.managementApiKey));const i=new L({basePath:e.managementApiUrl,headers:r,credentials:"same-origin",middleware:t,...e.configOverrides});return{uiApi:new as(i),useCaseApi:new os(i),enterpriseEditionApi:new is(i)}}function xl(e){return{"X-Api-Key":e}}n.AssetFilterConstraintFromJSON=lt,n.AssetFilterConstraintFromJSONTyped=Qt,n.AssetFilterConstraintOperator=Te,n.AssetFilterConstraintOperatorFromJSON=Bt,n.AssetFilterConstraintOperatorFromJSONTyped=zt,n.AssetFilterConstraintOperatorToJSON=As,n.AssetFilterConstraintOperatorToJSONTyped=ws,n.AssetFilterConstraintToJSON=ft,n.AssetFilterConstraintToJSONTyped=$t,n.AssetPageFromJSON=Xt,n.AssetPageFromJSONTyped=xt,n.AssetPageToJSON=vs,n.AssetPageToJSONTyped=jt,n.BASE_PATH=w,n.BaseAPI=K,n.BlobApiResponse=Ds,n.BuildInfoFromJSON=er,n.BuildInfoFromJSONTyped=tr,n.BuildInfoToJSON=ks,n.BuildInfoToJSONTyped=rr,n.COLLECTION_FORMATS=Os,n.CallbackAddressDtoFromJSON=Ce,n.CallbackAddressDtoFromJSONTyped=or,n.CallbackAddressDtoToJSON=Pe,n.CallbackAddressDtoToJSONTyped=sr,n.CallbackAddressEventType=Ne,n.CallbackAddressEventTypeFromJSON=nr,n.CallbackAddressEventTypeFromJSONTyped=ir,n.CallbackAddressEventTypeToJSON=ar,n.CallbackAddressEventTypeToJSONTyped=Ls,n.CatalogFilterExpressionFromJSON=gr,n.CatalogFilterExpressionFromJSONTyped=hr,n.CatalogFilterExpressionLiteralFromJSON=dr,n.CatalogFilterExpressionLiteralFromJSONTyped=lr,n.CatalogFilterExpressionLiteralToJSON=fr,n.CatalogFilterExpressionLiteralToJSONTyped=pr,n.CatalogFilterExpressionLiteralType=De,n.CatalogFilterExpressionLiteralTypeFromJSON=cr,n.CatalogFilterExpressionLiteralTypeFromJSONTyped=ur,n.CatalogFilterExpressionLiteralTypeToJSON=Ms,n.CatalogFilterExpressionLiteralTypeToJSONTyped=Zs,n.CatalogFilterExpressionOperator=Je,n.CatalogFilterExpressionOperatorFromJSON=mr,n.CatalogFilterExpressionOperatorFromJSONTyped=yr,n.CatalogFilterExpressionOperatorToJSON=Qs,n.CatalogFilterExpressionOperatorToJSONTyped=$s,n.CatalogFilterExpressionToJSON=Sr,n.CatalogFilterExpressionToJSONTyped=Tr,n.CatalogQueryFromJSON=Ws,n.CatalogQueryFromJSONTyped=Or,n.CatalogQueryToJSON=Nr,n.CatalogQueryToJSONTyped=Cr,n.CatalogQueryV2FromJSON=tc,n.CatalogQueryV2FromJSONTyped=Ir,n.CatalogQueryV2ToJSON=br,n.CatalogQueryV2ToJSONTyped=_r,n.CatalogSortByDirection=Ae,n.CatalogSortByDirectionFromJSON=Pr,n.CatalogSortByDirectionFromJSONTyped=Dr,n.CatalogSortByDirectionToJSON=Xs,n.CatalogSortByDirectionToJSONTyped=xs,n.CatalogSortByFromJSON=Jr,n.CatalogSortByFromJSONTyped=Ar,n.CatalogSortByToJSON=wr,n.CatalogSortByToJSONTyped=Ur,n.Configuration=L,n.ConnectorLimitsFromJSON=Fr,n.ConnectorLimitsFromJSONTyped=Rr,n.ConnectorLimitsToJSON=nc,n.ConnectorLimitsToJSONTyped=vr,n.ContractAgreementCardFromJSON=Tt,n.ContractAgreementCardFromJSONTyped=fn,n.ContractAgreementCardToJSON=pn,n.ContractAgreementCardToJSONTyped=mn,n.ContractAgreementDirection=we,n.ContractAgreementDirectionFromJSON=pt,n.ContractAgreementDirectionFromJSONTyped=Er,n.ContractAgreementDirectionToJSON=ac,n.ContractAgreementDirectionToJSONTyped=oc,n.ContractAgreementPageFromJSON=yn,n.ContractAgreementPageFromJSONTyped=gn,n.ContractAgreementPageQueryFromJSON=kc,n.ContractAgreementPageQueryFromJSONTyped=Sn,n.ContractAgreementPageQueryToJSON=Tn,n.ContractAgreementPageQueryToJSONTyped=On,n.ContractAgreementPageToJSON=vc,n.ContractAgreementPageToJSONTyped=hn,n.ContractAgreementTerminationInfoFromJSON=mt,n.ContractAgreementTerminationInfoFromJSONTyped=Lr,n.ContractAgreementTerminationInfoToJSON=yt,n.ContractAgreementTerminationInfoToJSONTyped=Hr,n.ContractAgreementTransferProcessFromJSON=zr,n.ContractAgreementTransferProcessFromJSONTyped=Qr,n.ContractAgreementTransferProcessToJSON=$r,n.ContractAgreementTransferProcessToJSONTyped=Kr,n.ContractDefinitionEntryFromJSON=_n,n.ContractDefinitionEntryFromJSONTyped=Fn,n.ContractDefinitionEntryToJSON=Rn,n.ContractDefinitionEntryToJSONTyped=vn,n.ContractDefinitionPageFromJSON=En,n.ContractDefinitionPageFromJSONTyped=kn,n.ContractDefinitionPageToJSON=Kc,n.ContractDefinitionPageToJSONTyped=qn,n.ContractDefinitionRequestFromJSON=Wc,n.ContractDefinitionRequestFromJSONTyped=Ln,n.ContractDefinitionRequestToJSON=Hn,n.ContractDefinitionRequestToJSONTyped=Vn,n.ContractNegotiationRequestFromJSON=Xc,n.ContractNegotiationRequestFromJSONTyped=Mn,n.ContractNegotiationRequestToJSON=Zn,n.ContractNegotiationRequestToJSONTyped=Bn,n.ContractNegotiationSimplifiedState=Le,n.ContractNegotiationSimplifiedStateFromJSON=zn,n.ContractNegotiationSimplifiedStateFromJSONTyped=Qn,n.ContractNegotiationSimplifiedStateToJSON=jc,n.ContractNegotiationSimplifiedStateToJSONTyped=eu,n.ContractNegotiationStateFromJSON=He,n.ContractNegotiationStateFromJSONTyped=$n,n.ContractNegotiationStateResultFromJSON=Gn,n.ContractNegotiationStateResultFromJSONTyped=Wn,n.ContractNegotiationStateResultToJSON=nu,n.ContractNegotiationStateResultToJSONTyped=Yn,n.ContractNegotiationStateToJSON=Ve,n.ContractNegotiationStateToJSONTyped=Kn,n.ContractTerminatedBy=Ue,n.ContractTerminatedByFromJSON=kr,n.ContractTerminatedByFromJSONTyped=qr,n.ContractTerminatedByToJSON=cc,n.ContractTerminatedByToJSONTyped=uc,n.ContractTerminationRequestFromJSON=au,n.ContractTerminationRequestFromJSONTyped=Xn,n.ContractTerminationRequestToJSON=xn,n.ContractTerminationRequestToJSONTyped=jn,n.ContractTerminationStatus=Fe,n.ContractTerminationStatusFromJSON=gt,n.ContractTerminationStatusFromJSONTyped=Gr,n.ContractTerminationStatusToJSON=hc,n.ContractTerminationStatusToJSONTyped=Sc,n.DashboardCxDidConfigFromJSON=ei,n.DashboardCxDidConfigFromJSONTyped=ti,n.DashboardCxDidConfigToJSON=ri,n.DashboardCxDidConfigToJSONTyped=ni,n.DashboardDapsConfigFromJSON=ii,n.DashboardDapsConfigFromJSONTyped=ai,n.DashboardDapsConfigToJSON=oi,n.DashboardDapsConfigToJSONTyped=si,n.DashboardPageFromJSON=di,n.DashboardPageFromJSONTyped=li,n.DashboardPageToJSON=du,n.DashboardPageToJSONTyped=fi,n.DashboardTransferAmountsFromJSON=Ct,n.DashboardTransferAmountsFromJSONTyped=ci,n.DashboardTransferAmountsToJSON=Pt,n.DashboardTransferAmountsToJSONTyped=ui,n.DataOfferCreateRequestFromJSON=qu,n.DataOfferCreateRequestFromJSONTyped=ra,n.DataOfferCreateRequestToJSON=na,n.DataOfferCreateRequestToJSONTyped=ia,n.DataOfferPublishType=Me,n.DataOfferPublishTypeFromJSON=pi,n.DataOfferPublishTypeFromJSONTyped=mi,n.DataOfferPublishTypeToJSON=fu,n.DataOfferPublishTypeToJSONTyped=pu,n.DataSourceAvailability=Oe,n.DataSourceAvailabilityFromJSON=Kt,n.DataSourceAvailabilityFromJSONTyped=Gt,n.DataSourceAvailabilityToJSON=bs,n.DataSourceAvailabilityToJSONTyped=_s,n.DataSourceType=Ze,n.DataSourceTypeFromJSON=yi,n.DataSourceTypeFromJSONTyped=gi,n.DataSourceTypeToJSON=yu,n.DataSourceTypeToJSONTyped=gu,n.DefaultConfig=qt,n.EdrDtoFromJSON=aa,n.EdrDtoFromJSONTyped=oa,n.EdrDtoToJSON=Hu,n.EdrDtoToJSONTyped=sa,n.EnterpriseEditionApi=is,n.FetchError=Ht,n.IdAvailabilityResponseFromJSON=Ke,n.IdAvailabilityResponseFromJSONTyped=ca,n.IdAvailabilityResponseToJSON=Mu,n.IdAvailabilityResponseToJSONTyped=ua,n.IdResponseDtoFromJSON=D,n.IdResponseDtoFromJSONTyped=da,n.IdResponseDtoToJSON=Bu,n.IdResponseDtoToJSONTyped=la,n.InitiateCustomTransferRequestFromJSON=Qu,n.InitiateCustomTransferRequestFromJSONTyped=fa,n.InitiateCustomTransferRequestToJSON=pa,n.InitiateCustomTransferRequestToJSONTyped=ma,n.InitiateTransferRequestFromJSON=Ku,n.InitiateTransferRequestFromJSONTyped=ya,n.InitiateTransferRequestToJSON=ga,n.InitiateTransferRequestToJSONTyped=ha,n.JSONApiResponse=g,n.KpiResultFromJSON=Ca,n.KpiResultFromJSONTyped=Pa,n.KpiResultToJSON=Yu,n.KpiResultToJSONTyped=Da,n.NegotiateAllQueryFromJSON=xu,n.NegotiateAllQueryFromJSONTyped=Ja,n.NegotiateAllQueryToJSON=Aa,n.NegotiateAllQueryToJSONTyped=wa,n.NegotiateAllResultFromJSON=Ua,n.NegotiateAllResultFromJSONTyped=Ia,n.NegotiateAllResultToJSON=ed,n.NegotiateAllResultToJSONTyped=ba,n.OperatorDto=Re,n.OperatorDtoFromJSON=Wr,n.OperatorDtoFromJSONTyped=Yr,n.OperatorDtoToJSON=Oc,n.OperatorDtoToJSONTyped=Nc,n.PolicyDefinitionCreateDtoFromJSON=rd,n.PolicyDefinitionCreateDtoFromJSONTyped=_a,n.PolicyDefinitionCreateDtoToJSON=Fa,n.PolicyDefinitionCreateDtoToJSONTyped=Ra,n.PolicyDefinitionCreateRequestFromJSON=ad,n.PolicyDefinitionCreateRequestFromJSONTyped=La,n.PolicyDefinitionCreateRequestToJSON=Ha,n.PolicyDefinitionCreateRequestToJSONTyped=Va,n.PolicyDefinitionDtoFromJSON=Ma,n.PolicyDefinitionDtoFromJSONTyped=Za,n.PolicyDefinitionDtoToJSON=Ba,n.PolicyDefinitionDtoToJSONTyped=za,n.PolicyDefinitionPageFromJSON=Qa,n.PolicyDefinitionPageFromJSONTyped=$a,n.PolicyDefinitionPageToJSON=cd,n.PolicyDefinitionPageToJSONTyped=Ka,n.RequiredError=C,n.ResponseError=Lt,n.TextApiResponse=Zt,n.TransferHistoryEntryFromJSON=Ga,n.TransferHistoryEntryFromJSONTyped=Wa,n.TransferHistoryEntryToJSON=Ya,n.TransferHistoryEntryToJSONTyped=Xa,n.TransferHistoryPageFromJSON=xa,n.TransferHistoryPageFromJSONTyped=ja,n.TransferHistoryPageToJSON=ld,n.TransferHistoryPageToJSONTyped=eo,n.TransferProcessSimplifiedState=Ie,n.TransferProcessSimplifiedStateFromJSON=Vr,n.TransferProcessSimplifiedStateFromJSONTyped=Mr,n.TransferProcessSimplifiedStateToJSON=fc,n.TransferProcessSimplifiedStateToJSONTyped=pc,n.TransferProcessStateFromJSON=be,n.TransferProcessStateFromJSONTyped=Zr,n.TransferProcessStateResultFromJSON=to,n.TransferProcessStateResultFromJSONTyped=ro,n.TransferProcessStateResultToJSON=pd,n.TransferProcessStateResultToJSONTyped=no,n.TransferProcessStateToJSON=_e,n.TransferProcessStateToJSONTyped=Br,n.TransferProcessStatesDtoFromJSON=Sa,n.TransferProcessStatesDtoFromJSONTyped=Ta,n.TransferProcessStatesDtoToJSON=Oa,n.TransferProcessStatesDtoToJSONTyped=Na,n.UIApi=as,n.UiAssetCreateRequestFromJSON=ji,n.UiAssetCreateRequestFromJSONTyped=ea,n.UiAssetCreateRequestToJSON=$e,n.UiAssetCreateRequestToJSONTyped=ta,n.UiAssetEditRequestFromJSON=yd,n.UiAssetEditRequestFromJSONTyped=io,n.UiAssetEditRequestToJSON=ao,n.UiAssetEditRequestToJSONTyped=oo,n.UiAssetFromJSON=G,n.UiAssetFromJSONTyped=Wt,n.UiAssetToJSON=j,n.UiAssetToJSONTyped=Yt,n.UiConfigFeature=Ge,n.UiConfigFeatureFromJSON=so,n.UiConfigFeatureFromJSONTyped=co,n.UiConfigFeatureToJSON=uo,n.UiConfigFeatureToJSONTyped=hd,n.UiConfigFromJSON=yo,n.UiConfigFromJSONTyped=go,n.UiConfigPreconfiguredCounterpartyFromJSON=lo,n.UiConfigPreconfiguredCounterpartyFromJSONTyped=fo,n.UiConfigPreconfiguredCounterpartyToJSON=po,n.UiConfigPreconfiguredCounterpartyToJSONTyped=mo,n.UiConfigToJSON=Od,n.UiConfigToJSONTyped=ho,n.UiContractNegotiationFromJSON=bt,n.UiContractNegotiationFromJSONTyped=So,n.UiContractNegotiationToJSON=Cd,n.UiContractNegotiationToJSONTyped=To,n.UiContractOfferFromJSON=Oo,n.UiContractOfferFromJSONTyped=No,n.UiContractOfferToJSON=Co,n.UiContractOfferToJSONTyped=Po,n.UiCriterionFromJSON=Ot,n.UiCriterionFromJSONTyped=In,n.UiCriterionLiteralFromJSON=Pn,n.UiCriterionLiteralFromJSONTyped=Dn,n.UiCriterionLiteralToJSON=Jn,n.UiCriterionLiteralToJSONTyped=An,n.UiCriterionLiteralType=ke,n.UiCriterionLiteralTypeFromJSON=Nn,n.UiCriterionLiteralTypeFromJSONTyped=Cn,n.UiCriterionLiteralTypeToJSON=Lc,n.UiCriterionLiteralTypeToJSONTyped=Hc,n.UiCriterionOperator=qe,n.UiCriterionOperatorFromJSON=wn,n.UiCriterionOperatorFromJSONTyped=Un,n.UiCriterionOperatorToJSON=Zc,n.UiCriterionOperatorToJSONTyped=Bc,n.UiCriterionToJSON=Nt,n.UiCriterionToJSONTyped=bn,n.UiDataOfferFromJSON=ie,n.UiDataOfferFromJSONTyped=Do,n.UiDataOfferToJSON=Jd,n.UiDataOfferToJSONTyped=Jo,n.UiDataSinkHttpDataPushFromJSON=vo,n.UiDataSinkHttpDataPushFromJSONTyped=Eo,n.UiDataSinkHttpDataPushMethod=We,n.UiDataSinkHttpDataPushMethodFromJSON=Ao,n.UiDataSinkHttpDataPushMethodFromJSONTyped=wo,n.UiDataSinkHttpDataPushMethodToJSON=wd,n.UiDataSinkHttpDataPushMethodToJSONTyped=Ud,n.UiDataSinkHttpDataPushToJSON=ko,n.UiDataSinkHttpDataPushToJSONTyped=qo,n.UiDataSourceFromJSON=Ut,n.UiDataSourceFromJSONTyped=Xi,n.UiDataSourceHttpDataFromJSON=Bi,n.UiDataSourceHttpDataFromJSONTyped=zi,n.UiDataSourceHttpDataMethod=Be,n.UiDataSourceHttpDataMethodFromJSON=hi,n.UiDataSourceHttpDataMethodFromJSONTyped=Si,n.UiDataSourceHttpDataMethodToJSON=Su,n.UiDataSourceHttpDataMethodToJSONTyped=Tu,n.UiDataSourceHttpDataToJSON=Qi,n.UiDataSourceHttpDataToJSONTyped=$i,n.UiDataSourceOnRequestFromJSON=Ki,n.UiDataSourceOnRequestFromJSONTyped=Gi,n.UiDataSourceOnRequestToJSON=Wi,n.UiDataSourceOnRequestToJSONTyped=Yi,n.UiDataSourceToJSON=It,n.UiDataSourceToJSONTyped=xi,n.UiHttpAuthApiKeyFromJSON=Dt,n.UiHttpAuthApiKeyFromJSONTyped=Ti,n.UiHttpAuthApiKeyToJSON=Jt,n.UiHttpAuthApiKeyToJSONTyped=Oi,n.UiHttpAuthBasicFromJSON=At,n.UiHttpAuthBasicFromJSONTyped=Ni,n.UiHttpAuthBasicToJSON=wt,n.UiHttpAuthBasicToJSONTyped=Ci,n.UiHttpAuthFromJSON=Hi,n.UiHttpAuthFromJSONTyped=Vi,n.UiHttpAuthOauth2FromJSON=Ri,n.UiHttpAuthOauth2FromJSONTyped=vi,n.UiHttpAuthOauth2ToJSON=Ei,n.UiHttpAuthOauth2ToJSONTyped=ki,n.UiHttpAuthToJSON=Mi,n.UiHttpAuthToJSONTyped=Zi,n.UiHttpAuthType=Qe,n.UiHttpAuthTypeFromJSON=qi,n.UiHttpAuthTypeFromJSONTyped=Li,n.UiHttpAuthTypeToJSON=Iu,n.UiHttpAuthTypeToJSONTyped=bu,n.UiHttpOauth2AuthType=ze,n.UiHttpOauth2AuthTypeFromJSON=Pi,n.UiHttpOauth2AuthTypeFromJSONTyped=Di,n.UiHttpOauth2AuthTypeToJSON=Pu,n.UiHttpOauth2AuthTypeToJSONTyped=Du,n.UiHttpOauth2PrivateKeyAuthorizationFromJSON=Ji,n.UiHttpOauth2PrivateKeyAuthorizationFromJSONTyped=Ai,n.UiHttpOauth2PrivateKeyAuthorizationToJSON=wi,n.UiHttpOauth2PrivateKeyAuthorizationToJSONTyped=Ui,n.UiHttpOauth2SharedSecretAuthorizationFromJSON=Ii,n.UiHttpOauth2SharedSecretAuthorizationFromJSONTyped=bi,n.UiHttpOauth2SharedSecretAuthorizationToJSON=_i,n.UiHttpOauth2SharedSecretAuthorizationToJSONTyped=Fi,n.UiHttpPushAuthFromJSON=bo,n.UiHttpPushAuthFromJSONTyped=_o,n.UiHttpPushAuthToJSON=Fo,n.UiHttpPushAuthToJSONTyped=Ro,n.UiHttpPushAuthType=Ye,n.UiHttpPushAuthTypeFromJSON=Uo,n.UiHttpPushAuthTypeFromJSONTyped=Io,n.UiHttpPushAuthTypeToJSON=bd,n.UiHttpPushAuthTypeToJSONTyped=_d,n.UiInitiateTransferRequestFromJSON=Ld,n.UiInitiateTransferRequestFromJSONTyped=Vo,n.UiInitiateTransferRequestToJSON=Mo,n.UiInitiateTransferRequestToJSONTyped=Zo,n.UiInitiateTransferType=Xe,n.UiInitiateTransferTypeFromJSON=Lo,n.UiInitiateTransferTypeFromJSONTyped=Ho,n.UiInitiateTransferTypeToJSON=Ed,n.UiInitiateTransferTypeToJSONTyped=kd,n.UiPolicyConstraintFromJSON=ht,n.UiPolicyConstraintFromJSONTyped=nn,n.UiPolicyConstraintToJSON=St,n.UiPolicyConstraintToJSONTyped=an,n.UiPolicyCreateRequestFromJSON=va,n.UiPolicyCreateRequestFromJSONTyped=Ea,n.UiPolicyCreateRequestToJSON=ka,n.UiPolicyCreateRequestToJSONTyped=qa,n.UiPolicyExpressionFromJSON=ee,n.UiPolicyExpressionFromJSONTyped=cn,n.UiPolicyExpressionToJSON=te,n.UiPolicyExpressionToJSONTyped=un,n.UiPolicyExpressionType=Ee,n.UiPolicyExpressionTypeFromJSON=on,n.UiPolicyExpressionTypeFromJSONTyped=sn,n.UiPolicyExpressionTypeToJSON=Uc,n.UiPolicyExpressionTypeToJSONTyped=Ic,n.UiPolicyFromJSON=re,n.UiPolicyFromJSONTyped=dn,n.UiPolicyLiteralFromJSON=jr,n.UiPolicyLiteralFromJSONTyped=en,n.UiPolicyLiteralToJSON=tn,n.UiPolicyLiteralToJSONTyped=rn,n.UiPolicyLiteralType=ve,n.UiPolicyLiteralTypeFromJSON=Xr,n.UiPolicyLiteralTypeFromJSONTyped=xr,n.UiPolicyLiteralTypeToJSON=Pc,n.UiPolicyLiteralTypeToJSONTyped=Dc,n.UiPolicyToJSON=ne,n.UiPolicyToJSONTyped=ln,n.UseCaseApi=os,n.VaultSecretCreateSubmitFromJSON=Vd,n.VaultSecretCreateSubmitFromJSONTyped=Bo,n.VaultSecretCreateSubmitToJSON=zo,n.VaultSecretCreateSubmitToJSONTyped=Qo,n.VaultSecretEditPageFromJSON=$o,n.VaultSecretEditPageFromJSONTyped=Ko,n.VaultSecretEditPageToJSON=Zd,n.VaultSecretEditPageToJSONTyped=Go,n.VaultSecretEditSubmitFromJSON=zd,n.VaultSecretEditSubmitFromJSONTyped=Wo,n.VaultSecretEditSubmitToJSON=Yo,n.VaultSecretEditSubmitToJSONTyped=Xo,n.VaultSecretListPageEntryFromJSON=xo,n.VaultSecretListPageEntryFromJSONTyped=jo,n.VaultSecretListPageEntryToJSON=$d,n.VaultSecretListPageEntryToJSONTyped=es,n.VaultSecretQueryFromJSON=Gd,n.VaultSecretQueryFromJSONTyped=ts,n.VaultSecretQueryToJSON=rs,n.VaultSecretQueryToJSONTyped=ns,n.VoidApiResponse=Mt,n.buildEdcClient=Xl,n.canConsumeForm=Ps,n.exists=Ns,n.instanceOfAssetFilterConstraint=Us,n.instanceOfAssetFilterConstraintOperator=Js,n.instanceOfAssetPage=Rs,n.instanceOfBuildInfo=Es,n.instanceOfCallbackAddressDto=Hs,n.instanceOfCallbackAddressEventType=qs,n.instanceOfCatalogFilterExpression=Ks,n.instanceOfCatalogFilterExpressionLiteral=Bs,n.instanceOfCatalogFilterExpressionLiteralType=Vs,n.instanceOfCatalogFilterExpressionOperator=zs,n.instanceOfCatalogQuery=Gs,n.instanceOfCatalogQueryV2=ec,n.instanceOfCatalogSortBy=js,n.instanceOfCatalogSortByDirection=Ys,n.instanceOfConnectorLimits=rc,n.instanceOfContractAgreementCard=Fc,n.instanceOfContractAgreementDirection=ic,n.instanceOfContractAgreementPage=Rc,n.instanceOfContractAgreementPageQuery=Ec,n.instanceOfContractAgreementTerminationInfo=dc,n.instanceOfContractAgreementTransferProcess=yc,n.instanceOfContractDefinitionEntry=Qc,n.instanceOfContractDefinitionPage=$c,n.instanceOfContractDefinitionRequest=Gc,n.instanceOfContractNegotiationRequest=Yc,n.instanceOfContractNegotiationSimplifiedState=xc,n.instanceOfContractNegotiationState=tu,n.instanceOfContractNegotiationStateResult=ru,n.instanceOfContractTerminatedBy=sc,n.instanceOfContractTerminationRequest=iu,n.instanceOfContractTerminationStatus=gc,n.instanceOfDashboardCxDidConfig=ou,n.instanceOfDashboardDapsConfig=su,n.instanceOfDashboardPage=uu,n.instanceOfDashboardTransferAmounts=cu,n.instanceOfDataOfferCreateRequest=ku,n.instanceOfDataOfferPublishType=lu,n.instanceOfDataSourceAvailability=Is,n.instanceOfDataSourceType=mu,n.instanceOfEdrDto=Lu,n.instanceOfIdAvailabilityResponse=Vu,n.instanceOfIdResponseDto=Zu,n.instanceOfInitiateCustomTransferRequest=zu,n.instanceOfInitiateTransferRequest=$u,n.instanceOfKpiResult=Wu,n.instanceOfNegotiateAllQuery=Xu,n.instanceOfNegotiateAllResult=ju,n.instanceOfOperatorDto=Tc,n.instanceOfPolicyDefinitionCreateDto=td,n.instanceOfPolicyDefinitionCreateRequest=id,n.instanceOfPolicyDefinitionDto=od,n.instanceOfPolicyDefinitionPage=sd,n.instanceOfTransferHistoryEntry=ud,n.instanceOfTransferHistoryPage=dd,n.instanceOfTransferProcessSimplifiedState=lc,n.instanceOfTransferProcessState=mc,n.instanceOfTransferProcessStateResult=fd,n.instanceOfTransferProcessStatesDto=Gu,n.instanceOfUiAsset=Fs,n.instanceOfUiAssetCreateRequest=Eu,n.instanceOfUiAssetEditRequest=md,n.instanceOfUiConfig=Td,n.instanceOfUiConfigFeature=gd,n.instanceOfUiConfigPreconfiguredCounterparty=Sd,n.instanceOfUiContractNegotiation=Nd,n.instanceOfUiContractOffer=Pd,n.instanceOfUiCriterion=zc,n.instanceOfUiCriterionLiteral=Vc,n.instanceOfUiCriterionLiteralType=qc,n.instanceOfUiCriterionOperator=Mc,n.instanceOfUiDataOffer=Dd,n.instanceOfUiDataSinkHttpDataPush=Rd,n.instanceOfUiDataSinkHttpDataPushMethod=Ad,n.instanceOfUiDataSource=vu,n.instanceOfUiDataSourceHttpData=Fu,n.instanceOfUiDataSourceHttpDataMethod=hu,n.instanceOfUiDataSourceOnRequest=Ru,n.instanceOfUiHttpAuth=_u,n.instanceOfUiHttpAuthApiKey=Ou,n.instanceOfUiHttpAuthBasic=Nu,n.instanceOfUiHttpAuthOauth2=wu,n.instanceOfUiHttpAuthType=Uu,n.instanceOfUiHttpOauth2AuthType=Cu,n.instanceOfUiHttpOauth2PrivateKeyAuthorization=Ju,n.instanceOfUiHttpOauth2SharedSecretAuthorization=Au,n.instanceOfUiHttpPushAuth=Fd,n.instanceOfUiHttpPushAuthType=Id,n.instanceOfUiInitiateTransferRequest=qd,n.instanceOfUiInitiateTransferType=vd,n.instanceOfUiPolicy=_c,n.instanceOfUiPolicyConstraint=Ac,n.instanceOfUiPolicyCreateRequest=nd,n.instanceOfUiPolicyExpression=bc,n.instanceOfUiPolicyExpressionType=wc,n.instanceOfUiPolicyLiteral=Jc,n.instanceOfUiPolicyLiteralType=Cc,n.instanceOfVaultSecretCreateSubmit=Hd,n.instanceOfVaultSecretEditPage=Md,n.instanceOfVaultSecretEditSubmit=Bd,n.instanceOfVaultSecretListPageEntry=Qd,n.instanceOfVaultSecretQuery=Kd,n.mapValues=Cs,n.querystring=dt,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=sovity-edc-client.umd.cjs.map
|