@sovity.de/edc-client 16.3.0 → 16.4.1
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,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 tm=Object.defineProperty;var rm=(n,w,L)=>w in n?tm(n,w,{enumerable:!0,configurable:!0,writable:!0,value:L}):n[w]=L;var k=(n,w,L)=>rm(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||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 $t=new L,ht=class ht{constructor(t=$t){k(this,"middleware");k(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 Wt(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?ht.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 Yt(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;kc(c.body)||c.body instanceof URLSearchParams||_c(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}};k(ht,"jsonRegex",new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"));let $=ht;function _c(e){return typeof Blob<"u"&&e instanceof Blob}function kc(e){return typeof FormData<"u"&&e instanceof FormData}class Yt extends Error{constructor(r,i){super(i);k(this,"name","ResponseError");this.response=r}}class Wt extends Error{constructor(r,i){super(i);k(this,"name","FetchError");this.cause=r}}class P extends Error{constructor(r,i){super(i);k(this,"name","RequiredError");this.field=r}}const qc={csv:",",ssv:" ",tsv:" ",pipes:"|"};function St(e,t=""){return Object.keys(e).map(r=>Xt(r,e[r],t)).filter(r=>r.length>0).join("&")}function Xt(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 Xt(e,a,r)}return t instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?St(t,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`}function vc(e,t){const r=e[t];return r!=null}function Lc(e,t){return Object.keys(e).reduce((r,i)=>({...r,[i]:t(e[i])}),{})}function Hc(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class m{constructor(t,r=i=>i){this.raw=t,this.transformer=r}async value(){return this.transformer(await this.raw.json())}}class xt{constructor(t){this.raw=t}async value(){}}class Bc{constructor(t){this.raw=t}async value(){return await this.raw.blob()}}class jt{constructor(t){this.raw=t}async value(){return await this.raw.text()}}const Se={Like:"LIKE",Eq:"EQ",In:"IN"};function Vc(e){for(const t in Se)if(Object.prototype.hasOwnProperty.call(Se,t)&&Se[t]===e)return!0;return!1}function er(e){return tr(e)}function tr(e,t){return e}function Mc(e){return e}function zc(e,t){return e}function Zc(e){return!(!("assetPropertyPath"in e)||e.assetPropertyPath===void 0||!("operator"in e)||e.operator===void 0)}function Tt(e){return rr(e)}function rr(e,t){return e==null?e:{assetPropertyPath:e.assetPropertyPath,operator:er(e.operator),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Ot(e){return nr(e,!1)}function nr(e,t=!1){return e==null?e:{assetPropertyPath:e.assetPropertyPath,operator:e.operator,value:e.value,valueList:e.valueList}}const Te={Live:"LIVE",OnRequest:"ON_REQUEST"};function Gc(e){for(const t in Te)if(Object.prototype.hasOwnProperty.call(Te,t)&&Te[t]===e)return!0;return!1}function Nt(e){return ir(e)}function ir(e,t){return e}function Kc(e){return e}function Qc(e,t){return e}function $c(e){return!(!("assetId"in e)||e.assetId===void 0||!("title"in e)||e.title===void 0||!("dataSourceAvailability"in e)||e.dataSourceAvailability===void 0)}function ar(e){return or(e)}function or(e,t){return e==null?e:{assetId:e.assetId,title:e.title,descriptionShortText:e.descriptionShortText==null?void 0:e.descriptionShortText,dataSourceAvailability:Nt(e.dataSourceAvailability)}}function sr(e){return cr(e,!1)}function cr(e,t=!1){return e==null?e:{assetId:e.assetId,title:e.title,descriptionShortText:e.descriptionShortText,dataSourceAvailability:e.dataSourceAvailability}}function Yc(e){return!0}function Pt(e){return ur(e)}function ur(e,t){return e==null?e:{pageOneBased:e.pageOneBased==null?void 0:e.pageOneBased,pageSize:e.pageSize==null?void 0:e.pageSize}}function Ct(e){return dr(e,!1)}function dr(e,t=!1){return e==null?e:{pageOneBased:e.pageOneBased,pageSize:e.pageSize}}const Oe={Title:"TITLE",Description:"DESCRIPTION"};function Wc(e){for(const t in Oe)if(Object.prototype.hasOwnProperty.call(Oe,t)&&Oe[t]===e)return!0;return!1}function lr(e){return fr(e)}function fr(e,t){return e}function Xc(e){return e}function xc(e,t){return e}const Ne={Descending:"DESCENDING",Ascending:"ASCENDING"};function jc(e){for(const t in Ne)if(Object.prototype.hasOwnProperty.call(Ne,t)&&Ne[t]===e)return!0;return!1}function Jt(e){return pr(e)}function pr(e,t){return e}function eu(e){return e}function tu(e,t){return e}function ru(e){return!(!("field"in e)||e.field===void 0||!("direction"in e)||e.direction===void 0)}function mr(e){return yr(e)}function yr(e,t){return e==null?e:{field:lr(e.field),direction:Jt(e.direction)}}function gr(e){return hr(e,!1)}function hr(e,t=!1){return e==null?e:{field:e.field,direction:e.direction}}function nu(e){return!0}function iu(e){return Sr(e)}function Sr(e,t){return e==null?e:{pagination:e.pagination==null?void 0:Pt(e.pagination),searchText:e.searchText==null?void 0:e.searchText,sortBy:e.sortBy==null?void 0:e.sortBy.map(mr)}}function Tr(e){return Or(e,!1)}function Or(e,t=!1){return e==null?e:{pagination:Ct(e.pagination),searchText:e.searchText,sortBy:e.sortBy==null?void 0:e.sortBy.map(gr)}}function au(e){return!(!("totalItems"in e)||e.totalItems===void 0||!("lastPage"in e)||e.lastPage===void 0||!("currentPage"in e)||e.currentPage===void 0||!("pageStart"in e)||e.pageStart===void 0||!("pageEnd"in e)||e.pageEnd===void 0||!("pageSize"in e)||e.pageSize===void 0)}function Dt(e){return Nr(e)}function Nr(e,t){return e==null?e:{totalItems:e.totalItems,lastPage:e.lastPage,previousPage:e.previousPage==null?void 0:e.previousPage,currentPage:e.currentPage,nextPage:e.nextPage==null?void 0:e.nextPage,pageStart:e.pageStart,pageEnd:e.pageEnd,pageSize:e.pageSize}}function At(e){return Pr(e,!1)}function Pr(e,t=!1){return e==null?e:{totalItems:e.totalItems,lastPage:e.lastPage,previousPage:e.previousPage,currentPage:e.currentPage,nextPage:e.nextPage,pageStart:e.pageStart,pageEnd:e.pageEnd,pageSize:e.pageSize}}function ou(e){return!(!("assets"in e)||e.assets===void 0||!("pagination"in e)||e.pagination===void 0)}function Cr(e){return Jr(e)}function Jr(e,t){return e==null?e:{assets:e.assets.map(ar),pagination:Dt(e.pagination)}}function su(e){return Dr(e,!1)}function Dr(e,t=!1){return e==null?e:{assets:e.assets.map(sr),pagination:At(e.pagination)}}function cu(e){return!(!("storageAccountName"in e)||e.storageAccountName===void 0||!("containerName"in e)||e.containerName===void 0||!("storageAccountVaultKey"in e)||e.storageAccountVaultKey===void 0)}function uu(e){return Ar(e)}function Ar(e,t){return e==null?e:{storageAccountName:e.storageAccountName,containerName:e.containerName,storageAccountVaultKey:e.storageAccountVaultKey}}function wr(e){return br(e,!1)}function br(e,t=!1){return e==null?e:{storageAccountName:e.storageAccountName,containerName:e.containerName,storageAccountVaultKey:e.storageAccountVaultKey}}function du(e){return!(!("storageAccountName"in e)||e.storageAccountName===void 0||!("storageAccountVaultKey"in e)||e.storageAccountVaultKey===void 0)}function lu(e){return Ir(e)}function Ir(e,t){return e==null?e:{storageAccountName:e.storageAccountName,storageAccountVaultKey:e.storageAccountVaultKey}}function Ur(e){return Rr(e,!1)}function Rr(e,t=!1){return e==null?e:{storageAccountName:e.storageAccountName,storageAccountVaultKey:e.storageAccountVaultKey}}function fu(e){return!(!("buildDate"in e)||e.buildDate===void 0||!("buildVersion"in e)||e.buildVersion===void 0)}function Fr(e){return Er(e)}function Er(e,t){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}function pu(e){return _r(e,!1)}function _r(e,t=!1){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}function mu(e){return!(!("groupId"in e)||e.groupId===void 0||!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function yu(e){return kr(e)}function kr(e,t){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function qr(e){return vr(e,!1)}function vr(e,t=!1){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function gu(e){return!(!("groupId"in e)||e.groupId===void 0||!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function Lr(e){return Hr(e)}function Hr(e,t){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function hu(e){return Br(e,!1)}function Br(e,t=!1){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function Su(e){return!(!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function Tu(e){return Vr(e)}function Vr(e,t){return e==null?e:{businessPartnerNumbers:e.businessPartnerNumbers}}function Mr(e){return zr(e,!1)}function zr(e,t=!1){return e==null?e:{businessPartnerNumbers:e.businessPartnerNumbers}}function Ou(e){return!(!("groupId"in e)||e.groupId===void 0||!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function Zr(e){return Gr(e)}function Gr(e,t){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function Nu(e){return Kr(e,!1)}function Kr(e,t=!1){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function Pu(e){return!0}function Cu(e){return Qr(e)}function Qr(e,t){return e==null?e:{searchQuery:e.searchQuery==null?void 0:e.searchQuery,limit:e.limit==null?void 0:e.limit}}function $r(e){return Yr(e,!1)}function Yr(e,t=!1){return e==null?e:{searchQuery:e.searchQuery,limit:e.limit}}const Pe={ContractNegotiationFinalized:"CONTRACT_NEGOTIATION_FINALIZED",ContractNegotiationTerminated:"CONTRACT_NEGOTIATION_TERMINATED",TransferProcessStarted:"TRANSFER_PROCESS_STARTED",TransferProcessTerminated:"TRANSFER_PROCESS_TERMINATED",TransferProcessCompleted:"TRANSFER_PROCESS_COMPLETED"};function Ju(e){for(const t in Pe)if(Object.prototype.hasOwnProperty.call(Pe,t)&&Pe[t]===e)return!0;return!1}function Wr(e){return Xr(e)}function Xr(e,t){return e}function xr(e){return e}function Du(e,t){return e}function Au(e){return!(!("url"in e)||e.url===void 0||!("events"in e)||e.events===void 0)}function Ce(e){return jr(e)}function jr(e,t){return e==null?e:{url:e.url,events:e.events.map(Wr),authHeaderName:e.authHeaderName==null?void 0:e.authHeaderName,authHeaderVaultSecretName:e.authHeaderVaultSecretName==null?void 0:e.authHeaderVaultSecretName}}function Je(e){return en(e,!1)}function en(e,t=!1){return e==null?e:{url:e.url,events:e.events.map(xr),authHeaderName:e.authHeaderName,authHeaderVaultSecretName:e.authHeaderVaultSecretName}}const De={Value:"VALUE",ValueList:"VALUE_LIST"};function wu(e){for(const t in De)if(Object.prototype.hasOwnProperty.call(De,t)&&De[t]===e)return!0;return!1}function tn(e){return rn(e)}function rn(e,t){return e}function bu(e){return e}function Iu(e,t){return e}function Uu(e){return!0}function nn(e){return an(e)}function an(e,t){return e==null?e:{type:e.type==null?void 0:tn(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function on(e){return sn(e,!1)}function sn(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const Ae={Like:"LIKE",Eq:"EQ",In:"IN"};function Ru(e){for(const t in Ae)if(Object.prototype.hasOwnProperty.call(Ae,t)&&Ae[t]===e)return!0;return!1}function cn(e){return un(e)}function un(e,t){return e}function Fu(e){return e}function Eu(e,t){return e}function _u(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function dn(e){return ln(e)}function ln(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:cn(e.operator),operandRight:nn(e.operandRight)}}function fn(e){return pn(e,!1)}function pn(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:on(e.operandRight)}}function ku(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function qu(e){return mn(e)}function mn(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(dn)}}function yn(e){return gn(e,!1)}function gn(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(fn)}}const we={Asc:"ASC",Desc:"DESC"};function vu(e){for(const t in we)if(Object.prototype.hasOwnProperty.call(we,t)&&we[t]===e)return!0;return!1}function hn(e){return Sn(e)}function Sn(e,t){return e}function Lu(e){return e}function Hu(e,t){return e}function Bu(e){return!(!("assetPropertyPath"in e)||e.assetPropertyPath===void 0)}function Tn(e){return On(e)}function On(e,t){return e==null?e:{assetPropertyPath:e.assetPropertyPath,direction:e.direction==null?void 0:hn(e.direction)}}function Nn(e){return Pn(e,!1)}function Pn(e,t=!1){return e==null?e:{assetPropertyPath:e.assetPropertyPath,direction:e.direction}}function Vu(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0)}function Mu(e){return Cn(e)}function Cn(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter==null?void 0:e.filter.map(Tt),limit:e.limit==null?void 0:e.limit,offset:e.offset==null?void 0:e.offset,sortBy:e.sortBy==null?void 0:Tn(e.sortBy)}}function Jn(e){return Dn(e,!1)}function Dn(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter==null?void 0:e.filter.map(Ot),limit:e.limit,offset:e.offset,sortBy:Nn(e.sortBy)}}function zu(e){return!(!("numActiveConsumingContractAgreements"in e)||e.numActiveConsumingContractAgreements===void 0)}function An(e){return wn(e)}function wn(e,t){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements==null?void 0:e.maxActiveConsumingContractAgreements}}function Zu(e){return bn(e,!1)}function bn(e,t=!1){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements}}const be={Consuming:"CONSUMING",Providing:"PROVIDING"};function Gu(e){for(const t in be)if(Object.prototype.hasOwnProperty.call(be,t)&&be[t]===e)return!0;return!1}function Ie(e){return In(e)}function In(e,t){return e}function Ku(e){return e}function Qu(e,t){return e}const Ue={Self:"SELF",Counterparty:"COUNTERPARTY"};function $u(e){for(const t in Ue)if(Object.prototype.hasOwnProperty.call(Ue,t)&&Ue[t]===e)return!0;return!1}function Un(e){return Rn(e)}function Rn(e,t){return e}function Yu(e){return e}function Wu(e,t){return e}function Xu(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 wt(e){return Fn(e)}function Fn(e,t){return e==null?e:{terminatedAt:new Date(e.terminatedAt),reason:e.reason,detail:e.detail,terminatedBy:Un(e.terminatedBy)}}function bt(e){return En(e,!1)}function En(e,t=!1){return e==null?e:{terminatedAt:e.terminatedAt.toISOString(),reason:e.reason,detail:e.detail,terminatedBy:e.terminatedBy}}const Re={Running:"RUNNING",Ok:"OK",Error:"ERROR"};function xu(e){for(const t in Re)if(Object.prototype.hasOwnProperty.call(Re,t)&&Re[t]===e)return!0;return!1}function _n(e){return kn(e)}function kn(e,t){return e}function ju(e){return e}function ed(e,t){return e}function td(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function Fe(e){return qn(e)}function qn(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:_n(e.simplifiedState)}}function Ee(e){return vn(e,!1)}function vn(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function rd(e){return!(!("transferProcessId"in e)||e.transferProcessId===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0||!("state"in e)||e.state===void 0)}function Ln(e){return Hn(e)}function Hn(e,t){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:new Date(e.lastUpdatedDate),state:Fe(e.state),errorMessage:e.errorMessage==null?void 0:e.errorMessage}}function Bn(e){return Vn(e,!1)}function Vn(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:e.lastUpdatedDate.toISOString(),state:Ee(e.state),errorMessage:e.errorMessage}}const _e={Value:"VALUE",ValueList:"VALUE_LIST"};function nd(e){for(const t in _e)if(Object.prototype.hasOwnProperty.call(_e,t)&&_e[t]===e)return!0;return!1}function Mn(e){return zn(e)}function zn(e,t){return e}function id(e){return e}function ad(e,t){return e}function od(e){return!0}function Zn(e){return Gn(e)}function Gn(e,t){return e==null?e:{type:e.type==null?void 0:Mn(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Kn(e){return Qn(e,!1)}function Qn(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const ke={Eq:"EQ",In:"IN",Like:"LIKE"};function sd(e){for(const t in ke)if(Object.prototype.hasOwnProperty.call(ke,t)&&ke[t]===e)return!0;return!1}function $n(e){return Yn(e)}function Yn(e,t){return e}function cd(e){return e}function ud(e,t){return e}function dd(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function It(e){return Wn(e)}function Wn(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:$n(e.operator),operandRight:Zn(e.operandRight)}}function Ut(e){return Xn(e,!1)}function Xn(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:Kn(e.operandRight)}}function ld(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 xn(e){return jn(e)}function jn(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(It)}}function ei(e){return ti(e,!1)}function ti(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(Ut)}}function fd(e){return!(!("contractDefinitions"in e)||e.contractDefinitions===void 0)}function ri(e){return ni(e)}function ni(e,t){return e==null?e:{contractDefinitions:e.contractDefinitions.map(xn)}}function pd(e){return ii(e,!1)}function ii(e,t=!1){return e==null?e:{contractDefinitions:e.contractDefinitions.map(ei)}}function md(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 yd(e){return ai(e)}function ai(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(It)}}function oi(e){return si(e,!1)}function si(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(Ut)}}const qe={Ongoing:"ONGOING",Terminated:"TERMINATED"};function gd(e){for(const t in qe)if(Object.prototype.hasOwnProperty.call(qe,t)&&qe[t]===e)return!0;return!1}function ve(e){return ci(e)}function ci(e,t){return e}function hd(e){return e}function Sd(e,t){return e}function Td(e){return!0}function Le(e){return ui(e)}function ui(e,t){return e==null?e:{patientCount:e.patientCount==null?void 0:e.patientCount,birthYearMin:e.birthYearMin==null?void 0:e.birthYearMin,birthYearMax:e.birthYearMax==null?void 0:e.birthYearMax,administrativeGender:e.administrativeGender==null?void 0:e.administrativeGender,bodyHeightMin:e.bodyHeightMin==null?void 0:e.bodyHeightMin,bodyHeightMax:e.bodyHeightMax==null?void 0:e.bodyHeightMax,diagnosisPrimary:e.diagnosisPrimary==null?void 0:e.diagnosisPrimary,diagnosisSecondary:e.diagnosisSecondary==null?void 0:e.diagnosisSecondary,encounterStart:e.encounterStart==null?void 0:e.encounterStart,encounterEnd:e.encounterEnd==null?void 0:e.encounterEnd,medicationCount:e.medicationCount==null?void 0:e.medicationCount,dosageCount:e.dosageCount==null?void 0:e.dosageCount,clinicalSpecialty:e.clinicalSpecialty==null?void 0:e.clinicalSpecialty}}function He(e){return di(e,!1)}function di(e,t=!1){return e==null?e:{patientCount:e.patientCount,birthYearMin:e.birthYearMin,birthYearMax:e.birthYearMax,administrativeGender:e.administrativeGender,bodyHeightMin:e.bodyHeightMin,bodyHeightMax:e.bodyHeightMax,diagnosisPrimary:e.diagnosisPrimary,diagnosisSecondary:e.diagnosisSecondary,encounterStart:e.encounterStart,encounterEnd:e.encounterEnd,medicationCount:e.medicationCount,dosageCount:e.dosageCount,clinicalSpecialty:e.clinicalSpecialty}}function Od(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 z(e){return li(e)}function li(e,t){return e==null?e:{dataSourceAvailability:Nt(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),sphinxFields:e.sphinxFields==null?void 0:Le(e.sphinxFields),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 Be(e){return fi(e,!1)}function fi(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),sphinxFields:He(e.sphinxFields),assetJsonLd:e.assetJsonLd,customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}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 Nd(e){for(const t in Ve)if(Object.prototype.hasOwnProperty.call(Ve,t)&&Ve[t]===e)return!0;return!1}function pi(e){return mi(e)}function mi(e,t){return e}function Pd(e){return e}function Cd(e,t){return e}const Me={String:"STRING",StringList:"STRING_LIST",Json:"JSON"};function Jd(e){for(const t in Me)if(Object.prototype.hasOwnProperty.call(Me,t)&&Me[t]===e)return!0;return!1}function yi(e){return gi(e)}function gi(e,t){return e}function Dd(e){return e}function Ad(e,t){return e}function wd(e){return!(!("type"in e)||e.type===void 0)}function hi(e){return Si(e)}function Si(e,t){return e==null?e:{type:yi(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Ti(e){return Oi(e,!1)}function Oi(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}function bd(e){return!(!("left"in e)||e.left===void 0||!("operator"in e)||e.operator===void 0||!("right"in e)||e.right===void 0)}function Rt(e){return Ni(e)}function Ni(e,t){return e==null?e:{left:e.left,operator:pi(e.operator),right:hi(e.right)}}function Ft(e){return Pi(e,!1)}function Pi(e,t=!1){return e==null?e:{left:e.left,operator:e.operator,right:Ti(e.right)}}const ze={Empty:"EMPTY",Constraint:"CONSTRAINT",And:"AND",Or:"OR",Xone:"XONE"};function Id(e){for(const t in ze)if(Object.prototype.hasOwnProperty.call(ze,t)&&ze[t]===e)return!0;return!1}function Ci(e){return Ji(e)}function Ji(e,t){return e}function Ud(e){return e}function Rd(e,t){return e}function Fd(e){return!(!("type"in e)||e.type===void 0)}function j(e){return Di(e)}function Di(e,t){return e==null?e:{type:Ci(e.type),expressions:e.expressions==null?void 0:e.expressions.map(j),constraint:e.constraint==null?void 0:Rt(e.constraint)}}function ee(e){return Ai(e,!1)}function Ai(e,t=!1){return e==null?e:{type:e.type,expressions:e.expressions==null?void 0:e.expressions.map(ee),constraint:Ft(e.constraint)}}function Ed(e){return!(!("policyJsonLd"in e)||e.policyJsonLd===void 0||!("errors"in e)||e.errors===void 0)}function te(e){return wi(e)}function wi(e,t){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:e.expression==null?void 0:j(e.expression),errors:e.errors}}function re(e){return bi(e,!1)}function bi(e,t=!1){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:ee(e.expression),errors:e.errors}}function _d(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 Ii(e){return Ui(e)}function Ui(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,contractNegotiationId:e.contractNegotiationId,direction:Ie(e.direction),counterPartyAddress:e.counterPartyAddress,counterPartyId:e.counterPartyId,contractSigningDate:new Date(e.contractSigningDate),asset:z(e.asset),contractPolicy:te(e.contractPolicy),transferProcesses:e.transferProcesses.map(Ln),terminationStatus:ve(e.terminationStatus),terminationInformation:e.terminationInformation==null?void 0:wt(e.terminationInformation)}}function kd(e){return Ri(e,!1)}function Ri(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:Be(e.asset),contractPolicy:re(e.contractPolicy),transferProcesses:e.transferProcesses.map(Bn),terminationStatus:e.terminationStatus,terminationInformation:bt(e.terminationInformation)}}function qd(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 vd(e){return Fi(e)}function Fi(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 Ei(e){return _i(e,!1)}function _i(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(Je)}}const Ze={InProgress:"IN_PROGRESS",Agreed:"AGREED",Terminated:"TERMINATED"};function Ld(e){for(const t in Ze)if(Object.prototype.hasOwnProperty.call(Ze,t)&&Ze[t]===e)return!0;return!1}function ki(e){return qi(e)}function qi(e,t){return e}function Hd(e){return e}function Bd(e,t){return e}function Vd(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function Ge(e){return vi(e)}function vi(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:ki(e.simplifiedState)}}function Ke(e){return Li(e,!1)}function Li(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function Md(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("state"in e)||e.state===void 0||!("stateChangedAt"in e)||e.stateChangedAt===void 0)}function Hi(e){return Bi(e)}function Bi(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,state:Ge(e.state),contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,contractAgreementTerminationInfo:e.contractAgreementTerminationInfo==null?void 0:wt(e.contractAgreementTerminationInfo),stateChangedAt:new Date(e.stateChangedAt)}}function zd(e){return Vi(e,!1)}function Vi(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,state:Ke(e.state),contractAgreementId:e.contractAgreementId,contractAgreementTerminationInfo:bt(e.contractAgreementTerminationInfo),stateChangedAt:e.stateChangedAt.toISOString()}}function Zd(e){return!(!("detail"in e)||e.detail===void 0||!("reason"in e)||e.reason===void 0)}function Gd(e){return Mi(e)}function Mi(e,t){return e==null?e:{detail:e.detail,reason:e.reason}}function zi(e){return Zi(e,!1)}function Zi(e,t=!1){return e==null?e:{detail:e.detail,reason:e.reason}}function Kd(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("direction"in e)||e.direction===void 0||!("counterPartyId"in e)||e.counterPartyId===void 0||!("contractSigningDate"in e)||e.contractSigningDate===void 0||!("assetId"in e)||e.assetId===void 0||!("assetTitle"in e)||e.assetTitle===void 0||!("transferProcessesCount"in e)||e.transferProcessesCount===void 0||!("terminationStatus"in e)||e.terminationStatus===void 0)}function Gi(e){return Ki(e)}function Ki(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,direction:Ie(e.direction),counterPartyId:e.counterPartyId,contractSigningDate:new Date(e.contractSigningDate),assetId:e.assetId,assetTitle:e.assetTitle,transferProcessesCount:e.transferProcessesCount,terminationStatus:ve(e.terminationStatus),terminatedAt:e.terminatedAt==null?void 0:new Date(e.terminatedAt)}}function Qi(e){return $i(e,!1)}function $i(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,direction:e.direction,counterPartyId:e.counterPartyId,contractSigningDate:e.contractSigningDate.toISOString(),assetId:e.assetId,assetTitle:e.assetTitle,transferProcessesCount:e.transferProcessesCount,terminationStatus:e.terminationStatus,terminatedAt:e.terminatedAt==null?void 0:e.terminatedAt.toISOString()}}const Qe={ContractName:"CONTRACT_NAME",SignedAt:"SIGNED_AT",TerminatedAt:"TERMINATED_AT",Transfers:"TRANSFERS"};function Qd(e){for(const t in Qe)if(Object.prototype.hasOwnProperty.call(Qe,t)&&Qe[t]===e)return!0;return!1}function Yi(e){return Wi(e)}function Wi(e,t){return e}function $d(e){return e}function Yd(e,t){return e}function Wd(e){return!(!("field"in e)||e.field===void 0||!("direction"in e)||e.direction===void 0)}function Xi(e){return xi(e)}function xi(e,t){return e==null?e:{field:Yi(e.field),direction:Jt(e.direction)}}function ji(e){return ea(e,!1)}function ea(e,t=!1){return e==null?e:{field:e.field,direction:e.direction}}function Xd(e){return!0}function xd(e){return ta(e)}function ta(e,t){return e==null?e:{terminationStatus:e.terminationStatus==null?void 0:ve(e.terminationStatus),pagination:e.pagination==null?void 0:Pt(e.pagination),searchText:e.searchText==null?void 0:e.searchText,sortBy:e.sortBy==null?void 0:e.sortBy.map(Xi)}}function ra(e){return na(e,!1)}function na(e,t=!1){return e==null?e:{terminationStatus:e.terminationStatus,pagination:Ct(e.pagination),searchText:e.searchText,sortBy:e.sortBy==null?void 0:e.sortBy.map(ji)}}function jd(e){return!(!("contracts"in e)||e.contracts===void 0||!("pagination"in e)||e.pagination===void 0)}function ia(e){return aa(e)}function aa(e,t){return e==null?e:{contracts:e.contracts.map(Gi),pagination:Dt(e.pagination)}}function el(e){return oa(e,!1)}function oa(e,t=!1){return e==null?e:{contracts:e.contracts.map(Qi),pagination:At(e.pagination)}}function tl(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 sa(e){return ca(e)}function ca(e,t){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function ua(e){return da(e,!1)}function da(e,t=!1){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function rl(e){return!(!("tokenUrl"in e)||e.tokenUrl===void 0||!("jwksUrl"in e)||e.jwksUrl===void 0)}function la(e){return fa(e)}function fa(e,t){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function pa(e){return ma(e,!1)}function ma(e,t=!1){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function nl(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 Et(e){return ya(e)}function ya(e,t){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function _t(e){return ga(e,!1)}function ga(e,t=!1){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function il(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 ha(e){return Sa(e)}function Sa(e,t){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:Et(e.transferProcessesConsuming),transferProcessesProviding:Et(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:la(e.connectorDapsConfig),connectorCxDidConfig:e.connectorCxDidConfig==null?void 0:sa(e.connectorCxDidConfig)}}function al(e){return Ta(e,!1)}function Ta(e,t=!1){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:_t(e.transferProcessesConsuming),transferProcessesProviding:_t(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:pa(e.connectorDapsConfig),connectorCxDidConfig:ua(e.connectorCxDidConfig)}}const $e={Expression:"POLICY_EXPRESSION",JsonLd:"POLICY_JSON_LD"};function ol(e){for(const t in $e)if(Object.prototype.hasOwnProperty.call($e,t)&&$e[t]===e)return!0;return!1}function Oa(e){return Na(e)}function Na(e,t){return e}function sl(e){return e}function cl(e,t){return e}const Ye={DontPublish:"DONT_PUBLISH",PublishUnrestricted:"PUBLISH_UNRESTRICTED",PublishRestricted:"PUBLISH_RESTRICTED"};function ul(e){for(const t in Ye)if(Object.prototype.hasOwnProperty.call(Ye,t)&&Ye[t]===e)return!0;return!1}function Pa(e){return Ca(e)}function Ca(e,t){return e}function dl(e){return e}function ll(e,t){return e}const We={HttpData:"HTTP_DATA",OnRequest:"ON_REQUEST",AzureStorage:"AZURE_STORAGE",Custom:"CUSTOM"};function fl(e){for(const t in We)if(Object.prototype.hasOwnProperty.call(We,t)&&We[t]===e)return!0;return!1}function Ja(e){return Da(e)}function Da(e,t){return e}function pl(e){return e}function ml(e,t){return e}function yl(e){return!(!("storageAccountName"in e)||e.storageAccountName===void 0||!("accountKey"in e)||e.accountKey===void 0||!("containerName"in e)||e.containerName===void 0||!("blobName"in e)||e.blobName===void 0)}function Aa(e){return wa(e)}function wa(e,t){return e==null?e:{storageAccountName:e.storageAccountName,accountKey:e.accountKey,containerName:e.containerName,blobName:e.blobName}}function ba(e){return Ia(e,!1)}function Ia(e,t=!1){return e==null?e:{storageAccountName:e.storageAccountName,accountKey:e.accountKey,containerName:e.containerName,blobName:e.blobName}}const Xe={Get:"GET",Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Options:"OPTIONS"};function gl(e){for(const t in Xe)if(Object.prototype.hasOwnProperty.call(Xe,t)&&Xe[t]===e)return!0;return!1}function Ua(e){return Ra(e)}function Ra(e,t){return e}function hl(e){return e}function Sl(e,t){return e}function Tl(e){return!(!("headerName"in e)||e.headerName===void 0||!("vaultKey"in e)||e.vaultKey===void 0)}function kt(e){return Fa(e)}function Fa(e,t){return e==null?e:{headerName:e.headerName,vaultKey:e.vaultKey}}function qt(e){return Ea(e,!1)}function Ea(e,t=!1){return e==null?e:{headerName:e.headerName,vaultKey:e.vaultKey}}function Ol(e){return!(!("username"in e)||e.username===void 0||!("password"in e)||e.password===void 0)}function vt(e){return _a(e)}function _a(e,t){return e==null?e:{username:e.username,password:e.password}}function Lt(e){return ka(e,!1)}function ka(e,t=!1){return e==null?e:{username:e.username,password:e.password}}const xe={SharedSecret:"SHARED_SECRET",PrivateKey:"PRIVATE_KEY"};function Nl(e){for(const t in xe)if(Object.prototype.hasOwnProperty.call(xe,t)&&xe[t]===e)return!0;return!1}function qa(e){return va(e)}function va(e,t){return e}function Pl(e){return e}function Cl(e,t){return e}function Jl(e){return!(!("privateKeyName"in e)||e.privateKeyName===void 0||!("tokenValidityInSeconds"in e)||e.tokenValidityInSeconds===void 0)}function La(e){return Ha(e)}function Ha(e,t){return e==null?e:{privateKeyName:e.privateKeyName,tokenValidityInSeconds:e.tokenValidityInSeconds}}function Ba(e){return Va(e,!1)}function Va(e,t=!1){return e==null?e:{privateKeyName:e.privateKeyName,tokenValidityInSeconds:e.tokenValidityInSeconds}}function Dl(e){return!(!("clientId"in e)||e.clientId===void 0||!("clientSecretName"in e)||e.clientSecretName===void 0)}function Ma(e){return za(e)}function za(e,t){return e==null?e:{clientId:e.clientId,clientSecretName:e.clientSecretName}}function Za(e){return Ga(e,!1)}function Ga(e,t=!1){return e==null?e:{clientId:e.clientId,clientSecretName:e.clientSecretName}}function Al(e){return!(!("tokenUrl"in e)||e.tokenUrl===void 0||!("type"in e)||e.type===void 0)}function Ka(e){return Qa(e)}function Qa(e,t){return e==null?e:{tokenUrl:e.tokenUrl,scope:e.scope==null?void 0:e.scope,type:qa(e.type),privateKey:e.privateKey==null?void 0:La(e.privateKey),sharedSecret:e.sharedSecret==null?void 0:Ma(e.sharedSecret)}}function $a(e){return Ya(e,!1)}function Ya(e,t=!1){return e==null?e:{tokenUrl:e.tokenUrl,scope:e.scope,type:e.type,privateKey:Ba(e.privateKey),sharedSecret:Za(e.sharedSecret)}}const je={Basic:"BASIC",Oauth2:"OAUTH2",ApiKey:"API_KEY"};function wl(e){for(const t in je)if(Object.prototype.hasOwnProperty.call(je,t)&&je[t]===e)return!0;return!1}function Wa(e){return Xa(e)}function Xa(e,t){return e}function bl(e){return e}function Il(e,t){return e}function Ul(e){return!(!("type"in e)||e.type===void 0)}function xa(e){return ja(e)}function ja(e,t){return e==null?e:{type:Wa(e.type),basic:e.basic==null?void 0:vt(e.basic),apiKey:e.apiKey==null?void 0:kt(e.apiKey),oauth:e.oauth==null?void 0:Ka(e.oauth)}}function eo(e){return to(e,!1)}function to(e,t=!1){return e==null?e:{type:e.type,basic:Lt(e.basic),apiKey:qt(e.apiKey),oauth:$a(e.oauth)}}function Rl(e){return!(!("baseUrl"in e)||e.baseUrl===void 0)}function ro(e){return no(e)}function no(e,t){return e==null?e:{method:e.method==null?void 0:Ua(e.method),baseUrl:e.baseUrl,queryString:e.queryString==null?void 0:e.queryString,auth:e.auth==null?void 0:xa(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 io(e){return ao(e,!1)}function ao(e,t=!1){return e==null?e:{method:e.method,baseUrl:e.baseUrl,queryString:e.queryString,auth:eo(e.auth),headers:e.headers,enableMethodParameterization:e.enableMethodParameterization,enablePathParameterization:e.enablePathParameterization,enableQueryParameterization:e.enableQueryParameterization,enableBodyParameterization:e.enableBodyParameterization}}function Fl(e){return!(!("contactEmail"in e)||e.contactEmail===void 0||!("contactPreferredEmailSubject"in e)||e.contactPreferredEmailSubject===void 0)}function oo(e){return so(e)}function so(e,t){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function co(e){return uo(e,!1)}function uo(e,t=!1){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function El(e){return!(!("type"in e)||e.type===void 0)}function Ht(e){return lo(e)}function lo(e,t){return e==null?e:{type:Ja(e.type),httpData:e.httpData==null?void 0:ro(e.httpData),onRequest:e.onRequest==null?void 0:oo(e.onRequest),azureStorage:e.azureStorage==null?void 0:Aa(e.azureStorage),customProperties:e.customProperties==null?void 0:e.customProperties}}function Bt(e){return fo(e,!1)}function fo(e,t=!1){return e==null?e:{type:e.type,httpData:io(e.httpData),onRequest:co(e.onRequest),azureStorage:ba(e.azureStorage),customProperties:e.customProperties}}function _l(e){return!(!("dataSource"in e)||e.dataSource===void 0||!("id"in e)||e.id===void 0)}function po(e){return mo(e)}function mo(e,t){return e==null?e:{dataSource:Ht(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),sphinxFields:e.sphinxFields==null?void 0:Le(e.sphinxFields),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 et(e){return yo(e,!1)}function yo(e,t=!1){return e==null?e:{dataSource:Bt(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),sphinxFields:He(e.sphinxFields),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function kl(e){return!(!("asset"in e)||e.asset===void 0||!("publishType"in e)||e.publishType===void 0)}function ql(e){return go(e)}function go(e,t){return e==null?e:{asset:po(e.asset),publishType:Pa(e.publishType),policyCreateType:e.policyCreateType==null?void 0:Oa(e.policyCreateType),policyExpression:e.policyExpression==null?void 0:j(e.policyExpression),policyJsonLd:e.policyJsonLd==null?void 0:e.policyJsonLd}}function ho(e){return So(e,!1)}function So(e,t=!1){return e==null?e:{asset:et(e.asset),publishType:e.publishType,policyCreateType:e.policyCreateType,policyExpression:ee(e.policyExpression),policyJsonLd:e.policyJsonLd}}function vl(e){return!(!("baseUrl"in e)||e.baseUrl===void 0||!("authorizationHeaderValue"in e)||e.authorizationHeaderValue===void 0)}function To(e){return Oo(e)}function Oo(e,t){return e==null?e:{baseUrl:e.baseUrl,authorizationHeaderValue:e.authorizationHeaderValue,expiresAt:e.expiresAt==null?void 0:new Date(e.expiresAt)}}function Ll(e){return No(e,!1)}function No(e,t=!1){return e==null?e:{baseUrl:e.baseUrl,authorizationHeaderValue:e.authorizationHeaderValue,expiresAt:e.expiresAt==null?void 0:e.expiresAt.toISOString()}}function Hl(e){return!(!("id"in e)||e.id===void 0)}function tt(e){return Po(e)}function Po(e,t){return e==null?e:{id:e.id,available:e.available==null?void 0:e.available}}function Bl(e){return Co(e,!1)}function Co(e,t=!1){return e==null?e:{id:e.id,available:e.available}}function Vl(e){return!(!("id"in e)||e.id===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0)}function J(e){return Jo(e)}function Jo(e,t){return e==null?e:{id:e.id,lastUpdatedDate:new Date(e.lastUpdatedDate)}}function Ml(e){return Do(e,!1)}function Do(e,t=!1){return e==null?e:{id:e.id,lastUpdatedDate:e.lastUpdatedDate.toISOString()}}function zl(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("transferProcessRequestJsonLd"in e)||e.transferProcessRequestJsonLd===void 0)}function Zl(e){return Ao(e)}function Ao(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function wo(e){return bo(e,!1)}function bo(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function Gl(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 Kl(e){return Io(e)}function Io(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function Uo(e){return Ro(e,!1)}function Ro(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function Ql(e){return!(!("incomingTransferProcessCounts"in e)||e.incomingTransferProcessCounts===void 0||!("outgoingTransferProcessCounts"in e)||e.outgoingTransferProcessCounts===void 0)}function Fo(e){return Eo(e)}function Eo(e,t){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function _o(e){return ko(e,!1)}function ko(e,t=!1){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function $l(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 qo(e){return vo(e)}function vo(e,t){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:Fo(e.transferProcessDto)}}function Yl(e){return Lo(e,!1)}function Lo(e,t=!1){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:_o(e.transferProcessDto)}}function Wl(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0||!("filter"in e)||e.filter===void 0)}function Xl(e){return Ho(e)}function Ho(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter.map(Tt),limit:e.limit==null?void 0:e.limit,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Ce)}}function Bo(e){return Vo(e,!1)}function Vo(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter.map(Ot),limit:e.limit,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Je)}}function xl(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 Mo(e){return zo(e)}function zo(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,state:Ge(e.state),stateChangedAt:new Date(e.stateChangedAt),asset:z(e.asset),policy:te(e.policy)}}function jl(e){return Zo(e,!1)}function Zo(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,contractAgreementId:e.contractAgreementId,state:Ke(e.state),stateChangedAt:e.stateChangedAt.toISOString(),asset:Be(e.asset),policy:re(e.policy)}}function ef(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policyExpression"in e)||e.policyExpression===void 0)}function tf(e){return Go(e)}function Go(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policyExpression:j(e.policyExpression)}}function Ko(e){return Qo(e,!1)}function Qo(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policyExpression:ee(e.policyExpression)}}function rf(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policyJsonLd"in e)||e.policyJsonLd===void 0)}function nf(e){return $o(e)}function $o(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policyJsonLd:e.policyJsonLd}}function Yo(e){return Wo(e,!1)}function Wo(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policyJsonLd:e.policyJsonLd}}function af(e){return!0}function Xo(e){return xo(e)}function xo(e,t){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(Rt)}}function jo(e){return es(e,!1)}function es(e,t=!1){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(Ft)}}function of(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function sf(e){return ts(e)}function ts(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:Xo(e.policy)}}function rs(e){return ns(e,!1)}function ns(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:jo(e.policy)}}function cf(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function is(e){return as(e)}function as(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:te(e.policy)}}function os(e){return ss(e,!1)}function ss(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:re(e.policy)}}function uf(e){return!(!("policies"in e)||e.policies===void 0)}function cs(e){return us(e)}function us(e,t){return e==null?e:{policies:e.policies.map(is)}}function df(e){return ds(e,!1)}function ds(e,t=!1){return e==null?e:{policies:e.policies.map(os)}}function lf(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 ls(e){return fs(e)}function fs(e,t){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:new Date(e.createdDate),lastUpdatedDate:new Date(e.lastUpdatedDate),transferType:e.transferType,state:Fe(e.state),contractAgreementId:e.contractAgreementId,direction:Ie(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 ps(e){return ms(e,!1)}function ms(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:e.createdDate.toISOString(),lastUpdatedDate:e.lastUpdatedDate.toISOString(),transferType:e.transferType,state:Ee(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 ff(e){return!(!("transferEntries"in e)||e.transferEntries===void 0)}function ys(e){return gs(e)}function gs(e,t){return e==null?e:{transferEntries:e.transferEntries.map(ls)}}function pf(e){return hs(e,!1)}function hs(e,t=!1){return e==null?e:{transferEntries:e.transferEntries.map(ps)}}function mf(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 Ss(e){return Ts(e)}function Ts(e,t){return e==null?e:{transferId:e.transferId,state:Fe(e.state),stateChangedAt:new Date(e.stateChangedAt),isEdrConsumable:e.isEdrConsumable}}function yf(e){return Os(e,!1)}function Os(e,t=!1){return e==null?e:{transferId:e.transferId,state:Ee(e.state),stateChangedAt:e.stateChangedAt.toISOString(),isEdrConsumable:e.isEdrConsumable}}function gf(e){return!0}function hf(e){return Ns(e)}function Ns(e,t){return e==null?e:{dataSourceOverrideOrNull:e.dataSourceOverrideOrNull==null?void 0:Ht(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),sphinxFields:e.sphinxFields==null?void 0:Le(e.sphinxFields),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 Ps(e){return Cs(e,!1)}function Cs(e,t=!1){return e==null?e:{dataSourceOverrideOrNull:Bt(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),sphinxFields:He(e.sphinxFields),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}const rt={ConnectorLimits:"CONNECTOR_LIMITS",OpenSourceMarketing:"OPEN_SOURCE_MARKETING",EeBasicMarketing:"EE_BASIC_MARKETING",CatenaPolicies:"CATENA_POLICIES",SovityPolicies:"SOVITY_POLICIES",SphinxPolicies:"SPHINX_POLICIES",SphinxAssetMetadata:"SPHINX_ASSET_METADATA",BusinessPartnerGroupManagement:"BUSINESS_PARTNER_GROUP_MANAGEMENT"};function Sf(e){for(const t in rt)if(Object.prototype.hasOwnProperty.call(rt,t)&&rt[t]===e)return!0;return!1}function Js(e){return Ds(e)}function Ds(e,t){return e}function As(e){return e}function Tf(e,t){return e}function Of(e){return!(!("participantId"in e)||e.participantId===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function ws(e){return bs(e)}function bs(e,t){return e==null?e:{participantId:e.participantId,connectorEndpoint:e.connectorEndpoint}}function Is(e){return Us(e,!1)}function Us(e,t=!1){return e==null?e:{participantId:e.participantId,connectorEndpoint:e.connectorEndpoint}}function Nf(e){return!(!("features"in e)||e.features===void 0||!("preconfiguredCounterparties"in e)||e.preconfiguredCounterparties===void 0)}function Rs(e){return Fs(e)}function Fs(e,t){return e==null?e:{features:e.features.map(Js),preconfiguredCounterparties:e.preconfiguredCounterparties.map(ws),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,icpFooterLinkText:e.icpFooterLinkText==null?void 0:e.icpFooterLinkText,icpFooterLinkUrl:e.icpFooterLinkUrl==null?void 0:e.icpFooterLinkUrl}}function Pf(e){return Es(e,!1)}function Es(e,t=!1){return e==null?e:{features:e.features.map(As),preconfiguredCounterparties:e.preconfiguredCounterparties.map(Is),logoutUrl:e.logoutUrl,documentationUrl:e.documentationUrl,supportUrl:e.supportUrl,privacyPolicyUrl:e.privacyPolicyUrl,legalNoticeUrl:e.legalNoticeUrl,icpFooterLinkText:e.icpFooterLinkText,icpFooterLinkUrl:e.icpFooterLinkUrl}}function Cf(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("createdAt"in e)||e.createdAt===void 0||!("state"in e)||e.state===void 0)}function Vt(e){return _s(e)}function _s(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:new Date(e.createdAt),contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,state:Ge(e.state)}}function Jf(e){return ks(e,!1)}function ks(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:e.createdAt.toISOString(),contractAgreementId:e.contractAgreementId,state:Ke(e.state)}}function Df(e){return!(!("contractOfferId"in e)||e.contractOfferId===void 0||!("policy"in e)||e.policy===void 0)}function qs(e){return vs(e)}function vs(e,t){return e==null?e:{contractOfferId:e.contractOfferId,policy:te(e.policy)}}function Ls(e){return Hs(e,!1)}function Hs(e,t=!1){return e==null?e:{contractOfferId:e.contractOfferId,policy:re(e.policy)}}function Af(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 ne(e){return Bs(e)}function Bs(e,t){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:z(e.asset),contractOffers:e.contractOffers.map(qs)}}function wf(e){return Vs(e,!1)}function Vs(e,t=!1){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:Be(e.asset),contractOffers:e.contractOffers.map(Ls)}}const nt={Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Options:"OPTIONS"};function bf(e){for(const t in nt)if(Object.prototype.hasOwnProperty.call(nt,t)&&nt[t]===e)return!0;return!1}function Ms(e){return zs(e)}function zs(e,t){return e}function If(e){return e}function Uf(e,t){return e}const it={Basic:"BASIC",ApiKey:"API_KEY"};function Rf(e){for(const t in it)if(Object.prototype.hasOwnProperty.call(it,t)&&it[t]===e)return!0;return!1}function Zs(e){return Gs(e)}function Gs(e,t){return e}function Ff(e){return e}function Ef(e,t){return e}function _f(e){return!(!("type"in e)||e.type===void 0)}function Ks(e){return Qs(e)}function Qs(e,t){return e==null?e:{type:Zs(e.type),basic:e.basic==null?void 0:vt(e.basic),apiKey:e.apiKey==null?void 0:kt(e.apiKey)}}function $s(e){return Ys(e,!1)}function Ys(e,t=!1){return e==null?e:{type:e.type,basic:Lt(e.basic),apiKey:qt(e.apiKey)}}function kf(e){return!(!("baseUrl"in e)||e.baseUrl===void 0)}function Ws(e){return Xs(e)}function Xs(e,t){return e==null?e:{method:e.method==null?void 0:Ms(e.method),baseUrl:e.baseUrl,queryString:e.queryString==null?void 0:e.queryString,auth:e.auth==null?void 0:Ks(e.auth),headers:e.headers==null?void 0:e.headers}}function xs(e){return js(e,!1)}function js(e,t=!1){return e==null?e:{method:e.method,baseUrl:e.baseUrl,queryString:e.queryString,auth:$s(e.auth),headers:e.headers}}const at={HttpDataPush:"HTTP_DATA_PUSH",HttpDataProxy:"HTTP_DATA_PROXY",Custom:"CUSTOM"};function qf(e){for(const t in at)if(Object.prototype.hasOwnProperty.call(at,t)&&at[t]===e)return!0;return!1}function ec(e){return tc(e)}function tc(e,t){return e}function vf(e){return e}function Lf(e,t){return e}function Hf(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("type"in e)||e.type===void 0)}function Bf(e){return rc(e)}function rc(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,type:ec(e.type),httpDataPush:e.httpDataPush==null?void 0:Ws(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 nc(e){return ic(e,!1)}function ic(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,type:e.type,httpDataPush:xs(e.httpDataPush),callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Je),customDataSinkProperties:e.customDataSinkProperties,customTransferPrivateProperties:e.customTransferPrivateProperties,customTransferType:e.customTransferType}}function Vf(e){return!(!("key"in e)||e.key===void 0||!("value"in e)||e.value===void 0||!("description"in e)||e.description===void 0)}function Mf(e){return ac(e)}function ac(e,t){return e==null?e:{key:e.key,value:e.value,description:e.description}}function oc(e){return sc(e,!1)}function sc(e,t=!1){return e==null?e:{key:e.key,value:e.value,description:e.description}}function zf(e){return!(!("key"in e)||e.key===void 0||!("description"in e)||e.description===void 0)}function cc(e){return uc(e)}function uc(e,t){return e==null?e:{key:e.key,description:e.description}}function Zf(e){return dc(e,!1)}function dc(e,t=!1){return e==null?e:{key:e.key,description:e.description}}function Gf(e){return!(!("description"in e)||e.description===void 0)}function Kf(e){return lc(e)}function lc(e,t){return e==null?e:{value:e.value==null?void 0:e.value,description:e.description}}function fc(e){return pc(e,!1)}function pc(e,t=!1){return e==null?e:{value:e.value,description:e.description}}function Qf(e){return!(!("key"in e)||e.key===void 0||!("description"in e)||e.description===void 0||!("updatedAt"in e)||e.updatedAt===void 0)}function mc(e){return yc(e)}function yc(e,t){return e==null?e:{key:e.key,description:e.description,updatedAt:new Date(e.updatedAt)}}function $f(e){return gc(e,!1)}function gc(e,t=!1){return e==null?e:{key:e.key,description:e.description,updatedAt:e.updatedAt.toISOString()}}function Yf(e){return!0}function Wf(e){return hc(e)}function hc(e,t){return e==null?e:{searchQuery:e.searchQuery==null?void 0:e.searchQuery,limit:e.limit==null?void 0:e.limit}}function Sc(e){return Tc(e,!1)}function Tc(e,t=!1){return e==null?e:{searchQuery:e.searchQuery,limit:e.limit}}class Oc extends ${async connectorLimitsRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ee/connector-limits",method:"GET",headers:i,query:r},t);return new m(a,o=>An(o))}async connectorLimits(t){return await(await this.connectorLimitsRaw(t)).value()}async fileUploadCreateAssetRaw(t,r){if(t.blobId==null)throw new P("blobId",'Required parameter "blobId" was null or undefined when calling fileUploadCreateAsset().');if(t.uiAssetCreateRequest==null)throw new P("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:et(t.uiAssetCreateRequest)},r);return new xt(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 m(a):new jt(a)}async fileUploadRequestSasToken(t){return await(await this.fileUploadRequestSasTokenRaw(t)).value()}}class Nc extends ${async assetDetailPageRaw(t,r){if(t.assetId==null)throw new P("assetId",'Required parameter "assetId" was null or undefined when calling assetDetailPage().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/asset-detail-page/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"GET",headers:a,query:i},r);return new m(o,s=>z(s))}async assetDetailPage(t,r){return await(await this.assetDetailPageRaw(t,r)).value()}async assetsPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/assets-page",method:"POST",headers:a,query:i,body:Tr(t.assetsPageRequest)},r);return new m(o,s=>Cr(s))}async assetsPage(t={},r){return await(await this.assetsPageRaw(t,r)).value()}async buildInfoRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/build-info",method:"GET",headers:i,query:r},t);return new m(a,o=>Fr(o))}async buildInfo(t){return await(await this.buildInfoRaw(t)).value()}async businessPartnerGroupCreateSubmitRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/create",method:"POST",headers:a,query:i,body:qr(t.businessPartnerGroupCreateSubmit)},r);return new m(o,s=>J(s))}async businessPartnerGroupCreateSubmit(t={},r){return await(await this.businessPartnerGroupCreateSubmitRaw(t,r)).value()}async businessPartnerGroupEditPageRaw(t,r){if(t.id==null)throw new P("id",'Required parameter "id" was null or undefined when calling businessPartnerGroupEditPage().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/{id}/edit-page".replace("{id}",encodeURIComponent(String(t.id))),method:"GET",headers:a,query:i},r);return new m(o,s=>Lr(s))}async businessPartnerGroupEditPage(t,r){return await(await this.businessPartnerGroupEditPageRaw(t,r)).value()}async businessPartnerGroupEditSubmitRaw(t,r){if(t.id==null)throw new P("id",'Required parameter "id" was null or undefined when calling businessPartnerGroupEditSubmit().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/{id}/edit-group".replace("{id}",encodeURIComponent(String(t.id))),method:"PUT",headers:a,query:i,body:Mr(t.businessPartnerGroupEditSubmit)},r);return new m(o,s=>J(s))}async businessPartnerGroupEditSubmit(t,r){return await(await this.businessPartnerGroupEditSubmitRaw(t,r)).value()}async businessPartnerGroupListPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/list-page",method:"POST",headers:a,query:i,body:$r(t.businessPartnerGroupQuery)},r);return new m(o,s=>s.map(Zr))}async businessPartnerGroupListPage(t={},r){return await(await this.businessPartnerGroupListPageRaw(t,r)).value()}async contractDetailPageRaw(t,r){if(t.contractAgreementId==null)throw new P("contractAgreementId",'Required parameter "contractAgreementId" was null or undefined when calling contractDetailPage().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/contract-detail-page/{contractAgreementId}".replace("{contractAgreementId}",encodeURIComponent(String(t.contractAgreementId))),method:"GET",headers:a,query:i},r);return new m(o,s=>Ii(s))}async contractDetailPage(t,r){return await(await this.contractDetailPageRaw(t,r)).value()}async contractsPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contracts-page",method:"POST",headers:a,query:i,body:ra(t.contractsPageRequest)},r);return new m(o,s=>ia(s))}async contractsPage(t={},r){return await(await this.contractsPageRaw(t,r)).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:et(t.uiAssetCreateRequest)},r);return new m(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:oi(t.contractDefinitionRequest)},r);return new m(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:ho(t.dataOfferCreateRequest)},r);return new m(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:rs(t.policyDefinitionCreateRequest)},r);return new m(o,s=>J(s))}async createPolicyDefinition(t={},r){return await(await this.createPolicyDefinitionRaw(t,r)).value()}async createPolicyDefinitionFromJsonLdRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/policy-page/create-policy-definition-json-ld",method:"POST",headers:a,query:i,body:Yo(t.policyDefinitionCreateFromJsonLdDto)},r);return new m(o,s=>J(s))}async createPolicyDefinitionFromJsonLd(t={},r){return await(await this.createPolicyDefinitionFromJsonLdRaw(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:Ko(t.policyDefinitionCreateDto)},r);return new m(o,s=>J(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:oc(t.vaultSecretCreateSubmit)},r);return new m(o,s=>J(s))}async createVaultSecret(t={},r){return await(await this.createVaultSecretRaw(t,r)).value()}async deleteAssetRaw(t,r){if(t.assetId==null)throw new P("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 m(o,s=>J(s))}async deleteAsset(t,r){return await(await this.deleteAssetRaw(t,r)).value()}async deleteBusinessPartnerGroupRaw(t,r){if(t.id==null)throw new P("id",'Required parameter "id" was null or undefined when calling deleteBusinessPartnerGroup().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/{id}".replace("{id}",encodeURIComponent(String(t.id))),method:"DELETE",headers:a,query:i},r);return new m(o,s=>J(s))}async deleteBusinessPartnerGroup(t,r){return await(await this.deleteBusinessPartnerGroupRaw(t,r)).value()}async deleteContractDefinitionRaw(t,r){if(t.contractDefinitionId==null)throw new P("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 m(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 P("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 m(o,s=>J(s))}async deletePolicyDefinition(t,r){return await(await this.deletePolicyDefinitionRaw(t,r)).value()}async deleteVaultSecretRaw(t,r){if(t.key==null)throw new P("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 m(o,s=>J(s))}async deleteVaultSecret(t,r){return await(await this.deleteVaultSecretRaw(t,r)).value()}async editAssetRaw(t,r){if(t.assetId==null)throw new P("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:Ps(t.uiAssetEditRequest)},r);return new m(o,s=>J(s))}async editAsset(t,r){return await(await this.editAssetRaw(t,r)).value()}async editVaultSecretRaw(t,r){if(t.key==null)throw new P("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:"PUT",headers:a,query:i,body:fc(t.vaultSecretEditSubmit)},r);return new m(o,s=>J(s))}async editVaultSecret(t,r){return await(await this.editVaultSecretRaw(t,r)).value()}async editVaultSecretPageRaw(t,r){if(t.key==null)throw new P("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 m(o,s=>cc(s))}async editVaultSecretPage(t,r){return await(await this.editVaultSecretPageRaw(t,r)).value()}async getCatalogPageDataOfferRaw(t,r){if(t.dataOfferId==null)throw new P("dataOfferId",'Required parameter "dataOfferId" was null or undefined when calling getCatalogPageDataOffer().');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/{dataOfferId}".replace("{dataOfferId}",encodeURIComponent(String(t.dataOfferId))),method:"GET",headers:a,query:i},r);return new m(o,s=>ne(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 m(o,s=>s.map(ne))}async getCatalogPageDataOffers(t={},r){return await(await this.getCatalogPageDataOffersRaw(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 m(a,o=>ri(o))}async getContractDefinitionPage(t){return await(await this.getContractDefinitionPageRaw(t)).value()}async getContractNegotiationRaw(t,r){if(t.contractNegotiationId==null)throw new P("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 m(o,s=>Vt(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 m(a,o=>ha(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 m(a,o=>cs(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 m(a,o=>ys(o))}async getTransferHistoryPage(t){return await(await this.getTransferHistoryPageRaw(t)).value()}async getTransferProcessAssetRaw(t,r){if(t.transferProcessId==null)throw new P("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 m(o,s=>z(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:Ei(t.contractNegotiationRequest)},r);return new m(o,s=>Vt(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:wo(t.initiateCustomTransferRequest)},r);return new m(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:Uo(t.initiateTransferRequest)},r);return new m(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:nc(t.uiInitiateTransferRequest)},r);return new m(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 P("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 m(o,s=>tt(s))}async isAssetIdAvailable(t,r){return await(await this.isAssetIdAvailableRaw(t,r)).value()}async isContractDefinitionIdAvailableRaw(t,r){if(t.contractDefinitionId==null)throw new P("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 m(o,s=>tt(s))}async isContractDefinitionIdAvailable(t,r){return await(await this.isContractDefinitionIdAvailableRaw(t,r)).value()}async isPolicyIdAvailableRaw(t,r){if(t.policyId==null)throw new P("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 m(o,s=>tt(s))}async isPolicyIdAvailable(t,r){return await(await this.isPolicyIdAvailableRaw(t,r)).value()}async listAzureStorageBlobsRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/forms/azure-storage-select/blobs",method:"POST",headers:a,query:i,body:wr(t.azureStorageListBlobsRequest)},r);return new m(o)}async listAzureStorageBlobs(t={},r){return await(await this.listAzureStorageBlobsRaw(t,r)).value()}async listAzureStorageContainersRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/forms/azure-storage-select/containers",method:"POST",headers:a,query:i,body:Ur(t.azureStorageListContainersRequest)},r);return new m(o)}async listAzureStorageContainers(t={},r){return await(await this.listAzureStorageContainersRaw(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:"POST",headers:a,query:i,body:Sc(t.vaultSecretQuery)},r);return new m(o,s=>s.map(mc))}async listVaultSecretsPage(t={},r){return await(await this.listVaultSecretsPageRaw(t,r)).value()}async terminateContractAgreementRaw(t,r){if(t.contractAgreementId==null)throw new P("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:zi(t.contractTerminationRequest)},r);return new m(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 m(a,o=>Rs(o))}async uiConfig(t){return await(await this.uiConfigRaw(t)).value()}}class Pc extends ${async getAssetsRaw(t){const r={},i={},a=await this.request({path:"/wrapper/use-case-api/assets",method:"GET",headers:i,query:r},t);return new m(a,o=>o.map(z))}async getAssets(t){return await(await this.getAssetsRaw(t)).value()}async getContractNegotiationStatesRaw(t,r){if(t.requestBody==null)throw new P("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 m(o,s=>s.map(Hi))}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 m(a,o=>qo(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 m(a)}async getSupportedFunctions(t){return await(await this.getSupportedFunctionsRaw(t)).value()}async getTransferProcessEdrRaw(t,r){if(t.transferId==null)throw new P("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 m(o,s=>To(s))}async getTransferProcessEdr(t,r){return await(await this.getTransferProcessEdrRaw(t,r)).value()}async getTransferProcessStatesRaw(t,r){if(t.requestBody==null)throw new P("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 m(o,s=>s.map(Ss))}async getTransferProcessStates(t,r){return await(await this.getTransferProcessStatesRaw(t,r)).value()}async negotiateAllRaw(t,r){if(t.negotiateAllQuery==null)throw new P("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:Bo(t.negotiateAllQuery)},r);return new m(o,s=>s.map(Mo))}async negotiateAll(t,r){return await(await this.negotiateAllRaw(t,r)).value()}async queryCatalogRaw(t,r){if(t.catalogQuery==null)throw new P("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:yn(t.catalogQuery)},r);return new m(o,s=>s.map(ne))}async queryCatalog(t,r){return await(await this.queryCatalogRaw(t,r)).value()}async queryCatalogV2Raw(t,r){if(t.catalogQueryV2==null)throw new P("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:Jn(t.catalogQueryV2)},r);return new m(o,s=>s.map(ne))}async queryCatalogV2(t,r){return await(await this.queryCatalogV2Raw(t,r)).value()}async terminateTransferProcessRaw(t,r){if(t.transferId==null)throw new P("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 m(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 Mt;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Mt||(Mt={}));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"]),Xf=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 ie=(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 Cc=ie;function xf(e){Cc=e}function ot(){return Cc}const st=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}},jf=[];function f(e,t){const r=st({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,ot(),ie].filter(i=>!!i)});e.common.issues.push(r)}class D{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 D.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"}),Jc=e=>({status:"dirty",value:e}),A=e=>({status:"valid",value:e}),zt=e=>e.status==="aborted",Zt=e=>e.status==="dirty",ae=e=>e.status==="valid",ct=e=>typeof Promise<"u"&&e instanceof Promise;var y;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(y||(y={}));class E{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 Dc=(e,t)=>{if(ae(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 D,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(ct(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 Dc(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(ct(a)?a:Promise.resolve(a));return Dc(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:g.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return v.create(this,this._def)}nullable(){return Q.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return R.create(this,this._def)}promise(){return x.create(this,this._def)}or(t){return ue.create([this,t],this._def)}and(t){return de.create(this,t,this._def)}transform(t){return new F({...S(this._def),schema:this,typeName:g.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new ye({...S(this._def),innerType:this,defaultValue:r,typeName:g.ZodDefault})}brand(){return new wc({typeName:g.ZodBranded,type:this,...S(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new mt({...S(this._def),innerType:this,catchValue:r,typeName:g.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return ge.create(this,t)}readonly(){return gt.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ep=/^c[^\s-]{8,}$/i,tp=/^[a-z][a-z0-9]*$/,rp=/^[0-9A-HJKMNP-TV-Z]{26}$/,np=/^[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,ip=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ap="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Gt;const op=/^(((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}))$/,sp=/^(([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})))$/,cp=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 up(e,t){return!!((t==="v4"||!t)&&op.test(e)||(t==="v6"||!t)&&sp.test(e))}class U 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 D;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")ip.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")Gt||(Gt=new RegExp(ap,"u")),Gt.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")np.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")ep.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")tp.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")rp.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"?cp(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"?up(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,...y.errToObj(i)})}_addCheck(t){return new U({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...y.errToObj(t)})}url(t){return this._addCheck({kind:"url",...y.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...y.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...y.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...y.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...y.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...y.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...y.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,...y.errToObj(t==null?void 0:t.message)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...y.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...y.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...y.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...y.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...y.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...y.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...y.errToObj(r)})}nonempty(t){return this.min(1,y.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:g.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...S(e)})};function dp(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 B 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 D;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"?dp(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,y.toString(r))}gt(t,r){return this.setLimit("min",t,!1,y.toString(r))}lte(t,r){return this.setLimit("max",t,!0,y.toString(r))}lt(t,r){return this.setLimit("max",t,!1,y.toString(r))}setLimit(t,r,i,a){return new B({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:y.toString(a)}]})}_addCheck(t){return new B({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:y.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:y.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:y.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:y.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:y.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:y.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)}}B.create=e=>new B({checks:[],typeName:g.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...S(e)});class V 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 D;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,y.toString(r))}gt(t,r){return this.setLimit("min",t,!1,y.toString(r))}lte(t,r){return this.setLimit("max",t,!0,y.toString(r))}lt(t,r){return this.setLimit("max",t,!1,y.toString(r))}setLimit(t,r,i,a){return new V({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:y.toString(a)}]})}_addCheck(t){return new V({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:y.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:y.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}}V.create=e=>{var t;return new V({checks:[],typeName:g.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...S(e)})};class oe 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)}}oe.create=e=>new oe({typeName:g.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...S(e)});class Z 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 D;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 Z({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:y.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:y.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}}Z.create=e=>new Z({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:g.ZodDate,...S(e)});class ut 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)}}ut.create=e=>new ut({typeName:g.ZodSymbol,...S(e)});class se 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)}}se.create=e=>new se({typeName:g.ZodUndefined,...S(e)});class ce 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)}}ce.create=e=>new ce({typeName:g.ZodNull,...S(e)});class Y extends T{constructor(){super(...arguments),this._any=!0}_parse(t){return A(t.data)}}Y.create=e=>new Y({typeName:g.ZodAny,...S(e)});class G extends T{constructor(){super(...arguments),this._unknown=!0}_parse(t){return A(t.data)}}G.create=e=>new G({typeName:g.ZodUnknown,...S(e)});class q extends T{_parse(t){const r=this._getOrReturnCtx(t);return f(r,{code:u.invalid_type,expected:l.never,received:r.parsedType}),h}}q.create=e=>new q({typeName:g.ZodNever,...S(e)});class dt 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)}}dt.create=e=>new dt({typeName:g.ZodVoid,...S(e)});class R 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 E(r,s,r.path,c)))).then(s=>D.mergeArray(i,s));const o=[...r.data].map((s,c)=>a.type._parseSync(new E(r,s,r.path,c)));return D.mergeArray(i,o)}get element(){return this._def.type}min(t,r){return new R({...this._def,minLength:{value:t,message:y.toString(r)}})}max(t,r){return new R({...this._def,maxLength:{value:t,message:y.toString(r)}})}length(t,r){return new R({...this._def,exactLength:{value:t,message:y.toString(r)}})}nonempty(t){return this.min(1,t)}}R.create=(e,t)=>new R({type:e,minLength:null,maxLength:null,exactLength:null,typeName:g.ZodArray,...S(t)});function W(e){if(e instanceof C){const t={};for(const r in e.shape){const i=e.shape[r];t[r]=v.create(W(i))}return new C({...e._def,shape:()=>t})}else return e instanceof R?new R({...e._def,type:W(e.element)}):e instanceof v?v.create(W(e.unwrap())):e instanceof Q?Q.create(W(e.unwrap())):e instanceof _?_.create(e.items.map(t=>W(t))):e}class C 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 q&&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],b=a.data[d];p.push({key:{status:"valid",value:d},value:O._parse(new E(a,b,a.path,d)),alwaysSet:d in a.data})}if(this._def.catchall instanceof q){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 b=a.data[O];p.push({key:{status:"valid",value:O},value:d._parse(new E(a,b,a.path,O)),alwaysSet:O in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const d=[];for(const O of p){const b=await O.key;d.push({key:b,value:await O.value,alwaysSet:O.alwaysSet})}return d}).then(d=>D.mergeObjectSync(i,d)):D.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(t){return y.errToObj,new C({...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=y.errToObj(t).message)!==null&&c!==void 0?c:p}:{message:p}}}:{}})}strip(){return new C({...this._def,unknownKeys:"strip"})}passthrough(){return new C({...this._def,unknownKeys:"passthrough"})}extend(t){return new C({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new C({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:g.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new C({...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 C({...this._def,shape:()=>r})}omit(t){const r={};return N.objectKeys(this.shape).forEach(i=>{t[i]||(r[i]=this.shape[i])}),new C({...this._def,shape:()=>r})}deepPartial(){return W(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 C({...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 v;)o=o._def.innerType;r[i]=o}}),new C({...this._def,shape:()=>r})}keyof(){return Ac(N.objectKeys(this.shape))}}C.create=(e,t)=>new C({shape:()=>e,unknownKeys:"strip",catchall:q.create(),typeName:g.ZodObject,...S(t)}),C.strictCreate=(e,t)=>new C({shape:()=>e,unknownKeys:"strict",catchall:q.create(),typeName:g.ZodObject,...S(t)}),C.lazycreate=(e,t)=>new C({shape:e,unknownKeys:"strip",catchall:q.create(),typeName:g.ZodObject,...S(t)});class ue 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}}ue.create=(e,t)=>new ue({options:e,typeName:g.ZodUnion,...S(t)});const lt=e=>e instanceof fe?lt(e.schema):e instanceof F?lt(e.innerType()):e instanceof pe?[e.value]:e instanceof M?e.options:e instanceof me?Object.keys(e.enum):e instanceof ye?lt(e._def.innerType):e instanceof se?[void 0]:e instanceof ce?[null]:null;class ft 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=lt(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 ft({typeName:g.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:a,...S(i)})}}function Kt(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=Kt(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=Kt(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 de extends T{_parse(t){const{status:r,ctx:i}=this._processInputParams(t),a=(o,s)=>{if(zt(o)||zt(s))return h;const c=Kt(o.value,s.value);return c.valid?((Zt(o)||Zt(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}))}}de.create=(e,t,r)=>new de({left:e,right:t,typeName:g.ZodIntersection,...S(r)});class _ 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 E(i,s,i.path,c)):null}).filter(s=>!!s);return i.common.async?Promise.all(o).then(s=>D.mergeArray(r,s)):D.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new _({...this._def,rest:t})}}_.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _({items:e,typeName:g.ZodTuple,rest:null,...S(t)})};class le 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 E(i,c,i.path,c)),value:s._parse(new E(i,i.data[c],i.path,c))});return i.common.async?D.mergeObjectAsync(r,a):D.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(t,r,i){return r instanceof T?new le({keyType:t,valueType:r,typeName:g.ZodRecord,...S(i)}):new le({keyType:U.create(),valueType:t,typeName:g.ZodRecord,...S(r)})}}class pt 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 E(i,c,i.path,[d,"key"])),value:o._parse(new E(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}}}}pt.create=(e,t,r)=>new pt({valueType:t,keyType:e,typeName:g.ZodMap,...S(r)});class K 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 E(i,p,i.path,d)));return i.common.async?Promise.all(c).then(p=>s(p)):s(c)}min(t,r){return new K({...this._def,minSize:{value:t,message:y.toString(r)}})}max(t,r){return new K({...this._def,maxSize:{value:t,message:y.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}K.create=(e,t)=>new K({valueType:e,minSize:null,maxSize:null,typeName:g.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 st({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ot(),ie].filter(d=>!!d),issueData:{code:u.invalid_arguments,argumentsError:p}})}function a(c,p){return st({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ot(),ie].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(Qt=>{throw d.addIssue(i(p,Qt)),d}),b=await Reflect.apply(s,this,O);return await c._def.returns._def.type.parseAsync(b,o).catch(Qt=>{throw d.addIssue(a(b,Qt)),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),b=c._def.returns.safeParse(O,o);if(!b.success)throw new I([a(O,b.error)]);return b.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new X({...this._def,args:_.create(t).rest(G.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||_.create([]).rest(G.create()),returns:r||G.create(),typeName:g.ZodFunction,...S(i)})}}class fe 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})}}fe.create=(e,t)=>new fe({getter:e,typeName:g.ZodLazy,...S(t)});class pe 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}}pe.create=(e,t)=>new pe({value:e,typeName:g.ZodLiteral,...S(t)});function Ac(e,t){return new M({values:e,typeName:g.ZodEnum,...S(t)})}class M 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 M.create(t)}exclude(t){return M.create(this.options.filter(r=>!t.includes(r)))}}M.create=Ac;class me 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}}me.create=(e,t)=>new me({values:e,typeName:g.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:g.ZodPromise,...S(t)});class F extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===g.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(!ae(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=>ae(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:g.ZodEffects,effect:t,...S(r)}),F.createWithPreprocess=(e,t,r)=>new F({schema:t,effect:{type:"preprocess",transform:e},typeName:g.ZodEffects,...S(r)});class v extends T{_parse(t){return this._getType(t)===l.undefined?A(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}v.create=(e,t)=>new v({innerType:e,typeName:g.ZodOptional,...S(t)});class Q extends T{_parse(t){return this._getType(t)===l.null?A(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Q.create=(e,t)=>new Q({innerType:e,typeName:g.ZodNullable,...S(t)});class ye 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}}ye.create=(e,t)=>new ye({innerType:e,typeName:g.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...S(t)});class mt 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 ct(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}}mt.create=(e,t)=>new mt({innerType:e,typeName:g.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...S(t)});class yt 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}}}yt.create=e=>new yt({typeName:g.ZodNaN,...S(e)});const lp=Symbol("zod_brand");class wc 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 ge 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(),Jc(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 ge({in:t,out:r,typeName:g.ZodPipeline})}}class gt extends T{_parse(t){const r=this._def.innerType._parse(t);return ae(r)&&(r.value=Object.freeze(r.value)),r}}gt.create=(e,t)=>new gt({innerType:e,typeName:g.ZodReadonly,...S(t)});const bc=(e,t={},r)=>e?Y.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})}}):Y.create(),fp={object:C.lazycreate};var g;(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"})(g||(g={}));const pp=(e,t={message:`Input not instance of ${e.name}`})=>bc(r=>r instanceof e,t),Ic=U.create,Uc=B.create,mp=yt.create,yp=V.create,Rc=oe.create,gp=Z.create,hp=ut.create,Sp=se.create,Tp=ce.create,Op=Y.create,Np=G.create,Pp=q.create,Cp=dt.create,Jp=R.create,Dp=C.create,Ap=C.strictCreate,wp=ue.create,bp=ft.create,Ip=de.create,Up=_.create,Rp=le.create,Fp=pt.create,Ep=K.create,_p=X.create,kp=fe.create,qp=pe.create,vp=M.create,Lp=me.create,Hp=x.create,Fc=F.create,Bp=v.create,Vp=Q.create,Mp=F.createWithPreprocess,zp=ge.create;var he=Object.freeze({__proto__:null,defaultErrorMap:ie,setErrorMap:xf,getErrorMap:ot,makeIssue:st,EMPTY_PATH:jf,addIssueToContext:f,ParseStatus:D,INVALID:h,DIRTY:Jc,OK:A,isAborted:zt,isDirty:Zt,isValid:ae,isAsync:ct,get util(){return N},get objectUtil(){return Mt},ZodParsedType:l,getParsedType:H,ZodType:T,ZodString:U,ZodNumber:B,ZodBigInt:V,ZodBoolean:oe,ZodDate:Z,ZodSymbol:ut,ZodUndefined:se,ZodNull:ce,ZodAny:Y,ZodUnknown:G,ZodNever:q,ZodVoid:dt,ZodArray:R,ZodObject:C,ZodUnion:ue,ZodDiscriminatedUnion:ft,ZodIntersection:de,ZodTuple:_,ZodRecord:le,ZodMap:pt,ZodSet:K,ZodFunction:X,ZodLazy:fe,ZodLiteral:pe,ZodEnum:M,ZodNativeEnum:me,ZodPromise:x,ZodEffects:F,ZodTransformer:F,ZodOptional:v,ZodNullable:Q,ZodDefault:ye,ZodCatch:mt,ZodNaN:yt,BRAND:lp,ZodBranded:wc,ZodPipeline:ge,ZodReadonly:gt,custom:bc,Schema:T,ZodSchema:T,late:fp,get ZodFirstPartyTypeKind(){return g},coerce:{string:e=>U.create({...e,coerce:!0}),number:e=>B.create({...e,coerce:!0}),boolean:e=>oe.create({...e,coerce:!0}),bigint:e=>V.create({...e,coerce:!0}),date:e=>Z.create({...e,coerce:!0})},any:Op,array:Jp,bigint:yp,boolean:Rc,date:gp,discriminatedUnion:bp,effect:Fc,enum:vp,function:_p,instanceof:pp,intersection:Ip,lazy:kp,literal:qp,map:Fp,nan:mp,nativeEnum:Lp,never:Pp,null:Tp,nullable:Vp,number:Uc,object:Dp,oboolean:()=>Rc().optional(),onumber:()=>Uc().optional(),optional:Bp,ostring:()=>Ic().optional(),pipeline:zp,preprocess:Mp,promise:Hp,record:Rp,set:Ep,strictObject:Ap,string:Ic,symbol:hp,transformer:Fc,tuple:Up,undefined:Sp,union:wp,unknown:Np,void:Cp,NEVER:h,ZodIssueCode:u,quotelessJson:Xf,ZodError:I});function Zp(e){return e===401||e===403}function Gp(e){return Object.entries(e).map(([t,r])=>`${encodeURIComponent(t)}=${encodeURIComponent(r)}`).join("&")}const Kp=he.object({access_token:he.string().min(1),token_type:he.string(),expires_in:he.number(),scope:he.string()});async function Qp(e){const r=await(await fetch(e.tokenUrl,{method:"POST",body:Gp({grant_type:"client_credentials",client_id:e.clientId,client_secret:e.clientSecret}),headers:{"Content-Type":"application/x-www-form-urlencoded"}})).json();return $p(r)}function $p(e){const t=Kp.safeParse(e);if(!t.success)throw new Error("Bad access token response");return t.data}class Yp{constructor(t){k(this,"activeRequest",null);k(this,"refreshTimeout");k(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=Qp(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 Ec(e,t){e.headers=Wp("Authorization",`Bearer ${t}`,e.headers)}function Wp(e,t,r){return r?Array.isArray(r)?r.map(([i,a])=>i!==e?[i,a]:[e,t]):Xp(r)?(r.has(e)?r.set(e,t):r.append(e,t),r):(r[e]=t,r):(r={},r[e]=t,r)}function Xp(e){return"append"in e&&"delete"in e&&"get"in e&&"has"in e&&"set"in e&&"forEach"in e}function xp(e){const t=new Yp(e);return{pre:async r=>{const i=await t.getAccessToken();return Ec(r.init,i),Promise.resolve({url:r.url,init:r.init})},post:async r=>{if(Zp(r.response.status)){const i=await t.refreshAccessToken();return Ec(r.init,i),await fetch(r.url,r.init)}return Promise.resolve(r.response)}}}function jp(e){const t=[];let r={};e.clientCredentials&&t.push(xp(e.clientCredentials)),e.managementApiKey&&(r=em(e.managementApiKey));const i=new L({basePath:e.managementApiUrl,headers:r,credentials:"same-origin",middleware:t,...e.configOverrides});return{uiApi:new Nc(i),useCaseApi:new Pc(i),enterpriseEditionApi:new Oc(i)}}function em(e){return{"X-Api-Key":e}}n.AssetFilterConstraintFromJSON=Tt,n.AssetFilterConstraintFromJSONTyped=rr,n.AssetFilterConstraintOperator=Se,n.AssetFilterConstraintOperatorFromJSON=er,n.AssetFilterConstraintOperatorFromJSONTyped=tr,n.AssetFilterConstraintOperatorToJSON=Mc,n.AssetFilterConstraintOperatorToJSONTyped=zc,n.AssetFilterConstraintToJSON=Ot,n.AssetFilterConstraintToJSONTyped=nr,n.AssetsPageEntryFromJSON=ar,n.AssetsPageEntryFromJSONTyped=or,n.AssetsPageEntryToJSON=sr,n.AssetsPageEntryToJSONTyped=cr,n.AssetsPageRequestFromJSON=iu,n.AssetsPageRequestFromJSONTyped=Sr,n.AssetsPageRequestToJSON=Tr,n.AssetsPageRequestToJSONTyped=Or,n.AssetsPageResultFromJSON=Cr,n.AssetsPageResultFromJSONTyped=Jr,n.AssetsPageResultToJSON=su,n.AssetsPageResultToJSONTyped=Dr,n.AssetsPageSortProperty=Oe,n.AssetsPageSortPropertyFromJSON=lr,n.AssetsPageSortPropertyFromJSONTyped=fr,n.AssetsPageSortPropertyToJSON=Xc,n.AssetsPageSortPropertyToJSONTyped=xc,n.AzureStorageListBlobsRequestFromJSON=uu,n.AzureStorageListBlobsRequestFromJSONTyped=Ar,n.AzureStorageListBlobsRequestToJSON=wr,n.AzureStorageListBlobsRequestToJSONTyped=br,n.AzureStorageListContainersRequestFromJSON=lu,n.AzureStorageListContainersRequestFromJSONTyped=Ir,n.AzureStorageListContainersRequestToJSON=Ur,n.AzureStorageListContainersRequestToJSONTyped=Rr,n.BASE_PATH=w,n.BaseAPI=$,n.BlobApiResponse=Bc,n.BuildInfoFromJSON=Fr,n.BuildInfoFromJSONTyped=Er,n.BuildInfoToJSON=pu,n.BuildInfoToJSONTyped=_r,n.BusinessPartnerGroupCreateSubmitFromJSON=yu,n.BusinessPartnerGroupCreateSubmitFromJSONTyped=kr,n.BusinessPartnerGroupCreateSubmitToJSON=qr,n.BusinessPartnerGroupCreateSubmitToJSONTyped=vr,n.BusinessPartnerGroupEditPageFromJSON=Lr,n.BusinessPartnerGroupEditPageFromJSONTyped=Hr,n.BusinessPartnerGroupEditPageToJSON=hu,n.BusinessPartnerGroupEditPageToJSONTyped=Br,n.BusinessPartnerGroupEditSubmitFromJSON=Tu,n.BusinessPartnerGroupEditSubmitFromJSONTyped=Vr,n.BusinessPartnerGroupEditSubmitToJSON=Mr,n.BusinessPartnerGroupEditSubmitToJSONTyped=zr,n.BusinessPartnerGroupListPageEntryFromJSON=Zr,n.BusinessPartnerGroupListPageEntryFromJSONTyped=Gr,n.BusinessPartnerGroupListPageEntryToJSON=Nu,n.BusinessPartnerGroupListPageEntryToJSONTyped=Kr,n.BusinessPartnerGroupQueryFromJSON=Cu,n.BusinessPartnerGroupQueryFromJSONTyped=Qr,n.BusinessPartnerGroupQueryToJSON=$r,n.BusinessPartnerGroupQueryToJSONTyped=Yr,n.COLLECTION_FORMATS=qc,n.CallbackAddressDtoFromJSON=Ce,n.CallbackAddressDtoFromJSONTyped=jr,n.CallbackAddressDtoToJSON=Je,n.CallbackAddressDtoToJSONTyped=en,n.CallbackAddressEventType=Pe,n.CallbackAddressEventTypeFromJSON=Wr,n.CallbackAddressEventTypeFromJSONTyped=Xr,n.CallbackAddressEventTypeToJSON=xr,n.CallbackAddressEventTypeToJSONTyped=Du,n.CatalogFilterExpressionFromJSON=dn,n.CatalogFilterExpressionFromJSONTyped=ln,n.CatalogFilterExpressionLiteralFromJSON=nn,n.CatalogFilterExpressionLiteralFromJSONTyped=an,n.CatalogFilterExpressionLiteralToJSON=on,n.CatalogFilterExpressionLiteralToJSONTyped=sn,n.CatalogFilterExpressionLiteralType=De,n.CatalogFilterExpressionLiteralTypeFromJSON=tn,n.CatalogFilterExpressionLiteralTypeFromJSONTyped=rn,n.CatalogFilterExpressionLiteralTypeToJSON=bu,n.CatalogFilterExpressionLiteralTypeToJSONTyped=Iu,n.CatalogFilterExpressionOperator=Ae,n.CatalogFilterExpressionOperatorFromJSON=cn,n.CatalogFilterExpressionOperatorFromJSONTyped=un,n.CatalogFilterExpressionOperatorToJSON=Fu,n.CatalogFilterExpressionOperatorToJSONTyped=Eu,n.CatalogFilterExpressionToJSON=fn,n.CatalogFilterExpressionToJSONTyped=pn,n.CatalogQueryFromJSON=qu,n.CatalogQueryFromJSONTyped=mn,n.CatalogQueryToJSON=yn,n.CatalogQueryToJSONTyped=gn,n.CatalogQueryV2FromJSON=Mu,n.CatalogQueryV2FromJSONTyped=Cn,n.CatalogQueryV2ToJSON=Jn,n.CatalogQueryV2ToJSONTyped=Dn,n.CatalogSortByDirection=we,n.CatalogSortByDirectionFromJSON=hn,n.CatalogSortByDirectionFromJSONTyped=Sn,n.CatalogSortByDirectionToJSON=Lu,n.CatalogSortByDirectionToJSONTyped=Hu,n.CatalogSortByFromJSON=Tn,n.CatalogSortByFromJSONTyped=On,n.CatalogSortByToJSON=Nn,n.CatalogSortByToJSONTyped=Pn,n.Configuration=L,n.ConnectorLimitsFromJSON=An,n.ConnectorLimitsFromJSONTyped=wn,n.ConnectorLimitsToJSON=Zu,n.ConnectorLimitsToJSONTyped=bn,n.ContractAgreementDirection=be,n.ContractAgreementDirectionFromJSON=Ie,n.ContractAgreementDirectionFromJSONTyped=In,n.ContractAgreementDirectionToJSON=Ku,n.ContractAgreementDirectionToJSONTyped=Qu,n.ContractAgreementTerminationInfoFromJSON=wt,n.ContractAgreementTerminationInfoFromJSONTyped=Fn,n.ContractAgreementTerminationInfoToJSON=bt,n.ContractAgreementTerminationInfoToJSONTyped=En,n.ContractAgreementTransferProcessFromJSON=Ln,n.ContractAgreementTransferProcessFromJSONTyped=Hn,n.ContractAgreementTransferProcessToJSON=Bn,n.ContractAgreementTransferProcessToJSONTyped=Vn,n.ContractDefinitionEntryFromJSON=xn,n.ContractDefinitionEntryFromJSONTyped=jn,n.ContractDefinitionEntryToJSON=ei,n.ContractDefinitionEntryToJSONTyped=ti,n.ContractDefinitionPageFromJSON=ri,n.ContractDefinitionPageFromJSONTyped=ni,n.ContractDefinitionPageToJSON=pd,n.ContractDefinitionPageToJSONTyped=ii,n.ContractDefinitionRequestFromJSON=yd,n.ContractDefinitionRequestFromJSONTyped=ai,n.ContractDefinitionRequestToJSON=oi,n.ContractDefinitionRequestToJSONTyped=si,n.ContractDetailPageResultFromJSON=Ii,n.ContractDetailPageResultFromJSONTyped=Ui,n.ContractDetailPageResultToJSON=kd,n.ContractDetailPageResultToJSONTyped=Ri,n.ContractNegotiationRequestFromJSON=vd,n.ContractNegotiationRequestFromJSONTyped=Fi,n.ContractNegotiationRequestToJSON=Ei,n.ContractNegotiationRequestToJSONTyped=_i,n.ContractNegotiationSimplifiedState=Ze,n.ContractNegotiationSimplifiedStateFromJSON=ki,n.ContractNegotiationSimplifiedStateFromJSONTyped=qi,n.ContractNegotiationSimplifiedStateToJSON=Hd,n.ContractNegotiationSimplifiedStateToJSONTyped=Bd,n.ContractNegotiationStateFromJSON=Ge,n.ContractNegotiationStateFromJSONTyped=vi,n.ContractNegotiationStateResultFromJSON=Hi,n.ContractNegotiationStateResultFromJSONTyped=Bi,n.ContractNegotiationStateResultToJSON=zd,n.ContractNegotiationStateResultToJSONTyped=Vi,n.ContractNegotiationStateToJSON=Ke,n.ContractNegotiationStateToJSONTyped=Li,n.ContractTerminatedBy=Ue,n.ContractTerminatedByFromJSON=Un,n.ContractTerminatedByFromJSONTyped=Rn,n.ContractTerminatedByToJSON=Yu,n.ContractTerminatedByToJSONTyped=Wu,n.ContractTerminationRequestFromJSON=Gd,n.ContractTerminationRequestFromJSONTyped=Mi,n.ContractTerminationRequestToJSON=zi,n.ContractTerminationRequestToJSONTyped=Zi,n.ContractTerminationStatus=qe,n.ContractTerminationStatusFromJSON=ve,n.ContractTerminationStatusFromJSONTyped=ci,n.ContractTerminationStatusToJSON=hd,n.ContractTerminationStatusToJSONTyped=Sd,n.ContractsPageEntryFromJSON=Gi,n.ContractsPageEntryFromJSONTyped=Ki,n.ContractsPageEntryToJSON=Qi,n.ContractsPageEntryToJSONTyped=$i,n.ContractsPageRequestFromJSON=xd,n.ContractsPageRequestFromJSONTyped=ta,n.ContractsPageRequestToJSON=ra,n.ContractsPageRequestToJSONTyped=na,n.ContractsPageResultFromJSON=ia,n.ContractsPageResultFromJSONTyped=aa,n.ContractsPageResultToJSON=el,n.ContractsPageResultToJSONTyped=oa,n.ContractsPageSortProperty=Qe,n.ContractsPageSortPropertyFromJSON=Yi,n.ContractsPageSortPropertyFromJSONTyped=Wi,n.ContractsPageSortPropertyToJSON=$d,n.ContractsPageSortPropertyToJSONTyped=Yd,n.DashboardCxDidConfigFromJSON=sa,n.DashboardCxDidConfigFromJSONTyped=ca,n.DashboardCxDidConfigToJSON=ua,n.DashboardCxDidConfigToJSONTyped=da,n.DashboardDapsConfigFromJSON=la,n.DashboardDapsConfigFromJSONTyped=fa,n.DashboardDapsConfigToJSON=pa,n.DashboardDapsConfigToJSONTyped=ma,n.DashboardPageFromJSON=ha,n.DashboardPageFromJSONTyped=Sa,n.DashboardPageToJSON=al,n.DashboardPageToJSONTyped=Ta,n.DashboardTransferAmountsFromJSON=Et,n.DashboardTransferAmountsFromJSONTyped=ya,n.DashboardTransferAmountsToJSON=_t,n.DashboardTransferAmountsToJSONTyped=ga,n.DataOfferCreateRequestFromJSON=ql,n.DataOfferCreateRequestFromJSONTyped=go,n.DataOfferCreateRequestToJSON=ho,n.DataOfferCreateRequestToJSONTyped=So,n.DataOfferPolicyCreateType=$e,n.DataOfferPolicyCreateTypeFromJSON=Oa,n.DataOfferPolicyCreateTypeFromJSONTyped=Na,n.DataOfferPolicyCreateTypeToJSON=sl,n.DataOfferPolicyCreateTypeToJSONTyped=cl,n.DataOfferPublishType=Ye,n.DataOfferPublishTypeFromJSON=Pa,n.DataOfferPublishTypeFromJSONTyped=Ca,n.DataOfferPublishTypeToJSON=dl,n.DataOfferPublishTypeToJSONTyped=ll,n.DataSourceAvailability=Te,n.DataSourceAvailabilityFromJSON=Nt,n.DataSourceAvailabilityFromJSONTyped=ir,n.DataSourceAvailabilityToJSON=Kc,n.DataSourceAvailabilityToJSONTyped=Qc,n.DataSourceType=We,n.DataSourceTypeFromJSON=Ja,n.DataSourceTypeFromJSONTyped=Da,n.DataSourceTypeToJSON=pl,n.DataSourceTypeToJSONTyped=ml,n.DefaultConfig=$t,n.EdrDtoFromJSON=To,n.EdrDtoFromJSONTyped=Oo,n.EdrDtoToJSON=Ll,n.EdrDtoToJSONTyped=No,n.EnterpriseEditionApi=Oc,n.FetchError=Wt,n.IdAvailabilityResponseFromJSON=tt,n.IdAvailabilityResponseFromJSONTyped=Po,n.IdAvailabilityResponseToJSON=Bl,n.IdAvailabilityResponseToJSONTyped=Co,n.IdResponseDtoFromJSON=J,n.IdResponseDtoFromJSONTyped=Jo,n.IdResponseDtoToJSON=Ml,n.IdResponseDtoToJSONTyped=Do,n.InitiateCustomTransferRequestFromJSON=Zl,n.InitiateCustomTransferRequestFromJSONTyped=Ao,n.InitiateCustomTransferRequestToJSON=wo,n.InitiateCustomTransferRequestToJSONTyped=bo,n.InitiateTransferRequestFromJSON=Kl,n.InitiateTransferRequestFromJSONTyped=Io,n.InitiateTransferRequestToJSON=Uo,n.InitiateTransferRequestToJSONTyped=Ro,n.JSONApiResponse=m,n.KpiResultFromJSON=qo,n.KpiResultFromJSONTyped=vo,n.KpiResultToJSON=Yl,n.KpiResultToJSONTyped=Lo,n.NegotiateAllQueryFromJSON=Xl,n.NegotiateAllQueryFromJSONTyped=Ho,n.NegotiateAllQueryToJSON=Bo,n.NegotiateAllQueryToJSONTyped=Vo,n.NegotiateAllResultFromJSON=Mo,n.NegotiateAllResultFromJSONTyped=zo,n.NegotiateAllResultToJSON=jl,n.NegotiateAllResultToJSONTyped=Zo,n.OperatorDto=Ve,n.OperatorDtoFromJSON=pi,n.OperatorDtoFromJSONTyped=mi,n.OperatorDtoToJSON=Pd,n.OperatorDtoToJSONTyped=Cd,n.PaginationRequestFromJSON=Pt,n.PaginationRequestFromJSONTyped=ur,n.PaginationRequestToJSON=Ct,n.PaginationRequestToJSONTyped=dr,n.PaginationResultFromJSON=Dt,n.PaginationResultFromJSONTyped=Nr,n.PaginationResultToJSON=At,n.PaginationResultToJSONTyped=Pr,n.PolicyDefinitionCreateDtoFromJSON=tf,n.PolicyDefinitionCreateDtoFromJSONTyped=Go,n.PolicyDefinitionCreateDtoToJSON=Ko,n.PolicyDefinitionCreateDtoToJSONTyped=Qo,n.PolicyDefinitionCreateFromJsonLdDtoFromJSON=nf,n.PolicyDefinitionCreateFromJsonLdDtoFromJSONTyped=$o,n.PolicyDefinitionCreateFromJsonLdDtoToJSON=Yo,n.PolicyDefinitionCreateFromJsonLdDtoToJSONTyped=Wo,n.PolicyDefinitionCreateRequestFromJSON=sf,n.PolicyDefinitionCreateRequestFromJSONTyped=ts,n.PolicyDefinitionCreateRequestToJSON=rs,n.PolicyDefinitionCreateRequestToJSONTyped=ns,n.PolicyDefinitionDtoFromJSON=is,n.PolicyDefinitionDtoFromJSONTyped=as,n.PolicyDefinitionDtoToJSON=os,n.PolicyDefinitionDtoToJSONTyped=ss,n.PolicyDefinitionPageFromJSON=cs,n.PolicyDefinitionPageFromJSONTyped=us,n.PolicyDefinitionPageToJSON=df,n.PolicyDefinitionPageToJSONTyped=ds,n.RequiredError=P,n.ResponseError=Yt,n.SortByDirection=Ne,n.SortByDirectionFromJSON=Jt,n.SortByDirectionFromJSONTyped=pr,n.SortByDirectionToJSON=eu,n.SortByDirectionToJSONTyped=tu,n.SortByRequestAssetsPageSortPropertyFromJSON=mr,n.SortByRequestAssetsPageSortPropertyFromJSONTyped=yr,n.SortByRequestAssetsPageSortPropertyToJSON=gr,n.SortByRequestAssetsPageSortPropertyToJSONTyped=hr,n.SortByRequestContractsPageSortPropertyFromJSON=Xi,n.SortByRequestContractsPageSortPropertyFromJSONTyped=xi,n.SortByRequestContractsPageSortPropertyToJSON=ji,n.SortByRequestContractsPageSortPropertyToJSONTyped=ea,n.TextApiResponse=jt,n.TransferHistoryEntryFromJSON=ls,n.TransferHistoryEntryFromJSONTyped=fs,n.TransferHistoryEntryToJSON=ps,n.TransferHistoryEntryToJSONTyped=ms,n.TransferHistoryPageFromJSON=ys,n.TransferHistoryPageFromJSONTyped=gs,n.TransferHistoryPageToJSON=pf,n.TransferHistoryPageToJSONTyped=hs,n.TransferProcessSimplifiedState=Re,n.TransferProcessSimplifiedStateFromJSON=_n,n.TransferProcessSimplifiedStateFromJSONTyped=kn,n.TransferProcessSimplifiedStateToJSON=ju,n.TransferProcessSimplifiedStateToJSONTyped=ed,n.TransferProcessStateFromJSON=Fe,n.TransferProcessStateFromJSONTyped=qn,n.TransferProcessStateResultFromJSON=Ss,n.TransferProcessStateResultFromJSONTyped=Ts,n.TransferProcessStateResultToJSON=yf,n.TransferProcessStateResultToJSONTyped=Os,n.TransferProcessStateToJSON=Ee,n.TransferProcessStateToJSONTyped=vn,n.TransferProcessStatesDtoFromJSON=Fo,n.TransferProcessStatesDtoFromJSONTyped=Eo,n.TransferProcessStatesDtoToJSON=_o,n.TransferProcessStatesDtoToJSONTyped=ko,n.UIApi=Nc,n.UiAssetCreateRequestFromJSON=po,n.UiAssetCreateRequestFromJSONTyped=mo,n.UiAssetCreateRequestToJSON=et,n.UiAssetCreateRequestToJSONTyped=yo,n.UiAssetEditRequestFromJSON=hf,n.UiAssetEditRequestFromJSONTyped=Ns,n.UiAssetEditRequestToJSON=Ps,n.UiAssetEditRequestToJSONTyped=Cs,n.UiAssetExtForSphinxFromJSON=Le,n.UiAssetExtForSphinxFromJSONTyped=ui,n.UiAssetExtForSphinxToJSON=He,n.UiAssetExtForSphinxToJSONTyped=di,n.UiAssetFromJSON=z,n.UiAssetFromJSONTyped=li,n.UiAssetToJSON=Be,n.UiAssetToJSONTyped=fi,n.UiConfigFeature=rt,n.UiConfigFeatureFromJSON=Js,n.UiConfigFeatureFromJSONTyped=Ds,n.UiConfigFeatureToJSON=As,n.UiConfigFeatureToJSONTyped=Tf,n.UiConfigFromJSON=Rs,n.UiConfigFromJSONTyped=Fs,n.UiConfigPreconfiguredCounterpartyFromJSON=ws,n.UiConfigPreconfiguredCounterpartyFromJSONTyped=bs,n.UiConfigPreconfiguredCounterpartyToJSON=Is,n.UiConfigPreconfiguredCounterpartyToJSONTyped=Us,n.UiConfigToJSON=Pf,n.UiConfigToJSONTyped=Es,n.UiContractNegotiationFromJSON=Vt,n.UiContractNegotiationFromJSONTyped=_s,n.UiContractNegotiationToJSON=Jf,n.UiContractNegotiationToJSONTyped=ks,n.UiContractOfferFromJSON=qs,n.UiContractOfferFromJSONTyped=vs,n.UiContractOfferToJSON=Ls,n.UiContractOfferToJSONTyped=Hs,n.UiCriterionFromJSON=It,n.UiCriterionFromJSONTyped=Wn,n.UiCriterionLiteralFromJSON=Zn,n.UiCriterionLiteralFromJSONTyped=Gn,n.UiCriterionLiteralToJSON=Kn,n.UiCriterionLiteralToJSONTyped=Qn,n.UiCriterionLiteralType=_e,n.UiCriterionLiteralTypeFromJSON=Mn,n.UiCriterionLiteralTypeFromJSONTyped=zn,n.UiCriterionLiteralTypeToJSON=id,n.UiCriterionLiteralTypeToJSONTyped=ad,n.UiCriterionOperator=ke,n.UiCriterionOperatorFromJSON=$n,n.UiCriterionOperatorFromJSONTyped=Yn,n.UiCriterionOperatorToJSON=cd,n.UiCriterionOperatorToJSONTyped=ud,n.UiCriterionToJSON=Ut,n.UiCriterionToJSONTyped=Xn,n.UiDataOfferFromJSON=ne,n.UiDataOfferFromJSONTyped=Bs,n.UiDataOfferToJSON=wf,n.UiDataOfferToJSONTyped=Vs,n.UiDataSinkHttpDataPushFromJSON=Ws,n.UiDataSinkHttpDataPushFromJSONTyped=Xs,n.UiDataSinkHttpDataPushMethod=nt,n.UiDataSinkHttpDataPushMethodFromJSON=Ms,n.UiDataSinkHttpDataPushMethodFromJSONTyped=zs,n.UiDataSinkHttpDataPushMethodToJSON=If,n.UiDataSinkHttpDataPushMethodToJSONTyped=Uf,n.UiDataSinkHttpDataPushToJSON=xs,n.UiDataSinkHttpDataPushToJSONTyped=js,n.UiDataSourceAzureStorageFromJSON=Aa,n.UiDataSourceAzureStorageFromJSONTyped=wa,n.UiDataSourceAzureStorageToJSON=ba,n.UiDataSourceAzureStorageToJSONTyped=Ia,n.UiDataSourceFromJSON=Ht,n.UiDataSourceFromJSONTyped=lo,n.UiDataSourceHttpDataFromJSON=ro,n.UiDataSourceHttpDataFromJSONTyped=no,n.UiDataSourceHttpDataMethod=Xe,n.UiDataSourceHttpDataMethodFromJSON=Ua,n.UiDataSourceHttpDataMethodFromJSONTyped=Ra,n.UiDataSourceHttpDataMethodToJSON=hl,n.UiDataSourceHttpDataMethodToJSONTyped=Sl,n.UiDataSourceHttpDataToJSON=io,n.UiDataSourceHttpDataToJSONTyped=ao,n.UiDataSourceOnRequestFromJSON=oo,n.UiDataSourceOnRequestFromJSONTyped=so,n.UiDataSourceOnRequestToJSON=co,n.UiDataSourceOnRequestToJSONTyped=uo,n.UiDataSourceToJSON=Bt,n.UiDataSourceToJSONTyped=fo,n.UiHttpAuthApiKeyFromJSON=kt,n.UiHttpAuthApiKeyFromJSONTyped=Fa,n.UiHttpAuthApiKeyToJSON=qt,n.UiHttpAuthApiKeyToJSONTyped=Ea,n.UiHttpAuthBasicFromJSON=vt,n.UiHttpAuthBasicFromJSONTyped=_a,n.UiHttpAuthBasicToJSON=Lt,n.UiHttpAuthBasicToJSONTyped=ka,n.UiHttpAuthFromJSON=xa,n.UiHttpAuthFromJSONTyped=ja,n.UiHttpAuthOauth2FromJSON=Ka,n.UiHttpAuthOauth2FromJSONTyped=Qa,n.UiHttpAuthOauth2ToJSON=$a,n.UiHttpAuthOauth2ToJSONTyped=Ya,n.UiHttpAuthToJSON=eo,n.UiHttpAuthToJSONTyped=to,n.UiHttpAuthType=je,n.UiHttpAuthTypeFromJSON=Wa,n.UiHttpAuthTypeFromJSONTyped=Xa,n.UiHttpAuthTypeToJSON=bl,n.UiHttpAuthTypeToJSONTyped=Il,n.UiHttpOauth2AuthType=xe,n.UiHttpOauth2AuthTypeFromJSON=qa,n.UiHttpOauth2AuthTypeFromJSONTyped=va,n.UiHttpOauth2AuthTypeToJSON=Pl,n.UiHttpOauth2AuthTypeToJSONTyped=Cl,n.UiHttpOauth2PrivateKeyAuthorizationFromJSON=La,n.UiHttpOauth2PrivateKeyAuthorizationFromJSONTyped=Ha,n.UiHttpOauth2PrivateKeyAuthorizationToJSON=Ba,n.UiHttpOauth2PrivateKeyAuthorizationToJSONTyped=Va,n.UiHttpOauth2SharedSecretAuthorizationFromJSON=Ma,n.UiHttpOauth2SharedSecretAuthorizationFromJSONTyped=za,n.UiHttpOauth2SharedSecretAuthorizationToJSON=Za,n.UiHttpOauth2SharedSecretAuthorizationToJSONTyped=Ga,n.UiHttpPushAuthFromJSON=Ks,n.UiHttpPushAuthFromJSONTyped=Qs,n.UiHttpPushAuthToJSON=$s,n.UiHttpPushAuthToJSONTyped=Ys,n.UiHttpPushAuthType=it,n.UiHttpPushAuthTypeFromJSON=Zs,n.UiHttpPushAuthTypeFromJSONTyped=Gs,n.UiHttpPushAuthTypeToJSON=Ff,n.UiHttpPushAuthTypeToJSONTyped=Ef,n.UiInitiateTransferRequestFromJSON=Bf,n.UiInitiateTransferRequestFromJSONTyped=rc,n.UiInitiateTransferRequestToJSON=nc,n.UiInitiateTransferRequestToJSONTyped=ic,n.UiInitiateTransferType=at,n.UiInitiateTransferTypeFromJSON=ec,n.UiInitiateTransferTypeFromJSONTyped=tc,n.UiInitiateTransferTypeToJSON=vf,n.UiInitiateTransferTypeToJSONTyped=Lf,n.UiPolicyConstraintFromJSON=Rt,n.UiPolicyConstraintFromJSONTyped=Ni,n.UiPolicyConstraintToJSON=Ft,n.UiPolicyConstraintToJSONTyped=Pi,n.UiPolicyCreateRequestFromJSON=Xo,n.UiPolicyCreateRequestFromJSONTyped=xo,n.UiPolicyCreateRequestToJSON=jo,n.UiPolicyCreateRequestToJSONTyped=es,n.UiPolicyExpressionFromJSON=j,n.UiPolicyExpressionFromJSONTyped=Di,n.UiPolicyExpressionToJSON=ee,n.UiPolicyExpressionToJSONTyped=Ai,n.UiPolicyExpressionType=ze,n.UiPolicyExpressionTypeFromJSON=Ci,n.UiPolicyExpressionTypeFromJSONTyped=Ji,n.UiPolicyExpressionTypeToJSON=Ud,n.UiPolicyExpressionTypeToJSONTyped=Rd,n.UiPolicyFromJSON=te,n.UiPolicyFromJSONTyped=wi,n.UiPolicyLiteralFromJSON=hi,n.UiPolicyLiteralFromJSONTyped=Si,n.UiPolicyLiteralToJSON=Ti,n.UiPolicyLiteralToJSONTyped=Oi,n.UiPolicyLiteralType=Me,n.UiPolicyLiteralTypeFromJSON=yi,n.UiPolicyLiteralTypeFromJSONTyped=gi,n.UiPolicyLiteralTypeToJSON=Dd,n.UiPolicyLiteralTypeToJSONTyped=Ad,n.UiPolicyToJSON=re,n.UiPolicyToJSONTyped=bi,n.UseCaseApi=Pc,n.VaultSecretCreateSubmitFromJSON=Mf,n.VaultSecretCreateSubmitFromJSONTyped=ac,n.VaultSecretCreateSubmitToJSON=oc,n.VaultSecretCreateSubmitToJSONTyped=sc,n.VaultSecretEditPageFromJSON=cc,n.VaultSecretEditPageFromJSONTyped=uc,n.VaultSecretEditPageToJSON=Zf,n.VaultSecretEditPageToJSONTyped=dc,n.VaultSecretEditSubmitFromJSON=Kf,n.VaultSecretEditSubmitFromJSONTyped=lc,n.VaultSecretEditSubmitToJSON=fc,n.VaultSecretEditSubmitToJSONTyped=pc,n.VaultSecretListPageEntryFromJSON=mc,n.VaultSecretListPageEntryFromJSONTyped=yc,n.VaultSecretListPageEntryToJSON=$f,n.VaultSecretListPageEntryToJSONTyped=gc,n.VaultSecretQueryFromJSON=Wf,n.VaultSecretQueryFromJSONTyped=hc,n.VaultSecretQueryToJSON=Sc,n.VaultSecretQueryToJSONTyped=Tc,n.VoidApiResponse=xt,n.buildEdcClient=jp,n.canConsumeForm=Hc,n.exists=vc,n.instanceOfAssetFilterConstraint=Zc,n.instanceOfAssetFilterConstraintOperator=Vc,n.instanceOfAssetsPageEntry=$c,n.instanceOfAssetsPageRequest=nu,n.instanceOfAssetsPageResult=ou,n.instanceOfAssetsPageSortProperty=Wc,n.instanceOfAzureStorageListBlobsRequest=cu,n.instanceOfAzureStorageListContainersRequest=du,n.instanceOfBuildInfo=fu,n.instanceOfBusinessPartnerGroupCreateSubmit=mu,n.instanceOfBusinessPartnerGroupEditPage=gu,n.instanceOfBusinessPartnerGroupEditSubmit=Su,n.instanceOfBusinessPartnerGroupListPageEntry=Ou,n.instanceOfBusinessPartnerGroupQuery=Pu,n.instanceOfCallbackAddressDto=Au,n.instanceOfCallbackAddressEventType=Ju,n.instanceOfCatalogFilterExpression=_u,n.instanceOfCatalogFilterExpressionLiteral=Uu,n.instanceOfCatalogFilterExpressionLiteralType=wu,n.instanceOfCatalogFilterExpressionOperator=Ru,n.instanceOfCatalogQuery=ku,n.instanceOfCatalogQueryV2=Vu,n.instanceOfCatalogSortBy=Bu,n.instanceOfCatalogSortByDirection=vu,n.instanceOfConnectorLimits=zu,n.instanceOfContractAgreementDirection=Gu,n.instanceOfContractAgreementTerminationInfo=Xu,n.instanceOfContractAgreementTransferProcess=rd,n.instanceOfContractDefinitionEntry=ld,n.instanceOfContractDefinitionPage=fd,n.instanceOfContractDefinitionRequest=md,n.instanceOfContractDetailPageResult=_d,n.instanceOfContractNegotiationRequest=qd,n.instanceOfContractNegotiationSimplifiedState=Ld,n.instanceOfContractNegotiationState=Vd,n.instanceOfContractNegotiationStateResult=Md,n.instanceOfContractTerminatedBy=$u,n.instanceOfContractTerminationRequest=Zd,n.instanceOfContractTerminationStatus=gd,n.instanceOfContractsPageEntry=Kd,n.instanceOfContractsPageRequest=Xd,n.instanceOfContractsPageResult=jd,n.instanceOfContractsPageSortProperty=Qd,n.instanceOfDashboardCxDidConfig=tl,n.instanceOfDashboardDapsConfig=rl,n.instanceOfDashboardPage=il,n.instanceOfDashboardTransferAmounts=nl,n.instanceOfDataOfferCreateRequest=kl,n.instanceOfDataOfferPolicyCreateType=ol,n.instanceOfDataOfferPublishType=ul,n.instanceOfDataSourceAvailability=Gc,n.instanceOfDataSourceType=fl,n.instanceOfEdrDto=vl,n.instanceOfIdAvailabilityResponse=Hl,n.instanceOfIdResponseDto=Vl,n.instanceOfInitiateCustomTransferRequest=zl,n.instanceOfInitiateTransferRequest=Gl,n.instanceOfKpiResult=$l,n.instanceOfNegotiateAllQuery=Wl,n.instanceOfNegotiateAllResult=xl,n.instanceOfOperatorDto=Nd,n.instanceOfPaginationRequest=Yc,n.instanceOfPaginationResult=au,n.instanceOfPolicyDefinitionCreateDto=ef,n.instanceOfPolicyDefinitionCreateFromJsonLdDto=rf,n.instanceOfPolicyDefinitionCreateRequest=of,n.instanceOfPolicyDefinitionDto=cf,n.instanceOfPolicyDefinitionPage=uf,n.instanceOfSortByDirection=jc,n.instanceOfSortByRequestAssetsPageSortProperty=ru,n.instanceOfSortByRequestContractsPageSortProperty=Wd,n.instanceOfTransferHistoryEntry=lf,n.instanceOfTransferHistoryPage=ff,n.instanceOfTransferProcessSimplifiedState=xu,n.instanceOfTransferProcessState=td,n.instanceOfTransferProcessStateResult=mf,n.instanceOfTransferProcessStatesDto=Ql,n.instanceOfUiAsset=Od,n.instanceOfUiAssetCreateRequest=_l,n.instanceOfUiAssetEditRequest=gf,n.instanceOfUiAssetExtForSphinx=Td,n.instanceOfUiConfig=Nf,n.instanceOfUiConfigFeature=Sf,n.instanceOfUiConfigPreconfiguredCounterparty=Of,n.instanceOfUiContractNegotiation=Cf,n.instanceOfUiContractOffer=Df,n.instanceOfUiCriterion=dd,n.instanceOfUiCriterionLiteral=od,n.instanceOfUiCriterionLiteralType=nd,n.instanceOfUiCriterionOperator=sd,n.instanceOfUiDataOffer=Af,n.instanceOfUiDataSinkHttpDataPush=kf,n.instanceOfUiDataSinkHttpDataPushMethod=bf,n.instanceOfUiDataSource=El,n.instanceOfUiDataSourceAzureStorage=yl,n.instanceOfUiDataSourceHttpData=Rl,n.instanceOfUiDataSourceHttpDataMethod=gl,n.instanceOfUiDataSourceOnRequest=Fl,n.instanceOfUiHttpAuth=Ul,n.instanceOfUiHttpAuthApiKey=Tl,n.instanceOfUiHttpAuthBasic=Ol,n.instanceOfUiHttpAuthOauth2=Al,n.instanceOfUiHttpAuthType=wl,n.instanceOfUiHttpOauth2AuthType=Nl,n.instanceOfUiHttpOauth2PrivateKeyAuthorization=Jl,n.instanceOfUiHttpOauth2SharedSecretAuthorization=Dl,n.instanceOfUiHttpPushAuth=_f,n.instanceOfUiHttpPushAuthType=Rf,n.instanceOfUiInitiateTransferRequest=Hf,n.instanceOfUiInitiateTransferType=qf,n.instanceOfUiPolicy=Ed,n.instanceOfUiPolicyConstraint=bd,n.instanceOfUiPolicyCreateRequest=af,n.instanceOfUiPolicyExpression=Fd,n.instanceOfUiPolicyExpressionType=Id,n.instanceOfUiPolicyLiteral=wd,n.instanceOfUiPolicyLiteralType=Jd,n.instanceOfVaultSecretCreateSubmit=Vf,n.instanceOfVaultSecretEditPage=zf,n.instanceOfVaultSecretEditSubmit=Gf,n.instanceOfVaultSecretListPageEntry=Qf,n.instanceOfVaultSecretQuery=Yf,n.mapValues=Lc,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 om=Object.defineProperty;var sm=(n,w,L)=>w in n?om(n,w,{enumerable:!0,configurable:!0,writable:!0,value:L}):n[w]=L;var k=(n,w,L)=>sm(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||ht}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 $t=new L,St=class St{constructor(t=$t){k(this,"middleware");k(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 Wt(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?St.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 Yt(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;Hc(c.body)||c.body instanceof URLSearchParams||Lc(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}};k(St,"jsonRegex",new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"));let $=St;function Lc(e){return typeof Blob<"u"&&e instanceof Blob}function Hc(e){return typeof FormData<"u"&&e instanceof FormData}class Yt extends Error{constructor(r,i){super(i);k(this,"name","ResponseError");this.response=r}}class Wt extends Error{constructor(r,i){super(i);k(this,"name","FetchError");this.cause=r}}class P extends Error{constructor(r,i){super(i);k(this,"name","RequiredError");this.field=r}}const Bc={csv:",",ssv:" ",tsv:" ",pipes:"|"};function ht(e,t=""){return Object.keys(e).map(r=>Xt(r,e[r],t)).filter(r=>r.length>0).join("&")}function Xt(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 Xt(e,a,r)}return t instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?ht(t,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`}function Vc(e,t){const r=e[t];return r!=null}function Mc(e,t){return Object.keys(e).reduce((r,i)=>({...r,[i]:t(e[i])}),{})}function zc(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class m{constructor(t,r=i=>i){this.raw=t,this.transformer=r}async value(){return this.transformer(await this.raw.json())}}class xt{constructor(t){this.raw=t}async value(){}}class Zc{constructor(t){this.raw=t}async value(){return await this.raw.blob()}}class jt{constructor(t){this.raw=t}async value(){return await this.raw.text()}}const he={Like:"LIKE",Eq:"EQ",In:"IN"};function Gc(e){for(const t in he)if(Object.prototype.hasOwnProperty.call(he,t)&&he[t]===e)return!0;return!1}function er(e){return tr(e)}function tr(e,t){return e}function Kc(e){return e}function Qc(e,t){return e}function $c(e){return!(!("assetPropertyPath"in e)||e.assetPropertyPath===void 0||!("operator"in e)||e.operator===void 0)}function Tt(e){return rr(e)}function rr(e,t){return e==null?e:{assetPropertyPath:e.assetPropertyPath,operator:er(e.operator),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Ot(e){return nr(e,!1)}function nr(e,t=!1){return e==null?e:{assetPropertyPath:e.assetPropertyPath,operator:e.operator,value:e.value,valueList:e.valueList}}const Te={Live:"LIVE",OnRequest:"ON_REQUEST"};function Yc(e){for(const t in Te)if(Object.prototype.hasOwnProperty.call(Te,t)&&Te[t]===e)return!0;return!1}function Nt(e){return ir(e)}function ir(e,t){return e}function Wc(e){return e}function Xc(e,t){return e}function xc(e){return!(!("assetId"in e)||e.assetId===void 0||!("title"in e)||e.title===void 0||!("dataSourceAvailability"in e)||e.dataSourceAvailability===void 0)}function ar(e){return or(e)}function or(e,t){return e==null?e:{assetId:e.assetId,title:e.title,descriptionShortText:e.descriptionShortText==null?void 0:e.descriptionShortText,dataSourceAvailability:Nt(e.dataSourceAvailability)}}function sr(e){return cr(e,!1)}function cr(e,t=!1){return e==null?e:{assetId:e.assetId,title:e.title,descriptionShortText:e.descriptionShortText,dataSourceAvailability:e.dataSourceAvailability}}function jc(e){return!0}function Pt(e){return ur(e)}function ur(e,t){return e==null?e:{pageOneBased:e.pageOneBased==null?void 0:e.pageOneBased,pageSize:e.pageSize==null?void 0:e.pageSize}}function Ct(e){return dr(e,!1)}function dr(e,t=!1){return e==null?e:{pageOneBased:e.pageOneBased,pageSize:e.pageSize}}const Oe={Title:"TITLE",Description:"DESCRIPTION"};function eu(e){for(const t in Oe)if(Object.prototype.hasOwnProperty.call(Oe,t)&&Oe[t]===e)return!0;return!1}function lr(e){return fr(e)}function fr(e,t){return e}function tu(e){return e}function ru(e,t){return e}const Ne={Descending:"DESCENDING",Ascending:"ASCENDING"};function nu(e){for(const t in Ne)if(Object.prototype.hasOwnProperty.call(Ne,t)&&Ne[t]===e)return!0;return!1}function Jt(e){return pr(e)}function pr(e,t){return e}function iu(e){return e}function au(e,t){return e}function ou(e){return!(!("field"in e)||e.field===void 0||!("direction"in e)||e.direction===void 0)}function mr(e){return yr(e)}function yr(e,t){return e==null?e:{field:lr(e.field),direction:Jt(e.direction)}}function gr(e){return Sr(e,!1)}function Sr(e,t=!1){return e==null?e:{field:e.field,direction:e.direction}}function su(e){return!0}function cu(e){return hr(e)}function hr(e,t){return e==null?e:{pagination:e.pagination==null?void 0:Pt(e.pagination),searchText:e.searchText==null?void 0:e.searchText,sortBy:e.sortBy==null?void 0:e.sortBy.map(mr)}}function Tr(e){return Or(e,!1)}function Or(e,t=!1){return e==null?e:{pagination:Ct(e.pagination),searchText:e.searchText,sortBy:e.sortBy==null?void 0:e.sortBy.map(gr)}}function uu(e){return!(!("totalItems"in e)||e.totalItems===void 0||!("lastPage"in e)||e.lastPage===void 0||!("currentPage"in e)||e.currentPage===void 0||!("pageStart"in e)||e.pageStart===void 0||!("pageEnd"in e)||e.pageEnd===void 0||!("pageSize"in e)||e.pageSize===void 0)}function Dt(e){return Nr(e)}function Nr(e,t){return e==null?e:{totalItems:e.totalItems,lastPage:e.lastPage,previousPage:e.previousPage==null?void 0:e.previousPage,currentPage:e.currentPage,nextPage:e.nextPage==null?void 0:e.nextPage,pageStart:e.pageStart,pageEnd:e.pageEnd,pageSize:e.pageSize}}function At(e){return Pr(e,!1)}function Pr(e,t=!1){return e==null?e:{totalItems:e.totalItems,lastPage:e.lastPage,previousPage:e.previousPage,currentPage:e.currentPage,nextPage:e.nextPage,pageStart:e.pageStart,pageEnd:e.pageEnd,pageSize:e.pageSize}}function du(e){return!(!("assets"in e)||e.assets===void 0||!("pagination"in e)||e.pagination===void 0)}function Cr(e){return Jr(e)}function Jr(e,t){return e==null?e:{assets:e.assets.map(ar),pagination:Dt(e.pagination)}}function lu(e){return Dr(e,!1)}function Dr(e,t=!1){return e==null?e:{assets:e.assets.map(sr),pagination:At(e.pagination)}}function fu(e){return!(!("storageAccountName"in e)||e.storageAccountName===void 0||!("containerName"in e)||e.containerName===void 0||!("storageAccountVaultKey"in e)||e.storageAccountVaultKey===void 0)}function pu(e){return Ar(e)}function Ar(e,t){return e==null?e:{storageAccountName:e.storageAccountName,containerName:e.containerName,storageAccountVaultKey:e.storageAccountVaultKey}}function wr(e){return br(e,!1)}function br(e,t=!1){return e==null?e:{storageAccountName:e.storageAccountName,containerName:e.containerName,storageAccountVaultKey:e.storageAccountVaultKey}}function mu(e){return!(!("storageAccountName"in e)||e.storageAccountName===void 0||!("storageAccountVaultKey"in e)||e.storageAccountVaultKey===void 0)}function yu(e){return Ir(e)}function Ir(e,t){return e==null?e:{storageAccountName:e.storageAccountName,storageAccountVaultKey:e.storageAccountVaultKey}}function Ur(e){return Rr(e,!1)}function Rr(e,t=!1){return e==null?e:{storageAccountName:e.storageAccountName,storageAccountVaultKey:e.storageAccountVaultKey}}function gu(e){return!(!("buildDate"in e)||e.buildDate===void 0||!("buildVersion"in e)||e.buildVersion===void 0)}function Fr(e){return Er(e)}function Er(e,t){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}function Su(e){return _r(e,!1)}function _r(e,t=!1){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}function hu(e){return!(!("groupId"in e)||e.groupId===void 0||!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function Tu(e){return kr(e)}function kr(e,t){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function qr(e){return vr(e,!1)}function vr(e,t=!1){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function Ou(e){return!(!("groupId"in e)||e.groupId===void 0||!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function Lr(e){return Hr(e)}function Hr(e,t){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function Nu(e){return Br(e,!1)}function Br(e,t=!1){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function Pu(e){return!(!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function Cu(e){return Vr(e)}function Vr(e,t){return e==null?e:{businessPartnerNumbers:e.businessPartnerNumbers}}function Mr(e){return zr(e,!1)}function zr(e,t=!1){return e==null?e:{businessPartnerNumbers:e.businessPartnerNumbers}}function Ju(e){return!(!("groupId"in e)||e.groupId===void 0||!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function Zr(e){return Gr(e)}function Gr(e,t){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function Du(e){return Kr(e,!1)}function Kr(e,t=!1){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function Au(e){return!0}function wu(e){return Qr(e)}function Qr(e,t){return e==null?e:{searchQuery:e.searchQuery==null?void 0:e.searchQuery,limit:e.limit==null?void 0:e.limit}}function $r(e){return Yr(e,!1)}function Yr(e,t=!1){return e==null?e:{searchQuery:e.searchQuery,limit:e.limit}}const Pe={ContractNegotiationFinalized:"CONTRACT_NEGOTIATION_FINALIZED",ContractNegotiationTerminated:"CONTRACT_NEGOTIATION_TERMINATED",TransferProcessStarted:"TRANSFER_PROCESS_STARTED",TransferProcessTerminated:"TRANSFER_PROCESS_TERMINATED",TransferProcessCompleted:"TRANSFER_PROCESS_COMPLETED"};function bu(e){for(const t in Pe)if(Object.prototype.hasOwnProperty.call(Pe,t)&&Pe[t]===e)return!0;return!1}function Wr(e){return Xr(e)}function Xr(e,t){return e}function xr(e){return e}function Iu(e,t){return e}function Uu(e){return!(!("url"in e)||e.url===void 0||!("events"in e)||e.events===void 0)}function Ce(e){return jr(e)}function jr(e,t){return e==null?e:{url:e.url,events:e.events.map(Wr),authHeaderName:e.authHeaderName==null?void 0:e.authHeaderName,authHeaderVaultSecretName:e.authHeaderVaultSecretName==null?void 0:e.authHeaderVaultSecretName}}function Je(e){return en(e,!1)}function en(e,t=!1){return e==null?e:{url:e.url,events:e.events.map(xr),authHeaderName:e.authHeaderName,authHeaderVaultSecretName:e.authHeaderVaultSecretName}}const De={Value:"VALUE",ValueList:"VALUE_LIST"};function Ru(e){for(const t in De)if(Object.prototype.hasOwnProperty.call(De,t)&&De[t]===e)return!0;return!1}function tn(e){return rn(e)}function rn(e,t){return e}function Fu(e){return e}function Eu(e,t){return e}function _u(e){return!0}function nn(e){return an(e)}function an(e,t){return e==null?e:{type:e.type==null?void 0:tn(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function on(e){return sn(e,!1)}function sn(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const Ae={Like:"LIKE",Eq:"EQ",In:"IN"};function ku(e){for(const t in Ae)if(Object.prototype.hasOwnProperty.call(Ae,t)&&Ae[t]===e)return!0;return!1}function cn(e){return un(e)}function un(e,t){return e}function qu(e){return e}function vu(e,t){return e}function Lu(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function dn(e){return ln(e)}function ln(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:cn(e.operator),operandRight:nn(e.operandRight)}}function fn(e){return pn(e,!1)}function pn(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:on(e.operandRight)}}function Hu(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function Bu(e){return mn(e)}function mn(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(dn)}}function yn(e){return gn(e,!1)}function gn(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(fn)}}const we={Asc:"ASC",Desc:"DESC"};function Vu(e){for(const t in we)if(Object.prototype.hasOwnProperty.call(we,t)&&we[t]===e)return!0;return!1}function Sn(e){return hn(e)}function hn(e,t){return e}function Mu(e){return e}function zu(e,t){return e}function Zu(e){return!(!("assetPropertyPath"in e)||e.assetPropertyPath===void 0)}function Tn(e){return On(e)}function On(e,t){return e==null?e:{assetPropertyPath:e.assetPropertyPath,direction:e.direction==null?void 0:Sn(e.direction)}}function Nn(e){return Pn(e,!1)}function Pn(e,t=!1){return e==null?e:{assetPropertyPath:e.assetPropertyPath,direction:e.direction}}function Gu(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0)}function Ku(e){return Cn(e)}function Cn(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter==null?void 0:e.filter.map(Tt),limit:e.limit==null?void 0:e.limit,offset:e.offset==null?void 0:e.offset,sortBy:e.sortBy==null?void 0:Tn(e.sortBy)}}function Jn(e){return Dn(e,!1)}function Dn(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter==null?void 0:e.filter.map(Ot),limit:e.limit,offset:e.offset,sortBy:Nn(e.sortBy)}}function Qu(e){return!(!("numActiveConsumingContractAgreements"in e)||e.numActiveConsumingContractAgreements===void 0)}function An(e){return wn(e)}function wn(e,t){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements==null?void 0:e.maxActiveConsumingContractAgreements}}function $u(e){return bn(e,!1)}function bn(e,t=!1){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements}}const be={Consuming:"CONSUMING",Providing:"PROVIDING"};function Yu(e){for(const t in be)if(Object.prototype.hasOwnProperty.call(be,t)&&be[t]===e)return!0;return!1}function Ie(e){return In(e)}function In(e,t){return e}function Wu(e){return e}function Xu(e,t){return e}const Ue={Self:"SELF",Counterparty:"COUNTERPARTY"};function xu(e){for(const t in Ue)if(Object.prototype.hasOwnProperty.call(Ue,t)&&Ue[t]===e)return!0;return!1}function Un(e){return Rn(e)}function Rn(e,t){return e}function ju(e){return e}function ed(e,t){return e}function td(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 wt(e){return Fn(e)}function Fn(e,t){return e==null?e:{terminatedAt:new Date(e.terminatedAt),reason:e.reason,detail:e.detail,terminatedBy:Un(e.terminatedBy)}}function bt(e){return En(e,!1)}function En(e,t=!1){return e==null?e:{terminatedAt:e.terminatedAt.toISOString(),reason:e.reason,detail:e.detail,terminatedBy:e.terminatedBy}}const Re={Running:"RUNNING",Ok:"OK",Error:"ERROR"};function rd(e){for(const t in Re)if(Object.prototype.hasOwnProperty.call(Re,t)&&Re[t]===e)return!0;return!1}function _n(e){return kn(e)}function kn(e,t){return e}function nd(e){return e}function id(e,t){return e}function ad(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function Fe(e){return qn(e)}function qn(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:_n(e.simplifiedState)}}function Ee(e){return vn(e,!1)}function vn(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function od(e){return!(!("transferProcessId"in e)||e.transferProcessId===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0||!("state"in e)||e.state===void 0)}function Ln(e){return Hn(e)}function Hn(e,t){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:new Date(e.lastUpdatedDate),state:Fe(e.state),errorMessage:e.errorMessage==null?void 0:e.errorMessage}}function Bn(e){return Vn(e,!1)}function Vn(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:e.lastUpdatedDate.toISOString(),state:Ee(e.state),errorMessage:e.errorMessage}}const _e={Value:"VALUE",ValueList:"VALUE_LIST"};function sd(e){for(const t in _e)if(Object.prototype.hasOwnProperty.call(_e,t)&&_e[t]===e)return!0;return!1}function Mn(e){return zn(e)}function zn(e,t){return e}function cd(e){return e}function ud(e,t){return e}function dd(e){return!0}function Zn(e){return Gn(e)}function Gn(e,t){return e==null?e:{type:e.type==null?void 0:Mn(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Kn(e){return Qn(e,!1)}function Qn(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const ke={Eq:"EQ",In:"IN",Like:"LIKE"};function ld(e){for(const t in ke)if(Object.prototype.hasOwnProperty.call(ke,t)&&ke[t]===e)return!0;return!1}function $n(e){return Yn(e)}function Yn(e,t){return e}function fd(e){return e}function pd(e,t){return e}function md(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function It(e){return Wn(e)}function Wn(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:$n(e.operator),operandRight:Zn(e.operandRight)}}function Ut(e){return Xn(e,!1)}function Xn(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:Kn(e.operandRight)}}function yd(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 xn(e){return jn(e)}function jn(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(It)}}function ei(e){return ti(e,!1)}function ti(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(Ut)}}function gd(e){return!(!("contractDefinitions"in e)||e.contractDefinitions===void 0)}function ri(e){return ni(e)}function ni(e,t){return e==null?e:{contractDefinitions:e.contractDefinitions.map(xn)}}function Sd(e){return ii(e,!1)}function ii(e,t=!1){return e==null?e:{contractDefinitions:e.contractDefinitions.map(ei)}}function hd(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 Td(e){return ai(e)}function ai(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(It)}}function oi(e){return si(e,!1)}function si(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(Ut)}}const qe={Ongoing:"ONGOING",Terminated:"TERMINATED"};function Od(e){for(const t in qe)if(Object.prototype.hasOwnProperty.call(qe,t)&&qe[t]===e)return!0;return!1}function ve(e){return ci(e)}function ci(e,t){return e}function Nd(e){return e}function Pd(e,t){return e}function Cd(e){return!0}function Le(e){return ui(e)}function ui(e,t){return e==null?e:{patientCount:e.patientCount==null?void 0:e.patientCount,birthYearMin:e.birthYearMin==null?void 0:e.birthYearMin,birthYearMax:e.birthYearMax==null?void 0:e.birthYearMax,administrativeGender:e.administrativeGender==null?void 0:e.administrativeGender,bodyHeightMin:e.bodyHeightMin==null?void 0:e.bodyHeightMin,bodyHeightMax:e.bodyHeightMax==null?void 0:e.bodyHeightMax,diagnosisPrimary:e.diagnosisPrimary==null?void 0:e.diagnosisPrimary,diagnosisSecondary:e.diagnosisSecondary==null?void 0:e.diagnosisSecondary,encounterStart:e.encounterStart==null?void 0:e.encounterStart,encounterEnd:e.encounterEnd==null?void 0:e.encounterEnd,medicationCount:e.medicationCount==null?void 0:e.medicationCount,dosageCount:e.dosageCount==null?void 0:e.dosageCount,clinicalSpecialty:e.clinicalSpecialty==null?void 0:e.clinicalSpecialty}}function He(e){return di(e,!1)}function di(e,t=!1){return e==null?e:{patientCount:e.patientCount,birthYearMin:e.birthYearMin,birthYearMax:e.birthYearMax,administrativeGender:e.administrativeGender,bodyHeightMin:e.bodyHeightMin,bodyHeightMax:e.bodyHeightMax,diagnosisPrimary:e.diagnosisPrimary,diagnosisSecondary:e.diagnosisSecondary,encounterStart:e.encounterStart,encounterEnd:e.encounterEnd,medicationCount:e.medicationCount,dosageCount:e.dosageCount,clinicalSpecialty:e.clinicalSpecialty}}function Jd(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 z(e){return li(e)}function li(e,t){return e==null?e:{dataSourceAvailability:Nt(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),sphinxFields:e.sphinxFields==null?void 0:Le(e.sphinxFields),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 Be(e){return fi(e,!1)}function fi(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),sphinxFields:He(e.sphinxFields),assetJsonLd:e.assetJsonLd,customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}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 Dd(e){for(const t in Ve)if(Object.prototype.hasOwnProperty.call(Ve,t)&&Ve[t]===e)return!0;return!1}function pi(e){return mi(e)}function mi(e,t){return e}function Ad(e){return e}function wd(e,t){return e}const Me={String:"STRING",StringList:"STRING_LIST",Json:"JSON"};function bd(e){for(const t in Me)if(Object.prototype.hasOwnProperty.call(Me,t)&&Me[t]===e)return!0;return!1}function yi(e){return gi(e)}function gi(e,t){return e}function Id(e){return e}function Ud(e,t){return e}function Rd(e){return!(!("type"in e)||e.type===void 0)}function Si(e){return hi(e)}function hi(e,t){return e==null?e:{type:yi(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Ti(e){return Oi(e,!1)}function Oi(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}function Fd(e){return!(!("left"in e)||e.left===void 0||!("operator"in e)||e.operator===void 0||!("right"in e)||e.right===void 0)}function Rt(e){return Ni(e)}function Ni(e,t){return e==null?e:{left:e.left,operator:pi(e.operator),right:Si(e.right)}}function Ft(e){return Pi(e,!1)}function Pi(e,t=!1){return e==null?e:{left:e.left,operator:e.operator,right:Ti(e.right)}}const ze={Empty:"EMPTY",Constraint:"CONSTRAINT",And:"AND",Or:"OR",Xone:"XONE"};function Ed(e){for(const t in ze)if(Object.prototype.hasOwnProperty.call(ze,t)&&ze[t]===e)return!0;return!1}function Ci(e){return Ji(e)}function Ji(e,t){return e}function _d(e){return e}function kd(e,t){return e}function qd(e){return!(!("type"in e)||e.type===void 0)}function j(e){return Di(e)}function Di(e,t){return e==null?e:{type:Ci(e.type),expressions:e.expressions==null?void 0:e.expressions.map(j),constraint:e.constraint==null?void 0:Rt(e.constraint)}}function ee(e){return Ai(e,!1)}function Ai(e,t=!1){return e==null?e:{type:e.type,expressions:e.expressions==null?void 0:e.expressions.map(ee),constraint:Ft(e.constraint)}}function vd(e){return!(!("policyJsonLd"in e)||e.policyJsonLd===void 0||!("errors"in e)||e.errors===void 0)}function te(e){return wi(e)}function wi(e,t){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:e.expression==null?void 0:j(e.expression),errors:e.errors}}function re(e){return bi(e,!1)}function bi(e,t=!1){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:ee(e.expression),errors:e.errors}}function Ld(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 Ii(e){return Ui(e)}function Ui(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,contractNegotiationId:e.contractNegotiationId,direction:Ie(e.direction),counterPartyAddress:e.counterPartyAddress,counterPartyId:e.counterPartyId,contractSigningDate:new Date(e.contractSigningDate),asset:z(e.asset),contractPolicy:te(e.contractPolicy),transferProcesses:e.transferProcesses.map(Ln),terminationStatus:ve(e.terminationStatus),terminationInformation:e.terminationInformation==null?void 0:wt(e.terminationInformation)}}function Hd(e){return Ri(e,!1)}function Ri(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:Be(e.asset),contractPolicy:re(e.contractPolicy),transferProcesses:e.transferProcesses.map(Bn),terminationStatus:e.terminationStatus,terminationInformation:bt(e.terminationInformation)}}function Bd(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 Vd(e){return Fi(e)}function Fi(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 Ei(e){return _i(e,!1)}function _i(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(Je)}}const Ze={InProgress:"IN_PROGRESS",Agreed:"AGREED",Terminated:"TERMINATED"};function Md(e){for(const t in Ze)if(Object.prototype.hasOwnProperty.call(Ze,t)&&Ze[t]===e)return!0;return!1}function ki(e){return qi(e)}function qi(e,t){return e}function zd(e){return e}function Zd(e,t){return e}function Gd(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function Ge(e){return vi(e)}function vi(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:ki(e.simplifiedState)}}function Ke(e){return Li(e,!1)}function Li(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function Kd(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("state"in e)||e.state===void 0||!("stateChangedAt"in e)||e.stateChangedAt===void 0)}function Hi(e){return Bi(e)}function Bi(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,state:Ge(e.state),contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,contractAgreementTerminationInfo:e.contractAgreementTerminationInfo==null?void 0:wt(e.contractAgreementTerminationInfo),stateChangedAt:new Date(e.stateChangedAt)}}function Qd(e){return Vi(e,!1)}function Vi(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,state:Ke(e.state),contractAgreementId:e.contractAgreementId,contractAgreementTerminationInfo:bt(e.contractAgreementTerminationInfo),stateChangedAt:e.stateChangedAt.toISOString()}}function $d(e){return!(!("detail"in e)||e.detail===void 0||!("reason"in e)||e.reason===void 0)}function Yd(e){return Mi(e)}function Mi(e,t){return e==null?e:{detail:e.detail,reason:e.reason}}function zi(e){return Zi(e,!1)}function Zi(e,t=!1){return e==null?e:{detail:e.detail,reason:e.reason}}function Wd(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("direction"in e)||e.direction===void 0||!("counterPartyId"in e)||e.counterPartyId===void 0||!("contractSigningDate"in e)||e.contractSigningDate===void 0||!("assetId"in e)||e.assetId===void 0||!("assetTitle"in e)||e.assetTitle===void 0||!("transferProcessesCount"in e)||e.transferProcessesCount===void 0||!("terminationStatus"in e)||e.terminationStatus===void 0)}function Gi(e){return Ki(e)}function Ki(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,direction:Ie(e.direction),counterPartyId:e.counterPartyId,contractSigningDate:new Date(e.contractSigningDate),assetId:e.assetId,assetTitle:e.assetTitle,transferProcessesCount:e.transferProcessesCount,terminationStatus:ve(e.terminationStatus),terminatedAt:e.terminatedAt==null?void 0:new Date(e.terminatedAt)}}function Qi(e){return $i(e,!1)}function $i(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,direction:e.direction,counterPartyId:e.counterPartyId,contractSigningDate:e.contractSigningDate.toISOString(),assetId:e.assetId,assetTitle:e.assetTitle,transferProcessesCount:e.transferProcessesCount,terminationStatus:e.terminationStatus,terminatedAt:e.terminatedAt==null?void 0:e.terminatedAt.toISOString()}}const Qe={ContractName:"CONTRACT_NAME",SignedAt:"SIGNED_AT",TerminatedAt:"TERMINATED_AT",Transfers:"TRANSFERS"};function Xd(e){for(const t in Qe)if(Object.prototype.hasOwnProperty.call(Qe,t)&&Qe[t]===e)return!0;return!1}function Yi(e){return Wi(e)}function Wi(e,t){return e}function xd(e){return e}function jd(e,t){return e}function el(e){return!(!("field"in e)||e.field===void 0||!("direction"in e)||e.direction===void 0)}function Xi(e){return xi(e)}function xi(e,t){return e==null?e:{field:Yi(e.field),direction:Jt(e.direction)}}function ji(e){return ea(e,!1)}function ea(e,t=!1){return e==null?e:{field:e.field,direction:e.direction}}function tl(e){return!0}function rl(e){return ta(e)}function ta(e,t){return e==null?e:{terminationStatus:e.terminationStatus==null?void 0:ve(e.terminationStatus),pagination:e.pagination==null?void 0:Pt(e.pagination),searchText:e.searchText==null?void 0:e.searchText,sortBy:e.sortBy==null?void 0:e.sortBy.map(Xi)}}function ra(e){return na(e,!1)}function na(e,t=!1){return e==null?e:{terminationStatus:e.terminationStatus,pagination:Ct(e.pagination),searchText:e.searchText,sortBy:e.sortBy==null?void 0:e.sortBy.map(ji)}}function nl(e){return!(!("contracts"in e)||e.contracts===void 0||!("pagination"in e)||e.pagination===void 0)}function ia(e){return aa(e)}function aa(e,t){return e==null?e:{contracts:e.contracts.map(Gi),pagination:Dt(e.pagination)}}function il(e){return oa(e,!1)}function oa(e,t=!1){return e==null?e:{contracts:e.contracts.map(Qi),pagination:At(e.pagination)}}function al(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 sa(e){return ca(e)}function ca(e,t){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function ua(e){return da(e,!1)}function da(e,t=!1){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function ol(e){return!(!("tokenUrl"in e)||e.tokenUrl===void 0||!("jwksUrl"in e)||e.jwksUrl===void 0)}function la(e){return fa(e)}function fa(e,t){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function pa(e){return ma(e,!1)}function ma(e,t=!1){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function sl(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 Et(e){return ya(e)}function ya(e,t){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function _t(e){return ga(e,!1)}function ga(e,t=!1){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function cl(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 Sa(e){return ha(e)}function ha(e,t){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:Et(e.transferProcessesConsuming),transferProcessesProviding:Et(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:la(e.connectorDapsConfig),connectorCxDidConfig:e.connectorCxDidConfig==null?void 0:sa(e.connectorCxDidConfig)}}function ul(e){return Ta(e,!1)}function Ta(e,t=!1){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:_t(e.transferProcessesConsuming),transferProcessesProviding:_t(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:pa(e.connectorDapsConfig),connectorCxDidConfig:ua(e.connectorCxDidConfig)}}const $e={Expression:"POLICY_EXPRESSION",JsonLd:"POLICY_JSON_LD"};function dl(e){for(const t in $e)if(Object.prototype.hasOwnProperty.call($e,t)&&$e[t]===e)return!0;return!1}function Oa(e){return Na(e)}function Na(e,t){return e}function ll(e){return e}function fl(e,t){return e}const Ye={DontPublish:"DONT_PUBLISH",PublishUnrestricted:"PUBLISH_UNRESTRICTED",PublishRestricted:"PUBLISH_RESTRICTED"};function pl(e){for(const t in Ye)if(Object.prototype.hasOwnProperty.call(Ye,t)&&Ye[t]===e)return!0;return!1}function Pa(e){return Ca(e)}function Ca(e,t){return e}function ml(e){return e}function yl(e,t){return e}const We={HttpData:"HTTP_DATA",OnRequest:"ON_REQUEST",AzureStorage:"AZURE_STORAGE",Custom:"CUSTOM"};function gl(e){for(const t in We)if(Object.prototype.hasOwnProperty.call(We,t)&&We[t]===e)return!0;return!1}function Ja(e){return Da(e)}function Da(e,t){return e}function Sl(e){return e}function hl(e,t){return e}function Tl(e){return!(!("storageAccountName"in e)||e.storageAccountName===void 0||!("accountKey"in e)||e.accountKey===void 0||!("containerName"in e)||e.containerName===void 0||!("blobName"in e)||e.blobName===void 0)}function Aa(e){return wa(e)}function wa(e,t){return e==null?e:{storageAccountName:e.storageAccountName,accountKey:e.accountKey,containerName:e.containerName,blobName:e.blobName}}function ba(e){return Ia(e,!1)}function Ia(e,t=!1){return e==null?e:{storageAccountName:e.storageAccountName,accountKey:e.accountKey,containerName:e.containerName,blobName:e.blobName}}const Xe={Get:"GET",Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Options:"OPTIONS"};function Ol(e){for(const t in Xe)if(Object.prototype.hasOwnProperty.call(Xe,t)&&Xe[t]===e)return!0;return!1}function Ua(e){return Ra(e)}function Ra(e,t){return e}function Nl(e){return e}function Pl(e,t){return e}function Cl(e){return!(!("headerName"in e)||e.headerName===void 0||!("vaultKey"in e)||e.vaultKey===void 0)}function kt(e){return Fa(e)}function Fa(e,t){return e==null?e:{headerName:e.headerName,vaultKey:e.vaultKey}}function qt(e){return Ea(e,!1)}function Ea(e,t=!1){return e==null?e:{headerName:e.headerName,vaultKey:e.vaultKey}}function Jl(e){return!(!("username"in e)||e.username===void 0||!("password"in e)||e.password===void 0)}function vt(e){return _a(e)}function _a(e,t){return e==null?e:{username:e.username,password:e.password}}function Lt(e){return ka(e,!1)}function ka(e,t=!1){return e==null?e:{username:e.username,password:e.password}}const xe={SharedSecret:"SHARED_SECRET",PrivateKey:"PRIVATE_KEY"};function Dl(e){for(const t in xe)if(Object.prototype.hasOwnProperty.call(xe,t)&&xe[t]===e)return!0;return!1}function qa(e){return va(e)}function va(e,t){return e}function Al(e){return e}function wl(e,t){return e}function bl(e){return!(!("privateKeyName"in e)||e.privateKeyName===void 0||!("tokenValidityInSeconds"in e)||e.tokenValidityInSeconds===void 0)}function La(e){return Ha(e)}function Ha(e,t){return e==null?e:{privateKeyName:e.privateKeyName,tokenValidityInSeconds:e.tokenValidityInSeconds}}function Ba(e){return Va(e,!1)}function Va(e,t=!1){return e==null?e:{privateKeyName:e.privateKeyName,tokenValidityInSeconds:e.tokenValidityInSeconds}}function Il(e){return!(!("clientId"in e)||e.clientId===void 0||!("clientSecretName"in e)||e.clientSecretName===void 0)}function Ma(e){return za(e)}function za(e,t){return e==null?e:{clientId:e.clientId,clientSecretName:e.clientSecretName}}function Za(e){return Ga(e,!1)}function Ga(e,t=!1){return e==null?e:{clientId:e.clientId,clientSecretName:e.clientSecretName}}function Ul(e){return!(!("tokenUrl"in e)||e.tokenUrl===void 0||!("type"in e)||e.type===void 0)}function Ka(e){return Qa(e)}function Qa(e,t){return e==null?e:{tokenUrl:e.tokenUrl,scope:e.scope==null?void 0:e.scope,type:qa(e.type),privateKey:e.privateKey==null?void 0:La(e.privateKey),sharedSecret:e.sharedSecret==null?void 0:Ma(e.sharedSecret)}}function $a(e){return Ya(e,!1)}function Ya(e,t=!1){return e==null?e:{tokenUrl:e.tokenUrl,scope:e.scope,type:e.type,privateKey:Ba(e.privateKey),sharedSecret:Za(e.sharedSecret)}}const je={Basic:"BASIC",Oauth2:"OAUTH2",ApiKey:"API_KEY"};function Rl(e){for(const t in je)if(Object.prototype.hasOwnProperty.call(je,t)&&je[t]===e)return!0;return!1}function Wa(e){return Xa(e)}function Xa(e,t){return e}function Fl(e){return e}function El(e,t){return e}function _l(e){return!(!("type"in e)||e.type===void 0)}function xa(e){return ja(e)}function ja(e,t){return e==null?e:{type:Wa(e.type),basic:e.basic==null?void 0:vt(e.basic),apiKey:e.apiKey==null?void 0:kt(e.apiKey),oauth:e.oauth==null?void 0:Ka(e.oauth)}}function eo(e){return to(e,!1)}function to(e,t=!1){return e==null?e:{type:e.type,basic:Lt(e.basic),apiKey:qt(e.apiKey),oauth:$a(e.oauth)}}function kl(e){return!(!("baseUrl"in e)||e.baseUrl===void 0)}function ro(e){return no(e)}function no(e,t){return e==null?e:{method:e.method==null?void 0:Ua(e.method),baseUrl:e.baseUrl,queryString:e.queryString==null?void 0:e.queryString,auth:e.auth==null?void 0:xa(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 io(e){return ao(e,!1)}function ao(e,t=!1){return e==null?e:{method:e.method,baseUrl:e.baseUrl,queryString:e.queryString,auth:eo(e.auth),headers:e.headers,enableMethodParameterization:e.enableMethodParameterization,enablePathParameterization:e.enablePathParameterization,enableQueryParameterization:e.enableQueryParameterization,enableBodyParameterization:e.enableBodyParameterization}}function ql(e){return!(!("contactEmail"in e)||e.contactEmail===void 0||!("contactPreferredEmailSubject"in e)||e.contactPreferredEmailSubject===void 0)}function oo(e){return so(e)}function so(e,t){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function co(e){return uo(e,!1)}function uo(e,t=!1){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function vl(e){return!(!("type"in e)||e.type===void 0)}function Ht(e){return lo(e)}function lo(e,t){return e==null?e:{type:Ja(e.type),httpData:e.httpData==null?void 0:ro(e.httpData),onRequest:e.onRequest==null?void 0:oo(e.onRequest),azureStorage:e.azureStorage==null?void 0:Aa(e.azureStorage),customProperties:e.customProperties==null?void 0:e.customProperties}}function Bt(e){return fo(e,!1)}function fo(e,t=!1){return e==null?e:{type:e.type,httpData:io(e.httpData),onRequest:co(e.onRequest),azureStorage:ba(e.azureStorage),customProperties:e.customProperties}}function Ll(e){return!(!("dataSource"in e)||e.dataSource===void 0||!("id"in e)||e.id===void 0)}function po(e){return mo(e)}function mo(e,t){return e==null?e:{dataSource:Ht(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),sphinxFields:e.sphinxFields==null?void 0:Le(e.sphinxFields),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 et(e){return yo(e,!1)}function yo(e,t=!1){return e==null?e:{dataSource:Bt(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),sphinxFields:He(e.sphinxFields),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function Hl(e){return!(!("asset"in e)||e.asset===void 0||!("publishType"in e)||e.publishType===void 0)}function Bl(e){return go(e)}function go(e,t){return e==null?e:{asset:po(e.asset),publishType:Pa(e.publishType),policyCreateType:e.policyCreateType==null?void 0:Oa(e.policyCreateType),policyExpression:e.policyExpression==null?void 0:j(e.policyExpression),policyJsonLd:e.policyJsonLd==null?void 0:e.policyJsonLd}}function So(e){return ho(e,!1)}function ho(e,t=!1){return e==null?e:{asset:et(e.asset),publishType:e.publishType,policyCreateType:e.policyCreateType,policyExpression:ee(e.policyExpression),policyJsonLd:e.policyJsonLd}}function Vl(e){return!(!("baseUrl"in e)||e.baseUrl===void 0||!("authorizationHeaderValue"in e)||e.authorizationHeaderValue===void 0)}function To(e){return Oo(e)}function Oo(e,t){return e==null?e:{baseUrl:e.baseUrl,authorizationHeaderValue:e.authorizationHeaderValue,expiresAt:e.expiresAt==null?void 0:new Date(e.expiresAt)}}function Ml(e){return No(e,!1)}function No(e,t=!1){return e==null?e:{baseUrl:e.baseUrl,authorizationHeaderValue:e.authorizationHeaderValue,expiresAt:e.expiresAt==null?void 0:e.expiresAt.toISOString()}}function zl(e){return!(!("id"in e)||e.id===void 0)}function tt(e){return Po(e)}function Po(e,t){return e==null?e:{id:e.id,available:e.available==null?void 0:e.available}}function Zl(e){return Co(e,!1)}function Co(e,t=!1){return e==null?e:{id:e.id,available:e.available}}function Gl(e){return!(!("id"in e)||e.id===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0)}function J(e){return Jo(e)}function Jo(e,t){return e==null?e:{id:e.id,lastUpdatedDate:new Date(e.lastUpdatedDate)}}function Kl(e){return Do(e,!1)}function Do(e,t=!1){return e==null?e:{id:e.id,lastUpdatedDate:e.lastUpdatedDate.toISOString()}}function Ql(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("transferProcessRequestJsonLd"in e)||e.transferProcessRequestJsonLd===void 0)}function $l(e){return Ao(e)}function Ao(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function wo(e){return bo(e,!1)}function bo(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function Yl(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 Wl(e){return Io(e)}function Io(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function Uo(e){return Ro(e,!1)}function Ro(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function Xl(e){return!(!("incomingTransferProcessCounts"in e)||e.incomingTransferProcessCounts===void 0||!("outgoingTransferProcessCounts"in e)||e.outgoingTransferProcessCounts===void 0)}function Fo(e){return Eo(e)}function Eo(e,t){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function _o(e){return ko(e,!1)}function ko(e,t=!1){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function xl(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 qo(e){return vo(e)}function vo(e,t){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:Fo(e.transferProcessDto)}}function jl(e){return Lo(e,!1)}function Lo(e,t=!1){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:_o(e.transferProcessDto)}}function ef(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0||!("filter"in e)||e.filter===void 0)}function tf(e){return Ho(e)}function Ho(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter.map(Tt),limit:e.limit==null?void 0:e.limit,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Ce)}}function Bo(e){return Vo(e,!1)}function Vo(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter.map(Ot),limit:e.limit,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Je)}}function rf(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 Mo(e){return zo(e)}function zo(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,state:Ge(e.state),stateChangedAt:new Date(e.stateChangedAt),asset:z(e.asset),policy:te(e.policy)}}function nf(e){return Zo(e,!1)}function Zo(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,contractAgreementId:e.contractAgreementId,state:Ke(e.state),stateChangedAt:e.stateChangedAt.toISOString(),asset:Be(e.asset),policy:re(e.policy)}}function af(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policyExpression"in e)||e.policyExpression===void 0)}function of(e){return Go(e)}function Go(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policyExpression:j(e.policyExpression)}}function Ko(e){return Qo(e,!1)}function Qo(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policyExpression:ee(e.policyExpression)}}function sf(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policyJsonLd"in e)||e.policyJsonLd===void 0)}function cf(e){return $o(e)}function $o(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policyJsonLd:e.policyJsonLd}}function Yo(e){return Wo(e,!1)}function Wo(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policyJsonLd:e.policyJsonLd}}function uf(e){return!0}function Xo(e){return xo(e)}function xo(e,t){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(Rt)}}function jo(e){return es(e,!1)}function es(e,t=!1){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(Ft)}}function df(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function lf(e){return ts(e)}function ts(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:Xo(e.policy)}}function rs(e){return ns(e,!1)}function ns(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:jo(e.policy)}}function ff(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function is(e){return as(e)}function as(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:te(e.policy)}}function os(e){return ss(e,!1)}function ss(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:re(e.policy)}}function pf(e){return!(!("policies"in e)||e.policies===void 0)}function cs(e){return us(e)}function us(e,t){return e==null?e:{policies:e.policies.map(is)}}function mf(e){return ds(e,!1)}function ds(e,t=!1){return e==null?e:{policies:e.policies.map(os)}}function yf(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 ls(e){return fs(e)}function fs(e,t){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:new Date(e.createdDate),lastUpdatedDate:new Date(e.lastUpdatedDate),transferType:e.transferType,state:Fe(e.state),contractAgreementId:e.contractAgreementId,direction:Ie(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 ps(e){return ms(e,!1)}function ms(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:e.createdDate.toISOString(),lastUpdatedDate:e.lastUpdatedDate.toISOString(),transferType:e.transferType,state:Ee(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 gf(e){return!(!("transferEntries"in e)||e.transferEntries===void 0)}function ys(e){return gs(e)}function gs(e,t){return e==null?e:{transferEntries:e.transferEntries.map(ls)}}function Sf(e){return Ss(e,!1)}function Ss(e,t=!1){return e==null?e:{transferEntries:e.transferEntries.map(ps)}}function hf(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 hs(e){return Ts(e)}function Ts(e,t){return e==null?e:{transferId:e.transferId,state:Fe(e.state),stateChangedAt:new Date(e.stateChangedAt),isEdrConsumable:e.isEdrConsumable}}function Tf(e){return Os(e,!1)}function Os(e,t=!1){return e==null?e:{transferId:e.transferId,state:Ee(e.state),stateChangedAt:e.stateChangedAt.toISOString(),isEdrConsumable:e.isEdrConsumable}}function Of(e){return!0}function Nf(e){return Ns(e)}function Ns(e,t){return e==null?e:{dataSourceOverrideOrNull:e.dataSourceOverrideOrNull==null?void 0:Ht(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),sphinxFields:e.sphinxFields==null?void 0:Le(e.sphinxFields),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 Ps(e){return Cs(e,!1)}function Cs(e,t=!1){return e==null?e:{dataSourceOverrideOrNull:Bt(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),sphinxFields:He(e.sphinxFields),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}const rt={ConnectorLimits:"CONNECTOR_LIMITS",OpenSourceMarketing:"OPEN_SOURCE_MARKETING",EeBasicMarketing:"EE_BASIC_MARKETING",CatenaPolicies:"CATENA_POLICIES",SovityPolicies:"SOVITY_POLICIES",SphinxPolicies:"SPHINX_POLICIES",SphinxAssetMetadata:"SPHINX_ASSET_METADATA",BusinessPartnerGroupManagement:"BUSINESS_PARTNER_GROUP_MANAGEMENT"};function Pf(e){for(const t in rt)if(Object.prototype.hasOwnProperty.call(rt,t)&&rt[t]===e)return!0;return!1}function Js(e){return Ds(e)}function Ds(e,t){return e}function As(e){return e}function Cf(e,t){return e}function Jf(e){return!(!("participantId"in e)||e.participantId===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function ws(e){return bs(e)}function bs(e,t){return e==null?e:{participantId:e.participantId,connectorEndpoint:e.connectorEndpoint}}function Is(e){return Us(e,!1)}function Us(e,t=!1){return e==null?e:{participantId:e.participantId,connectorEndpoint:e.connectorEndpoint}}function Df(e){return!(!("features"in e)||e.features===void 0||!("preconfiguredCounterparties"in e)||e.preconfiguredCounterparties===void 0)}function Rs(e){return Fs(e)}function Fs(e,t){return e==null?e:{features:e.features.map(Js),preconfiguredCounterparties:e.preconfiguredCounterparties.map(ws),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,icpFooterLinkText:e.icpFooterLinkText==null?void 0:e.icpFooterLinkText,icpFooterLinkUrl:e.icpFooterLinkUrl==null?void 0:e.icpFooterLinkUrl}}function Af(e){return Es(e,!1)}function Es(e,t=!1){return e==null?e:{features:e.features.map(As),preconfiguredCounterparties:e.preconfiguredCounterparties.map(Is),logoutUrl:e.logoutUrl,documentationUrl:e.documentationUrl,supportUrl:e.supportUrl,privacyPolicyUrl:e.privacyPolicyUrl,legalNoticeUrl:e.legalNoticeUrl,icpFooterLinkText:e.icpFooterLinkText,icpFooterLinkUrl:e.icpFooterLinkUrl}}function wf(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("createdAt"in e)||e.createdAt===void 0||!("state"in e)||e.state===void 0)}function Vt(e){return _s(e)}function _s(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:new Date(e.createdAt),contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,state:Ge(e.state)}}function bf(e){return ks(e,!1)}function ks(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:e.createdAt.toISOString(),contractAgreementId:e.contractAgreementId,state:Ke(e.state)}}function If(e){return!(!("contractOfferId"in e)||e.contractOfferId===void 0||!("policy"in e)||e.policy===void 0)}function qs(e){return vs(e)}function vs(e,t){return e==null?e:{contractOfferId:e.contractOfferId,policy:te(e.policy)}}function Ls(e){return Hs(e,!1)}function Hs(e,t=!1){return e==null?e:{contractOfferId:e.contractOfferId,policy:re(e.policy)}}function Uf(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 ne(e){return Bs(e)}function Bs(e,t){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:z(e.asset),contractOffers:e.contractOffers.map(qs)}}function Rf(e){return Vs(e,!1)}function Vs(e,t=!1){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:Be(e.asset),contractOffers:e.contractOffers.map(Ls)}}function Ff(e){return!(!("storageAccountName"in e)||e.storageAccountName===void 0||!("containerName"in e)||e.containerName===void 0)}function Ms(e){return zs(e)}function zs(e,t){return e==null?e:{storageAccountName:e.storageAccountName,containerName:e.containerName,folderName:e.folderName==null?void 0:e.folderName,blobName:e.blobName==null?void 0:e.blobName}}function Zs(e){return Gs(e,!1)}function Gs(e,t=!1){return e==null?e:{storageAccountName:e.storageAccountName,containerName:e.containerName,folderName:e.folderName,blobName:e.blobName}}const nt={Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Options:"OPTIONS"};function Ef(e){for(const t in nt)if(Object.prototype.hasOwnProperty.call(nt,t)&&nt[t]===e)return!0;return!1}function Ks(e){return Qs(e)}function Qs(e,t){return e}function _f(e){return e}function kf(e,t){return e}const it={Basic:"BASIC",ApiKey:"API_KEY"};function qf(e){for(const t in it)if(Object.prototype.hasOwnProperty.call(it,t)&&it[t]===e)return!0;return!1}function $s(e){return Ys(e)}function Ys(e,t){return e}function vf(e){return e}function Lf(e,t){return e}function Hf(e){return!(!("type"in e)||e.type===void 0)}function Ws(e){return Xs(e)}function Xs(e,t){return e==null?e:{type:$s(e.type),basic:e.basic==null?void 0:vt(e.basic),apiKey:e.apiKey==null?void 0:kt(e.apiKey)}}function xs(e){return js(e,!1)}function js(e,t=!1){return e==null?e:{type:e.type,basic:Lt(e.basic),apiKey:qt(e.apiKey)}}function Bf(e){return!(!("baseUrl"in e)||e.baseUrl===void 0)}function ec(e){return tc(e)}function tc(e,t){return e==null?e:{method:e.method==null?void 0:Ks(e.method),baseUrl:e.baseUrl,queryString:e.queryString==null?void 0:e.queryString,auth:e.auth==null?void 0:Ws(e.auth),headers:e.headers==null?void 0:e.headers}}function rc(e){return nc(e,!1)}function nc(e,t=!1){return e==null?e:{method:e.method,baseUrl:e.baseUrl,queryString:e.queryString,auth:xs(e.auth),headers:e.headers}}const at={HttpDataPush:"HTTP_DATA_PUSH",HttpDataProxy:"HTTP_DATA_PROXY",Custom:"CUSTOM",AzureStorage:"AZURE_STORAGE"};function Vf(e){for(const t in at)if(Object.prototype.hasOwnProperty.call(at,t)&&at[t]===e)return!0;return!1}function ic(e){return ac(e)}function ac(e,t){return e}function Mf(e){return e}function zf(e,t){return e}function Zf(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("type"in e)||e.type===void 0)}function Gf(e){return oc(e)}function oc(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,type:ic(e.type),httpDataPush:e.httpDataPush==null?void 0:ec(e.httpDataPush),azureStorage:e.azureStorage==null?void 0:Ms(e.azureStorage),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 sc(e){return cc(e,!1)}function cc(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,type:e.type,httpDataPush:rc(e.httpDataPush),azureStorage:Zs(e.azureStorage),callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Je),customDataSinkProperties:e.customDataSinkProperties,customTransferPrivateProperties:e.customTransferPrivateProperties,customTransferType:e.customTransferType}}function Kf(e){return!(!("key"in e)||e.key===void 0||!("value"in e)||e.value===void 0||!("description"in e)||e.description===void 0)}function Qf(e){return uc(e)}function uc(e,t){return e==null?e:{key:e.key,value:e.value,description:e.description}}function dc(e){return lc(e,!1)}function lc(e,t=!1){return e==null?e:{key:e.key,value:e.value,description:e.description}}function $f(e){return!(!("key"in e)||e.key===void 0||!("description"in e)||e.description===void 0)}function fc(e){return pc(e)}function pc(e,t){return e==null?e:{key:e.key,description:e.description}}function Yf(e){return mc(e,!1)}function mc(e,t=!1){return e==null?e:{key:e.key,description:e.description}}function Wf(e){return!(!("description"in e)||e.description===void 0)}function Xf(e){return yc(e)}function yc(e,t){return e==null?e:{value:e.value==null?void 0:e.value,description:e.description}}function gc(e){return Sc(e,!1)}function Sc(e,t=!1){return e==null?e:{value:e.value,description:e.description}}function xf(e){return!(!("key"in e)||e.key===void 0||!("description"in e)||e.description===void 0||!("updatedAt"in e)||e.updatedAt===void 0)}function hc(e){return Tc(e)}function Tc(e,t){return e==null?e:{key:e.key,description:e.description,updatedAt:new Date(e.updatedAt)}}function jf(e){return Oc(e,!1)}function Oc(e,t=!1){return e==null?e:{key:e.key,description:e.description,updatedAt:e.updatedAt.toISOString()}}function ep(e){return!0}function tp(e){return Nc(e)}function Nc(e,t){return e==null?e:{searchQuery:e.searchQuery==null?void 0:e.searchQuery,limit:e.limit==null?void 0:e.limit}}function Pc(e){return Cc(e,!1)}function Cc(e,t=!1){return e==null?e:{searchQuery:e.searchQuery,limit:e.limit}}class Jc extends ${async connectorLimitsRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ee/connector-limits",method:"GET",headers:i,query:r},t);return new m(a,o=>An(o))}async connectorLimits(t){return await(await this.connectorLimitsRaw(t)).value()}async fileUploadCreateAssetRaw(t,r){if(t.blobId==null)throw new P("blobId",'Required parameter "blobId" was null or undefined when calling fileUploadCreateAsset().');if(t.uiAssetCreateRequest==null)throw new P("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:et(t.uiAssetCreateRequest)},r);return new xt(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 m(a):new jt(a)}async fileUploadRequestSasToken(t){return await(await this.fileUploadRequestSasTokenRaw(t)).value()}}class Dc extends ${async assetDetailPageRaw(t,r){if(t.assetId==null)throw new P("assetId",'Required parameter "assetId" was null or undefined when calling assetDetailPage().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/asset-detail-page/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"GET",headers:a,query:i},r);return new m(o,s=>z(s))}async assetDetailPage(t,r){return await(await this.assetDetailPageRaw(t,r)).value()}async assetsPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/assets-page",method:"POST",headers:a,query:i,body:Tr(t.assetsPageRequest)},r);return new m(o,s=>Cr(s))}async assetsPage(t={},r){return await(await this.assetsPageRaw(t,r)).value()}async buildInfoRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/build-info",method:"GET",headers:i,query:r},t);return new m(a,o=>Fr(o))}async buildInfo(t){return await(await this.buildInfoRaw(t)).value()}async businessPartnerGroupCreateSubmitRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/create",method:"POST",headers:a,query:i,body:qr(t.businessPartnerGroupCreateSubmit)},r);return new m(o,s=>J(s))}async businessPartnerGroupCreateSubmit(t={},r){return await(await this.businessPartnerGroupCreateSubmitRaw(t,r)).value()}async businessPartnerGroupEditPageRaw(t,r){if(t.id==null)throw new P("id",'Required parameter "id" was null or undefined when calling businessPartnerGroupEditPage().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/{id}/edit-page".replace("{id}",encodeURIComponent(String(t.id))),method:"GET",headers:a,query:i},r);return new m(o,s=>Lr(s))}async businessPartnerGroupEditPage(t,r){return await(await this.businessPartnerGroupEditPageRaw(t,r)).value()}async businessPartnerGroupEditSubmitRaw(t,r){if(t.id==null)throw new P("id",'Required parameter "id" was null or undefined when calling businessPartnerGroupEditSubmit().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/{id}/edit-group".replace("{id}",encodeURIComponent(String(t.id))),method:"PUT",headers:a,query:i,body:Mr(t.businessPartnerGroupEditSubmit)},r);return new m(o,s=>J(s))}async businessPartnerGroupEditSubmit(t,r){return await(await this.businessPartnerGroupEditSubmitRaw(t,r)).value()}async businessPartnerGroupListPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/list-page",method:"POST",headers:a,query:i,body:$r(t.businessPartnerGroupQuery)},r);return new m(o,s=>s.map(Zr))}async businessPartnerGroupListPage(t={},r){return await(await this.businessPartnerGroupListPageRaw(t,r)).value()}async contractDetailPageRaw(t,r){if(t.contractAgreementId==null)throw new P("contractAgreementId",'Required parameter "contractAgreementId" was null or undefined when calling contractDetailPage().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/contract-detail-page/{contractAgreementId}".replace("{contractAgreementId}",encodeURIComponent(String(t.contractAgreementId))),method:"GET",headers:a,query:i},r);return new m(o,s=>Ii(s))}async contractDetailPage(t,r){return await(await this.contractDetailPageRaw(t,r)).value()}async contractsPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contracts-page",method:"POST",headers:a,query:i,body:ra(t.contractsPageRequest)},r);return new m(o,s=>ia(s))}async contractsPage(t={},r){return await(await this.contractsPageRaw(t,r)).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:et(t.uiAssetCreateRequest)},r);return new m(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:oi(t.contractDefinitionRequest)},r);return new m(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:So(t.dataOfferCreateRequest)},r);return new m(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:rs(t.policyDefinitionCreateRequest)},r);return new m(o,s=>J(s))}async createPolicyDefinition(t={},r){return await(await this.createPolicyDefinitionRaw(t,r)).value()}async createPolicyDefinitionFromJsonLdRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/policy-page/create-policy-definition-json-ld",method:"POST",headers:a,query:i,body:Yo(t.policyDefinitionCreateFromJsonLdDto)},r);return new m(o,s=>J(s))}async createPolicyDefinitionFromJsonLd(t={},r){return await(await this.createPolicyDefinitionFromJsonLdRaw(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:Ko(t.policyDefinitionCreateDto)},r);return new m(o,s=>J(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:dc(t.vaultSecretCreateSubmit)},r);return new m(o,s=>J(s))}async createVaultSecret(t={},r){return await(await this.createVaultSecretRaw(t,r)).value()}async deleteAssetRaw(t,r){if(t.assetId==null)throw new P("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 m(o,s=>J(s))}async deleteAsset(t,r){return await(await this.deleteAssetRaw(t,r)).value()}async deleteBusinessPartnerGroupRaw(t,r){if(t.id==null)throw new P("id",'Required parameter "id" was null or undefined when calling deleteBusinessPartnerGroup().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/{id}".replace("{id}",encodeURIComponent(String(t.id))),method:"DELETE",headers:a,query:i},r);return new m(o,s=>J(s))}async deleteBusinessPartnerGroup(t,r){return await(await this.deleteBusinessPartnerGroupRaw(t,r)).value()}async deleteContractDefinitionRaw(t,r){if(t.contractDefinitionId==null)throw new P("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 m(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 P("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 m(o,s=>J(s))}async deletePolicyDefinition(t,r){return await(await this.deletePolicyDefinitionRaw(t,r)).value()}async deleteVaultSecretRaw(t,r){if(t.key==null)throw new P("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 m(o,s=>J(s))}async deleteVaultSecret(t,r){return await(await this.deleteVaultSecretRaw(t,r)).value()}async editAssetRaw(t,r){if(t.assetId==null)throw new P("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:Ps(t.uiAssetEditRequest)},r);return new m(o,s=>J(s))}async editAsset(t,r){return await(await this.editAssetRaw(t,r)).value()}async editVaultSecretRaw(t,r){if(t.key==null)throw new P("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:"PUT",headers:a,query:i,body:gc(t.vaultSecretEditSubmit)},r);return new m(o,s=>J(s))}async editVaultSecret(t,r){return await(await this.editVaultSecretRaw(t,r)).value()}async editVaultSecretPageRaw(t,r){if(t.key==null)throw new P("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 m(o,s=>fc(s))}async editVaultSecretPage(t,r){return await(await this.editVaultSecretPageRaw(t,r)).value()}async getCatalogPageDataOfferRaw(t,r){if(t.dataOfferId==null)throw new P("dataOfferId",'Required parameter "dataOfferId" was null or undefined when calling getCatalogPageDataOffer().');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/{dataOfferId}".replace("{dataOfferId}",encodeURIComponent(String(t.dataOfferId))),method:"GET",headers:a,query:i},r);return new m(o,s=>ne(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 m(o,s=>s.map(ne))}async getCatalogPageDataOffers(t={},r){return await(await this.getCatalogPageDataOffersRaw(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 m(a,o=>ri(o))}async getContractDefinitionPage(t){return await(await this.getContractDefinitionPageRaw(t)).value()}async getContractNegotiationRaw(t,r){if(t.contractNegotiationId==null)throw new P("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 m(o,s=>Vt(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 m(a,o=>Sa(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 m(a,o=>cs(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 m(a,o=>ys(o))}async getTransferHistoryPage(t){return await(await this.getTransferHistoryPageRaw(t)).value()}async getTransferProcessAssetRaw(t,r){if(t.transferProcessId==null)throw new P("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 m(o,s=>z(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:Ei(t.contractNegotiationRequest)},r);return new m(o,s=>Vt(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:wo(t.initiateCustomTransferRequest)},r);return new m(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:Uo(t.initiateTransferRequest)},r);return new m(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:sc(t.uiInitiateTransferRequest)},r);return new m(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 P("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 m(o,s=>tt(s))}async isAssetIdAvailable(t,r){return await(await this.isAssetIdAvailableRaw(t,r)).value()}async isContractDefinitionIdAvailableRaw(t,r){if(t.contractDefinitionId==null)throw new P("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 m(o,s=>tt(s))}async isContractDefinitionIdAvailable(t,r){return await(await this.isContractDefinitionIdAvailableRaw(t,r)).value()}async isPolicyIdAvailableRaw(t,r){if(t.policyId==null)throw new P("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 m(o,s=>tt(s))}async isPolicyIdAvailable(t,r){return await(await this.isPolicyIdAvailableRaw(t,r)).value()}async listAzureStorageBlobsRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/forms/azure-storage-select/blobs",method:"POST",headers:a,query:i,body:wr(t.azureStorageListBlobsRequest)},r);return new m(o)}async listAzureStorageBlobs(t={},r){return await(await this.listAzureStorageBlobsRaw(t,r)).value()}async listAzureStorageContainersRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/forms/azure-storage-select/containers",method:"POST",headers:a,query:i,body:Ur(t.azureStorageListContainersRequest)},r);return new m(o)}async listAzureStorageContainers(t={},r){return await(await this.listAzureStorageContainersRaw(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:"POST",headers:a,query:i,body:Pc(t.vaultSecretQuery)},r);return new m(o,s=>s.map(hc))}async listVaultSecretsPage(t={},r){return await(await this.listVaultSecretsPageRaw(t,r)).value()}async terminateContractAgreementRaw(t,r){if(t.contractAgreementId==null)throw new P("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:zi(t.contractTerminationRequest)},r);return new m(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 m(a,o=>Rs(o))}async uiConfig(t){return await(await this.uiConfigRaw(t)).value()}}class Ac extends ${async getAssetsRaw(t){const r={},i={},a=await this.request({path:"/wrapper/use-case-api/assets",method:"GET",headers:i,query:r},t);return new m(a,o=>o.map(z))}async getAssets(t){return await(await this.getAssetsRaw(t)).value()}async getContractNegotiationStatesRaw(t,r){if(t.requestBody==null)throw new P("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 m(o,s=>s.map(Hi))}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 m(a,o=>qo(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 m(a)}async getSupportedFunctions(t){return await(await this.getSupportedFunctionsRaw(t)).value()}async getTransferProcessEdrRaw(t,r){if(t.transferId==null)throw new P("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 m(o,s=>To(s))}async getTransferProcessEdr(t,r){return await(await this.getTransferProcessEdrRaw(t,r)).value()}async getTransferProcessStatesRaw(t,r){if(t.requestBody==null)throw new P("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 m(o,s=>s.map(hs))}async getTransferProcessStates(t,r){return await(await this.getTransferProcessStatesRaw(t,r)).value()}async negotiateAllRaw(t,r){if(t.negotiateAllQuery==null)throw new P("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:Bo(t.negotiateAllQuery)},r);return new m(o,s=>s.map(Mo))}async negotiateAll(t,r){return await(await this.negotiateAllRaw(t,r)).value()}async queryCatalogRaw(t,r){if(t.catalogQuery==null)throw new P("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:yn(t.catalogQuery)},r);return new m(o,s=>s.map(ne))}async queryCatalog(t,r){return await(await this.queryCatalogRaw(t,r)).value()}async queryCatalogV2Raw(t,r){if(t.catalogQueryV2==null)throw new P("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:Jn(t.catalogQueryV2)},r);return new m(o,s=>s.map(ne))}async queryCatalogV2(t,r){return await(await this.queryCatalogV2Raw(t,r)).value()}async terminateTransferProcessRaw(t,r){if(t.transferId==null)throw new P("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 m(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 Mt;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Mt||(Mt={}));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"]),rp=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 ie=(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 wc=ie;function np(e){wc=e}function ot(){return wc}const st=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}},ip=[];function f(e,t){const r=st({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,ot(),ie].filter(i=>!!i)});e.common.issues.push(r)}class D{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 S;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 D.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 S;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 S=Object.freeze({status:"aborted"}),bc=e=>({status:"dirty",value:e}),A=e=>({status:"valid",value:e}),zt=e=>e.status==="aborted",Zt=e=>e.status==="dirty",ae=e=>e.status==="valid",ct=e=>typeof Promise<"u"&&e instanceof Promise;var y;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(y||(y={}));class E{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 Ic=(e,t)=>{if(ae(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 h(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 D,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(ct(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 Ic(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(ct(a)?a:Promise.resolve(a));return Ic(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:g.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return v.create(this,this._def)}nullable(){return Q.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return R.create(this,this._def)}promise(){return x.create(this,this._def)}or(t){return ue.create([this,t],this._def)}and(t){return de.create(this,t,this._def)}transform(t){return new F({...h(this._def),schema:this,typeName:g.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new ye({...h(this._def),innerType:this,defaultValue:r,typeName:g.ZodDefault})}brand(){return new Rc({typeName:g.ZodBranded,type:this,...h(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new mt({...h(this._def),innerType:this,catchValue:r,typeName:g.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return ge.create(this,t)}readonly(){return gt.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ap=/^c[^\s-]{8,}$/i,op=/^[a-z][a-z0-9]*$/,sp=/^[0-9A-HJKMNP-TV-Z]{26}$/,cp=/^[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,up=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,dp="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Gt;const lp=/^(((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}))$/,fp=/^(([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})))$/,pp=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 mp(e,t){return!!((t==="v4"||!t)&&lp.test(e)||(t==="v6"||!t)&&fp.test(e))}class U 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}),S}const i=new D;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")up.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")Gt||(Gt=new RegExp(dp,"u")),Gt.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")cp.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")ap.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")op.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")sp.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"?pp(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"?mp(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,...y.errToObj(i)})}_addCheck(t){return new U({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...y.errToObj(t)})}url(t){return this._addCheck({kind:"url",...y.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...y.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...y.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...y.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...y.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...y.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...y.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,...y.errToObj(t==null?void 0:t.message)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...y.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...y.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...y.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...y.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...y.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...y.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...y.errToObj(r)})}nonempty(t){return this.min(1,y.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:g.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...h(e)})};function yp(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 B 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}),S}let i;const a=new D;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"?yp(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,y.toString(r))}gt(t,r){return this.setLimit("min",t,!1,y.toString(r))}lte(t,r){return this.setLimit("max",t,!0,y.toString(r))}lt(t,r){return this.setLimit("max",t,!1,y.toString(r))}setLimit(t,r,i,a){return new B({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:y.toString(a)}]})}_addCheck(t){return new B({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:y.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:y.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:y.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:y.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:y.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:y.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)}}B.create=e=>new B({checks:[],typeName:g.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...h(e)});class V 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}),S}let i;const a=new D;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,y.toString(r))}gt(t,r){return this.setLimit("min",t,!1,y.toString(r))}lte(t,r){return this.setLimit("max",t,!0,y.toString(r))}lt(t,r){return this.setLimit("max",t,!1,y.toString(r))}setLimit(t,r,i,a){return new V({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:y.toString(a)}]})}_addCheck(t){return new V({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:y.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:y.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}}V.create=e=>{var t;return new V({checks:[],typeName:g.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...h(e)})};class oe 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}),S}return A(t.data)}}oe.create=e=>new oe({typeName:g.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...h(e)});class Z 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}),S}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_date}),S}const i=new D;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 Z({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:y.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:y.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}}Z.create=e=>new Z({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:g.ZodDate,...h(e)});class ut 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}),S}return A(t.data)}}ut.create=e=>new ut({typeName:g.ZodSymbol,...h(e)});class se 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}),S}return A(t.data)}}se.create=e=>new se({typeName:g.ZodUndefined,...h(e)});class ce 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}),S}return A(t.data)}}ce.create=e=>new ce({typeName:g.ZodNull,...h(e)});class Y extends T{constructor(){super(...arguments),this._any=!0}_parse(t){return A(t.data)}}Y.create=e=>new Y({typeName:g.ZodAny,...h(e)});class G extends T{constructor(){super(...arguments),this._unknown=!0}_parse(t){return A(t.data)}}G.create=e=>new G({typeName:g.ZodUnknown,...h(e)});class q extends T{_parse(t){const r=this._getOrReturnCtx(t);return f(r,{code:u.invalid_type,expected:l.never,received:r.parsedType}),S}}q.create=e=>new q({typeName:g.ZodNever,...h(e)});class dt 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}),S}return A(t.data)}}dt.create=e=>new dt({typeName:g.ZodVoid,...h(e)});class R 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}),S;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 E(r,s,r.path,c)))).then(s=>D.mergeArray(i,s));const o=[...r.data].map((s,c)=>a.type._parseSync(new E(r,s,r.path,c)));return D.mergeArray(i,o)}get element(){return this._def.type}min(t,r){return new R({...this._def,minLength:{value:t,message:y.toString(r)}})}max(t,r){return new R({...this._def,maxLength:{value:t,message:y.toString(r)}})}length(t,r){return new R({...this._def,exactLength:{value:t,message:y.toString(r)}})}nonempty(t){return this.min(1,t)}}R.create=(e,t)=>new R({type:e,minLength:null,maxLength:null,exactLength:null,typeName:g.ZodArray,...h(t)});function W(e){if(e instanceof C){const t={};for(const r in e.shape){const i=e.shape[r];t[r]=v.create(W(i))}return new C({...e._def,shape:()=>t})}else return e instanceof R?new R({...e._def,type:W(e.element)}):e instanceof v?v.create(W(e.unwrap())):e instanceof Q?Q.create(W(e.unwrap())):e instanceof _?_.create(e.items.map(t=>W(t))):e}class C 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}),S}const{status:i,ctx:a}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),c=[];if(!(this._def.catchall instanceof q&&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],b=a.data[d];p.push({key:{status:"valid",value:d},value:O._parse(new E(a,b,a.path,d)),alwaysSet:d in a.data})}if(this._def.catchall instanceof q){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 b=a.data[O];p.push({key:{status:"valid",value:O},value:d._parse(new E(a,b,a.path,O)),alwaysSet:O in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const d=[];for(const O of p){const b=await O.key;d.push({key:b,value:await O.value,alwaysSet:O.alwaysSet})}return d}).then(d=>D.mergeObjectSync(i,d)):D.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(t){return y.errToObj,new C({...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=y.errToObj(t).message)!==null&&c!==void 0?c:p}:{message:p}}}:{}})}strip(){return new C({...this._def,unknownKeys:"strip"})}passthrough(){return new C({...this._def,unknownKeys:"passthrough"})}extend(t){return new C({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new C({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:g.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new C({...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 C({...this._def,shape:()=>r})}omit(t){const r={};return N.objectKeys(this.shape).forEach(i=>{t[i]||(r[i]=this.shape[i])}),new C({...this._def,shape:()=>r})}deepPartial(){return W(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 C({...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 v;)o=o._def.innerType;r[i]=o}}),new C({...this._def,shape:()=>r})}keyof(){return Uc(N.objectKeys(this.shape))}}C.create=(e,t)=>new C({shape:()=>e,unknownKeys:"strip",catchall:q.create(),typeName:g.ZodObject,...h(t)}),C.strictCreate=(e,t)=>new C({shape:()=>e,unknownKeys:"strict",catchall:q.create(),typeName:g.ZodObject,...h(t)}),C.lazycreate=(e,t)=>new C({shape:e,unknownKeys:"strip",catchall:q.create(),typeName:g.ZodObject,...h(t)});class ue 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}),S}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}),S}}get options(){return this._def.options}}ue.create=(e,t)=>new ue({options:e,typeName:g.ZodUnion,...h(t)});const lt=e=>e instanceof fe?lt(e.schema):e instanceof F?lt(e.innerType()):e instanceof pe?[e.value]:e instanceof M?e.options:e instanceof me?Object.keys(e.enum):e instanceof ye?lt(e._def.innerType):e instanceof se?[void 0]:e instanceof ce?[null]:null;class ft 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}),S;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]}),S)}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=lt(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 ft({typeName:g.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:a,...h(i)})}}function Kt(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=Kt(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=Kt(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 de extends T{_parse(t){const{status:r,ctx:i}=this._processInputParams(t),a=(o,s)=>{if(zt(o)||zt(s))return S;const c=Kt(o.value,s.value);return c.valid?((Zt(o)||Zt(s))&&r.dirty(),{status:r.value,value:c.data}):(f(i,{code:u.invalid_intersection_types}),S)};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}))}}de.create=(e,t,r)=>new de({left:e,right:t,typeName:g.ZodIntersection,...h(r)});class _ 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}),S;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"}),S;!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 E(i,s,i.path,c)):null}).filter(s=>!!s);return i.common.async?Promise.all(o).then(s=>D.mergeArray(r,s)):D.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new _({...this._def,rest:t})}}_.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _({items:e,typeName:g.ZodTuple,rest:null,...h(t)})};class le 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}),S;const a=[],o=this._def.keyType,s=this._def.valueType;for(const c in i.data)a.push({key:o._parse(new E(i,c,i.path,c)),value:s._parse(new E(i,i.data[c],i.path,c))});return i.common.async?D.mergeObjectAsync(r,a):D.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(t,r,i){return r instanceof T?new le({keyType:t,valueType:r,typeName:g.ZodRecord,...h(i)}):new le({keyType:U.create(),valueType:t,typeName:g.ZodRecord,...h(r)})}}class pt 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}),S;const a=this._def.keyType,o=this._def.valueType,s=[...i.data.entries()].map(([c,p],d)=>({key:a._parse(new E(i,c,i.path,[d,"key"])),value:o._parse(new E(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 S;(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 S;(d.status==="dirty"||O.status==="dirty")&&r.dirty(),c.set(d.value,O.value)}return{status:r.value,value:c}}}}pt.create=(e,t,r)=>new pt({valueType:t,keyType:e,typeName:g.ZodMap,...h(r)});class K 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}),S;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 S;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 E(i,p,i.path,d)));return i.common.async?Promise.all(c).then(p=>s(p)):s(c)}min(t,r){return new K({...this._def,minSize:{value:t,message:y.toString(r)}})}max(t,r){return new K({...this._def,maxSize:{value:t,message:y.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}K.create=(e,t)=>new K({valueType:e,minSize:null,maxSize:null,typeName:g.ZodSet,...h(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}),S;function i(c,p){return st({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ot(),ie].filter(d=>!!d),issueData:{code:u.invalid_arguments,argumentsError:p}})}function a(c,p){return st({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ot(),ie].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(Qt=>{throw d.addIssue(i(p,Qt)),d}),b=await Reflect.apply(s,this,O);return await c._def.returns._def.type.parseAsync(b,o).catch(Qt=>{throw d.addIssue(a(b,Qt)),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),b=c._def.returns.safeParse(O,o);if(!b.success)throw new I([a(O,b.error)]);return b.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new X({...this._def,args:_.create(t).rest(G.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||_.create([]).rest(G.create()),returns:r||G.create(),typeName:g.ZodFunction,...h(i)})}}class fe 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})}}fe.create=(e,t)=>new fe({getter:e,typeName:g.ZodLazy,...h(t)});class pe 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}),S}return{status:"valid",value:t.data}}get value(){return this._def.value}}pe.create=(e,t)=>new pe({value:e,typeName:g.ZodLiteral,...h(t)});function Uc(e,t){return new M({values:e,typeName:g.ZodEnum,...h(t)})}class M 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}),S}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}),S}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 M.create(t)}exclude(t){return M.create(this.options.filter(r=>!t.includes(r)))}}M.create=Uc;class me 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}),S}if(r.indexOf(t.data)===-1){const a=N.objectValues(r);return f(i,{received:i.data,code:u.invalid_enum_value,options:a}),S}return A(t.data)}get enum(){return this._def.values}}me.create=(e,t)=>new me({values:e,typeName:g.ZodNativeEnum,...h(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}),S;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:g.ZodPromise,...h(t)});class F extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===g.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"?S:(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"?S:(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(!ae(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=>ae(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:g.ZodEffects,effect:t,...h(r)}),F.createWithPreprocess=(e,t,r)=>new F({schema:t,effect:{type:"preprocess",transform:e},typeName:g.ZodEffects,...h(r)});class v extends T{_parse(t){return this._getType(t)===l.undefined?A(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}v.create=(e,t)=>new v({innerType:e,typeName:g.ZodOptional,...h(t)});class Q extends T{_parse(t){return this._getType(t)===l.null?A(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Q.create=(e,t)=>new Q({innerType:e,typeName:g.ZodNullable,...h(t)});class ye 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}}ye.create=(e,t)=>new ye({innerType:e,typeName:g.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...h(t)});class mt 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 ct(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}}mt.create=(e,t)=>new mt({innerType:e,typeName:g.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...h(t)});class yt 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}),S}return{status:"valid",value:t.data}}}yt.create=e=>new yt({typeName:g.ZodNaN,...h(e)});const gp=Symbol("zod_brand");class Rc 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 ge 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"?S:o.status==="dirty"?(r.dirty(),bc(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"?S: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 ge({in:t,out:r,typeName:g.ZodPipeline})}}class gt extends T{_parse(t){const r=this._def.innerType._parse(t);return ae(r)&&(r.value=Object.freeze(r.value)),r}}gt.create=(e,t)=>new gt({innerType:e,typeName:g.ZodReadonly,...h(t)});const Fc=(e,t={},r)=>e?Y.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})}}):Y.create(),Sp={object:C.lazycreate};var g;(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"})(g||(g={}));const hp=(e,t={message:`Input not instance of ${e.name}`})=>Fc(r=>r instanceof e,t),Ec=U.create,_c=B.create,Tp=yt.create,Op=V.create,kc=oe.create,Np=Z.create,Pp=ut.create,Cp=se.create,Jp=ce.create,Dp=Y.create,Ap=G.create,wp=q.create,bp=dt.create,Ip=R.create,Up=C.create,Rp=C.strictCreate,Fp=ue.create,Ep=ft.create,_p=de.create,kp=_.create,qp=le.create,vp=pt.create,Lp=K.create,Hp=X.create,Bp=fe.create,Vp=pe.create,Mp=M.create,zp=me.create,Zp=x.create,qc=F.create,Gp=v.create,Kp=Q.create,Qp=F.createWithPreprocess,$p=ge.create;var Se=Object.freeze({__proto__:null,defaultErrorMap:ie,setErrorMap:np,getErrorMap:ot,makeIssue:st,EMPTY_PATH:ip,addIssueToContext:f,ParseStatus:D,INVALID:S,DIRTY:bc,OK:A,isAborted:zt,isDirty:Zt,isValid:ae,isAsync:ct,get util(){return N},get objectUtil(){return Mt},ZodParsedType:l,getParsedType:H,ZodType:T,ZodString:U,ZodNumber:B,ZodBigInt:V,ZodBoolean:oe,ZodDate:Z,ZodSymbol:ut,ZodUndefined:se,ZodNull:ce,ZodAny:Y,ZodUnknown:G,ZodNever:q,ZodVoid:dt,ZodArray:R,ZodObject:C,ZodUnion:ue,ZodDiscriminatedUnion:ft,ZodIntersection:de,ZodTuple:_,ZodRecord:le,ZodMap:pt,ZodSet:K,ZodFunction:X,ZodLazy:fe,ZodLiteral:pe,ZodEnum:M,ZodNativeEnum:me,ZodPromise:x,ZodEffects:F,ZodTransformer:F,ZodOptional:v,ZodNullable:Q,ZodDefault:ye,ZodCatch:mt,ZodNaN:yt,BRAND:gp,ZodBranded:Rc,ZodPipeline:ge,ZodReadonly:gt,custom:Fc,Schema:T,ZodSchema:T,late:Sp,get ZodFirstPartyTypeKind(){return g},coerce:{string:e=>U.create({...e,coerce:!0}),number:e=>B.create({...e,coerce:!0}),boolean:e=>oe.create({...e,coerce:!0}),bigint:e=>V.create({...e,coerce:!0}),date:e=>Z.create({...e,coerce:!0})},any:Dp,array:Ip,bigint:Op,boolean:kc,date:Np,discriminatedUnion:Ep,effect:qc,enum:Mp,function:Hp,instanceof:hp,intersection:_p,lazy:Bp,literal:Vp,map:vp,nan:Tp,nativeEnum:zp,never:wp,null:Jp,nullable:Kp,number:_c,object:Up,oboolean:()=>kc().optional(),onumber:()=>_c().optional(),optional:Gp,ostring:()=>Ec().optional(),pipeline:$p,preprocess:Qp,promise:Zp,record:qp,set:Lp,strictObject:Rp,string:Ec,symbol:Pp,transformer:qc,tuple:kp,undefined:Cp,union:Fp,unknown:Ap,void:bp,NEVER:S,ZodIssueCode:u,quotelessJson:rp,ZodError:I});function Yp(e){return e===401||e===403}function Wp(e){return Object.entries(e).map(([t,r])=>`${encodeURIComponent(t)}=${encodeURIComponent(r)}`).join("&")}const Xp=Se.object({access_token:Se.string().min(1),token_type:Se.string(),expires_in:Se.number(),scope:Se.string()});async function xp(e){const r=await(await fetch(e.tokenUrl,{method:"POST",body:Wp({grant_type:"client_credentials",client_id:e.clientId,client_secret:e.clientSecret}),headers:{"Content-Type":"application/x-www-form-urlencoded"}})).json();return jp(r)}function jp(e){const t=Xp.safeParse(e);if(!t.success)throw new Error("Bad access token response");return t.data}class em{constructor(t){k(this,"activeRequest",null);k(this,"refreshTimeout");k(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=xp(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 vc(e,t){e.headers=tm("Authorization",`Bearer ${t}`,e.headers)}function tm(e,t,r){return r?Array.isArray(r)?r.map(([i,a])=>i!==e?[i,a]:[e,t]):rm(r)?(r.has(e)?r.set(e,t):r.append(e,t),r):(r[e]=t,r):(r={},r[e]=t,r)}function rm(e){return"append"in e&&"delete"in e&&"get"in e&&"has"in e&&"set"in e&&"forEach"in e}function nm(e){const t=new em(e);return{pre:async r=>{const i=await t.getAccessToken();return vc(r.init,i),Promise.resolve({url:r.url,init:r.init})},post:async r=>{if(Yp(r.response.status)){const i=await t.refreshAccessToken();return vc(r.init,i),await fetch(r.url,r.init)}return Promise.resolve(r.response)}}}function im(e){const t=[];let r={};e.clientCredentials&&t.push(nm(e.clientCredentials)),e.managementApiKey&&(r=am(e.managementApiKey));const i=new L({basePath:e.managementApiUrl,headers:r,credentials:"same-origin",middleware:t,...e.configOverrides});return{uiApi:new Dc(i),useCaseApi:new Ac(i),enterpriseEditionApi:new Jc(i)}}function am(e){return{"X-Api-Key":e}}n.AssetFilterConstraintFromJSON=Tt,n.AssetFilterConstraintFromJSONTyped=rr,n.AssetFilterConstraintOperator=he,n.AssetFilterConstraintOperatorFromJSON=er,n.AssetFilterConstraintOperatorFromJSONTyped=tr,n.AssetFilterConstraintOperatorToJSON=Kc,n.AssetFilterConstraintOperatorToJSONTyped=Qc,n.AssetFilterConstraintToJSON=Ot,n.AssetFilterConstraintToJSONTyped=nr,n.AssetsPageEntryFromJSON=ar,n.AssetsPageEntryFromJSONTyped=or,n.AssetsPageEntryToJSON=sr,n.AssetsPageEntryToJSONTyped=cr,n.AssetsPageRequestFromJSON=cu,n.AssetsPageRequestFromJSONTyped=hr,n.AssetsPageRequestToJSON=Tr,n.AssetsPageRequestToJSONTyped=Or,n.AssetsPageResultFromJSON=Cr,n.AssetsPageResultFromJSONTyped=Jr,n.AssetsPageResultToJSON=lu,n.AssetsPageResultToJSONTyped=Dr,n.AssetsPageSortProperty=Oe,n.AssetsPageSortPropertyFromJSON=lr,n.AssetsPageSortPropertyFromJSONTyped=fr,n.AssetsPageSortPropertyToJSON=tu,n.AssetsPageSortPropertyToJSONTyped=ru,n.AzureStorageListBlobsRequestFromJSON=pu,n.AzureStorageListBlobsRequestFromJSONTyped=Ar,n.AzureStorageListBlobsRequestToJSON=wr,n.AzureStorageListBlobsRequestToJSONTyped=br,n.AzureStorageListContainersRequestFromJSON=yu,n.AzureStorageListContainersRequestFromJSONTyped=Ir,n.AzureStorageListContainersRequestToJSON=Ur,n.AzureStorageListContainersRequestToJSONTyped=Rr,n.BASE_PATH=w,n.BaseAPI=$,n.BlobApiResponse=Zc,n.BuildInfoFromJSON=Fr,n.BuildInfoFromJSONTyped=Er,n.BuildInfoToJSON=Su,n.BuildInfoToJSONTyped=_r,n.BusinessPartnerGroupCreateSubmitFromJSON=Tu,n.BusinessPartnerGroupCreateSubmitFromJSONTyped=kr,n.BusinessPartnerGroupCreateSubmitToJSON=qr,n.BusinessPartnerGroupCreateSubmitToJSONTyped=vr,n.BusinessPartnerGroupEditPageFromJSON=Lr,n.BusinessPartnerGroupEditPageFromJSONTyped=Hr,n.BusinessPartnerGroupEditPageToJSON=Nu,n.BusinessPartnerGroupEditPageToJSONTyped=Br,n.BusinessPartnerGroupEditSubmitFromJSON=Cu,n.BusinessPartnerGroupEditSubmitFromJSONTyped=Vr,n.BusinessPartnerGroupEditSubmitToJSON=Mr,n.BusinessPartnerGroupEditSubmitToJSONTyped=zr,n.BusinessPartnerGroupListPageEntryFromJSON=Zr,n.BusinessPartnerGroupListPageEntryFromJSONTyped=Gr,n.BusinessPartnerGroupListPageEntryToJSON=Du,n.BusinessPartnerGroupListPageEntryToJSONTyped=Kr,n.BusinessPartnerGroupQueryFromJSON=wu,n.BusinessPartnerGroupQueryFromJSONTyped=Qr,n.BusinessPartnerGroupQueryToJSON=$r,n.BusinessPartnerGroupQueryToJSONTyped=Yr,n.COLLECTION_FORMATS=Bc,n.CallbackAddressDtoFromJSON=Ce,n.CallbackAddressDtoFromJSONTyped=jr,n.CallbackAddressDtoToJSON=Je,n.CallbackAddressDtoToJSONTyped=en,n.CallbackAddressEventType=Pe,n.CallbackAddressEventTypeFromJSON=Wr,n.CallbackAddressEventTypeFromJSONTyped=Xr,n.CallbackAddressEventTypeToJSON=xr,n.CallbackAddressEventTypeToJSONTyped=Iu,n.CatalogFilterExpressionFromJSON=dn,n.CatalogFilterExpressionFromJSONTyped=ln,n.CatalogFilterExpressionLiteralFromJSON=nn,n.CatalogFilterExpressionLiteralFromJSONTyped=an,n.CatalogFilterExpressionLiteralToJSON=on,n.CatalogFilterExpressionLiteralToJSONTyped=sn,n.CatalogFilterExpressionLiteralType=De,n.CatalogFilterExpressionLiteralTypeFromJSON=tn,n.CatalogFilterExpressionLiteralTypeFromJSONTyped=rn,n.CatalogFilterExpressionLiteralTypeToJSON=Fu,n.CatalogFilterExpressionLiteralTypeToJSONTyped=Eu,n.CatalogFilterExpressionOperator=Ae,n.CatalogFilterExpressionOperatorFromJSON=cn,n.CatalogFilterExpressionOperatorFromJSONTyped=un,n.CatalogFilterExpressionOperatorToJSON=qu,n.CatalogFilterExpressionOperatorToJSONTyped=vu,n.CatalogFilterExpressionToJSON=fn,n.CatalogFilterExpressionToJSONTyped=pn,n.CatalogQueryFromJSON=Bu,n.CatalogQueryFromJSONTyped=mn,n.CatalogQueryToJSON=yn,n.CatalogQueryToJSONTyped=gn,n.CatalogQueryV2FromJSON=Ku,n.CatalogQueryV2FromJSONTyped=Cn,n.CatalogQueryV2ToJSON=Jn,n.CatalogQueryV2ToJSONTyped=Dn,n.CatalogSortByDirection=we,n.CatalogSortByDirectionFromJSON=Sn,n.CatalogSortByDirectionFromJSONTyped=hn,n.CatalogSortByDirectionToJSON=Mu,n.CatalogSortByDirectionToJSONTyped=zu,n.CatalogSortByFromJSON=Tn,n.CatalogSortByFromJSONTyped=On,n.CatalogSortByToJSON=Nn,n.CatalogSortByToJSONTyped=Pn,n.Configuration=L,n.ConnectorLimitsFromJSON=An,n.ConnectorLimitsFromJSONTyped=wn,n.ConnectorLimitsToJSON=$u,n.ConnectorLimitsToJSONTyped=bn,n.ContractAgreementDirection=be,n.ContractAgreementDirectionFromJSON=Ie,n.ContractAgreementDirectionFromJSONTyped=In,n.ContractAgreementDirectionToJSON=Wu,n.ContractAgreementDirectionToJSONTyped=Xu,n.ContractAgreementTerminationInfoFromJSON=wt,n.ContractAgreementTerminationInfoFromJSONTyped=Fn,n.ContractAgreementTerminationInfoToJSON=bt,n.ContractAgreementTerminationInfoToJSONTyped=En,n.ContractAgreementTransferProcessFromJSON=Ln,n.ContractAgreementTransferProcessFromJSONTyped=Hn,n.ContractAgreementTransferProcessToJSON=Bn,n.ContractAgreementTransferProcessToJSONTyped=Vn,n.ContractDefinitionEntryFromJSON=xn,n.ContractDefinitionEntryFromJSONTyped=jn,n.ContractDefinitionEntryToJSON=ei,n.ContractDefinitionEntryToJSONTyped=ti,n.ContractDefinitionPageFromJSON=ri,n.ContractDefinitionPageFromJSONTyped=ni,n.ContractDefinitionPageToJSON=Sd,n.ContractDefinitionPageToJSONTyped=ii,n.ContractDefinitionRequestFromJSON=Td,n.ContractDefinitionRequestFromJSONTyped=ai,n.ContractDefinitionRequestToJSON=oi,n.ContractDefinitionRequestToJSONTyped=si,n.ContractDetailPageResultFromJSON=Ii,n.ContractDetailPageResultFromJSONTyped=Ui,n.ContractDetailPageResultToJSON=Hd,n.ContractDetailPageResultToJSONTyped=Ri,n.ContractNegotiationRequestFromJSON=Vd,n.ContractNegotiationRequestFromJSONTyped=Fi,n.ContractNegotiationRequestToJSON=Ei,n.ContractNegotiationRequestToJSONTyped=_i,n.ContractNegotiationSimplifiedState=Ze,n.ContractNegotiationSimplifiedStateFromJSON=ki,n.ContractNegotiationSimplifiedStateFromJSONTyped=qi,n.ContractNegotiationSimplifiedStateToJSON=zd,n.ContractNegotiationSimplifiedStateToJSONTyped=Zd,n.ContractNegotiationStateFromJSON=Ge,n.ContractNegotiationStateFromJSONTyped=vi,n.ContractNegotiationStateResultFromJSON=Hi,n.ContractNegotiationStateResultFromJSONTyped=Bi,n.ContractNegotiationStateResultToJSON=Qd,n.ContractNegotiationStateResultToJSONTyped=Vi,n.ContractNegotiationStateToJSON=Ke,n.ContractNegotiationStateToJSONTyped=Li,n.ContractTerminatedBy=Ue,n.ContractTerminatedByFromJSON=Un,n.ContractTerminatedByFromJSONTyped=Rn,n.ContractTerminatedByToJSON=ju,n.ContractTerminatedByToJSONTyped=ed,n.ContractTerminationRequestFromJSON=Yd,n.ContractTerminationRequestFromJSONTyped=Mi,n.ContractTerminationRequestToJSON=zi,n.ContractTerminationRequestToJSONTyped=Zi,n.ContractTerminationStatus=qe,n.ContractTerminationStatusFromJSON=ve,n.ContractTerminationStatusFromJSONTyped=ci,n.ContractTerminationStatusToJSON=Nd,n.ContractTerminationStatusToJSONTyped=Pd,n.ContractsPageEntryFromJSON=Gi,n.ContractsPageEntryFromJSONTyped=Ki,n.ContractsPageEntryToJSON=Qi,n.ContractsPageEntryToJSONTyped=$i,n.ContractsPageRequestFromJSON=rl,n.ContractsPageRequestFromJSONTyped=ta,n.ContractsPageRequestToJSON=ra,n.ContractsPageRequestToJSONTyped=na,n.ContractsPageResultFromJSON=ia,n.ContractsPageResultFromJSONTyped=aa,n.ContractsPageResultToJSON=il,n.ContractsPageResultToJSONTyped=oa,n.ContractsPageSortProperty=Qe,n.ContractsPageSortPropertyFromJSON=Yi,n.ContractsPageSortPropertyFromJSONTyped=Wi,n.ContractsPageSortPropertyToJSON=xd,n.ContractsPageSortPropertyToJSONTyped=jd,n.DashboardCxDidConfigFromJSON=sa,n.DashboardCxDidConfigFromJSONTyped=ca,n.DashboardCxDidConfigToJSON=ua,n.DashboardCxDidConfigToJSONTyped=da,n.DashboardDapsConfigFromJSON=la,n.DashboardDapsConfigFromJSONTyped=fa,n.DashboardDapsConfigToJSON=pa,n.DashboardDapsConfigToJSONTyped=ma,n.DashboardPageFromJSON=Sa,n.DashboardPageFromJSONTyped=ha,n.DashboardPageToJSON=ul,n.DashboardPageToJSONTyped=Ta,n.DashboardTransferAmountsFromJSON=Et,n.DashboardTransferAmountsFromJSONTyped=ya,n.DashboardTransferAmountsToJSON=_t,n.DashboardTransferAmountsToJSONTyped=ga,n.DataOfferCreateRequestFromJSON=Bl,n.DataOfferCreateRequestFromJSONTyped=go,n.DataOfferCreateRequestToJSON=So,n.DataOfferCreateRequestToJSONTyped=ho,n.DataOfferPolicyCreateType=$e,n.DataOfferPolicyCreateTypeFromJSON=Oa,n.DataOfferPolicyCreateTypeFromJSONTyped=Na,n.DataOfferPolicyCreateTypeToJSON=ll,n.DataOfferPolicyCreateTypeToJSONTyped=fl,n.DataOfferPublishType=Ye,n.DataOfferPublishTypeFromJSON=Pa,n.DataOfferPublishTypeFromJSONTyped=Ca,n.DataOfferPublishTypeToJSON=ml,n.DataOfferPublishTypeToJSONTyped=yl,n.DataSourceAvailability=Te,n.DataSourceAvailabilityFromJSON=Nt,n.DataSourceAvailabilityFromJSONTyped=ir,n.DataSourceAvailabilityToJSON=Wc,n.DataSourceAvailabilityToJSONTyped=Xc,n.DataSourceType=We,n.DataSourceTypeFromJSON=Ja,n.DataSourceTypeFromJSONTyped=Da,n.DataSourceTypeToJSON=Sl,n.DataSourceTypeToJSONTyped=hl,n.DefaultConfig=$t,n.EdrDtoFromJSON=To,n.EdrDtoFromJSONTyped=Oo,n.EdrDtoToJSON=Ml,n.EdrDtoToJSONTyped=No,n.EnterpriseEditionApi=Jc,n.FetchError=Wt,n.IdAvailabilityResponseFromJSON=tt,n.IdAvailabilityResponseFromJSONTyped=Po,n.IdAvailabilityResponseToJSON=Zl,n.IdAvailabilityResponseToJSONTyped=Co,n.IdResponseDtoFromJSON=J,n.IdResponseDtoFromJSONTyped=Jo,n.IdResponseDtoToJSON=Kl,n.IdResponseDtoToJSONTyped=Do,n.InitiateCustomTransferRequestFromJSON=$l,n.InitiateCustomTransferRequestFromJSONTyped=Ao,n.InitiateCustomTransferRequestToJSON=wo,n.InitiateCustomTransferRequestToJSONTyped=bo,n.InitiateTransferRequestFromJSON=Wl,n.InitiateTransferRequestFromJSONTyped=Io,n.InitiateTransferRequestToJSON=Uo,n.InitiateTransferRequestToJSONTyped=Ro,n.JSONApiResponse=m,n.KpiResultFromJSON=qo,n.KpiResultFromJSONTyped=vo,n.KpiResultToJSON=jl,n.KpiResultToJSONTyped=Lo,n.NegotiateAllQueryFromJSON=tf,n.NegotiateAllQueryFromJSONTyped=Ho,n.NegotiateAllQueryToJSON=Bo,n.NegotiateAllQueryToJSONTyped=Vo,n.NegotiateAllResultFromJSON=Mo,n.NegotiateAllResultFromJSONTyped=zo,n.NegotiateAllResultToJSON=nf,n.NegotiateAllResultToJSONTyped=Zo,n.OperatorDto=Ve,n.OperatorDtoFromJSON=pi,n.OperatorDtoFromJSONTyped=mi,n.OperatorDtoToJSON=Ad,n.OperatorDtoToJSONTyped=wd,n.PaginationRequestFromJSON=Pt,n.PaginationRequestFromJSONTyped=ur,n.PaginationRequestToJSON=Ct,n.PaginationRequestToJSONTyped=dr,n.PaginationResultFromJSON=Dt,n.PaginationResultFromJSONTyped=Nr,n.PaginationResultToJSON=At,n.PaginationResultToJSONTyped=Pr,n.PolicyDefinitionCreateDtoFromJSON=of,n.PolicyDefinitionCreateDtoFromJSONTyped=Go,n.PolicyDefinitionCreateDtoToJSON=Ko,n.PolicyDefinitionCreateDtoToJSONTyped=Qo,n.PolicyDefinitionCreateFromJsonLdDtoFromJSON=cf,n.PolicyDefinitionCreateFromJsonLdDtoFromJSONTyped=$o,n.PolicyDefinitionCreateFromJsonLdDtoToJSON=Yo,n.PolicyDefinitionCreateFromJsonLdDtoToJSONTyped=Wo,n.PolicyDefinitionCreateRequestFromJSON=lf,n.PolicyDefinitionCreateRequestFromJSONTyped=ts,n.PolicyDefinitionCreateRequestToJSON=rs,n.PolicyDefinitionCreateRequestToJSONTyped=ns,n.PolicyDefinitionDtoFromJSON=is,n.PolicyDefinitionDtoFromJSONTyped=as,n.PolicyDefinitionDtoToJSON=os,n.PolicyDefinitionDtoToJSONTyped=ss,n.PolicyDefinitionPageFromJSON=cs,n.PolicyDefinitionPageFromJSONTyped=us,n.PolicyDefinitionPageToJSON=mf,n.PolicyDefinitionPageToJSONTyped=ds,n.RequiredError=P,n.ResponseError=Yt,n.SortByDirection=Ne,n.SortByDirectionFromJSON=Jt,n.SortByDirectionFromJSONTyped=pr,n.SortByDirectionToJSON=iu,n.SortByDirectionToJSONTyped=au,n.SortByRequestAssetsPageSortPropertyFromJSON=mr,n.SortByRequestAssetsPageSortPropertyFromJSONTyped=yr,n.SortByRequestAssetsPageSortPropertyToJSON=gr,n.SortByRequestAssetsPageSortPropertyToJSONTyped=Sr,n.SortByRequestContractsPageSortPropertyFromJSON=Xi,n.SortByRequestContractsPageSortPropertyFromJSONTyped=xi,n.SortByRequestContractsPageSortPropertyToJSON=ji,n.SortByRequestContractsPageSortPropertyToJSONTyped=ea,n.TextApiResponse=jt,n.TransferHistoryEntryFromJSON=ls,n.TransferHistoryEntryFromJSONTyped=fs,n.TransferHistoryEntryToJSON=ps,n.TransferHistoryEntryToJSONTyped=ms,n.TransferHistoryPageFromJSON=ys,n.TransferHistoryPageFromJSONTyped=gs,n.TransferHistoryPageToJSON=Sf,n.TransferHistoryPageToJSONTyped=Ss,n.TransferProcessSimplifiedState=Re,n.TransferProcessSimplifiedStateFromJSON=_n,n.TransferProcessSimplifiedStateFromJSONTyped=kn,n.TransferProcessSimplifiedStateToJSON=nd,n.TransferProcessSimplifiedStateToJSONTyped=id,n.TransferProcessStateFromJSON=Fe,n.TransferProcessStateFromJSONTyped=qn,n.TransferProcessStateResultFromJSON=hs,n.TransferProcessStateResultFromJSONTyped=Ts,n.TransferProcessStateResultToJSON=Tf,n.TransferProcessStateResultToJSONTyped=Os,n.TransferProcessStateToJSON=Ee,n.TransferProcessStateToJSONTyped=vn,n.TransferProcessStatesDtoFromJSON=Fo,n.TransferProcessStatesDtoFromJSONTyped=Eo,n.TransferProcessStatesDtoToJSON=_o,n.TransferProcessStatesDtoToJSONTyped=ko,n.UIApi=Dc,n.UiAssetCreateRequestFromJSON=po,n.UiAssetCreateRequestFromJSONTyped=mo,n.UiAssetCreateRequestToJSON=et,n.UiAssetCreateRequestToJSONTyped=yo,n.UiAssetEditRequestFromJSON=Nf,n.UiAssetEditRequestFromJSONTyped=Ns,n.UiAssetEditRequestToJSON=Ps,n.UiAssetEditRequestToJSONTyped=Cs,n.UiAssetExtForSphinxFromJSON=Le,n.UiAssetExtForSphinxFromJSONTyped=ui,n.UiAssetExtForSphinxToJSON=He,n.UiAssetExtForSphinxToJSONTyped=di,n.UiAssetFromJSON=z,n.UiAssetFromJSONTyped=li,n.UiAssetToJSON=Be,n.UiAssetToJSONTyped=fi,n.UiConfigFeature=rt,n.UiConfigFeatureFromJSON=Js,n.UiConfigFeatureFromJSONTyped=Ds,n.UiConfigFeatureToJSON=As,n.UiConfigFeatureToJSONTyped=Cf,n.UiConfigFromJSON=Rs,n.UiConfigFromJSONTyped=Fs,n.UiConfigPreconfiguredCounterpartyFromJSON=ws,n.UiConfigPreconfiguredCounterpartyFromJSONTyped=bs,n.UiConfigPreconfiguredCounterpartyToJSON=Is,n.UiConfigPreconfiguredCounterpartyToJSONTyped=Us,n.UiConfigToJSON=Af,n.UiConfigToJSONTyped=Es,n.UiContractNegotiationFromJSON=Vt,n.UiContractNegotiationFromJSONTyped=_s,n.UiContractNegotiationToJSON=bf,n.UiContractNegotiationToJSONTyped=ks,n.UiContractOfferFromJSON=qs,n.UiContractOfferFromJSONTyped=vs,n.UiContractOfferToJSON=Ls,n.UiContractOfferToJSONTyped=Hs,n.UiCriterionFromJSON=It,n.UiCriterionFromJSONTyped=Wn,n.UiCriterionLiteralFromJSON=Zn,n.UiCriterionLiteralFromJSONTyped=Gn,n.UiCriterionLiteralToJSON=Kn,n.UiCriterionLiteralToJSONTyped=Qn,n.UiCriterionLiteralType=_e,n.UiCriterionLiteralTypeFromJSON=Mn,n.UiCriterionLiteralTypeFromJSONTyped=zn,n.UiCriterionLiteralTypeToJSON=cd,n.UiCriterionLiteralTypeToJSONTyped=ud,n.UiCriterionOperator=ke,n.UiCriterionOperatorFromJSON=$n,n.UiCriterionOperatorFromJSONTyped=Yn,n.UiCriterionOperatorToJSON=fd,n.UiCriterionOperatorToJSONTyped=pd,n.UiCriterionToJSON=Ut,n.UiCriterionToJSONTyped=Xn,n.UiDataOfferFromJSON=ne,n.UiDataOfferFromJSONTyped=Bs,n.UiDataOfferToJSON=Rf,n.UiDataOfferToJSONTyped=Vs,n.UiDataSinkAzureStorageFromJSON=Ms,n.UiDataSinkAzureStorageFromJSONTyped=zs,n.UiDataSinkAzureStorageToJSON=Zs,n.UiDataSinkAzureStorageToJSONTyped=Gs,n.UiDataSinkHttpDataPushFromJSON=ec,n.UiDataSinkHttpDataPushFromJSONTyped=tc,n.UiDataSinkHttpDataPushMethod=nt,n.UiDataSinkHttpDataPushMethodFromJSON=Ks,n.UiDataSinkHttpDataPushMethodFromJSONTyped=Qs,n.UiDataSinkHttpDataPushMethodToJSON=_f,n.UiDataSinkHttpDataPushMethodToJSONTyped=kf,n.UiDataSinkHttpDataPushToJSON=rc,n.UiDataSinkHttpDataPushToJSONTyped=nc,n.UiDataSourceAzureStorageFromJSON=Aa,n.UiDataSourceAzureStorageFromJSONTyped=wa,n.UiDataSourceAzureStorageToJSON=ba,n.UiDataSourceAzureStorageToJSONTyped=Ia,n.UiDataSourceFromJSON=Ht,n.UiDataSourceFromJSONTyped=lo,n.UiDataSourceHttpDataFromJSON=ro,n.UiDataSourceHttpDataFromJSONTyped=no,n.UiDataSourceHttpDataMethod=Xe,n.UiDataSourceHttpDataMethodFromJSON=Ua,n.UiDataSourceHttpDataMethodFromJSONTyped=Ra,n.UiDataSourceHttpDataMethodToJSON=Nl,n.UiDataSourceHttpDataMethodToJSONTyped=Pl,n.UiDataSourceHttpDataToJSON=io,n.UiDataSourceHttpDataToJSONTyped=ao,n.UiDataSourceOnRequestFromJSON=oo,n.UiDataSourceOnRequestFromJSONTyped=so,n.UiDataSourceOnRequestToJSON=co,n.UiDataSourceOnRequestToJSONTyped=uo,n.UiDataSourceToJSON=Bt,n.UiDataSourceToJSONTyped=fo,n.UiHttpAuthApiKeyFromJSON=kt,n.UiHttpAuthApiKeyFromJSONTyped=Fa,n.UiHttpAuthApiKeyToJSON=qt,n.UiHttpAuthApiKeyToJSONTyped=Ea,n.UiHttpAuthBasicFromJSON=vt,n.UiHttpAuthBasicFromJSONTyped=_a,n.UiHttpAuthBasicToJSON=Lt,n.UiHttpAuthBasicToJSONTyped=ka,n.UiHttpAuthFromJSON=xa,n.UiHttpAuthFromJSONTyped=ja,n.UiHttpAuthOauth2FromJSON=Ka,n.UiHttpAuthOauth2FromJSONTyped=Qa,n.UiHttpAuthOauth2ToJSON=$a,n.UiHttpAuthOauth2ToJSONTyped=Ya,n.UiHttpAuthToJSON=eo,n.UiHttpAuthToJSONTyped=to,n.UiHttpAuthType=je,n.UiHttpAuthTypeFromJSON=Wa,n.UiHttpAuthTypeFromJSONTyped=Xa,n.UiHttpAuthTypeToJSON=Fl,n.UiHttpAuthTypeToJSONTyped=El,n.UiHttpOauth2AuthType=xe,n.UiHttpOauth2AuthTypeFromJSON=qa,n.UiHttpOauth2AuthTypeFromJSONTyped=va,n.UiHttpOauth2AuthTypeToJSON=Al,n.UiHttpOauth2AuthTypeToJSONTyped=wl,n.UiHttpOauth2PrivateKeyAuthorizationFromJSON=La,n.UiHttpOauth2PrivateKeyAuthorizationFromJSONTyped=Ha,n.UiHttpOauth2PrivateKeyAuthorizationToJSON=Ba,n.UiHttpOauth2PrivateKeyAuthorizationToJSONTyped=Va,n.UiHttpOauth2SharedSecretAuthorizationFromJSON=Ma,n.UiHttpOauth2SharedSecretAuthorizationFromJSONTyped=za,n.UiHttpOauth2SharedSecretAuthorizationToJSON=Za,n.UiHttpOauth2SharedSecretAuthorizationToJSONTyped=Ga,n.UiHttpPushAuthFromJSON=Ws,n.UiHttpPushAuthFromJSONTyped=Xs,n.UiHttpPushAuthToJSON=xs,n.UiHttpPushAuthToJSONTyped=js,n.UiHttpPushAuthType=it,n.UiHttpPushAuthTypeFromJSON=$s,n.UiHttpPushAuthTypeFromJSONTyped=Ys,n.UiHttpPushAuthTypeToJSON=vf,n.UiHttpPushAuthTypeToJSONTyped=Lf,n.UiInitiateTransferRequestFromJSON=Gf,n.UiInitiateTransferRequestFromJSONTyped=oc,n.UiInitiateTransferRequestToJSON=sc,n.UiInitiateTransferRequestToJSONTyped=cc,n.UiInitiateTransferType=at,n.UiInitiateTransferTypeFromJSON=ic,n.UiInitiateTransferTypeFromJSONTyped=ac,n.UiInitiateTransferTypeToJSON=Mf,n.UiInitiateTransferTypeToJSONTyped=zf,n.UiPolicyConstraintFromJSON=Rt,n.UiPolicyConstraintFromJSONTyped=Ni,n.UiPolicyConstraintToJSON=Ft,n.UiPolicyConstraintToJSONTyped=Pi,n.UiPolicyCreateRequestFromJSON=Xo,n.UiPolicyCreateRequestFromJSONTyped=xo,n.UiPolicyCreateRequestToJSON=jo,n.UiPolicyCreateRequestToJSONTyped=es,n.UiPolicyExpressionFromJSON=j,n.UiPolicyExpressionFromJSONTyped=Di,n.UiPolicyExpressionToJSON=ee,n.UiPolicyExpressionToJSONTyped=Ai,n.UiPolicyExpressionType=ze,n.UiPolicyExpressionTypeFromJSON=Ci,n.UiPolicyExpressionTypeFromJSONTyped=Ji,n.UiPolicyExpressionTypeToJSON=_d,n.UiPolicyExpressionTypeToJSONTyped=kd,n.UiPolicyFromJSON=te,n.UiPolicyFromJSONTyped=wi,n.UiPolicyLiteralFromJSON=Si,n.UiPolicyLiteralFromJSONTyped=hi,n.UiPolicyLiteralToJSON=Ti,n.UiPolicyLiteralToJSONTyped=Oi,n.UiPolicyLiteralType=Me,n.UiPolicyLiteralTypeFromJSON=yi,n.UiPolicyLiteralTypeFromJSONTyped=gi,n.UiPolicyLiteralTypeToJSON=Id,n.UiPolicyLiteralTypeToJSONTyped=Ud,n.UiPolicyToJSON=re,n.UiPolicyToJSONTyped=bi,n.UseCaseApi=Ac,n.VaultSecretCreateSubmitFromJSON=Qf,n.VaultSecretCreateSubmitFromJSONTyped=uc,n.VaultSecretCreateSubmitToJSON=dc,n.VaultSecretCreateSubmitToJSONTyped=lc,n.VaultSecretEditPageFromJSON=fc,n.VaultSecretEditPageFromJSONTyped=pc,n.VaultSecretEditPageToJSON=Yf,n.VaultSecretEditPageToJSONTyped=mc,n.VaultSecretEditSubmitFromJSON=Xf,n.VaultSecretEditSubmitFromJSONTyped=yc,n.VaultSecretEditSubmitToJSON=gc,n.VaultSecretEditSubmitToJSONTyped=Sc,n.VaultSecretListPageEntryFromJSON=hc,n.VaultSecretListPageEntryFromJSONTyped=Tc,n.VaultSecretListPageEntryToJSON=jf,n.VaultSecretListPageEntryToJSONTyped=Oc,n.VaultSecretQueryFromJSON=tp,n.VaultSecretQueryFromJSONTyped=Nc,n.VaultSecretQueryToJSON=Pc,n.VaultSecretQueryToJSONTyped=Cc,n.VoidApiResponse=xt,n.buildEdcClient=im,n.canConsumeForm=zc,n.exists=Vc,n.instanceOfAssetFilterConstraint=$c,n.instanceOfAssetFilterConstraintOperator=Gc,n.instanceOfAssetsPageEntry=xc,n.instanceOfAssetsPageRequest=su,n.instanceOfAssetsPageResult=du,n.instanceOfAssetsPageSortProperty=eu,n.instanceOfAzureStorageListBlobsRequest=fu,n.instanceOfAzureStorageListContainersRequest=mu,n.instanceOfBuildInfo=gu,n.instanceOfBusinessPartnerGroupCreateSubmit=hu,n.instanceOfBusinessPartnerGroupEditPage=Ou,n.instanceOfBusinessPartnerGroupEditSubmit=Pu,n.instanceOfBusinessPartnerGroupListPageEntry=Ju,n.instanceOfBusinessPartnerGroupQuery=Au,n.instanceOfCallbackAddressDto=Uu,n.instanceOfCallbackAddressEventType=bu,n.instanceOfCatalogFilterExpression=Lu,n.instanceOfCatalogFilterExpressionLiteral=_u,n.instanceOfCatalogFilterExpressionLiteralType=Ru,n.instanceOfCatalogFilterExpressionOperator=ku,n.instanceOfCatalogQuery=Hu,n.instanceOfCatalogQueryV2=Gu,n.instanceOfCatalogSortBy=Zu,n.instanceOfCatalogSortByDirection=Vu,n.instanceOfConnectorLimits=Qu,n.instanceOfContractAgreementDirection=Yu,n.instanceOfContractAgreementTerminationInfo=td,n.instanceOfContractAgreementTransferProcess=od,n.instanceOfContractDefinitionEntry=yd,n.instanceOfContractDefinitionPage=gd,n.instanceOfContractDefinitionRequest=hd,n.instanceOfContractDetailPageResult=Ld,n.instanceOfContractNegotiationRequest=Bd,n.instanceOfContractNegotiationSimplifiedState=Md,n.instanceOfContractNegotiationState=Gd,n.instanceOfContractNegotiationStateResult=Kd,n.instanceOfContractTerminatedBy=xu,n.instanceOfContractTerminationRequest=$d,n.instanceOfContractTerminationStatus=Od,n.instanceOfContractsPageEntry=Wd,n.instanceOfContractsPageRequest=tl,n.instanceOfContractsPageResult=nl,n.instanceOfContractsPageSortProperty=Xd,n.instanceOfDashboardCxDidConfig=al,n.instanceOfDashboardDapsConfig=ol,n.instanceOfDashboardPage=cl,n.instanceOfDashboardTransferAmounts=sl,n.instanceOfDataOfferCreateRequest=Hl,n.instanceOfDataOfferPolicyCreateType=dl,n.instanceOfDataOfferPublishType=pl,n.instanceOfDataSourceAvailability=Yc,n.instanceOfDataSourceType=gl,n.instanceOfEdrDto=Vl,n.instanceOfIdAvailabilityResponse=zl,n.instanceOfIdResponseDto=Gl,n.instanceOfInitiateCustomTransferRequest=Ql,n.instanceOfInitiateTransferRequest=Yl,n.instanceOfKpiResult=xl,n.instanceOfNegotiateAllQuery=ef,n.instanceOfNegotiateAllResult=rf,n.instanceOfOperatorDto=Dd,n.instanceOfPaginationRequest=jc,n.instanceOfPaginationResult=uu,n.instanceOfPolicyDefinitionCreateDto=af,n.instanceOfPolicyDefinitionCreateFromJsonLdDto=sf,n.instanceOfPolicyDefinitionCreateRequest=df,n.instanceOfPolicyDefinitionDto=ff,n.instanceOfPolicyDefinitionPage=pf,n.instanceOfSortByDirection=nu,n.instanceOfSortByRequestAssetsPageSortProperty=ou,n.instanceOfSortByRequestContractsPageSortProperty=el,n.instanceOfTransferHistoryEntry=yf,n.instanceOfTransferHistoryPage=gf,n.instanceOfTransferProcessSimplifiedState=rd,n.instanceOfTransferProcessState=ad,n.instanceOfTransferProcessStateResult=hf,n.instanceOfTransferProcessStatesDto=Xl,n.instanceOfUiAsset=Jd,n.instanceOfUiAssetCreateRequest=Ll,n.instanceOfUiAssetEditRequest=Of,n.instanceOfUiAssetExtForSphinx=Cd,n.instanceOfUiConfig=Df,n.instanceOfUiConfigFeature=Pf,n.instanceOfUiConfigPreconfiguredCounterparty=Jf,n.instanceOfUiContractNegotiation=wf,n.instanceOfUiContractOffer=If,n.instanceOfUiCriterion=md,n.instanceOfUiCriterionLiteral=dd,n.instanceOfUiCriterionLiteralType=sd,n.instanceOfUiCriterionOperator=ld,n.instanceOfUiDataOffer=Uf,n.instanceOfUiDataSinkAzureStorage=Ff,n.instanceOfUiDataSinkHttpDataPush=Bf,n.instanceOfUiDataSinkHttpDataPushMethod=Ef,n.instanceOfUiDataSource=vl,n.instanceOfUiDataSourceAzureStorage=Tl,n.instanceOfUiDataSourceHttpData=kl,n.instanceOfUiDataSourceHttpDataMethod=Ol,n.instanceOfUiDataSourceOnRequest=ql,n.instanceOfUiHttpAuth=_l,n.instanceOfUiHttpAuthApiKey=Cl,n.instanceOfUiHttpAuthBasic=Jl,n.instanceOfUiHttpAuthOauth2=Ul,n.instanceOfUiHttpAuthType=Rl,n.instanceOfUiHttpOauth2AuthType=Dl,n.instanceOfUiHttpOauth2PrivateKeyAuthorization=bl,n.instanceOfUiHttpOauth2SharedSecretAuthorization=Il,n.instanceOfUiHttpPushAuth=Hf,n.instanceOfUiHttpPushAuthType=qf,n.instanceOfUiInitiateTransferRequest=Zf,n.instanceOfUiInitiateTransferType=Vf,n.instanceOfUiPolicy=vd,n.instanceOfUiPolicyConstraint=Fd,n.instanceOfUiPolicyCreateRequest=uf,n.instanceOfUiPolicyExpression=qd,n.instanceOfUiPolicyExpressionType=Ed,n.instanceOfUiPolicyLiteral=Rd,n.instanceOfUiPolicyLiteralType=bd,n.instanceOfVaultSecretCreateSubmit=Kf,n.instanceOfVaultSecretEditPage=$f,n.instanceOfVaultSecretEditSubmit=Wf,n.instanceOfVaultSecretListPageEntry=xf,n.instanceOfVaultSecretQuery=ep,n.mapValues=Mc,n.querystring=ht,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=sovity-edc-client.umd.cjs.map
|