@sovity.de/edc-client 11.0.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(i,w){typeof exports=="object"&&typeof module<"u"?w(exports):typeof define=="function"&&define.amd?define(["exports"],w):(i=typeof globalThis<"u"?globalThis:i||self,w(i["sovity-edc-client"]={}))})(this,function(i){"use strict";var Hc=Object.defineProperty;var Vc=(i,w,k)=>w in i?Hc(i,w,{enumerable:!0,configurable:!0,writable:!0,value:k}):i[w]=k;var E=(i,w,k)=>(Vc(i,typeof w!="symbol"?w+"":w,k),k);const w="https://my-connector/api/management".replace(/\/+$/,"");class k{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||Ge}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 gt=new k,Qe=class Qe{constructor(t=gt){E(this,"middleware");E(this,"fetchApi",async(t,r)=>{let n={url:t,init:r};for(const o of this.middleware)o.pre&&(n=await o.pre({fetch:this.fetchApi,...n})||n);let a;try{a=await(this.configuration.fetchApi||fetch)(n.url,n.init)}catch(o){for(const s of this.middleware)s.onError&&(a=await s.onError({fetch:this.fetchApi,url:n.url,init:n.init,error:o,response:a?a.clone():void 0})||a);if(a===void 0)throw o instanceof Error?new Tt(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:n.url,init:n.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(n=>({pre:n}));return this.withMiddleware(...r)}withPostMiddleware(...t){const r=t.map(n=>({post:n}));return this.withMiddleware(...r)}isJsonMime(t){return t?Qe.jsonRegex.test(t):!1}async request(t,r){const{url:n,init:a}=await this.createFetchParams(t,r),o=await this.fetchApi(n,a);if(o&&o.status>=200&&o.status<300)return o;throw new ht(o,"Response returned an error code")}async createFetchParams(t,r){let n=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(n+="?"+this.configuration.queryParamsStringify(t.query));const a=Object.assign({},this.configuration.headers,t.headers);Object.keys(a).forEach(S=>a[S]===void 0?delete a[S]:{});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;ma(c.body)||c.body instanceof URLSearchParams||pa(c.body)?p=c.body:this.isJsonMime(a["Content-Type"])?p=JSON.stringify(c.body):p=c.body;const u={...c,body:p};return{url:n,init:u}}clone(){const t=this.constructor,r=new t(this.configuration);return r.middleware=this.middleware.slice(),r}};E(Qe,"jsonRegex",new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"));let Q=Qe;function pa(e){return typeof Blob<"u"&&e instanceof Blob}function ma(e){return typeof FormData<"u"&&e instanceof FormData}class ht extends Error{constructor(r,n){super(n);E(this,"name","ResponseError");this.response=r}}class Tt extends Error{constructor(r,n){super(n);E(this,"name","FetchError");this.cause=r}}class P extends Error{constructor(r,n){super(n);E(this,"name","RequiredError");this.field=r}}const ya={csv:",",ssv:" ",tsv:" ",pipes:"|"};function Ge(e,t=""){return Object.keys(e).map(r=>St(r,e[r],t)).filter(r=>r.length>0).join("&")}function St(e,t,r=""){const n=r+(r.length?`[${e}]`:e);if(t instanceof Array){const a=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(n)}=`);return`${encodeURIComponent(n)}=${a}`}if(t instanceof Set){const a=Array.from(t);return St(e,a,r)}return t instanceof Date?`${encodeURIComponent(n)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?Ge(t,n):`${encodeURIComponent(n)}=${encodeURIComponent(String(t))}`}function ga(e,t){const r=e[t];return r!=null}function ha(e,t){return Object.keys(e).reduce((r,n)=>({...r,[n]:t(e[n])}),{})}function Ta(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class O{constructor(t,r=n=>n){this.raw=t,this.transformer=r}async value(){return this.transformer(await this.raw.json())}}class Ot{constructor(t){this.raw=t}async value(){}}class Sa{constructor(t){this.raw=t}async value(){return await this.raw.blob()}}class Ct{constructor(t){this.raw=t}async value(){return await this.raw.text()}}const ye={Live:"LIVE",OnRequest:"ON_REQUEST"};function Oa(e){for(const t in ye)if(Object.prototype.hasOwnProperty.call(ye,t)&&ye[t]===e)return!0;return!1}function Nt(e){return Dt(e)}function Dt(e,t){return e}function Ca(e){return e}function Na(e,t){return e}function Da(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 X(e){return Pt(e)}function Pt(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,dataCategory:e.dataCategory==null?void 0:e.dataCategory,dataSubcategory:e.dataSubcategory==null?void 0:e.dataSubcategory,dataModel:e.dataModel==null?void 0:e.dataModel,geoReferenceMethod:e.geoReferenceMethod==null?void 0:e.geoReferenceMethod,transportMode:e.transportMode==null?void 0:e.transportMode,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,geoLocation:e.geoLocation==null?void 0:e.geoLocation,nutsLocations:e.nutsLocations==null?void 0:e.nutsLocations,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),assetJsonLd:e.assetJsonLd==null?void 0:e.assetJsonLd,customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function ge(e){return Jt(e,!1)}function Jt(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,dataCategory:e.dataCategory,dataSubcategory:e.dataSubcategory,dataModel:e.dataModel,geoReferenceMethod:e.geoReferenceMethod,transportMode:e.transportMode,sovereignLegalName:e.sovereignLegalName,geoLocation:e.geoLocation,nutsLocations:e.nutsLocations,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),assetJsonLd:e.assetJsonLd,customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function Pa(e){return!(!("assets"in e)||e.assets===void 0)}function wt(e){return _t(e)}function _t(e,t){return e==null?e:{assets:e.assets.map(X)}}function Ja(e){return vt(e,!1)}function vt(e,t=!1){return e==null?e:{assets:e.assets.map(ge)}}function wa(e){return!(!("buildDate"in e)||e.buildDate===void 0||!("buildVersion"in e)||e.buildVersion===void 0)}function It(e){return bt(e)}function bt(e,t){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}function _a(e){return At(e,!1)}function At(e,t=!1){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}const he={Value:"VALUE",ValueList:"VALUE_LIST"};function va(e){for(const t in he)if(Object.prototype.hasOwnProperty.call(he,t)&&he[t]===e)return!0;return!1}function Rt(e){return Ut(e)}function Ut(e,t){return e}function Ia(e){return e}function ba(e,t){return e}function Aa(e){return!0}function Ft(e){return Et(e)}function Et(e,t){return e==null?e:{type:e.type==null?void 0:Rt(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function kt(e){return qt(e,!1)}function qt(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const Te={Like:"LIKE",Eq:"EQ",In:"IN"};function Ra(e){for(const t in Te)if(Object.prototype.hasOwnProperty.call(Te,t)&&Te[t]===e)return!0;return!1}function Lt(e){return Mt(e)}function Mt(e,t){return e}function Ua(e){return e}function Fa(e,t){return e}function Ea(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function Zt(e){return Ht(e)}function Ht(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:Lt(e.operator),operandRight:Ft(e.operandRight)}}function Vt(e){return xt(e,!1)}function xt(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:kt(e.operandRight)}}function ka(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function qa(e){return Bt(e)}function Bt(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(Zt)}}function $t(e){return zt(e,!1)}function zt(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(Vt)}}function La(e){return!(!("numActiveConsumingContractAgreements"in e)||e.numActiveConsumingContractAgreements===void 0)}function Qt(e){return Gt(e)}function Gt(e,t){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements==null?void 0:e.maxActiveConsumingContractAgreements}}function Ma(e){return Kt(e,!1)}function Kt(e,t=!1){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements}}const Se={Consuming:"CONSUMING",Providing:"PROVIDING"};function Za(e){for(const t in Se)if(Object.prototype.hasOwnProperty.call(Se,t)&&Se[t]===e)return!0;return!1}function Ke(e){return Wt(e)}function Wt(e,t){return e}function Ha(e){return e}function Va(e,t){return e}const Oe={Self:"SELF",Counterparty:"COUNTERPARTY"};function xa(e){for(const t in Oe)if(Object.prototype.hasOwnProperty.call(Oe,t)&&Oe[t]===e)return!0;return!1}function Yt(e){return Xt(e)}function Xt(e,t){return e}function Ba(e){return e}function $a(e,t){return e}function za(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 jt(e){return er(e)}function er(e,t){return e==null?e:{terminatedAt:new Date(e.terminatedAt),reason:e.reason,detail:e.detail,terminatedBy:Yt(e.terminatedBy)}}function tr(e){return rr(e,!1)}function rr(e,t=!1){return e==null?e:{terminatedAt:e.terminatedAt.toISOString(),reason:e.reason,detail:e.detail,terminatedBy:e.terminatedBy}}const Ce={Running:"RUNNING",Ok:"OK",Error:"ERROR"};function Qa(e){for(const t in Ce)if(Object.prototype.hasOwnProperty.call(Ce,t)&&Ce[t]===e)return!0;return!1}function nr(e){return ir(e)}function ir(e,t){return e}function Ga(e){return e}function Ka(e,t){return e}function Wa(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function We(e){return ar(e)}function ar(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:nr(e.simplifiedState)}}function Ye(e){return or(e,!1)}function or(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function Ya(e){return!(!("transferProcessId"in e)||e.transferProcessId===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0||!("state"in e)||e.state===void 0)}function sr(e){return cr(e)}function cr(e,t){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:new Date(e.lastUpdatedDate),state:We(e.state),errorMessage:e.errorMessage==null?void 0:e.errorMessage}}function dr(e){return ur(e,!1)}function ur(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:e.lastUpdatedDate.toISOString(),state:Ye(e.state),errorMessage:e.errorMessage}}const Ne={Ongoing:"ONGOING",Terminated:"TERMINATED"};function Xa(e){for(const t in Ne)if(Object.prototype.hasOwnProperty.call(Ne,t)&&Ne[t]===e)return!0;return!1}function Xe(e){return lr(e)}function lr(e,t){return e}function ja(e){return e}function eo(e,t){return e}const De={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 to(e){for(const t in De)if(Object.prototype.hasOwnProperty.call(De,t)&&De[t]===e)return!0;return!1}function fr(e){return pr(e)}function pr(e,t){return e}function ro(e){return e}function no(e,t){return e}const Pe={String:"STRING",StringList:"STRING_LIST",Json:"JSON"};function io(e){for(const t in Pe)if(Object.prototype.hasOwnProperty.call(Pe,t)&&Pe[t]===e)return!0;return!1}function mr(e){return yr(e)}function yr(e,t){return e}function ao(e){return e}function oo(e,t){return e}function so(e){return!(!("type"in e)||e.type===void 0)}function gr(e){return hr(e)}function hr(e,t){return e==null?e:{type:mr(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Tr(e){return Sr(e,!1)}function Sr(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}function co(e){return!(!("left"in e)||e.left===void 0||!("operator"in e)||e.operator===void 0||!("right"in e)||e.right===void 0)}function je(e){return Or(e)}function Or(e,t){return e==null?e:{left:e.left,operator:fr(e.operator),right:gr(e.right)}}function et(e){return Cr(e,!1)}function Cr(e,t=!1){return e==null?e:{left:e.left,operator:e.operator,right:Tr(e.right)}}const Je={Empty:"EMPTY",Constraint:"CONSTRAINT",And:"AND",Or:"OR",Xone:"XONE"};function uo(e){for(const t in Je)if(Object.prototype.hasOwnProperty.call(Je,t)&&Je[t]===e)return!0;return!1}function Nr(e){return Dr(e)}function Dr(e,t){return e}function lo(e){return e}function fo(e,t){return e}function po(e){return!(!("type"in e)||e.type===void 0)}function j(e){return Pr(e)}function Pr(e,t){return e==null?e:{type:Nr(e.type),expressions:e.expressions==null?void 0:e.expressions.map(j),constraint:e.constraint==null?void 0:je(e.constraint)}}function ee(e){return Jr(e,!1)}function Jr(e,t=!1){return e==null?e:{type:e.type,expressions:e.expressions==null?void 0:e.expressions.map(ee),constraint:et(e.constraint)}}function mo(e){return!(!("policyJsonLd"in e)||e.policyJsonLd===void 0||!("errors"in e)||e.errors===void 0)}function we(e){return wr(e)}function wr(e,t){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:e.expression==null?void 0:j(e.expression),errors:e.errors}}function _e(e){return _r(e,!1)}function _r(e,t=!1){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:ee(e.expression),errors:e.errors}}function yo(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("direction"in e)||e.direction===void 0||!("counterPartyAddress"in e)||e.counterPartyAddress===void 0||!("counterPartyId"in e)||e.counterPartyId===void 0||!("contractSigningDate"in e)||e.contractSigningDate===void 0||!("asset"in e)||e.asset===void 0||!("contractPolicy"in e)||e.contractPolicy===void 0||!("transferProcesses"in e)||e.transferProcesses===void 0||!("terminationStatus"in e)||e.terminationStatus===void 0)}function tt(e){return vr(e)}function vr(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,contractNegotiationId:e.contractNegotiationId,direction:Ke(e.direction),counterPartyAddress:e.counterPartyAddress,counterPartyId:e.counterPartyId,contractSigningDate:new Date(e.contractSigningDate),asset:X(e.asset),contractPolicy:we(e.contractPolicy),transferProcesses:e.transferProcesses.map(sr),terminationStatus:Xe(e.terminationStatus),terminationInformation:e.terminationInformation==null?void 0:jt(e.terminationInformation)}}function Ir(e){return br(e,!1)}function br(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:ge(e.asset),contractPolicy:_e(e.contractPolicy),transferProcesses:e.transferProcesses.map(dr),terminationStatus:e.terminationStatus,terminationInformation:tr(e.terminationInformation)}}function go(e){return!(!("contractAgreements"in e)||e.contractAgreements===void 0)}function Ar(e){return Rr(e)}function Rr(e,t){return e==null?e:{contractAgreements:e.contractAgreements.map(tt)}}function ho(e){return Ur(e,!1)}function Ur(e,t=!1){return e==null?e:{contractAgreements:e.contractAgreements.map(Ir)}}function To(e){return!0}function So(e){return Fr(e)}function Fr(e,t){return e==null?e:{terminationStatus:e.terminationStatus==null?void 0:Xe(e.terminationStatus)}}function Er(e){return kr(e,!1)}function kr(e,t=!1){return e==null?e:{terminationStatus:e.terminationStatus}}const ve={Value:"VALUE",ValueList:"VALUE_LIST"};function Oo(e){for(const t in ve)if(Object.prototype.hasOwnProperty.call(ve,t)&&ve[t]===e)return!0;return!1}function qr(e){return Lr(e)}function Lr(e,t){return e}function Co(e){return e}function No(e,t){return e}function Do(e){return!0}function Mr(e){return Zr(e)}function Zr(e,t){return e==null?e:{type:e.type==null?void 0:qr(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Hr(e){return Vr(e,!1)}function Vr(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const Ie={Eq:"EQ",In:"IN",Like:"LIKE"};function Po(e){for(const t in Ie)if(Object.prototype.hasOwnProperty.call(Ie,t)&&Ie[t]===e)return!0;return!1}function xr(e){return Br(e)}function Br(e,t){return e}function Jo(e){return e}function wo(e,t){return e}function _o(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function rt(e){return $r(e)}function $r(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:xr(e.operator),operandRight:Mr(e.operandRight)}}function nt(e){return zr(e,!1)}function zr(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:Hr(e.operandRight)}}function vo(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 Qr(e){return Gr(e)}function Gr(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(rt)}}function Kr(e){return Wr(e,!1)}function Wr(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(nt)}}function Io(e){return!(!("contractDefinitions"in e)||e.contractDefinitions===void 0)}function Yr(e){return Xr(e)}function Xr(e,t){return e==null?e:{contractDefinitions:e.contractDefinitions.map(Qr)}}function bo(e){return jr(e,!1)}function jr(e,t=!1){return e==null?e:{contractDefinitions:e.contractDefinitions.map(Kr)}}function Ao(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 Ro(e){return en(e)}function en(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(rt)}}function tn(e){return rn(e,!1)}function rn(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(nt)}}function Uo(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 Fo(e){return nn(e)}function nn(e,t){return e==null?e:{counterPartyId:e.counterPartyId,counterPartyAddress:e.counterPartyAddress,contractOfferId:e.contractOfferId,policyJsonLd:e.policyJsonLd,assetId:e.assetId}}function an(e){return on(e,!1)}function on(e,t=!1){return e==null?e:{counterPartyId:e.counterPartyId,counterPartyAddress:e.counterPartyAddress,contractOfferId:e.contractOfferId,policyJsonLd:e.policyJsonLd,assetId:e.assetId}}const be={InProgress:"IN_PROGRESS",Agreed:"AGREED",Terminated:"TERMINATED"};function Eo(e){for(const t in be)if(Object.prototype.hasOwnProperty.call(be,t)&&be[t]===e)return!0;return!1}function sn(e){return cn(e)}function cn(e,t){return e}function ko(e){return e}function qo(e,t){return e}function Lo(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function dn(e){return un(e)}function un(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:sn(e.simplifiedState)}}function ln(e){return fn(e,!1)}function fn(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function Mo(e){return!(!("detail"in e)||e.detail===void 0||!("reason"in e)||e.reason===void 0)}function Zo(e){return pn(e)}function pn(e,t){return e==null?e:{detail:e.detail,reason:e.reason}}function mn(e){return yn(e,!1)}function yn(e,t=!1){return e==null?e:{detail:e.detail,reason:e.reason}}function Ho(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 gn(e){return hn(e)}function hn(e,t){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function Tn(e){return Sn(e,!1)}function Sn(e,t=!1){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function Vo(e){return!(!("tokenUrl"in e)||e.tokenUrl===void 0||!("jwksUrl"in e)||e.jwksUrl===void 0)}function On(e){return Cn(e)}function Cn(e,t){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function Nn(e){return Dn(e,!1)}function Dn(e,t=!1){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function xo(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 it(e){return Pn(e)}function Pn(e,t){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function at(e){return Jn(e,!1)}function Jn(e,t=!1){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function Bo(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||!("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 wn(e){return _n(e)}function _n(e,t){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:it(e.transferProcessesConsuming),transferProcessesProviding:it(e.transferProcessesProviding),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:On(e.connectorDapsConfig),connectorCxDidConfig:e.connectorCxDidConfig==null?void 0:gn(e.connectorCxDidConfig)}}function $o(e){return vn(e,!1)}function vn(e,t=!1){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:at(e.transferProcessesConsuming),transferProcessesProviding:at(e.transferProcessesProviding),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:Nn(e.connectorDapsConfig),connectorCxDidConfig:Tn(e.connectorCxDidConfig)}}const Ae={DontPublish:"DONT_PUBLISH",PublishUnrestricted:"PUBLISH_UNRESTRICTED",PublishRestricted:"PUBLISH_RESTRICTED"};function zo(e){for(const t in Ae)if(Object.prototype.hasOwnProperty.call(Ae,t)&&Ae[t]===e)return!0;return!1}function In(e){return bn(e)}function bn(e,t){return e}function Qo(e){return e}function Go(e,t){return e}const Re={HttpData:"HTTP_DATA",OnRequest:"ON_REQUEST",Custom:"CUSTOM"};function Ko(e){for(const t in Re)if(Object.prototype.hasOwnProperty.call(Re,t)&&Re[t]===e)return!0;return!1}function An(e){return Rn(e)}function Rn(e,t){return e}function Wo(e){return e}function Yo(e,t){return e}function Xo(e){return!0}function Un(e){return Fn(e)}function Fn(e,t){return e==null?e:{secretName:e.secretName==null?void 0:e.secretName,rawValue:e.rawValue==null?void 0:e.rawValue}}function En(e){return kn(e,!1)}function kn(e,t=!1){return e==null?e:{secretName:e.secretName,rawValue:e.rawValue}}const Ue={Get:"GET",Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Options:"OPTIONS"};function jo(e){for(const t in Ue)if(Object.prototype.hasOwnProperty.call(Ue,t)&&Ue[t]===e)return!0;return!1}function qn(e){return Ln(e)}function Ln(e,t){return e}function es(e){return e}function ts(e,t){return e}function rs(e){return!(!("baseUrl"in e)||e.baseUrl===void 0)}function Mn(e){return Zn(e)}function Zn(e,t){return e==null?e:{method:e.method==null?void 0:qn(e.method),baseUrl:e.baseUrl,queryString:e.queryString==null?void 0:e.queryString,authHeaderName:e.authHeaderName==null?void 0:e.authHeaderName,authHeaderValue:e.authHeaderValue==null?void 0:Un(e.authHeaderValue),headers:e.headers==null?void 0:e.headers,enableMethodParameterization:e.enableMethodParameterization==null?void 0:e.enableMethodParameterization,enablePathParameterization:e.enablePathParameterization==null?void 0:e.enablePathParameterization,enableQueryParameterization:e.enableQueryParameterization==null?void 0:e.enableQueryParameterization,enableBodyParameterization:e.enableBodyParameterization==null?void 0:e.enableBodyParameterization}}function Hn(e){return Vn(e,!1)}function Vn(e,t=!1){return e==null?e:{method:e.method,baseUrl:e.baseUrl,queryString:e.queryString,authHeaderName:e.authHeaderName,authHeaderValue:En(e.authHeaderValue),headers:e.headers,enableMethodParameterization:e.enableMethodParameterization,enablePathParameterization:e.enablePathParameterization,enableQueryParameterization:e.enableQueryParameterization,enableBodyParameterization:e.enableBodyParameterization}}function ns(e){return!(!("contactEmail"in e)||e.contactEmail===void 0||!("contactPreferredEmailSubject"in e)||e.contactPreferredEmailSubject===void 0)}function xn(e){return Bn(e)}function Bn(e,t){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function $n(e){return zn(e,!1)}function zn(e,t=!1){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function is(e){return!(!("type"in e)||e.type===void 0)}function ot(e){return Qn(e)}function Qn(e,t){return e==null?e:{type:An(e.type),httpData:e.httpData==null?void 0:Mn(e.httpData),onRequest:e.onRequest==null?void 0:xn(e.onRequest),customProperties:e.customProperties==null?void 0:e.customProperties}}function st(e){return Gn(e,!1)}function Gn(e,t=!1){return e==null?e:{type:e.type,httpData:Hn(e.httpData),onRequest:$n(e.onRequest),customProperties:e.customProperties}}function as(e){return!(!("dataSource"in e)||e.dataSource===void 0||!("id"in e)||e.id===void 0)}function Kn(e){return Wn(e)}function Wn(e,t){return e==null?e:{dataSource:ot(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,dataCategory:e.dataCategory==null?void 0:e.dataCategory,dataSubcategory:e.dataSubcategory==null?void 0:e.dataSubcategory,dataModel:e.dataModel==null?void 0:e.dataModel,geoReferenceMethod:e.geoReferenceMethod==null?void 0:e.geoReferenceMethod,transportMode:e.transportMode==null?void 0:e.transportMode,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,geoLocation:e.geoLocation==null?void 0:e.geoLocation,nutsLocations:e.nutsLocations==null?void 0:e.nutsLocations,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function Fe(e){return Yn(e,!1)}function Yn(e,t=!1){return e==null?e:{dataSource:st(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,dataCategory:e.dataCategory,dataSubcategory:e.dataSubcategory,dataModel:e.dataModel,geoReferenceMethod:e.geoReferenceMethod,transportMode:e.transportMode,sovereignLegalName:e.sovereignLegalName,geoLocation:e.geoLocation,nutsLocations:e.nutsLocations,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function os(e){return!(!("asset"in e)||e.asset===void 0||!("publishType"in e)||e.publishType===void 0)}function ss(e){return Xn(e)}function Xn(e,t){return e==null?e:{asset:Kn(e.asset),publishType:In(e.publishType),policyExpression:e.policyExpression==null?void 0:j(e.policyExpression)}}function jn(e){return ei(e,!1)}function ei(e,t=!1){return e==null?e:{asset:Fe(e.asset),publishType:e.publishType,policyExpression:ee(e.policyExpression)}}function cs(e){return!(!("id"in e)||e.id===void 0)}function Ee(e){return ti(e)}function ti(e,t){return e==null?e:{id:e.id,available:e.available==null?void 0:e.available}}function ds(e){return ri(e,!1)}function ri(e,t=!1){return e==null?e:{id:e.id,available:e.available}}function us(e){return!(!("id"in e)||e.id===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0)}function _(e){return ni(e)}function ni(e,t){return e==null?e:{id:e.id,lastUpdatedDate:new Date(e.lastUpdatedDate)}}function ls(e){return ii(e,!1)}function ii(e,t=!1){return e==null?e:{id:e.id,lastUpdatedDate:e.lastUpdatedDate.toISOString()}}function fs(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("transferProcessRequestJsonLd"in e)||e.transferProcessRequestJsonLd===void 0)}function ps(e){return ai(e)}function ai(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function oi(e){return si(e,!1)}function si(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function ms(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 ys(e){return ci(e)}function ci(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function di(e){return ui(e,!1)}function ui(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function gs(e){return!(!("incomingTransferProcessCounts"in e)||e.incomingTransferProcessCounts===void 0||!("outgoingTransferProcessCounts"in e)||e.outgoingTransferProcessCounts===void 0)}function li(e){return fi(e)}function fi(e,t){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function pi(e){return mi(e,!1)}function mi(e,t=!1){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function hs(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 yi(e){return gi(e)}function gi(e,t){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:li(e.transferProcessDto)}}function Ts(e){return hi(e,!1)}function hi(e,t=!1){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:pi(e.transferProcessDto)}}function Ss(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("expression"in e)||e.expression===void 0)}function Os(e){return Ti(e)}function Ti(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,expression:j(e.expression)}}function Si(e){return Oi(e,!1)}function Oi(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,expression:ee(e.expression)}}function Cs(e){return!0}function Ci(e){return Ni(e)}function Ni(e,t){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(je)}}function Di(e){return Pi(e,!1)}function Pi(e,t=!1){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(et)}}function Ns(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function Ds(e){return Ji(e)}function Ji(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:Ci(e.policy)}}function wi(e){return _i(e,!1)}function _i(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:Di(e.policy)}}function Ps(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function vi(e){return Ii(e)}function Ii(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:we(e.policy)}}function bi(e){return Ai(e,!1)}function Ai(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:_e(e.policy)}}function Js(e){return!(!("policies"in e)||e.policies===void 0)}function Ri(e){return Ui(e)}function Ui(e,t){return e==null?e:{policies:e.policies.map(vi)}}function ws(e){return Fi(e,!1)}function Fi(e,t=!1){return e==null?e:{policies:e.policies.map(bi)}}function _s(e){return!(!("transferProcessId"in e)||e.transferProcessId===void 0||!("createdDate"in e)||e.createdDate===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===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)}function Ei(e){return ki(e)}function ki(e,t){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:new Date(e.createdDate),lastUpdatedDate:new Date(e.lastUpdatedDate),state:We(e.state),contractAgreementId:e.contractAgreementId,direction:Ke(e.direction),counterPartyConnectorEndpoint:e.counterPartyConnectorEndpoint,counterPartyParticipantId:e.counterPartyParticipantId,assetName:e.assetName,assetId:e.assetId,errorMessage:e.errorMessage==null?void 0:e.errorMessage}}function qi(e){return Li(e,!1)}function Li(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:e.createdDate.toISOString(),lastUpdatedDate:e.lastUpdatedDate.toISOString(),state:Ye(e.state),contractAgreementId:e.contractAgreementId,direction:e.direction,counterPartyConnectorEndpoint:e.counterPartyConnectorEndpoint,counterPartyParticipantId:e.counterPartyParticipantId,assetName:e.assetName,assetId:e.assetId,errorMessage:e.errorMessage}}function vs(e){return!(!("transferEntries"in e)||e.transferEntries===void 0)}function Mi(e){return Zi(e)}function Zi(e,t){return e==null?e:{transferEntries:e.transferEntries.map(Ei)}}function Is(e){return Hi(e,!1)}function Hi(e,t=!1){return e==null?e:{transferEntries:e.transferEntries.map(qi)}}function bs(e){return!0}function As(e){return Vi(e)}function Vi(e,t){return e==null?e:{dataSourceOverrideOrNull:e.dataSourceOverrideOrNull==null?void 0:ot(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,dataCategory:e.dataCategory==null?void 0:e.dataCategory,dataSubcategory:e.dataSubcategory==null?void 0:e.dataSubcategory,dataModel:e.dataModel==null?void 0:e.dataModel,geoReferenceMethod:e.geoReferenceMethod==null?void 0:e.geoReferenceMethod,transportMode:e.transportMode==null?void 0:e.transportMode,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,geoLocation:e.geoLocation==null?void 0:e.geoLocation,nutsLocations:e.nutsLocations==null?void 0:e.nutsLocations,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function xi(e){return Bi(e,!1)}function Bi(e,t=!1){return e==null?e:{dataSourceOverrideOrNull:st(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,dataCategory:e.dataCategory,dataSubcategory:e.dataSubcategory,dataModel:e.dataModel,geoReferenceMethod:e.geoReferenceMethod,transportMode:e.transportMode,sovereignLegalName:e.sovereignLegalName,geoLocation:e.geoLocation,nutsLocations:e.nutsLocations,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function Rs(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("createdAt"in e)||e.createdAt===void 0||!("state"in e)||e.state===void 0)}function ct(e){return $i(e)}function $i(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:new Date(e.createdAt),contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,state:dn(e.state)}}function Us(e){return zi(e,!1)}function zi(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:e.createdAt.toISOString(),contractAgreementId:e.contractAgreementId,state:ln(e.state)}}function Fs(e){return!(!("contractOfferId"in e)||e.contractOfferId===void 0||!("policy"in e)||e.policy===void 0)}function Qi(e){return Gi(e)}function Gi(e,t){return e==null?e:{contractOfferId:e.contractOfferId,policy:we(e.policy)}}function Ki(e){return Wi(e,!1)}function Wi(e,t=!1){return e==null?e:{contractOfferId:e.contractOfferId,policy:_e(e.policy)}}function Es(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 dt(e){return Yi(e)}function Yi(e,t){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:X(e.asset),contractOffers:e.contractOffers.map(Qi)}}function ks(e){return Xi(e,!1)}function Xi(e,t=!1){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:ge(e.asset),contractOffers:e.contractOffers.map(Ki)}}class ji extends Q{async connectorLimitsRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ee/connector-limits",method:"GET",headers:n,query:r},t);return new O(a,o=>Qt(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 n={},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:n,body:Fe(t.uiAssetCreateRequest)},r);return new Ot(o)}async fileUploadCreateAsset(t,r){await this.fileUploadCreateAssetRaw(t,r)}async fileUploadRequestSasTokenRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ee/file-upload/blobs",method:"POST",headers:n,query:r},t);return this.isJsonMime(a.headers.get("content-type"))?new O(a):new Ct(a)}async fileUploadRequestSasToken(t){return await(await this.fileUploadRequestSasTokenRaw(t)).value()}}class ea extends Q{async buildInfoRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ui/build-info",method:"GET",headers:n,query:r},t);return new O(a,o=>It(o))}async buildInfo(t){return await(await this.buildInfoRaw(t)).value()}async createAssetRaw(t,r){const n={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/asset-page/assets",method:"POST",headers:a,query:n,body:Fe(t.uiAssetCreateRequest)},r);return new O(o,s=>_(s))}async createAsset(t={},r){return await(await this.createAssetRaw(t,r)).value()}async createContractDefinitionRaw(t,r){const n={},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:n,body:tn(t.contractDefinitionRequest)},r);return new O(o,s=>_(s))}async createContractDefinition(t={},r){return await(await this.createContractDefinitionRaw(t,r)).value()}async createDataOfferRaw(t,r){const n={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/create-data-offer",method:"POST",headers:a,query:n,body:jn(t.dataOfferCreateRequest)},r);return new O(o,s=>_(s))}async createDataOffer(t={},r){return await(await this.createDataOfferRaw(t,r)).value()}async createPolicyDefinitionRaw(t,r){const n={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/policy-page/policy-definitions",method:"POST",headers:a,query:n,body:wi(t.policyDefinitionCreateRequest)},r);return new O(o,s=>_(s))}async createPolicyDefinition(t={},r){return await(await this.createPolicyDefinitionRaw(t,r)).value()}async createPolicyDefinitionV2Raw(t,r){const n={},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:n,body:Si(t.policyDefinitionCreateDto)},r);return new O(o,s=>_(s))}async createPolicyDefinitionV2(t={},r){return await(await this.createPolicyDefinitionV2Raw(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 n={},a={},o=await this.request({path:"/wrapper/ui/pages/asset-page/assets/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"DELETE",headers:a,query:n},r);return new O(o,s=>_(s))}async deleteAsset(t,r){return await(await this.deleteAssetRaw(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 n={},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:n},r);return new O(o,s=>_(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 n={},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:n},r);return new O(o,s=>_(s))}async deletePolicyDefinition(t,r){return await(await this.deletePolicyDefinitionRaw(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 n={},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:n,body:xi(t.uiAssetEditRequest)},r);return new O(o,s=>_(s))}async editAsset(t,r){return await(await this.editAssetRaw(t,r)).value()}async getAssetPageRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ui/pages/asset-page",method:"GET",headers:n,query:r},t);return new O(a,o=>wt(o))}async getAssetPage(t){return await(await this.getAssetPageRaw(t)).value()}async getCatalogPageDataOffersRaw(t,r){const n={};t.participantId!=null&&(n.participantId=t.participantId),t.connectorEndpoint!=null&&(n.connectorEndpoint=t.connectorEndpoint);const a={},o=await this.request({path:"/wrapper/ui/pages/catalog-page/data-offers",method:"GET",headers:a,query:n},r);return new O(o,s=>s.map(dt))}async getCatalogPageDataOffers(t={},r){return await(await this.getCatalogPageDataOffersRaw(t,r)).value()}async getContractAgreementCardRaw(t,r){if(t.contractAgreementId==null)throw new P("contractAgreementId",'Required parameter "contractAgreementId" was null or undefined when calling getContractAgreementCard().');const n={},a={},o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/{contractAgreementId}".replace("{contractAgreementId}",encodeURIComponent(String(t.contractAgreementId))),method:"GET",headers:a,query:n},r);return new O(o,s=>tt(s))}async getContractAgreementCard(t,r){return await(await this.getContractAgreementCardRaw(t,r)).value()}async getContractAgreementPageRaw(t,r){const n={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page",method:"POST",headers:a,query:n,body:Er(t.contractAgreementPageQuery)},r);return new O(o,s=>Ar(s))}async getContractAgreementPage(t={},r){return await(await this.getContractAgreementPageRaw(t,r)).value()}async getContractDefinitionPageRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ui/pages/contract-definition-page",method:"GET",headers:n,query:r},t);return new O(a,o=>Yr(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 n={},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:n},r);return new O(o,s=>ct(s))}async getContractNegotiation(t,r){return await(await this.getContractNegotiationRaw(t,r)).value()}async getDashboardPageRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ui/pages/dashboard-page",method:"GET",headers:n,query:r},t);return new O(a,o=>wn(o))}async getDashboardPage(t){return await(await this.getDashboardPageRaw(t)).value()}async getPolicyDefinitionPageRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ui/pages/policy-page",method:"GET",headers:n,query:r},t);return new O(a,o=>Ri(o))}async getPolicyDefinitionPage(t){return await(await this.getPolicyDefinitionPageRaw(t)).value()}async getTransferHistoryPageRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ui/pages/transfer-history-page",method:"GET",headers:n,query:r},t);return new O(a,o=>Mi(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 n={},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:n},r);return new O(o,s=>X(s))}async getTransferProcessAsset(t,r){return await(await this.getTransferProcessAssetRaw(t,r)).value()}async initiateContractNegotiationRaw(t,r){const n={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/catalog-page/contract-negotiations",method:"POST",headers:a,query:n,body:an(t.contractNegotiationRequest)},r);return new O(o,s=>ct(s))}async initiateContractNegotiation(t={},r){return await(await this.initiateContractNegotiationRaw(t,r)).value()}async initiateCustomTransferRaw(t,r){const n={},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:n,body:oi(t.initiateCustomTransferRequest)},r);return new O(o,s=>_(s))}async initiateCustomTransfer(t={},r){return await(await this.initiateCustomTransferRaw(t,r)).value()}async initiateTransferRaw(t,r){const n={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/transfers",method:"POST",headers:a,query:n,body:di(t.initiateTransferRequest)},r);return new O(o,s=>_(s))}async initiateTransfer(t={},r){return await(await this.initiateTransferRaw(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 n={},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:n},r);return new O(o,s=>Ee(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 n={},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:n},r);return new O(o,s=>Ee(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 n={},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:n},r);return new O(o,s=>Ee(s))}async isPolicyIdAvailable(t,r){return await(await this.isPolicyIdAvailableRaw(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 n={},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:n,body:mn(t.contractTerminationRequest)},r);return new O(o,s=>_(s))}async terminateContractAgreement(t,r){return await(await this.terminateContractAgreementRaw(t,r)).value()}}class ta extends Q{async getKpisRaw(t){const r={},n={},a=await this.request({path:"/wrapper/use-case-api/kpis",method:"GET",headers:n,query:r},t);return new O(a,o=>yi(o))}async getKpis(t){return await(await this.getKpisRaw(t)).value()}async getSupportedFunctionsRaw(t){const r={},n={},a=await this.request({path:"/wrapper/use-case-api/supported-policy-functions",method:"GET",headers:n,query:r},t);return new O(a)}async getSupportedFunctions(t){return await(await this.getSupportedFunctionsRaw(t)).value()}async queryCatalogRaw(t,r){if(t.catalogQuery==null)throw new P("catalogQuery",'Required parameter "catalogQuery" was null or undefined when calling queryCatalog().');const n={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/catalog",method:"POST",headers:a,query:n,body:$t(t.catalogQuery)},r);return new O(o,s=>s.map(dt))}async queryCatalog(t,r){return await(await this.queryCatalogRaw(t,r)).value()}}var C;(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 n(a,o=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=n,e.jsonStringifyReplacer=(a,o)=>typeof o=="bigint"?o.toString():o})(C||(C={}));var ut;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(ut||(ut={}));const l=C.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),M=e=>{switch(typeof e){case"undefined":return l.undefined;case"string":return l.string;case"number":return isNaN(e)?l.nan:l.number;case"boolean":return l.boolean;case"function":return l.function;case"bigint":return l.bigint;case"symbol":return l.symbol;case"object":return Array.isArray(e)?l.array:e===null?l.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?l.promise:typeof Map<"u"&&e instanceof Map?l.map:typeof Set<"u"&&e instanceof Set?l.set:typeof Date<"u"&&e instanceof Date?l.date:l.object;default:return l.unknown}},d=C.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"]),qs=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class I extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};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},n={_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)n._errors.push(r(s));else{let c=n,p=0;for(;p<s.path.length;){const u=s.path[p];p===s.path.length-1?(c[u]=c[u]||{_errors:[]},c[u]._errors.push(r(s))):c[u]=c[u]||{_errors:[]},c=c[u],p++}}};return a(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,C.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];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))):n.push(t(a));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}I.create=e=>new I(e);const te=(e,t)=>{let r;switch(e.code){case d.invalid_type:e.received===l.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case d.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,C.jsonStringifyReplacer)}`;break;case d.unrecognized_keys:r=`Unrecognized key(s) in object: ${C.joinValues(e.keys,", ")}`;break;case d.invalid_union:r="Invalid input";break;case d.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${C.joinValues(e.options)}`;break;case d.invalid_enum_value:r=`Invalid enum value. Expected ${C.joinValues(e.options)}, received '${e.received}'`;break;case d.invalid_arguments:r="Invalid function arguments";break;case d.invalid_return_type:r="Invalid function return type";break;case d.invalid_date:r="Invalid date";break;case d.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}"`:C.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case d.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 d.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 d.custom:r="Invalid input";break;case d.invalid_intersection_types:r="Intersection results could not be merged";break;case d.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case d.not_finite:r="Number must be finite";break;default:r=t.defaultError,C.assertNever(e)}return{message:r}};let ra=te;function Ls(e){ra=e}function ke(){return ra}const qe=e=>{const{data:t,path:r,errorMaps:n,issueData:a}=e,o=[...r,...a.path||[]],s={...a,path:o};let c="";const p=n.filter(u=>!!u).slice().reverse();for(const u of p)c=u(s,{data:t,defaultError:c}).message;return{...a,path:o,message:a.message||c}},Ms=[];function f(e,t){const r=qe({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,ke(),te].filter(n=>!!n)});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 n=[];for(const a of r){if(a.status==="aborted")return g;a.status==="dirty"&&t.dirty(),n.push(a.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const a of r)n.push({key:await a.key,value:await a.value});return D.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const a of r){const{key:o,value:s}=a;if(o.status==="aborted"||s.status==="aborted")return g;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(n[o.value]=s.value)}return{status:t.value,value:n}}}const g=Object.freeze({status:"aborted"}),na=e=>({status:"dirty",value:e}),J=e=>({status:"valid",value:e}),lt=e=>e.status==="aborted",ft=e=>e.status==="dirty",re=e=>e.status==="valid",Le=e=>typeof Promise<"u"&&e instanceof Promise;var m;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(m||(m={}));class U{constructor(t,r,n,a){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,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 ia=(e,t)=>{if(re(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:n,description:a}=e;if(t&&(r||n))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:n??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 M(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:M(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new D,ctx:{common:t.parent.common,data:t.data,parsedType:M(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(Le(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 n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;const a={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:M(t)},o=this._parseSync({data:t,path:a.path,parent:a});return ia(a,o)}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:M(t)},a=this._parse({data:t,path:n.path,parent:n}),o=await(Le(a)?a:Promise.resolve(a));return ia(n,o)}refine(t,r){const n=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:d.custom,...n(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((n,a)=>t(n)?!0:(a.addIssue(typeof r=="function"?r(n,a):r),!1))}_refinement(t){return new R({schema:this,typeName:y.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return L.create(this,this._def)}nullable(){return z.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return A.create(this,this._def)}promise(){return Y.create(this,this._def)}or(t){return oe.create([this,t],this._def)}and(t){return se.create(this,t,this._def)}transform(t){return new R({...h(this._def),schema:this,typeName:y.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new fe({...h(this._def),innerType:this,defaultValue:r,typeName:y.ZodDefault})}brand(){return new oa({typeName:y.ZodBranded,type:this,...h(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new Be({...h(this._def),innerType:this,catchValue:r,typeName:y.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return pe.create(this,t)}readonly(){return ze.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Zs=/^c[^\s-]{8,}$/i,Hs=/^[a-z][a-z0-9]*$/,Vs=/^[0-9A-HJKMNP-TV-Z]{26}$/,xs=/^[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,Bs=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,$s="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let pt;const zs=/^(((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}))$/,Qs=/^(([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})))$/,Gs=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 Ks(e,t){return!!((t==="v4"||!t)&&zs.test(e)||(t==="v6"||!t)&&Qs.test(e))}class b extends T{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==l.string){const o=this._getOrReturnCtx(t);return f(o,{code:d.invalid_type,expected:l.string,received:o.parsedType}),g}const n=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:d.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="max")t.data.length>o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:d.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.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:d.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):c&&f(a,{code:d.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),n.dirty())}else if(o.kind==="email")Bs.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"email",code:d.invalid_string,message:o.message}),n.dirty());else if(o.kind==="emoji")pt||(pt=new RegExp($s,"u")),pt.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"emoji",code:d.invalid_string,message:o.message}),n.dirty());else if(o.kind==="uuid")xs.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"uuid",code:d.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid")Zs.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"cuid",code:d.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid2")Hs.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"cuid2",code:d.invalid_string,message:o.message}),n.dirty());else if(o.kind==="ulid")Vs.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"ulid",code:d.invalid_string,message:o.message}),n.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),f(a,{validation:"url",code:d.invalid_string,message:o.message}),n.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"regex",code:d.invalid_string,message:o.message}),n.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:d.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),n.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:d.invalid_string,validation:{startsWith:o.value},message:o.message}),n.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(a=this._getOrReturnCtx(t,a),f(a,{code:d.invalid_string,validation:{endsWith:o.value},message:o.message}),n.dirty()):o.kind==="datetime"?Gs(o).test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{code:d.invalid_string,validation:"datetime",message:o.message}),n.dirty()):o.kind==="ip"?Ks(t.data,o.version)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"ip",code:d.invalid_string,message:o.message}),n.dirty()):C.assertNever(o);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(a=>t.test(a),{validation:r,code:d.invalid_string,...m.errToObj(n)})}_addCheck(t){return new b({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...m.errToObj(t)})}url(t){return this._addCheck({kind:"url",...m.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...m.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...m.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...m.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...m.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...m.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...m.errToObj(t)})}datetime(t){var r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,...m.errToObj(t==null?void 0:t.message)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...m.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...m.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...m.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...m.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...m.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...m.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...m.errToObj(r)})}nonempty(t){return this.min(1,m.errToObj(t))}trim(){return new b({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new b({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new b({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}b.create=e=>{var t;return new b({checks:[],typeName:y.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...h(e)})};function Ws(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,a=r>n?r:n,o=parseInt(e.toFixed(a).replace(".","")),s=parseInt(t.toFixed(a).replace(".",""));return o%s/Math.pow(10,a)}class Z 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:d.invalid_type,expected:l.number,received:o.parsedType}),g}let n;const a=new D;for(const o of this._def.checks)o.kind==="int"?C.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),f(n,{code:d.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),f(n,{code:d.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)&&(n=this._getOrReturnCtx(t,n),f(n,{code:d.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?Ws(t.data,o.value)!==0&&(n=this._getOrReturnCtx(t,n),f(n,{code:d.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),f(n,{code:d.not_finite,message:o.message}),a.dirty()):C.assertNever(o);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,m.toString(r))}gt(t,r){return this.setLimit("min",t,!1,m.toString(r))}lte(t,r){return this.setLimit("max",t,!0,m.toString(r))}lt(t,r){return this.setLimit("max",t,!1,m.toString(r))}setLimit(t,r,n,a){return new Z({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:m.toString(a)}]})}_addCheck(t){return new Z({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:m.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:m.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:m.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:m.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:m.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:m.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:m.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:m.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:m.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&C.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}}Z.create=e=>new Z({checks:[],typeName:y.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...h(e)});class H 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:d.invalid_type,expected:l.bigint,received:o.parsedType}),g}let n;const a=new D;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),f(n,{code:d.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)&&(n=this._getOrReturnCtx(t,n),f(n,{code:d.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),f(n,{code:d.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):C.assertNever(o);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,m.toString(r))}gt(t,r){return this.setLimit("min",t,!1,m.toString(r))}lte(t,r){return this.setLimit("max",t,!0,m.toString(r))}lt(t,r){return this.setLimit("max",t,!1,m.toString(r))}setLimit(t,r,n,a){return new H({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:m.toString(a)}]})}_addCheck(t){return new H({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:m.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:m.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:m.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:m.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:m.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}H.create=e=>{var t;return new H({checks:[],typeName:y.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...h(e)})};class ne extends T{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==l.boolean){const n=this._getOrReturnCtx(t);return f(n,{code:d.invalid_type,expected:l.boolean,received:n.parsedType}),g}return J(t.data)}}ne.create=e=>new ne({typeName:y.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...h(e)});class x 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:d.invalid_type,expected:l.date,received:o.parsedType}),g}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return f(o,{code:d.invalid_date}),g}const n=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:d.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),n.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:d.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),n.dirty()):C.assertNever(o);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new x({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:m.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:m.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}x.create=e=>new x({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:y.ZodDate,...h(e)});class Me extends T{_parse(t){if(this._getType(t)!==l.symbol){const n=this._getOrReturnCtx(t);return f(n,{code:d.invalid_type,expected:l.symbol,received:n.parsedType}),g}return J(t.data)}}Me.create=e=>new Me({typeName:y.ZodSymbol,...h(e)});class ie extends T{_parse(t){if(this._getType(t)!==l.undefined){const n=this._getOrReturnCtx(t);return f(n,{code:d.invalid_type,expected:l.undefined,received:n.parsedType}),g}return J(t.data)}}ie.create=e=>new ie({typeName:y.ZodUndefined,...h(e)});class ae extends T{_parse(t){if(this._getType(t)!==l.null){const n=this._getOrReturnCtx(t);return f(n,{code:d.invalid_type,expected:l.null,received:n.parsedType}),g}return J(t.data)}}ae.create=e=>new ae({typeName:y.ZodNull,...h(e)});class G extends T{constructor(){super(...arguments),this._any=!0}_parse(t){return J(t.data)}}G.create=e=>new G({typeName:y.ZodAny,...h(e)});class B extends T{constructor(){super(...arguments),this._unknown=!0}_parse(t){return J(t.data)}}B.create=e=>new B({typeName:y.ZodUnknown,...h(e)});class q extends T{_parse(t){const r=this._getOrReturnCtx(t);return f(r,{code:d.invalid_type,expected:l.never,received:r.parsedType}),g}}q.create=e=>new q({typeName:y.ZodNever,...h(e)});class Ze extends T{_parse(t){if(this._getType(t)!==l.undefined){const n=this._getOrReturnCtx(t);return f(n,{code:d.invalid_type,expected:l.void,received:n.parsedType}),g}return J(t.data)}}Ze.create=e=>new Ze({typeName:y.ZodVoid,...h(e)});class A extends T{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),a=this._def;if(r.parsedType!==l.array)return f(r,{code:d.invalid_type,expected:l.array,received:r.parsedType}),g;if(a.exactLength!==null){const s=r.data.length>a.exactLength.value,c=r.data.length<a.exactLength.value;(s||c)&&(f(r,{code:s?d.too_big:d.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}),n.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(f(r,{code:d.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(f(r,{code:d.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((s,c)=>a.type._parseAsync(new U(r,s,r.path,c)))).then(s=>D.mergeArray(n,s));const o=[...r.data].map((s,c)=>a.type._parseSync(new U(r,s,r.path,c)));return D.mergeArray(n,o)}get element(){return this._def.type}min(t,r){return new A({...this._def,minLength:{value:t,message:m.toString(r)}})}max(t,r){return new A({...this._def,maxLength:{value:t,message:m.toString(r)}})}length(t,r){return new A({...this._def,exactLength:{value:t,message:m.toString(r)}})}nonempty(t){return this.min(1,t)}}A.create=(e,t)=>new A({type:e,minLength:null,maxLength:null,exactLength:null,typeName:y.ZodArray,...h(t)});function K(e){if(e instanceof N){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=L.create(K(n))}return new N({...e._def,shape:()=>t})}else return e instanceof A?new A({...e._def,type:K(e.element)}):e instanceof L?L.create(K(e.unwrap())):e instanceof z?z.create(K(e.unwrap())):e instanceof F?F.create(e.items.map(t=>K(t))):e}class N 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=C.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==l.object){const u=this._getOrReturnCtx(t);return f(u,{code:d.invalid_type,expected:l.object,received:u.parsedType}),g}const{status:n,ctx:a}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),c=[];if(!(this._def.catchall instanceof q&&this._def.unknownKeys==="strip"))for(const u in a.data)s.includes(u)||c.push(u);const p=[];for(const u of s){const S=o[u],v=a.data[u];p.push({key:{status:"valid",value:u},value:S._parse(new U(a,v,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof q){const u=this._def.unknownKeys;if(u==="passthrough")for(const S of c)p.push({key:{status:"valid",value:S},value:{status:"valid",value:a.data[S]}});else if(u==="strict")c.length>0&&(f(a,{code:d.unrecognized_keys,keys:c}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const S of c){const v=a.data[S];p.push({key:{status:"valid",value:S},value:u._parse(new U(a,v,a.path,S)),alwaysSet:S in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const S of p){const v=await S.key;u.push({key:v,value:await S.value,alwaysSet:S.alwaysSet})}return u}).then(u=>D.mergeObjectSync(n,u)):D.mergeObjectSync(n,p)}get shape(){return this._def.shape()}strict(t){return m.errToObj,new N({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var a,o,s,c;const p=(s=(o=(a=this._def).errorMap)===null||o===void 0?void 0:o.call(a,r,n).message)!==null&&s!==void 0?s:n.defaultError;return r.code==="unrecognized_keys"?{message:(c=m.errToObj(t).message)!==null&&c!==void 0?c:p}:{message:p}}}:{}})}strip(){return new N({...this._def,unknownKeys:"strip"})}passthrough(){return new N({...this._def,unknownKeys:"passthrough"})}extend(t){return new N({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new N({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:y.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new N({...this._def,catchall:t})}pick(t){const r={};return C.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new N({...this._def,shape:()=>r})}omit(t){const r={};return C.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new N({...this._def,shape:()=>r})}deepPartial(){return K(this)}partial(t){const r={};return C.objectKeys(this.shape).forEach(n=>{const a=this.shape[n];t&&!t[n]?r[n]=a:r[n]=a.optional()}),new N({...this._def,shape:()=>r})}required(t){const r={};return C.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let o=this.shape[n];for(;o instanceof L;)o=o._def.innerType;r[n]=o}}),new N({...this._def,shape:()=>r})}keyof(){return aa(C.objectKeys(this.shape))}}N.create=(e,t)=>new N({shape:()=>e,unknownKeys:"strip",catchall:q.create(),typeName:y.ZodObject,...h(t)}),N.strictCreate=(e,t)=>new N({shape:()=>e,unknownKeys:"strict",catchall:q.create(),typeName:y.ZodObject,...h(t)}),N.lazycreate=(e,t)=>new N({shape:e,unknownKeys:"strip",catchall:q.create(),typeName:y.ZodObject,...h(t)});class oe extends T{_parse(t){const{ctx:r}=this._processInputParams(t),n=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:d.invalid_union,unionErrors:s}),g}if(r.common.async)return Promise.all(n.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 n){const u={...r,common:{...r.common,issues:[]},parent:null},S=p._parseSync({data:r.data,path:r.path,parent:u});if(S.status==="valid")return S;S.status==="dirty"&&!o&&(o={result:S,ctx:u}),u.common.issues.length&&s.push(u.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:d.invalid_union,unionErrors:c}),g}}get options(){return this._def.options}}oe.create=(e,t)=>new oe({options:e,typeName:y.ZodUnion,...h(t)});const He=e=>e instanceof de?He(e.schema):e instanceof R?He(e.innerType()):e instanceof ue?[e.value]:e instanceof V?e.options:e instanceof le?Object.keys(e.enum):e instanceof fe?He(e._def.innerType):e instanceof ie?[void 0]:e instanceof ae?[null]:null;class Ve extends T{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==l.object)return f(r,{code:d.invalid_type,expected:l.object,received:r.parsedType}),g;const n=this.discriminator,a=r.data[n],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:d.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),g)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){const a=new Map;for(const o of r){const s=He(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 Ve({typeName:y.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:a,...h(n)})}}function mt(e,t){const r=M(e),n=M(t);if(e===t)return{valid:!0,data:e};if(r===l.object&&n===l.object){const a=C.objectKeys(t),o=C.objectKeys(e).filter(c=>a.indexOf(c)!==-1),s={...e,...t};for(const c of o){const p=mt(e[c],t[c]);if(!p.valid)return{valid:!1};s[c]=p.data}return{valid:!0,data:s}}else if(r===l.array&&n===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=mt(s,c);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return r===l.date&&n===l.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class se extends T{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=(o,s)=>{if(lt(o)||lt(s))return g;const c=mt(o.value,s.value);return c.valid?((ft(o)||ft(s))&&r.dirty(),{status:r.value,value:c.data}):(f(n,{code:d.invalid_intersection_types}),g)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([o,s])=>a(o,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}se.create=(e,t,r)=>new se({left:e,right:t,typeName:y.ZodIntersection,...h(r)});class F extends T{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==l.array)return f(n,{code:d.invalid_type,expected:l.array,received:n.parsedType}),g;if(n.data.length<this._def.items.length)return f(n,{code:d.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),g;!this._def.rest&&n.data.length>this._def.items.length&&(f(n,{code:d.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const o=[...n.data].map((s,c)=>{const p=this._def.items[c]||this._def.rest;return p?p._parse(new U(n,s,n.path,c)):null}).filter(s=>!!s);return n.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 F({...this._def,rest:t})}}F.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new F({items:e,typeName:y.ZodTuple,rest:null,...h(t)})};class ce extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==l.object)return f(n,{code:d.invalid_type,expected:l.object,received:n.parsedType}),g;const a=[],o=this._def.keyType,s=this._def.valueType;for(const c in n.data)a.push({key:o._parse(new U(n,c,n.path,c)),value:s._parse(new U(n,n.data[c],n.path,c))});return n.common.async?D.mergeObjectAsync(r,a):D.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof T?new ce({keyType:t,valueType:r,typeName:y.ZodRecord,...h(n)}):new ce({keyType:b.create(),valueType:t,typeName:y.ZodRecord,...h(r)})}}class xe extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==l.map)return f(n,{code:d.invalid_type,expected:l.map,received:n.parsedType}),g;const a=this._def.keyType,o=this._def.valueType,s=[...n.data.entries()].map(([c,p],u)=>({key:a._parse(new U(n,c,n.path,[u,"key"])),value:o._parse(new U(n,p,n.path,[u,"value"]))}));if(n.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const p of s){const u=await p.key,S=await p.value;if(u.status==="aborted"||S.status==="aborted")return g;(u.status==="dirty"||S.status==="dirty")&&r.dirty(),c.set(u.value,S.value)}return{status:r.value,value:c}})}else{const c=new Map;for(const p of s){const u=p.key,S=p.value;if(u.status==="aborted"||S.status==="aborted")return g;(u.status==="dirty"||S.status==="dirty")&&r.dirty(),c.set(u.value,S.value)}return{status:r.value,value:c}}}}xe.create=(e,t,r)=>new xe({valueType:t,keyType:e,typeName:y.ZodMap,...h(r)});class $ extends T{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==l.set)return f(n,{code:d.invalid_type,expected:l.set,received:n.parsedType}),g;const a=this._def;a.minSize!==null&&n.data.size<a.minSize.value&&(f(n,{code:d.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&n.data.size>a.maxSize.value&&(f(n,{code:d.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 u=new Set;for(const S of p){if(S.status==="aborted")return g;S.status==="dirty"&&r.dirty(),u.add(S.value)}return{status:r.value,value:u}}const c=[...n.data.values()].map((p,u)=>o._parse(new U(n,p,n.path,u)));return n.common.async?Promise.all(c).then(p=>s(p)):s(c)}min(t,r){return new $({...this._def,minSize:{value:t,message:m.toString(r)}})}max(t,r){return new $({...this._def,maxSize:{value:t,message:m.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}$.create=(e,t)=>new $({valueType:e,minSize:null,maxSize:null,typeName:y.ZodSet,...h(t)});class W 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:d.invalid_type,expected:l.function,received:r.parsedType}),g;function n(c,p){return qe({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ke(),te].filter(u=>!!u),issueData:{code:d.invalid_arguments,argumentsError:p}})}function a(c,p){return qe({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ke(),te].filter(u=>!!u),issueData:{code:d.invalid_return_type,returnTypeError:p}})}const o={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof Y){const c=this;return J(async function(...p){const u=new I([]),S=await c._def.args.parseAsync(p,o).catch(yt=>{throw u.addIssue(n(p,yt)),u}),v=await Reflect.apply(s,this,S);return await c._def.returns._def.type.parseAsync(v,o).catch(yt=>{throw u.addIssue(a(v,yt)),u})})}else{const c=this;return J(function(...p){const u=c._def.args.safeParse(p,o);if(!u.success)throw new I([n(p,u.error)]);const S=Reflect.apply(s,this,u.data),v=c._def.returns.safeParse(S,o);if(!v.success)throw new I([a(S,v.error)]);return v.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new W({...this._def,args:F.create(t).rest(B.create())})}returns(t){return new W({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new W({args:t||F.create([]).rest(B.create()),returns:r||B.create(),typeName:y.ZodFunction,...h(n)})}}class de 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})}}de.create=(e,t)=>new de({getter:e,typeName:y.ZodLazy,...h(t)});class ue extends T{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return f(r,{received:r.data,code:d.invalid_literal,expected:this._def.value}),g}return{status:"valid",value:t.data}}get value(){return this._def.value}}ue.create=(e,t)=>new ue({value:e,typeName:y.ZodLiteral,...h(t)});function aa(e,t){return new V({values:e,typeName:y.ZodEnum,...h(t)})}class V extends T{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return f(r,{expected:C.joinValues(n),received:r.parsedType,code:d.invalid_type}),g}if(this._def.values.indexOf(t.data)===-1){const r=this._getOrReturnCtx(t),n=this._def.values;return f(r,{received:r.data,code:d.invalid_enum_value,options:n}),g}return J(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t){return V.create(t)}exclude(t){return V.create(this.options.filter(r=>!t.includes(r)))}}V.create=aa;class le extends T{_parse(t){const r=C.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==l.string&&n.parsedType!==l.number){const a=C.objectValues(r);return f(n,{expected:C.joinValues(a),received:n.parsedType,code:d.invalid_type}),g}if(r.indexOf(t.data)===-1){const a=C.objectValues(r);return f(n,{received:n.data,code:d.invalid_enum_value,options:a}),g}return J(t.data)}get enum(){return this._def.values}}le.create=(e,t)=>new le({values:e,typeName:y.ZodNativeEnum,...h(t)});class Y 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:d.invalid_type,expected:l.promise,received:r.parsedType}),g;const n=r.parsedType===l.promise?r.data:Promise.resolve(r.data);return J(n.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Y.create=(e,t)=>new Y({type:e,typeName:y.ZodPromise,...h(t)});class R extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===y.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=this._def.effect||null,o={addIssue:s=>{f(n,s),s.fatal?r.abort():r.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),a.type==="preprocess"){const s=a.transform(n.data,o);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(s).then(c=>this._def.schema._parseAsync({data:c,path:n.path,parent:n})):this._def.schema._parseSync({data:s,path:n.path,parent:n})}if(a.type==="refinement"){const s=c=>{const p=a.refinement(c,o);if(n.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(n.common.async===!1){const c=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return c.status==="aborted"?g:(c.status==="dirty"&&r.dirty(),s(c.value),{status:r.value,value:c.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(c=>c.status==="aborted"?g:(c.status==="dirty"&&r.dirty(),s(c.value).then(()=>({status:r.value,value:c.value}))))}if(a.type==="transform")if(n.common.async===!1){const s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!re(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:n.data,path:n.path,parent:n}).then(s=>re(s)?Promise.resolve(a.transform(s.value,o)).then(c=>({status:r.value,value:c})):s);C.assertNever(a)}}R.create=(e,t,r)=>new R({schema:e,typeName:y.ZodEffects,effect:t,...h(r)}),R.createWithPreprocess=(e,t,r)=>new R({schema:t,effect:{type:"preprocess",transform:e},typeName:y.ZodEffects,...h(r)});class L extends T{_parse(t){return this._getType(t)===l.undefined?J(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}L.create=(e,t)=>new L({innerType:e,typeName:y.ZodOptional,...h(t)});class z extends T{_parse(t){return this._getType(t)===l.null?J(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}z.create=(e,t)=>new z({innerType:e,typeName:y.ZodNullable,...h(t)});class fe extends T{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===l.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}fe.create=(e,t)=>new fe({innerType:e,typeName:y.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...h(t)});class Be extends T{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Le(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new I(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new I(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Be.create=(e,t)=>new Be({innerType:e,typeName:y.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...h(t)});class $e extends T{_parse(t){if(this._getType(t)!==l.nan){const n=this._getOrReturnCtx(t);return f(n,{code:d.invalid_type,expected:l.nan,received:n.parsedType}),g}return{status:"valid",value:t.data}}}$e.create=e=>new $e({typeName:y.ZodNaN,...h(e)});const Ys=Symbol("zod_brand");class oa extends T{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class pe extends T{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?g:o.status==="dirty"?(r.dirty(),na(o.value)):this._def.out._parseAsync({data:o.value,path:n.path,parent:n})})();{const a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?g:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(t,r){return new pe({in:t,out:r,typeName:y.ZodPipeline})}}class ze extends T{_parse(t){const r=this._def.innerType._parse(t);return re(r)&&(r.value=Object.freeze(r.value)),r}}ze.create=(e,t)=>new ze({innerType:e,typeName:y.ZodReadonly,...h(t)});const sa=(e,t={},r)=>e?G.create().superRefine((n,a)=>{var o,s;if(!e(n)){const c=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,p=(s=(o=c.fatal)!==null&&o!==void 0?o:r)!==null&&s!==void 0?s:!0,u=typeof c=="string"?{message:c}:c;a.addIssue({code:"custom",...u,fatal:p})}}):G.create(),Xs={object:N.lazycreate};var y;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(y||(y={}));const js=(e,t={message:`Input not instance of ${e.name}`})=>sa(r=>r instanceof e,t),ca=b.create,da=Z.create,ec=$e.create,tc=H.create,ua=ne.create,rc=x.create,nc=Me.create,ic=ie.create,ac=ae.create,oc=G.create,sc=B.create,cc=q.create,dc=Ze.create,uc=A.create,lc=N.create,fc=N.strictCreate,pc=oe.create,mc=Ve.create,yc=se.create,gc=F.create,hc=ce.create,Tc=xe.create,Sc=$.create,Oc=W.create,Cc=de.create,Nc=ue.create,Dc=V.create,Pc=le.create,Jc=Y.create,la=R.create,wc=L.create,_c=z.create,vc=R.createWithPreprocess,Ic=pe.create;var me=Object.freeze({__proto__:null,defaultErrorMap:te,setErrorMap:Ls,getErrorMap:ke,makeIssue:qe,EMPTY_PATH:Ms,addIssueToContext:f,ParseStatus:D,INVALID:g,DIRTY:na,OK:J,isAborted:lt,isDirty:ft,isValid:re,isAsync:Le,get util(){return C},get objectUtil(){return ut},ZodParsedType:l,getParsedType:M,ZodType:T,ZodString:b,ZodNumber:Z,ZodBigInt:H,ZodBoolean:ne,ZodDate:x,ZodSymbol:Me,ZodUndefined:ie,ZodNull:ae,ZodAny:G,ZodUnknown:B,ZodNever:q,ZodVoid:Ze,ZodArray:A,ZodObject:N,ZodUnion:oe,ZodDiscriminatedUnion:Ve,ZodIntersection:se,ZodTuple:F,ZodRecord:ce,ZodMap:xe,ZodSet:$,ZodFunction:W,ZodLazy:de,ZodLiteral:ue,ZodEnum:V,ZodNativeEnum:le,ZodPromise:Y,ZodEffects:R,ZodTransformer:R,ZodOptional:L,ZodNullable:z,ZodDefault:fe,ZodCatch:Be,ZodNaN:$e,BRAND:Ys,ZodBranded:oa,ZodPipeline:pe,ZodReadonly:ze,custom:sa,Schema:T,ZodSchema:T,late:Xs,get ZodFirstPartyTypeKind(){return y},coerce:{string:e=>b.create({...e,coerce:!0}),number:e=>Z.create({...e,coerce:!0}),boolean:e=>ne.create({...e,coerce:!0}),bigint:e=>H.create({...e,coerce:!0}),date:e=>x.create({...e,coerce:!0})},any:oc,array:uc,bigint:tc,boolean:ua,date:rc,discriminatedUnion:mc,effect:la,enum:Dc,function:Oc,instanceof:js,intersection:yc,lazy:Cc,literal:Nc,map:Tc,nan:ec,nativeEnum:Pc,never:cc,null:ac,nullable:_c,number:da,object:lc,oboolean:()=>ua().optional(),onumber:()=>da().optional(),optional:wc,ostring:()=>ca().optional(),pipeline:Ic,preprocess:vc,promise:Jc,record:hc,set:Sc,strictObject:fc,string:ca,symbol:nc,transformer:la,tuple:gc,undefined:ic,union:pc,unknown:sc,void:dc,NEVER:g,ZodIssueCode:d,quotelessJson:qs,ZodError:I});function bc(e){return e===401||e===403}function Ac(e){return Object.entries(e).map(([t,r])=>`${encodeURIComponent(t)}=${encodeURIComponent(r)}`).join("&")}const Rc=me.object({access_token:me.string().min(1),token_type:me.string(),expires_in:me.number(),scope:me.string()});async function Uc(e){let r=await(await fetch(e.tokenUrl,{method:"POST",body:Ac({grant_type:"client_credentials",client_id:e.clientId,client_secret:e.clientSecret}),headers:{"Content-Type":"application/x-www-form-urlencoded"}})).json();return Fc(r)}function Fc(e){const t=Rc.safeParse(e);if(!t.success)throw new Error("Bad access token response");return t.data}class Ec{constructor(t){E(this,"activeRequest",null);E(this,"refreshTimeout");E(this,"accessToken",null);this.clientCredentials=t}async getAccessToken(){return this.accessToken?this.accessToken:await this.refreshAccessToken()}async refreshAccessToken(){if(this.activeRequest)return await this.activeRequest,this.accessToken;this.accessToken=null,this.activeRequest=Uc(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 fa(e,t){e.headers=kc("Authorization",`Bearer ${t}`,e.headers)}function kc(e,t,r){return r?Array.isArray(r)?r.map(([n,a])=>n!==e?[n,a]:[e,t]):qc(r)?(r.has(e)?r.set(e,t):r.append(e,t),r):(r[e]=t,r):(r={},r[e]=t,r)}function qc(e){return"append"in e&&"delete"in e&&"get"in e&&"has"in e&&"set"in e&&"forEach"in e}function Lc(e){const t=new Ec(e);return{pre:async r=>{const n=await t.getAccessToken();return fa(r.init,n),Promise.resolve({url:r.url,init:r.init})},post:async r=>{if(bc(r.response.status)){const n=await t.refreshAccessToken();return fa(r.init,n),await fetch(r.url,r.init)}return Promise.resolve(r.response)}}}function Mc(e){let t=[],r={};e.clientCredentials&&t.push(Lc(e.clientCredentials)),e.managementApiKey&&(r=Zc(e.managementApiKey));const n=new k({basePath:e.managementApiUrl,headers:r,credentials:"same-origin",middleware:t,...e.configOverrides});return{uiApi:new ea(n),useCaseApi:new ta(n),enterpriseEditionApi:new ji(n)}}function Zc(e){return{"X-Api-Key":e}}i.AssetPageFromJSON=wt,i.AssetPageFromJSONTyped=_t,i.AssetPageToJSON=Ja,i.AssetPageToJSONTyped=vt,i.BASE_PATH=w,i.BaseAPI=Q,i.BlobApiResponse=Sa,i.BuildInfoFromJSON=It,i.BuildInfoFromJSONTyped=bt,i.BuildInfoToJSON=_a,i.BuildInfoToJSONTyped=At,i.COLLECTION_FORMATS=ya,i.CatalogFilterExpressionFromJSON=Zt,i.CatalogFilterExpressionFromJSONTyped=Ht,i.CatalogFilterExpressionLiteralFromJSON=Ft,i.CatalogFilterExpressionLiteralFromJSONTyped=Et,i.CatalogFilterExpressionLiteralToJSON=kt,i.CatalogFilterExpressionLiteralToJSONTyped=qt,i.CatalogFilterExpressionLiteralType=he,i.CatalogFilterExpressionLiteralTypeFromJSON=Rt,i.CatalogFilterExpressionLiteralTypeFromJSONTyped=Ut,i.CatalogFilterExpressionLiteralTypeToJSON=Ia,i.CatalogFilterExpressionLiteralTypeToJSONTyped=ba,i.CatalogFilterExpressionOperator=Te,i.CatalogFilterExpressionOperatorFromJSON=Lt,i.CatalogFilterExpressionOperatorFromJSONTyped=Mt,i.CatalogFilterExpressionOperatorToJSON=Ua,i.CatalogFilterExpressionOperatorToJSONTyped=Fa,i.CatalogFilterExpressionToJSON=Vt,i.CatalogFilterExpressionToJSONTyped=xt,i.CatalogQueryFromJSON=qa,i.CatalogQueryFromJSONTyped=Bt,i.CatalogQueryToJSON=$t,i.CatalogQueryToJSONTyped=zt,i.Configuration=k,i.ConnectorLimitsFromJSON=Qt,i.ConnectorLimitsFromJSONTyped=Gt,i.ConnectorLimitsToJSON=Ma,i.ConnectorLimitsToJSONTyped=Kt,i.ContractAgreementCardFromJSON=tt,i.ContractAgreementCardFromJSONTyped=vr,i.ContractAgreementCardToJSON=Ir,i.ContractAgreementCardToJSONTyped=br,i.ContractAgreementDirection=Se,i.ContractAgreementDirectionFromJSON=Ke,i.ContractAgreementDirectionFromJSONTyped=Wt,i.ContractAgreementDirectionToJSON=Ha,i.ContractAgreementDirectionToJSONTyped=Va,i.ContractAgreementPageFromJSON=Ar,i.ContractAgreementPageFromJSONTyped=Rr,i.ContractAgreementPageQueryFromJSON=So,i.ContractAgreementPageQueryFromJSONTyped=Fr,i.ContractAgreementPageQueryToJSON=Er,i.ContractAgreementPageQueryToJSONTyped=kr,i.ContractAgreementPageToJSON=ho,i.ContractAgreementPageToJSONTyped=Ur,i.ContractAgreementTerminationInfoFromJSON=jt,i.ContractAgreementTerminationInfoFromJSONTyped=er,i.ContractAgreementTerminationInfoToJSON=tr,i.ContractAgreementTerminationInfoToJSONTyped=rr,i.ContractAgreementTransferProcessFromJSON=sr,i.ContractAgreementTransferProcessFromJSONTyped=cr,i.ContractAgreementTransferProcessToJSON=dr,i.ContractAgreementTransferProcessToJSONTyped=ur,i.ContractDefinitionEntryFromJSON=Qr,i.ContractDefinitionEntryFromJSONTyped=Gr,i.ContractDefinitionEntryToJSON=Kr,i.ContractDefinitionEntryToJSONTyped=Wr,i.ContractDefinitionPageFromJSON=Yr,i.ContractDefinitionPageFromJSONTyped=Xr,i.ContractDefinitionPageToJSON=bo,i.ContractDefinitionPageToJSONTyped=jr,i.ContractDefinitionRequestFromJSON=Ro,i.ContractDefinitionRequestFromJSONTyped=en,i.ContractDefinitionRequestToJSON=tn,i.ContractDefinitionRequestToJSONTyped=rn,i.ContractNegotiationRequestFromJSON=Fo,i.ContractNegotiationRequestFromJSONTyped=nn,i.ContractNegotiationRequestToJSON=an,i.ContractNegotiationRequestToJSONTyped=on,i.ContractNegotiationSimplifiedState=be,i.ContractNegotiationSimplifiedStateFromJSON=sn,i.ContractNegotiationSimplifiedStateFromJSONTyped=cn,i.ContractNegotiationSimplifiedStateToJSON=ko,i.ContractNegotiationSimplifiedStateToJSONTyped=qo,i.ContractNegotiationStateFromJSON=dn,i.ContractNegotiationStateFromJSONTyped=un,i.ContractNegotiationStateToJSON=ln,i.ContractNegotiationStateToJSONTyped=fn,i.ContractTerminatedBy=Oe,i.ContractTerminatedByFromJSON=Yt,i.ContractTerminatedByFromJSONTyped=Xt,i.ContractTerminatedByToJSON=Ba,i.ContractTerminatedByToJSONTyped=$a,i.ContractTerminationRequestFromJSON=Zo,i.ContractTerminationRequestFromJSONTyped=pn,i.ContractTerminationRequestToJSON=mn,i.ContractTerminationRequestToJSONTyped=yn,i.ContractTerminationStatus=Ne,i.ContractTerminationStatusFromJSON=Xe,i.ContractTerminationStatusFromJSONTyped=lr,i.ContractTerminationStatusToJSON=ja,i.ContractTerminationStatusToJSONTyped=eo,i.DashboardCxDidConfigFromJSON=gn,i.DashboardCxDidConfigFromJSONTyped=hn,i.DashboardCxDidConfigToJSON=Tn,i.DashboardCxDidConfigToJSONTyped=Sn,i.DashboardDapsConfigFromJSON=On,i.DashboardDapsConfigFromJSONTyped=Cn,i.DashboardDapsConfigToJSON=Nn,i.DashboardDapsConfigToJSONTyped=Dn,i.DashboardPageFromJSON=wn,i.DashboardPageFromJSONTyped=_n,i.DashboardPageToJSON=$o,i.DashboardPageToJSONTyped=vn,i.DashboardTransferAmountsFromJSON=it,i.DashboardTransferAmountsFromJSONTyped=Pn,i.DashboardTransferAmountsToJSON=at,i.DashboardTransferAmountsToJSONTyped=Jn,i.DataOfferCreateRequestFromJSON=ss,i.DataOfferCreateRequestFromJSONTyped=Xn,i.DataOfferCreateRequestToJSON=jn,i.DataOfferCreateRequestToJSONTyped=ei,i.DataOfferPublishType=Ae,i.DataOfferPublishTypeFromJSON=In,i.DataOfferPublishTypeFromJSONTyped=bn,i.DataOfferPublishTypeToJSON=Qo,i.DataOfferPublishTypeToJSONTyped=Go,i.DataSourceAvailability=ye,i.DataSourceAvailabilityFromJSON=Nt,i.DataSourceAvailabilityFromJSONTyped=Dt,i.DataSourceAvailabilityToJSON=Ca,i.DataSourceAvailabilityToJSONTyped=Na,i.DataSourceType=Re,i.DataSourceTypeFromJSON=An,i.DataSourceTypeFromJSONTyped=Rn,i.DataSourceTypeToJSON=Wo,i.DataSourceTypeToJSONTyped=Yo,i.DefaultConfig=gt,i.EnterpriseEditionApi=ji,i.FetchError=Tt,i.IdAvailabilityResponseFromJSON=Ee,i.IdAvailabilityResponseFromJSONTyped=ti,i.IdAvailabilityResponseToJSON=ds,i.IdAvailabilityResponseToJSONTyped=ri,i.IdResponseDtoFromJSON=_,i.IdResponseDtoFromJSONTyped=ni,i.IdResponseDtoToJSON=ls,i.IdResponseDtoToJSONTyped=ii,i.InitiateCustomTransferRequestFromJSON=ps,i.InitiateCustomTransferRequestFromJSONTyped=ai,i.InitiateCustomTransferRequestToJSON=oi,i.InitiateCustomTransferRequestToJSONTyped=si,i.InitiateTransferRequestFromJSON=ys,i.InitiateTransferRequestFromJSONTyped=ci,i.InitiateTransferRequestToJSON=di,i.InitiateTransferRequestToJSONTyped=ui,i.JSONApiResponse=O,i.KpiResultFromJSON=yi,i.KpiResultFromJSONTyped=gi,i.KpiResultToJSON=Ts,i.KpiResultToJSONTyped=hi,i.OperatorDto=De,i.OperatorDtoFromJSON=fr,i.OperatorDtoFromJSONTyped=pr,i.OperatorDtoToJSON=ro,i.OperatorDtoToJSONTyped=no,i.PolicyDefinitionCreateDtoFromJSON=Os,i.PolicyDefinitionCreateDtoFromJSONTyped=Ti,i.PolicyDefinitionCreateDtoToJSON=Si,i.PolicyDefinitionCreateDtoToJSONTyped=Oi,i.PolicyDefinitionCreateRequestFromJSON=Ds,i.PolicyDefinitionCreateRequestFromJSONTyped=Ji,i.PolicyDefinitionCreateRequestToJSON=wi,i.PolicyDefinitionCreateRequestToJSONTyped=_i,i.PolicyDefinitionDtoFromJSON=vi,i.PolicyDefinitionDtoFromJSONTyped=Ii,i.PolicyDefinitionDtoToJSON=bi,i.PolicyDefinitionDtoToJSONTyped=Ai,i.PolicyDefinitionPageFromJSON=Ri,i.PolicyDefinitionPageFromJSONTyped=Ui,i.PolicyDefinitionPageToJSON=ws,i.PolicyDefinitionPageToJSONTyped=Fi,i.RequiredError=P,i.ResponseError=ht,i.SecretValueFromJSON=Un,i.SecretValueFromJSONTyped=Fn,i.SecretValueToJSON=En,i.SecretValueToJSONTyped=kn,i.TextApiResponse=Ct,i.TransferHistoryEntryFromJSON=Ei,i.TransferHistoryEntryFromJSONTyped=ki,i.TransferHistoryEntryToJSON=qi,i.TransferHistoryEntryToJSONTyped=Li,i.TransferHistoryPageFromJSON=Mi,i.TransferHistoryPageFromJSONTyped=Zi,i.TransferHistoryPageToJSON=Is,i.TransferHistoryPageToJSONTyped=Hi,i.TransferProcessSimplifiedState=Ce,i.TransferProcessSimplifiedStateFromJSON=nr,i.TransferProcessSimplifiedStateFromJSONTyped=ir,i.TransferProcessSimplifiedStateToJSON=Ga,i.TransferProcessSimplifiedStateToJSONTyped=Ka,i.TransferProcessStateFromJSON=We,i.TransferProcessStateFromJSONTyped=ar,i.TransferProcessStateToJSON=Ye,i.TransferProcessStateToJSONTyped=or,i.TransferProcessStatesDtoFromJSON=li,i.TransferProcessStatesDtoFromJSONTyped=fi,i.TransferProcessStatesDtoToJSON=pi,i.TransferProcessStatesDtoToJSONTyped=mi,i.UIApi=ea,i.UiAssetCreateRequestFromJSON=Kn,i.UiAssetCreateRequestFromJSONTyped=Wn,i.UiAssetCreateRequestToJSON=Fe,i.UiAssetCreateRequestToJSONTyped=Yn,i.UiAssetEditRequestFromJSON=As,i.UiAssetEditRequestFromJSONTyped=Vi,i.UiAssetEditRequestToJSON=xi,i.UiAssetEditRequestToJSONTyped=Bi,i.UiAssetFromJSON=X,i.UiAssetFromJSONTyped=Pt,i.UiAssetToJSON=ge,i.UiAssetToJSONTyped=Jt,i.UiContractNegotiationFromJSON=ct,i.UiContractNegotiationFromJSONTyped=$i,i.UiContractNegotiationToJSON=Us,i.UiContractNegotiationToJSONTyped=zi,i.UiContractOfferFromJSON=Qi,i.UiContractOfferFromJSONTyped=Gi,i.UiContractOfferToJSON=Ki,i.UiContractOfferToJSONTyped=Wi,i.UiCriterionFromJSON=rt,i.UiCriterionFromJSONTyped=$r,i.UiCriterionLiteralFromJSON=Mr,i.UiCriterionLiteralFromJSONTyped=Zr,i.UiCriterionLiteralToJSON=Hr,i.UiCriterionLiteralToJSONTyped=Vr,i.UiCriterionLiteralType=ve,i.UiCriterionLiteralTypeFromJSON=qr,i.UiCriterionLiteralTypeFromJSONTyped=Lr,i.UiCriterionLiteralTypeToJSON=Co,i.UiCriterionLiteralTypeToJSONTyped=No,i.UiCriterionOperator=Ie,i.UiCriterionOperatorFromJSON=xr,i.UiCriterionOperatorFromJSONTyped=Br,i.UiCriterionOperatorToJSON=Jo,i.UiCriterionOperatorToJSONTyped=wo,i.UiCriterionToJSON=nt,i.UiCriterionToJSONTyped=zr,i.UiDataOfferFromJSON=dt,i.UiDataOfferFromJSONTyped=Yi,i.UiDataOfferToJSON=ks,i.UiDataOfferToJSONTyped=Xi,i.UiDataSourceFromJSON=ot,i.UiDataSourceFromJSONTyped=Qn,i.UiDataSourceHttpDataFromJSON=Mn,i.UiDataSourceHttpDataFromJSONTyped=Zn,i.UiDataSourceHttpDataMethod=Ue,i.UiDataSourceHttpDataMethodFromJSON=qn,i.UiDataSourceHttpDataMethodFromJSONTyped=Ln,i.UiDataSourceHttpDataMethodToJSON=es,i.UiDataSourceHttpDataMethodToJSONTyped=ts,i.UiDataSourceHttpDataToJSON=Hn,i.UiDataSourceHttpDataToJSONTyped=Vn,i.UiDataSourceOnRequestFromJSON=xn,i.UiDataSourceOnRequestFromJSONTyped=Bn,i.UiDataSourceOnRequestToJSON=$n,i.UiDataSourceOnRequestToJSONTyped=zn,i.UiDataSourceToJSON=st,i.UiDataSourceToJSONTyped=Gn,i.UiPolicyConstraintFromJSON=je,i.UiPolicyConstraintFromJSONTyped=Or,i.UiPolicyConstraintToJSON=et,i.UiPolicyConstraintToJSONTyped=Cr,i.UiPolicyCreateRequestFromJSON=Ci,i.UiPolicyCreateRequestFromJSONTyped=Ni,i.UiPolicyCreateRequestToJSON=Di,i.UiPolicyCreateRequestToJSONTyped=Pi,i.UiPolicyExpressionFromJSON=j,i.UiPolicyExpressionFromJSONTyped=Pr,i.UiPolicyExpressionToJSON=ee,i.UiPolicyExpressionToJSONTyped=Jr,i.UiPolicyExpressionType=Je,i.UiPolicyExpressionTypeFromJSON=Nr,i.UiPolicyExpressionTypeFromJSONTyped=Dr,i.UiPolicyExpressionTypeToJSON=lo,i.UiPolicyExpressionTypeToJSONTyped=fo,i.UiPolicyFromJSON=we,i.UiPolicyFromJSONTyped=wr,i.UiPolicyLiteralFromJSON=gr,i.UiPolicyLiteralFromJSONTyped=hr,i.UiPolicyLiteralToJSON=Tr,i.UiPolicyLiteralToJSONTyped=Sr,i.UiPolicyLiteralType=Pe,i.UiPolicyLiteralTypeFromJSON=mr,i.UiPolicyLiteralTypeFromJSONTyped=yr,i.UiPolicyLiteralTypeToJSON=ao,i.UiPolicyLiteralTypeToJSONTyped=oo,i.UiPolicyToJSON=_e,i.UiPolicyToJSONTyped=_r,i.UseCaseApi=ta,i.VoidApiResponse=Ot,i.buildEdcClient=Mc,i.canConsumeForm=Ta,i.exists=ga,i.instanceOfAssetPage=Pa,i.instanceOfBuildInfo=wa,i.instanceOfCatalogFilterExpression=Ea,i.instanceOfCatalogFilterExpressionLiteral=Aa,i.instanceOfCatalogFilterExpressionLiteralType=va,i.instanceOfCatalogFilterExpressionOperator=Ra,i.instanceOfCatalogQuery=ka,i.instanceOfConnectorLimits=La,i.instanceOfContractAgreementCard=yo,i.instanceOfContractAgreementDirection=Za,i.instanceOfContractAgreementPage=go,i.instanceOfContractAgreementPageQuery=To,i.instanceOfContractAgreementTerminationInfo=za,i.instanceOfContractAgreementTransferProcess=Ya,i.instanceOfContractDefinitionEntry=vo,i.instanceOfContractDefinitionPage=Io,i.instanceOfContractDefinitionRequest=Ao,i.instanceOfContractNegotiationRequest=Uo,i.instanceOfContractNegotiationSimplifiedState=Eo,i.instanceOfContractNegotiationState=Lo,i.instanceOfContractTerminatedBy=xa,i.instanceOfContractTerminationRequest=Mo,i.instanceOfContractTerminationStatus=Xa,i.instanceOfDashboardCxDidConfig=Ho,i.instanceOfDashboardDapsConfig=Vo,i.instanceOfDashboardPage=Bo,i.instanceOfDashboardTransferAmounts=xo,i.instanceOfDataOfferCreateRequest=os,i.instanceOfDataOfferPublishType=zo,i.instanceOfDataSourceAvailability=Oa,i.instanceOfDataSourceType=Ko,i.instanceOfIdAvailabilityResponse=cs,i.instanceOfIdResponseDto=us,i.instanceOfInitiateCustomTransferRequest=fs,i.instanceOfInitiateTransferRequest=ms,i.instanceOfKpiResult=hs,i.instanceOfOperatorDto=to,i.instanceOfPolicyDefinitionCreateDto=Ss,i.instanceOfPolicyDefinitionCreateRequest=Ns,i.instanceOfPolicyDefinitionDto=Ps,i.instanceOfPolicyDefinitionPage=Js,i.instanceOfSecretValue=Xo,i.instanceOfTransferHistoryEntry=_s,i.instanceOfTransferHistoryPage=vs,i.instanceOfTransferProcessSimplifiedState=Qa,i.instanceOfTransferProcessState=Wa,i.instanceOfTransferProcessStatesDto=gs,i.instanceOfUiAsset=Da,i.instanceOfUiAssetCreateRequest=as,i.instanceOfUiAssetEditRequest=bs,i.instanceOfUiContractNegotiation=Rs,i.instanceOfUiContractOffer=Fs,i.instanceOfUiCriterion=_o,i.instanceOfUiCriterionLiteral=Do,i.instanceOfUiCriterionLiteralType=Oo,i.instanceOfUiCriterionOperator=Po,i.instanceOfUiDataOffer=Es,i.instanceOfUiDataSource=is,i.instanceOfUiDataSourceHttpData=rs,i.instanceOfUiDataSourceHttpDataMethod=jo,i.instanceOfUiDataSourceOnRequest=ns,i.instanceOfUiPolicy=mo,i.instanceOfUiPolicyConstraint=co,i.instanceOfUiPolicyCreateRequest=Cs,i.instanceOfUiPolicyExpression=po,i.instanceOfUiPolicyExpressionType=uo,i.instanceOfUiPolicyLiteral=so,i.instanceOfUiPolicyLiteralType=io,i.mapValues=ha,i.querystring=Ge,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(i,w){typeof exports=="object"&&typeof module<"u"?w(exports):typeof define=="function"&&define.amd?define(["exports"],w):(i=typeof globalThis<"u"?globalThis:i||self,w(i["sovity-edc-client"]={}))})(this,function(i){"use strict";var nd=Object.defineProperty;var id=(i,w,L)=>w in i?nd(i,w,{enumerable:!0,configurable:!0,writable:!0,value:L}):i[w]=L;var E=(i,w,L)=>id(i,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||Ke}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 ht=new L,Ge=class Ge{constructor(t=ht){E(this,"middleware");E(this,"fetchApi",async(t,r)=>{let n={url:t,init:r};for(const o of this.middleware)o.pre&&(n=await o.pre({fetch:this.fetchApi,...n})||n);let a;try{a=await(this.configuration.fetchApi||fetch)(n.url,n.init)}catch(o){for(const s of this.middleware)s.onError&&(a=await s.onError({fetch:this.fetchApi,url:n.url,init:n.init,error:o,response:a?a.clone():void 0})||a);if(a===void 0)throw o instanceof Error?new St(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:n.url,init:n.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(n=>({pre:n}));return this.withMiddleware(...r)}withPostMiddleware(...t){const r=t.map(n=>({post:n}));return this.withMiddleware(...r)}isJsonMime(t){return t?Ge.jsonRegex.test(t):!1}async request(t,r){const{url:n,init:a}=await this.createFetchParams(t,r),o=await this.fetchApi(n,a);if(o&&o.status>=200&&o.status<300)return o;throw new Tt(o,"Response returned an error code")}async createFetchParams(t,r){let n=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(n+="?"+this.configuration.queryParamsStringify(t.query));const a=Object.assign({},this.configuration.headers,t.headers);Object.keys(a).forEach(S=>a[S]===void 0?delete a[S]:{});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;Ja(c.body)||c.body instanceof URLSearchParams||Pa(c.body)?p=c.body:this.isJsonMime(a["Content-Type"])?p=JSON.stringify(c.body):p=c.body;const u={...c,body:p};return{url:n,init:u}}clone(){const t=this.constructor,r=new t(this.configuration);return r.middleware=this.middleware.slice(),r}};E(Ge,"jsonRegex",new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"));let Q=Ge;function Pa(e){return typeof Blob<"u"&&e instanceof Blob}function Ja(e){return typeof FormData<"u"&&e instanceof FormData}class Tt extends Error{constructor(r,n){super(n);E(this,"name","ResponseError");this.response=r}}class St extends Error{constructor(r,n){super(n);E(this,"name","FetchError");this.cause=r}}class P extends Error{constructor(r,n){super(n);E(this,"name","RequiredError");this.field=r}}const wa={csv:",",ssv:" ",tsv:" ",pipes:"|"};function Ke(e,t=""){return Object.keys(e).map(r=>Ot(r,e[r],t)).filter(r=>r.length>0).join("&")}function Ot(e,t,r=""){const n=r+(r.length?`[${e}]`:e);if(t instanceof Array){const a=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(n)}=`);return`${encodeURIComponent(n)}=${a}`}if(t instanceof Set){const a=Array.from(t);return Ot(e,a,r)}return t instanceof Date?`${encodeURIComponent(n)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?Ke(t,n):`${encodeURIComponent(n)}=${encodeURIComponent(String(t))}`}function _a(e,t){const r=e[t];return r!=null}function Ia(e,t){return Object.keys(e).reduce((r,n)=>({...r,[n]:t(e[n])}),{})}function Aa(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class O{constructor(t,r=n=>n){this.raw=t,this.transformer=r}async value(){return this.transformer(await this.raw.json())}}class Ct{constructor(t){this.raw=t}async value(){}}class va{constructor(t){this.raw=t}async value(){return await this.raw.blob()}}class Nt{constructor(t){this.raw=t}async value(){return await this.raw.text()}}const ye={Live:"LIVE",OnRequest:"ON_REQUEST"};function ba(e){for(const t in ye)if(Object.prototype.hasOwnProperty.call(ye,t)&&ye[t]===e)return!0;return!1}function Dt(e){return Pt(e)}function Pt(e,t){return e}function Ua(e){return e}function Ra(e,t){return e}function Fa(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 X(e){return Jt(e)}function Jt(e,t){return e==null?e:{dataSourceAvailability:Dt(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,dataCategory:e.dataCategory==null?void 0:e.dataCategory,dataSubcategory:e.dataSubcategory==null?void 0:e.dataSubcategory,dataModel:e.dataModel==null?void 0:e.dataModel,geoReferenceMethod:e.geoReferenceMethod==null?void 0:e.geoReferenceMethod,transportMode:e.transportMode==null?void 0:e.transportMode,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,geoLocation:e.geoLocation==null?void 0:e.geoLocation,nutsLocations:e.nutsLocations==null?void 0:e.nutsLocations,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),assetJsonLd:e.assetJsonLd==null?void 0:e.assetJsonLd,customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function ge(e){return wt(e,!1)}function wt(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,dataCategory:e.dataCategory,dataSubcategory:e.dataSubcategory,dataModel:e.dataModel,geoReferenceMethod:e.geoReferenceMethod,transportMode:e.transportMode,sovereignLegalName:e.sovereignLegalName,geoLocation:e.geoLocation,nutsLocations:e.nutsLocations,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),assetJsonLd:e.assetJsonLd,customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function Ea(e){return!(!("assets"in e)||e.assets===void 0)}function _t(e){return It(e)}function It(e,t){return e==null?e:{assets:e.assets.map(X)}}function ka(e){return At(e,!1)}function At(e,t=!1){return e==null?e:{assets:e.assets.map(ge)}}function qa(e){return!(!("buildDate"in e)||e.buildDate===void 0||!("buildVersion"in e)||e.buildVersion===void 0)}function vt(e){return bt(e)}function bt(e,t){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}function La(e){return Ut(e,!1)}function Ut(e,t=!1){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}const he={Value:"VALUE",ValueList:"VALUE_LIST"};function Ma(e){for(const t in he)if(Object.prototype.hasOwnProperty.call(he,t)&&he[t]===e)return!0;return!1}function Rt(e){return Ft(e)}function Ft(e,t){return e}function Za(e){return e}function Ha(e,t){return e}function Va(e){return!0}function Et(e){return kt(e)}function kt(e,t){return e==null?e:{type:e.type==null?void 0:Rt(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function qt(e){return Lt(e,!1)}function Lt(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const Te={Like:"LIKE",Eq:"EQ",In:"IN"};function Ba(e){for(const t in Te)if(Object.prototype.hasOwnProperty.call(Te,t)&&Te[t]===e)return!0;return!1}function Mt(e){return Zt(e)}function Zt(e,t){return e}function $a(e){return e}function za(e,t){return e}function xa(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function Ht(e){return Vt(e)}function Vt(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:Mt(e.operator),operandRight:Et(e.operandRight)}}function Bt(e){return $t(e,!1)}function $t(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:qt(e.operandRight)}}function Qa(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function Ga(e){return zt(e)}function zt(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(Ht)}}function xt(e){return Qt(e,!1)}function Qt(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(Bt)}}function Ka(e){return!(!("numActiveConsumingContractAgreements"in e)||e.numActiveConsumingContractAgreements===void 0)}function Gt(e){return Kt(e)}function Kt(e,t){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements==null?void 0:e.maxActiveConsumingContractAgreements}}function Wa(e){return Wt(e,!1)}function Wt(e,t=!1){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements}}const Se={Consuming:"CONSUMING",Providing:"PROVIDING"};function Ya(e){for(const t in Se)if(Object.prototype.hasOwnProperty.call(Se,t)&&Se[t]===e)return!0;return!1}function We(e){return Yt(e)}function Yt(e,t){return e}function Xa(e){return e}function ja(e,t){return e}const Oe={Self:"SELF",Counterparty:"COUNTERPARTY"};function eo(e){for(const t in Oe)if(Object.prototype.hasOwnProperty.call(Oe,t)&&Oe[t]===e)return!0;return!1}function Xt(e){return jt(e)}function jt(e,t){return e}function to(e){return e}function ro(e,t){return e}function no(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 er(e){return tr(e)}function tr(e,t){return e==null?e:{terminatedAt:new Date(e.terminatedAt),reason:e.reason,detail:e.detail,terminatedBy:Xt(e.terminatedBy)}}function rr(e){return nr(e,!1)}function nr(e,t=!1){return e==null?e:{terminatedAt:e.terminatedAt.toISOString(),reason:e.reason,detail:e.detail,terminatedBy:e.terminatedBy}}const Ce={Running:"RUNNING",Ok:"OK",Error:"ERROR"};function io(e){for(const t in Ce)if(Object.prototype.hasOwnProperty.call(Ce,t)&&Ce[t]===e)return!0;return!1}function ir(e){return ar(e)}function ar(e,t){return e}function ao(e){return e}function oo(e,t){return e}function so(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function Ye(e){return or(e)}function or(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:ir(e.simplifiedState)}}function Xe(e){return sr(e,!1)}function sr(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function co(e){return!(!("transferProcessId"in e)||e.transferProcessId===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0||!("state"in e)||e.state===void 0)}function cr(e){return dr(e)}function dr(e,t){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:new Date(e.lastUpdatedDate),state:Ye(e.state),errorMessage:e.errorMessage==null?void 0:e.errorMessage}}function ur(e){return lr(e,!1)}function lr(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:e.lastUpdatedDate.toISOString(),state:Xe(e.state),errorMessage:e.errorMessage}}const Ne={Ongoing:"ONGOING",Terminated:"TERMINATED"};function uo(e){for(const t in Ne)if(Object.prototype.hasOwnProperty.call(Ne,t)&&Ne[t]===e)return!0;return!1}function je(e){return fr(e)}function fr(e,t){return e}function lo(e){return e}function fo(e,t){return e}const De={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 po(e){for(const t in De)if(Object.prototype.hasOwnProperty.call(De,t)&&De[t]===e)return!0;return!1}function pr(e){return mr(e)}function mr(e,t){return e}function mo(e){return e}function yo(e,t){return e}const Pe={String:"STRING",StringList:"STRING_LIST",Json:"JSON"};function go(e){for(const t in Pe)if(Object.prototype.hasOwnProperty.call(Pe,t)&&Pe[t]===e)return!0;return!1}function yr(e){return gr(e)}function gr(e,t){return e}function ho(e){return e}function To(e,t){return e}function So(e){return!(!("type"in e)||e.type===void 0)}function hr(e){return Tr(e)}function Tr(e,t){return e==null?e:{type:yr(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Sr(e){return Or(e,!1)}function Or(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}function Oo(e){return!(!("left"in e)||e.left===void 0||!("operator"in e)||e.operator===void 0||!("right"in e)||e.right===void 0)}function et(e){return Cr(e)}function Cr(e,t){return e==null?e:{left:e.left,operator:pr(e.operator),right:hr(e.right)}}function tt(e){return Nr(e,!1)}function Nr(e,t=!1){return e==null?e:{left:e.left,operator:e.operator,right:Sr(e.right)}}const Je={Empty:"EMPTY",Constraint:"CONSTRAINT",And:"AND",Or:"OR",Xone:"XONE"};function Co(e){for(const t in Je)if(Object.prototype.hasOwnProperty.call(Je,t)&&Je[t]===e)return!0;return!1}function Dr(e){return Pr(e)}function Pr(e,t){return e}function No(e){return e}function Do(e,t){return e}function Po(e){return!(!("type"in e)||e.type===void 0)}function j(e){return Jr(e)}function Jr(e,t){return e==null?e:{type:Dr(e.type),expressions:e.expressions==null?void 0:e.expressions.map(j),constraint:e.constraint==null?void 0:et(e.constraint)}}function ee(e){return wr(e,!1)}function wr(e,t=!1){return e==null?e:{type:e.type,expressions:e.expressions==null?void 0:e.expressions.map(ee),constraint:tt(e.constraint)}}function Jo(e){return!(!("policyJsonLd"in e)||e.policyJsonLd===void 0||!("errors"in e)||e.errors===void 0)}function we(e){return _r(e)}function _r(e,t){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:e.expression==null?void 0:j(e.expression),errors:e.errors}}function _e(e){return Ir(e,!1)}function Ir(e,t=!1){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:ee(e.expression),errors:e.errors}}function wo(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 rt(e){return Ar(e)}function Ar(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,contractNegotiationId:e.contractNegotiationId,direction:We(e.direction),counterPartyAddress:e.counterPartyAddress,counterPartyId:e.counterPartyId,contractSigningDate:new Date(e.contractSigningDate),asset:X(e.asset),contractPolicy:we(e.contractPolicy),transferProcesses:e.transferProcesses.map(cr),terminationStatus:je(e.terminationStatus),terminationInformation:e.terminationInformation==null?void 0:er(e.terminationInformation)}}function vr(e){return br(e,!1)}function br(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:ge(e.asset),contractPolicy:_e(e.contractPolicy),transferProcesses:e.transferProcesses.map(ur),terminationStatus:e.terminationStatus,terminationInformation:rr(e.terminationInformation)}}function _o(e){return!(!("contractAgreements"in e)||e.contractAgreements===void 0)}function Ur(e){return Rr(e)}function Rr(e,t){return e==null?e:{contractAgreements:e.contractAgreements.map(rt)}}function Io(e){return Fr(e,!1)}function Fr(e,t=!1){return e==null?e:{contractAgreements:e.contractAgreements.map(vr)}}function Ao(e){return!0}function vo(e){return Er(e)}function Er(e,t){return e==null?e:{terminationStatus:e.terminationStatus==null?void 0:je(e.terminationStatus)}}function kr(e){return qr(e,!1)}function qr(e,t=!1){return e==null?e:{terminationStatus:e.terminationStatus}}const Ie={Value:"VALUE",ValueList:"VALUE_LIST"};function bo(e){for(const t in Ie)if(Object.prototype.hasOwnProperty.call(Ie,t)&&Ie[t]===e)return!0;return!1}function Lr(e){return Mr(e)}function Mr(e,t){return e}function Uo(e){return e}function Ro(e,t){return e}function Fo(e){return!0}function Zr(e){return Hr(e)}function Hr(e,t){return e==null?e:{type:e.type==null?void 0:Lr(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Vr(e){return Br(e,!1)}function Br(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const Ae={Eq:"EQ",In:"IN",Like:"LIKE"};function Eo(e){for(const t in Ae)if(Object.prototype.hasOwnProperty.call(Ae,t)&&Ae[t]===e)return!0;return!1}function $r(e){return zr(e)}function zr(e,t){return e}function ko(e){return e}function qo(e,t){return e}function Lo(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function nt(e){return xr(e)}function xr(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:$r(e.operator),operandRight:Zr(e.operandRight)}}function it(e){return Qr(e,!1)}function Qr(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:Vr(e.operandRight)}}function Mo(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 Gr(e){return Kr(e)}function Kr(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(nt)}}function Wr(e){return Yr(e,!1)}function Yr(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(it)}}function Zo(e){return!(!("contractDefinitions"in e)||e.contractDefinitions===void 0)}function Xr(e){return jr(e)}function jr(e,t){return e==null?e:{contractDefinitions:e.contractDefinitions.map(Gr)}}function Ho(e){return en(e,!1)}function en(e,t=!1){return e==null?e:{contractDefinitions:e.contractDefinitions.map(Wr)}}function Vo(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 Bo(e){return tn(e)}function tn(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(nt)}}function rn(e){return nn(e,!1)}function nn(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(it)}}function $o(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 zo(e){return an(e)}function an(e,t){return e==null?e:{counterPartyId:e.counterPartyId,counterPartyAddress:e.counterPartyAddress,contractOfferId:e.contractOfferId,policyJsonLd:e.policyJsonLd,assetId:e.assetId}}function on(e){return sn(e,!1)}function sn(e,t=!1){return e==null?e:{counterPartyId:e.counterPartyId,counterPartyAddress:e.counterPartyAddress,contractOfferId:e.contractOfferId,policyJsonLd:e.policyJsonLd,assetId:e.assetId}}const ve={InProgress:"IN_PROGRESS",Agreed:"AGREED",Terminated:"TERMINATED"};function xo(e){for(const t in ve)if(Object.prototype.hasOwnProperty.call(ve,t)&&ve[t]===e)return!0;return!1}function cn(e){return dn(e)}function dn(e,t){return e}function Qo(e){return e}function Go(e,t){return e}function Ko(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function un(e){return ln(e)}function ln(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:cn(e.simplifiedState)}}function fn(e){return pn(e,!1)}function pn(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function Wo(e){return!(!("detail"in e)||e.detail===void 0||!("reason"in e)||e.reason===void 0)}function Yo(e){return mn(e)}function mn(e,t){return e==null?e:{detail:e.detail,reason:e.reason}}function yn(e){return gn(e,!1)}function gn(e,t=!1){return e==null?e:{detail:e.detail,reason:e.reason}}function Xo(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 hn(e){return Tn(e)}function Tn(e,t){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function Sn(e){return On(e,!1)}function On(e,t=!1){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function jo(e){return!(!("tokenUrl"in e)||e.tokenUrl===void 0||!("jwksUrl"in e)||e.jwksUrl===void 0)}function Cn(e){return Nn(e)}function Nn(e,t){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function Dn(e){return Pn(e,!1)}function Pn(e,t=!1){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function es(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 at(e){return Jn(e)}function Jn(e,t){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function ot(e){return wn(e,!1)}function wn(e,t=!1){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function ts(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 _n(e){return In(e)}function In(e,t){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:at(e.transferProcessesConsuming),transferProcessesProviding:at(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:Cn(e.connectorDapsConfig),connectorCxDidConfig:e.connectorCxDidConfig==null?void 0:hn(e.connectorCxDidConfig)}}function rs(e){return An(e,!1)}function An(e,t=!1){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:ot(e.transferProcessesConsuming),transferProcessesProviding:ot(e.transferProcessesProviding),managementApiUrlShownInDashboard:e.managementApiUrlShownInDashboard,connectorEndpoint:e.connectorEndpoint,connectorParticipantId:e.connectorParticipantId,connectorTitle:e.connectorTitle,connectorDescription:e.connectorDescription,connectorCuratorUrl:e.connectorCuratorUrl,connectorCuratorName:e.connectorCuratorName,connectorMaintainerUrl:e.connectorMaintainerUrl,connectorMaintainerName:e.connectorMaintainerName,connectorDapsConfig:Dn(e.connectorDapsConfig),connectorCxDidConfig:Sn(e.connectorCxDidConfig)}}const be={DontPublish:"DONT_PUBLISH",PublishUnrestricted:"PUBLISH_UNRESTRICTED",PublishRestricted:"PUBLISH_RESTRICTED"};function ns(e){for(const t in be)if(Object.prototype.hasOwnProperty.call(be,t)&&be[t]===e)return!0;return!1}function vn(e){return bn(e)}function bn(e,t){return e}function is(e){return e}function as(e,t){return e}const Ue={HttpData:"HTTP_DATA",OnRequest:"ON_REQUEST",Custom:"CUSTOM"};function os(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 ss(e){return e}function cs(e,t){return e}function ds(e){return!0}function Fn(e){return En(e)}function En(e,t){return e==null?e:{secretName:e.secretName==null?void 0:e.secretName,rawValue:e.rawValue==null?void 0:e.rawValue}}function kn(e){return qn(e,!1)}function qn(e,t=!1){return e==null?e:{secretName:e.secretName,rawValue:e.rawValue}}const Re={Get:"GET",Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Options:"OPTIONS"};function us(e){for(const t in Re)if(Object.prototype.hasOwnProperty.call(Re,t)&&Re[t]===e)return!0;return!1}function Ln(e){return Mn(e)}function Mn(e,t){return e}function ls(e){return e}function fs(e,t){return e}function ps(e){return!(!("baseUrl"in e)||e.baseUrl===void 0)}function Zn(e){return Hn(e)}function Hn(e,t){return e==null?e:{method:e.method==null?void 0:Ln(e.method),baseUrl:e.baseUrl,queryString:e.queryString==null?void 0:e.queryString,authHeaderName:e.authHeaderName==null?void 0:e.authHeaderName,authHeaderValue:e.authHeaderValue==null?void 0:Fn(e.authHeaderValue),headers:e.headers==null?void 0:e.headers,enableMethodParameterization:e.enableMethodParameterization==null?void 0:e.enableMethodParameterization,enablePathParameterization:e.enablePathParameterization==null?void 0:e.enablePathParameterization,enableQueryParameterization:e.enableQueryParameterization==null?void 0:e.enableQueryParameterization,enableBodyParameterization:e.enableBodyParameterization==null?void 0:e.enableBodyParameterization}}function Vn(e){return Bn(e,!1)}function Bn(e,t=!1){return e==null?e:{method:e.method,baseUrl:e.baseUrl,queryString:e.queryString,authHeaderName:e.authHeaderName,authHeaderValue:kn(e.authHeaderValue),headers:e.headers,enableMethodParameterization:e.enableMethodParameterization,enablePathParameterization:e.enablePathParameterization,enableQueryParameterization:e.enableQueryParameterization,enableBodyParameterization:e.enableBodyParameterization}}function ms(e){return!(!("contactEmail"in e)||e.contactEmail===void 0||!("contactPreferredEmailSubject"in e)||e.contactPreferredEmailSubject===void 0)}function $n(e){return zn(e)}function zn(e,t){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function xn(e){return Qn(e,!1)}function Qn(e,t=!1){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function ys(e){return!(!("type"in e)||e.type===void 0)}function st(e){return Gn(e)}function Gn(e,t){return e==null?e:{type:Un(e.type),httpData:e.httpData==null?void 0:Zn(e.httpData),onRequest:e.onRequest==null?void 0:$n(e.onRequest),customProperties:e.customProperties==null?void 0:e.customProperties}}function ct(e){return Kn(e,!1)}function Kn(e,t=!1){return e==null?e:{type:e.type,httpData:Vn(e.httpData),onRequest:xn(e.onRequest),customProperties:e.customProperties}}function gs(e){return!(!("dataSource"in e)||e.dataSource===void 0||!("id"in e)||e.id===void 0)}function Wn(e){return Yn(e)}function Yn(e,t){return e==null?e:{dataSource:st(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,dataCategory:e.dataCategory==null?void 0:e.dataCategory,dataSubcategory:e.dataSubcategory==null?void 0:e.dataSubcategory,dataModel:e.dataModel==null?void 0:e.dataModel,geoReferenceMethod:e.geoReferenceMethod==null?void 0:e.geoReferenceMethod,transportMode:e.transportMode==null?void 0:e.transportMode,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,geoLocation:e.geoLocation==null?void 0:e.geoLocation,nutsLocations:e.nutsLocations==null?void 0:e.nutsLocations,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function Fe(e){return Xn(e,!1)}function Xn(e,t=!1){return e==null?e:{dataSource:ct(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,dataCategory:e.dataCategory,dataSubcategory:e.dataSubcategory,dataModel:e.dataModel,geoReferenceMethod:e.geoReferenceMethod,transportMode:e.transportMode,sovereignLegalName:e.sovereignLegalName,geoLocation:e.geoLocation,nutsLocations:e.nutsLocations,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function hs(e){return!(!("asset"in e)||e.asset===void 0||!("publishType"in e)||e.publishType===void 0)}function Ts(e){return jn(e)}function jn(e,t){return e==null?e:{asset:Wn(e.asset),publishType:vn(e.publishType),policyExpression:e.policyExpression==null?void 0:j(e.policyExpression)}}function ei(e){return ti(e,!1)}function ti(e,t=!1){return e==null?e:{asset:Fe(e.asset),publishType:e.publishType,policyExpression:ee(e.policyExpression)}}function Ss(e){return!(!("id"in e)||e.id===void 0)}function Ee(e){return ri(e)}function ri(e,t){return e==null?e:{id:e.id,available:e.available==null?void 0:e.available}}function Os(e){return ni(e,!1)}function ni(e,t=!1){return e==null?e:{id:e.id,available:e.available}}function Cs(e){return!(!("id"in e)||e.id===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0)}function _(e){return ii(e)}function ii(e,t){return e==null?e:{id:e.id,lastUpdatedDate:new Date(e.lastUpdatedDate)}}function Ns(e){return ai(e,!1)}function ai(e,t=!1){return e==null?e:{id:e.id,lastUpdatedDate:e.lastUpdatedDate.toISOString()}}function Ds(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("transferProcessRequestJsonLd"in e)||e.transferProcessRequestJsonLd===void 0)}function Ps(e){return oi(e)}function oi(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function si(e){return ci(e,!1)}function ci(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function Js(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 ws(e){return di(e)}function di(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function ui(e){return li(e,!1)}function li(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function _s(e){return!(!("incomingTransferProcessCounts"in e)||e.incomingTransferProcessCounts===void 0||!("outgoingTransferProcessCounts"in e)||e.outgoingTransferProcessCounts===void 0)}function fi(e){return pi(e)}function pi(e,t){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function mi(e){return yi(e,!1)}function yi(e,t=!1){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function Is(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 gi(e){return hi(e)}function hi(e,t){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:fi(e.transferProcessDto)}}function As(e){return Ti(e,!1)}function Ti(e,t=!1){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:mi(e.transferProcessDto)}}function vs(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("expression"in e)||e.expression===void 0)}function bs(e){return Si(e)}function Si(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,expression:j(e.expression)}}function Oi(e){return Ci(e,!1)}function Ci(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,expression:ee(e.expression)}}function Us(e){return!0}function Ni(e){return Di(e)}function Di(e,t){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(et)}}function Pi(e){return Ji(e,!1)}function Ji(e,t=!1){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(tt)}}function Rs(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function Fs(e){return wi(e)}function wi(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:Ni(e.policy)}}function _i(e){return Ii(e,!1)}function Ii(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:Pi(e.policy)}}function Es(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function Ai(e){return vi(e)}function vi(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:we(e.policy)}}function bi(e){return Ui(e,!1)}function Ui(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:_e(e.policy)}}function ks(e){return!(!("policies"in e)||e.policies===void 0)}function Ri(e){return Fi(e)}function Fi(e,t){return e==null?e:{policies:e.policies.map(Ai)}}function qs(e){return Ei(e,!1)}function Ei(e,t=!1){return e==null?e:{policies:e.policies.map(bi)}}function Ls(e){return!(!("transferProcessId"in e)||e.transferProcessId===void 0||!("createdDate"in e)||e.createdDate===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===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)}function ki(e){return qi(e)}function qi(e,t){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:new Date(e.createdDate),lastUpdatedDate:new Date(e.lastUpdatedDate),state:Ye(e.state),contractAgreementId:e.contractAgreementId,direction:We(e.direction),counterPartyConnectorEndpoint:e.counterPartyConnectorEndpoint,counterPartyParticipantId:e.counterPartyParticipantId,assetName:e.assetName,assetId:e.assetId,errorMessage:e.errorMessage==null?void 0:e.errorMessage}}function Li(e){return Mi(e,!1)}function Mi(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:e.createdDate.toISOString(),lastUpdatedDate:e.lastUpdatedDate.toISOString(),state:Xe(e.state),contractAgreementId:e.contractAgreementId,direction:e.direction,counterPartyConnectorEndpoint:e.counterPartyConnectorEndpoint,counterPartyParticipantId:e.counterPartyParticipantId,assetName:e.assetName,assetId:e.assetId,errorMessage:e.errorMessage}}function Ms(e){return!(!("transferEntries"in e)||e.transferEntries===void 0)}function Zi(e){return Hi(e)}function Hi(e,t){return e==null?e:{transferEntries:e.transferEntries.map(ki)}}function Zs(e){return Vi(e,!1)}function Vi(e,t=!1){return e==null?e:{transferEntries:e.transferEntries.map(Li)}}function Hs(e){return!0}function Vs(e){return Bi(e)}function Bi(e,t){return e==null?e:{dataSourceOverrideOrNull:e.dataSourceOverrideOrNull==null?void 0:st(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,dataCategory:e.dataCategory==null?void 0:e.dataCategory,dataSubcategory:e.dataSubcategory==null?void 0:e.dataSubcategory,dataModel:e.dataModel==null?void 0:e.dataModel,geoReferenceMethod:e.geoReferenceMethod==null?void 0:e.geoReferenceMethod,transportMode:e.transportMode==null?void 0:e.transportMode,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,geoLocation:e.geoLocation==null?void 0:e.geoLocation,nutsLocations:e.nutsLocations==null?void 0:e.nutsLocations,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function $i(e){return zi(e,!1)}function zi(e,t=!1){return e==null?e:{dataSourceOverrideOrNull:ct(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,dataCategory:e.dataCategory,dataSubcategory:e.dataSubcategory,dataModel:e.dataModel,geoReferenceMethod:e.geoReferenceMethod,transportMode:e.transportMode,sovereignLegalName:e.sovereignLegalName,geoLocation:e.geoLocation,nutsLocations:e.nutsLocations,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}const ke={ConnectorLimits:"CONNECTOR_LIMITS",OpenSourceMarketing:"OPEN_SOURCE_MARKETING",EeBasicMarketing:"EE_BASIC_MARKETING"};function Bs(e){for(const t in ke)if(Object.prototype.hasOwnProperty.call(ke,t)&&ke[t]===e)return!0;return!1}function xi(e){return Qi(e)}function Qi(e,t){return e}function Gi(e){return e}function $s(e,t){return e}function zs(e){return!(!("participantId"in e)||e.participantId===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function Ki(e){return Wi(e)}function Wi(e,t){return e==null?e:{participantId:e.participantId,connectorEndpoint:e.connectorEndpoint}}function Yi(e){return Xi(e,!1)}function Xi(e,t=!1){return e==null?e:{participantId:e.participantId,connectorEndpoint:e.connectorEndpoint}}function xs(e){return!(!("features"in e)||e.features===void 0||!("preconfiguredCounterparties"in e)||e.preconfiguredCounterparties===void 0)}function ji(e){return ea(e)}function ea(e,t){return e==null?e:{features:e.features.map(xi),preconfiguredCounterparties:e.preconfiguredCounterparties.map(Ki),logoutUrl:e.logoutUrl==null?void 0:e.logoutUrl,documentationUrl:e.documentationUrl==null?void 0:e.documentationUrl,supportUrl:e.supportUrl==null?void 0:e.supportUrl,privacyPolicyUrl:e.privacyPolicyUrl==null?void 0:e.privacyPolicyUrl,legalNoticeUrl:e.legalNoticeUrl==null?void 0:e.legalNoticeUrl}}function Qs(e){return ta(e,!1)}function ta(e,t=!1){return e==null?e:{features:e.features.map(Gi),preconfiguredCounterparties:e.preconfiguredCounterparties.map(Yi),logoutUrl:e.logoutUrl,documentationUrl:e.documentationUrl,supportUrl:e.supportUrl,privacyPolicyUrl:e.privacyPolicyUrl,legalNoticeUrl:e.legalNoticeUrl}}function Gs(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("createdAt"in e)||e.createdAt===void 0||!("state"in e)||e.state===void 0)}function dt(e){return ra(e)}function ra(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:new Date(e.createdAt),contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,state:un(e.state)}}function Ks(e){return na(e,!1)}function na(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:e.createdAt.toISOString(),contractAgreementId:e.contractAgreementId,state:fn(e.state)}}function Ws(e){return!(!("contractOfferId"in e)||e.contractOfferId===void 0||!("policy"in e)||e.policy===void 0)}function ia(e){return aa(e)}function aa(e,t){return e==null?e:{contractOfferId:e.contractOfferId,policy:we(e.policy)}}function oa(e){return sa(e,!1)}function sa(e,t=!1){return e==null?e:{contractOfferId:e.contractOfferId,policy:_e(e.policy)}}function Ys(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 ut(e){return ca(e)}function ca(e,t){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:X(e.asset),contractOffers:e.contractOffers.map(ia)}}function Xs(e){return da(e,!1)}function da(e,t=!1){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:ge(e.asset),contractOffers:e.contractOffers.map(oa)}}class ua extends Q{async connectorLimitsRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ee/connector-limits",method:"GET",headers:n,query:r},t);return new O(a,o=>Gt(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 n={},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:n,body:Fe(t.uiAssetCreateRequest)},r);return new Ct(o)}async fileUploadCreateAsset(t,r){await this.fileUploadCreateAssetRaw(t,r)}async fileUploadRequestSasTokenRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ee/file-upload/blobs",method:"POST",headers:n,query:r},t);return this.isJsonMime(a.headers.get("content-type"))?new O(a):new Nt(a)}async fileUploadRequestSasToken(t){return await(await this.fileUploadRequestSasTokenRaw(t)).value()}}class la extends Q{async buildInfoRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ui/build-info",method:"GET",headers:n,query:r},t);return new O(a,o=>vt(o))}async buildInfo(t){return await(await this.buildInfoRaw(t)).value()}async createAssetRaw(t,r){const n={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/asset-page/assets",method:"POST",headers:a,query:n,body:Fe(t.uiAssetCreateRequest)},r);return new O(o,s=>_(s))}async createAsset(t={},r){return await(await this.createAssetRaw(t,r)).value()}async createContractDefinitionRaw(t,r){const n={},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:n,body:rn(t.contractDefinitionRequest)},r);return new O(o,s=>_(s))}async createContractDefinition(t={},r){return await(await this.createContractDefinitionRaw(t,r)).value()}async createDataOfferRaw(t,r){const n={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/create-data-offer",method:"POST",headers:a,query:n,body:ei(t.dataOfferCreateRequest)},r);return new O(o,s=>_(s))}async createDataOffer(t={},r){return await(await this.createDataOfferRaw(t,r)).value()}async createPolicyDefinitionRaw(t,r){const n={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/policy-page/policy-definitions",method:"POST",headers:a,query:n,body:_i(t.policyDefinitionCreateRequest)},r);return new O(o,s=>_(s))}async createPolicyDefinition(t={},r){return await(await this.createPolicyDefinitionRaw(t,r)).value()}async createPolicyDefinitionV2Raw(t,r){const n={},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:n,body:Oi(t.policyDefinitionCreateDto)},r);return new O(o,s=>_(s))}async createPolicyDefinitionV2(t={},r){return await(await this.createPolicyDefinitionV2Raw(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 n={},a={},o=await this.request({path:"/wrapper/ui/pages/asset-page/assets/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"DELETE",headers:a,query:n},r);return new O(o,s=>_(s))}async deleteAsset(t,r){return await(await this.deleteAssetRaw(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 n={},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:n},r);return new O(o,s=>_(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 n={},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:n},r);return new O(o,s=>_(s))}async deletePolicyDefinition(t,r){return await(await this.deletePolicyDefinitionRaw(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 n={},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:n,body:$i(t.uiAssetEditRequest)},r);return new O(o,s=>_(s))}async editAsset(t,r){return await(await this.editAssetRaw(t,r)).value()}async getAssetPageRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ui/pages/asset-page",method:"GET",headers:n,query:r},t);return new O(a,o=>_t(o))}async getAssetPage(t){return await(await this.getAssetPageRaw(t)).value()}async getCatalogPageDataOffersRaw(t,r){const n={};t.participantId!=null&&(n.participantId=t.participantId),t.connectorEndpoint!=null&&(n.connectorEndpoint=t.connectorEndpoint);const a={},o=await this.request({path:"/wrapper/ui/pages/catalog-page/data-offers",method:"GET",headers:a,query:n},r);return new O(o,s=>s.map(ut))}async getCatalogPageDataOffers(t={},r){return await(await this.getCatalogPageDataOffersRaw(t,r)).value()}async getContractAgreementCardRaw(t,r){if(t.contractAgreementId==null)throw new P("contractAgreementId",'Required parameter "contractAgreementId" was null or undefined when calling getContractAgreementCard().');const n={},a={},o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/{contractAgreementId}".replace("{contractAgreementId}",encodeURIComponent(String(t.contractAgreementId))),method:"GET",headers:a,query:n},r);return new O(o,s=>rt(s))}async getContractAgreementCard(t,r){return await(await this.getContractAgreementCardRaw(t,r)).value()}async getContractAgreementPageRaw(t,r){const n={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page",method:"POST",headers:a,query:n,body:kr(t.contractAgreementPageQuery)},r);return new O(o,s=>Ur(s))}async getContractAgreementPage(t={},r){return await(await this.getContractAgreementPageRaw(t,r)).value()}async getContractDefinitionPageRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ui/pages/contract-definition-page",method:"GET",headers:n,query:r},t);return new O(a,o=>Xr(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 n={},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:n},r);return new O(o,s=>dt(s))}async getContractNegotiation(t,r){return await(await this.getContractNegotiationRaw(t,r)).value()}async getDashboardPageRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ui/pages/dashboard-page",method:"GET",headers:n,query:r},t);return new O(a,o=>_n(o))}async getDashboardPage(t){return await(await this.getDashboardPageRaw(t)).value()}async getPolicyDefinitionPageRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ui/pages/policy-page",method:"GET",headers:n,query:r},t);return new O(a,o=>Ri(o))}async getPolicyDefinitionPage(t){return await(await this.getPolicyDefinitionPageRaw(t)).value()}async getTransferHistoryPageRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ui/pages/transfer-history-page",method:"GET",headers:n,query:r},t);return new O(a,o=>Zi(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 n={},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:n},r);return new O(o,s=>X(s))}async getTransferProcessAsset(t,r){return await(await this.getTransferProcessAssetRaw(t,r)).value()}async initiateContractNegotiationRaw(t,r){const n={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/catalog-page/contract-negotiations",method:"POST",headers:a,query:n,body:on(t.contractNegotiationRequest)},r);return new O(o,s=>dt(s))}async initiateContractNegotiation(t={},r){return await(await this.initiateContractNegotiationRaw(t,r)).value()}async initiateCustomTransferRaw(t,r){const n={},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:n,body:si(t.initiateCustomTransferRequest)},r);return new O(o,s=>_(s))}async initiateCustomTransfer(t={},r){return await(await this.initiateCustomTransferRaw(t,r)).value()}async initiateTransferRaw(t,r){const n={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/transfers",method:"POST",headers:a,query:n,body:ui(t.initiateTransferRequest)},r);return new O(o,s=>_(s))}async initiateTransfer(t={},r){return await(await this.initiateTransferRaw(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 n={},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:n},r);return new O(o,s=>Ee(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 n={},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:n},r);return new O(o,s=>Ee(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 n={},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:n},r);return new O(o,s=>Ee(s))}async isPolicyIdAvailable(t,r){return await(await this.isPolicyIdAvailableRaw(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 n={},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:n,body:yn(t.contractTerminationRequest)},r);return new O(o,s=>_(s))}async terminateContractAgreement(t,r){return await(await this.terminateContractAgreementRaw(t,r)).value()}async uiConfigRaw(t){const r={},n={},a=await this.request({path:"/wrapper/ui/config",method:"GET",headers:n,query:r},t);return new O(a,o=>ji(o))}async uiConfig(t){return await(await this.uiConfigRaw(t)).value()}}class fa extends Q{async getKpisRaw(t){const r={},n={},a=await this.request({path:"/wrapper/use-case-api/kpis",method:"GET",headers:n,query:r},t);return new O(a,o=>gi(o))}async getKpis(t){return await(await this.getKpisRaw(t)).value()}async getSupportedFunctionsRaw(t){const r={},n={},a=await this.request({path:"/wrapper/use-case-api/supported-policy-functions",method:"GET",headers:n,query:r},t);return new O(a)}async getSupportedFunctions(t){return await(await this.getSupportedFunctionsRaw(t)).value()}async queryCatalogRaw(t,r){if(t.catalogQuery==null)throw new P("catalogQuery",'Required parameter "catalogQuery" was null or undefined when calling queryCatalog().');const n={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/catalog",method:"POST",headers:a,query:n,body:xt(t.catalogQuery)},r);return new O(o,s=>s.map(ut))}async queryCatalog(t,r){return await(await this.queryCatalogRaw(t,r)).value()}}var C;(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 n(a,o=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=n,e.jsonStringifyReplacer=(a,o)=>typeof o=="bigint"?o.toString():o})(C||(C={}));var lt;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(lt||(lt={}));const l=C.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),M=e=>{switch(typeof e){case"undefined":return l.undefined;case"string":return l.string;case"number":return isNaN(e)?l.nan:l.number;case"boolean":return l.boolean;case"function":return l.function;case"bigint":return l.bigint;case"symbol":return l.symbol;case"object":return Array.isArray(e)?l.array:e===null?l.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?l.promise:typeof Map<"u"&&e instanceof Map?l.map:typeof Set<"u"&&e instanceof Set?l.set:typeof Date<"u"&&e instanceof Date?l.date:l.object;default:return l.unknown}},d=C.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"]),js=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class A extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};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},n={_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)n._errors.push(r(s));else{let c=n,p=0;for(;p<s.path.length;){const u=s.path[p];p===s.path.length-1?(c[u]=c[u]||{_errors:[]},c[u]._errors.push(r(s))):c[u]=c[u]||{_errors:[]},c=c[u],p++}}};return a(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,C.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];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))):n.push(t(a));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}A.create=e=>new A(e);const te=(e,t)=>{let r;switch(e.code){case d.invalid_type:e.received===l.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case d.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,C.jsonStringifyReplacer)}`;break;case d.unrecognized_keys:r=`Unrecognized key(s) in object: ${C.joinValues(e.keys,", ")}`;break;case d.invalid_union:r="Invalid input";break;case d.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${C.joinValues(e.options)}`;break;case d.invalid_enum_value:r=`Invalid enum value. Expected ${C.joinValues(e.options)}, received '${e.received}'`;break;case d.invalid_arguments:r="Invalid function arguments";break;case d.invalid_return_type:r="Invalid function return type";break;case d.invalid_date:r="Invalid date";break;case d.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}"`:C.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case d.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 d.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 d.custom:r="Invalid input";break;case d.invalid_intersection_types:r="Intersection results could not be merged";break;case d.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case d.not_finite:r="Number must be finite";break;default:r=t.defaultError,C.assertNever(e)}return{message:r}};let pa=te;function ec(e){pa=e}function qe(){return pa}const Le=e=>{const{data:t,path:r,errorMaps:n,issueData:a}=e,o=[...r,...a.path||[]],s={...a,path:o};let c="";const p=n.filter(u=>!!u).slice().reverse();for(const u of p)c=u(s,{data:t,defaultError:c}).message;return{...a,path:o,message:a.message||c}},tc=[];function f(e,t){const r=Le({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,qe(),te].filter(n=>!!n)});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 n=[];for(const a of r){if(a.status==="aborted")return g;a.status==="dirty"&&t.dirty(),n.push(a.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const a of r)n.push({key:await a.key,value:await a.value});return D.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const a of r){const{key:o,value:s}=a;if(o.status==="aborted"||s.status==="aborted")return g;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(n[o.value]=s.value)}return{status:t.value,value:n}}}const g=Object.freeze({status:"aborted"}),ma=e=>({status:"dirty",value:e}),J=e=>({status:"valid",value:e}),ft=e=>e.status==="aborted",pt=e=>e.status==="dirty",re=e=>e.status==="valid",Me=e=>typeof Promise<"u"&&e instanceof Promise;var m;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(m||(m={}));class R{constructor(t,r,n,a){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,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 ya=(e,t)=>{if(re(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 A(e.common.issues);return this._error=r,this._error}}};function h(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:a}=e;if(t&&(r||n))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:n??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 M(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:M(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new D,ctx:{common:t.parent.common,data:t.data,parsedType:M(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(Me(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 n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;const a={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:M(t)},o=this._parseSync({data:t,path:a.path,parent:a});return ya(a,o)}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:M(t)},a=this._parse({data:t,path:n.path,parent:n}),o=await(Me(a)?a:Promise.resolve(a));return ya(n,o)}refine(t,r){const n=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:d.custom,...n(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((n,a)=>t(n)?!0:(a.addIssue(typeof r=="function"?r(n,a):r),!1))}_refinement(t){return new U({schema:this,typeName:y.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return q.create(this,this._def)}nullable(){return x.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return b.create(this,this._def)}promise(){return Y.create(this,this._def)}or(t){return oe.create([this,t],this._def)}and(t){return se.create(this,t,this._def)}transform(t){return new U({...h(this._def),schema:this,typeName:y.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new fe({...h(this._def),innerType:this,defaultValue:r,typeName:y.ZodDefault})}brand(){return new ha({typeName:y.ZodBranded,type:this,...h(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new ze({...h(this._def),innerType:this,catchValue:r,typeName:y.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return pe.create(this,t)}readonly(){return Qe.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const rc=/^c[^\s-]{8,}$/i,nc=/^[a-z][a-z0-9]*$/,ic=/^[0-9A-HJKMNP-TV-Z]{26}$/,ac=/^[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,oc=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,sc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let mt;const cc=/^(((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}))$/,dc=/^(([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})))$/,uc=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 lc(e,t){return!!((t==="v4"||!t)&&cc.test(e)||(t==="v6"||!t)&&dc.test(e))}class v 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:d.invalid_type,expected:l.string,received:o.parsedType}),g}const n=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:d.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="max")t.data.length>o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:d.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.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:d.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):c&&f(a,{code:d.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),n.dirty())}else if(o.kind==="email")oc.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"email",code:d.invalid_string,message:o.message}),n.dirty());else if(o.kind==="emoji")mt||(mt=new RegExp(sc,"u")),mt.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"emoji",code:d.invalid_string,message:o.message}),n.dirty());else if(o.kind==="uuid")ac.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"uuid",code:d.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid")rc.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"cuid",code:d.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid2")nc.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"cuid2",code:d.invalid_string,message:o.message}),n.dirty());else if(o.kind==="ulid")ic.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"ulid",code:d.invalid_string,message:o.message}),n.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),f(a,{validation:"url",code:d.invalid_string,message:o.message}),n.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"regex",code:d.invalid_string,message:o.message}),n.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:d.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),n.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:d.invalid_string,validation:{startsWith:o.value},message:o.message}),n.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(a=this._getOrReturnCtx(t,a),f(a,{code:d.invalid_string,validation:{endsWith:o.value},message:o.message}),n.dirty()):o.kind==="datetime"?uc(o).test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{code:d.invalid_string,validation:"datetime",message:o.message}),n.dirty()):o.kind==="ip"?lc(t.data,o.version)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"ip",code:d.invalid_string,message:o.message}),n.dirty()):C.assertNever(o);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(a=>t.test(a),{validation:r,code:d.invalid_string,...m.errToObj(n)})}_addCheck(t){return new v({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...m.errToObj(t)})}url(t){return this._addCheck({kind:"url",...m.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...m.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...m.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...m.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...m.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...m.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...m.errToObj(t)})}datetime(t){var r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,...m.errToObj(t==null?void 0:t.message)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...m.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...m.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...m.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...m.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...m.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...m.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...m.errToObj(r)})}nonempty(t){return this.min(1,m.errToObj(t))}trim(){return new v({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new v({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new v({...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}}v.create=e=>{var t;return new v({checks:[],typeName:y.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...h(e)})};function fc(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,a=r>n?r:n,o=parseInt(e.toFixed(a).replace(".","")),s=parseInt(t.toFixed(a).replace(".",""));return o%s/Math.pow(10,a)}class Z 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:d.invalid_type,expected:l.number,received:o.parsedType}),g}let n;const a=new D;for(const o of this._def.checks)o.kind==="int"?C.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),f(n,{code:d.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),f(n,{code:d.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)&&(n=this._getOrReturnCtx(t,n),f(n,{code:d.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?fc(t.data,o.value)!==0&&(n=this._getOrReturnCtx(t,n),f(n,{code:d.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),f(n,{code:d.not_finite,message:o.message}),a.dirty()):C.assertNever(o);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,m.toString(r))}gt(t,r){return this.setLimit("min",t,!1,m.toString(r))}lte(t,r){return this.setLimit("max",t,!0,m.toString(r))}lt(t,r){return this.setLimit("max",t,!1,m.toString(r))}setLimit(t,r,n,a){return new Z({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:m.toString(a)}]})}_addCheck(t){return new Z({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:m.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:m.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:m.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:m.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:m.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:m.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:m.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:m.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:m.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&C.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}}Z.create=e=>new Z({checks:[],typeName:y.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...h(e)});class H 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:d.invalid_type,expected:l.bigint,received:o.parsedType}),g}let n;const a=new D;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),f(n,{code:d.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)&&(n=this._getOrReturnCtx(t,n),f(n,{code:d.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),f(n,{code:d.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):C.assertNever(o);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,m.toString(r))}gt(t,r){return this.setLimit("min",t,!1,m.toString(r))}lte(t,r){return this.setLimit("max",t,!0,m.toString(r))}lt(t,r){return this.setLimit("max",t,!1,m.toString(r))}setLimit(t,r,n,a){return new H({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:m.toString(a)}]})}_addCheck(t){return new H({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:m.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:m.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:m.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:m.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:m.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}H.create=e=>{var t;return new H({checks:[],typeName:y.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...h(e)})};class ne extends T{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==l.boolean){const n=this._getOrReturnCtx(t);return f(n,{code:d.invalid_type,expected:l.boolean,received:n.parsedType}),g}return J(t.data)}}ne.create=e=>new ne({typeName:y.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...h(e)});class B extends T{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==l.date){const o=this._getOrReturnCtx(t);return f(o,{code:d.invalid_type,expected:l.date,received:o.parsedType}),g}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return f(o,{code:d.invalid_date}),g}const n=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:d.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),n.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:d.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),n.dirty()):C.assertNever(o);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new B({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:m.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:m.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}B.create=e=>new B({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:y.ZodDate,...h(e)});class Ze extends T{_parse(t){if(this._getType(t)!==l.symbol){const n=this._getOrReturnCtx(t);return f(n,{code:d.invalid_type,expected:l.symbol,received:n.parsedType}),g}return J(t.data)}}Ze.create=e=>new Ze({typeName:y.ZodSymbol,...h(e)});class ie extends T{_parse(t){if(this._getType(t)!==l.undefined){const n=this._getOrReturnCtx(t);return f(n,{code:d.invalid_type,expected:l.undefined,received:n.parsedType}),g}return J(t.data)}}ie.create=e=>new ie({typeName:y.ZodUndefined,...h(e)});class ae extends T{_parse(t){if(this._getType(t)!==l.null){const n=this._getOrReturnCtx(t);return f(n,{code:d.invalid_type,expected:l.null,received:n.parsedType}),g}return J(t.data)}}ae.create=e=>new ae({typeName:y.ZodNull,...h(e)});class G extends T{constructor(){super(...arguments),this._any=!0}_parse(t){return J(t.data)}}G.create=e=>new G({typeName:y.ZodAny,...h(e)});class $ extends T{constructor(){super(...arguments),this._unknown=!0}_parse(t){return J(t.data)}}$.create=e=>new $({typeName:y.ZodUnknown,...h(e)});class k extends T{_parse(t){const r=this._getOrReturnCtx(t);return f(r,{code:d.invalid_type,expected:l.never,received:r.parsedType}),g}}k.create=e=>new k({typeName:y.ZodNever,...h(e)});class He extends T{_parse(t){if(this._getType(t)!==l.undefined){const n=this._getOrReturnCtx(t);return f(n,{code:d.invalid_type,expected:l.void,received:n.parsedType}),g}return J(t.data)}}He.create=e=>new He({typeName:y.ZodVoid,...h(e)});class b extends T{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),a=this._def;if(r.parsedType!==l.array)return f(r,{code:d.invalid_type,expected:l.array,received:r.parsedType}),g;if(a.exactLength!==null){const s=r.data.length>a.exactLength.value,c=r.data.length<a.exactLength.value;(s||c)&&(f(r,{code:s?d.too_big:d.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}),n.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(f(r,{code:d.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(f(r,{code:d.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((s,c)=>a.type._parseAsync(new R(r,s,r.path,c)))).then(s=>D.mergeArray(n,s));const o=[...r.data].map((s,c)=>a.type._parseSync(new R(r,s,r.path,c)));return D.mergeArray(n,o)}get element(){return this._def.type}min(t,r){return new b({...this._def,minLength:{value:t,message:m.toString(r)}})}max(t,r){return new b({...this._def,maxLength:{value:t,message:m.toString(r)}})}length(t,r){return new b({...this._def,exactLength:{value:t,message:m.toString(r)}})}nonempty(t){return this.min(1,t)}}b.create=(e,t)=>new b({type:e,minLength:null,maxLength:null,exactLength:null,typeName:y.ZodArray,...h(t)});function K(e){if(e instanceof N){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=q.create(K(n))}return new N({...e._def,shape:()=>t})}else return e instanceof b?new b({...e._def,type:K(e.element)}):e instanceof q?q.create(K(e.unwrap())):e instanceof x?x.create(K(e.unwrap())):e instanceof F?F.create(e.items.map(t=>K(t))):e}class N 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=C.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==l.object){const u=this._getOrReturnCtx(t);return f(u,{code:d.invalid_type,expected:l.object,received:u.parsedType}),g}const{status:n,ctx:a}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),c=[];if(!(this._def.catchall instanceof k&&this._def.unknownKeys==="strip"))for(const u in a.data)s.includes(u)||c.push(u);const p=[];for(const u of s){const S=o[u],I=a.data[u];p.push({key:{status:"valid",value:u},value:S._parse(new R(a,I,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof k){const u=this._def.unknownKeys;if(u==="passthrough")for(const S of c)p.push({key:{status:"valid",value:S},value:{status:"valid",value:a.data[S]}});else if(u==="strict")c.length>0&&(f(a,{code:d.unrecognized_keys,keys:c}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const S of c){const I=a.data[S];p.push({key:{status:"valid",value:S},value:u._parse(new R(a,I,a.path,S)),alwaysSet:S in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const S of p){const I=await S.key;u.push({key:I,value:await S.value,alwaysSet:S.alwaysSet})}return u}).then(u=>D.mergeObjectSync(n,u)):D.mergeObjectSync(n,p)}get shape(){return this._def.shape()}strict(t){return m.errToObj,new N({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var a,o,s,c;const p=(s=(o=(a=this._def).errorMap)===null||o===void 0?void 0:o.call(a,r,n).message)!==null&&s!==void 0?s:n.defaultError;return r.code==="unrecognized_keys"?{message:(c=m.errToObj(t).message)!==null&&c!==void 0?c:p}:{message:p}}}:{}})}strip(){return new N({...this._def,unknownKeys:"strip"})}passthrough(){return new N({...this._def,unknownKeys:"passthrough"})}extend(t){return new N({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new N({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:y.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new N({...this._def,catchall:t})}pick(t){const r={};return C.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new N({...this._def,shape:()=>r})}omit(t){const r={};return C.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new N({...this._def,shape:()=>r})}deepPartial(){return K(this)}partial(t){const r={};return C.objectKeys(this.shape).forEach(n=>{const a=this.shape[n];t&&!t[n]?r[n]=a:r[n]=a.optional()}),new N({...this._def,shape:()=>r})}required(t){const r={};return C.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let o=this.shape[n];for(;o instanceof q;)o=o._def.innerType;r[n]=o}}),new N({...this._def,shape:()=>r})}keyof(){return ga(C.objectKeys(this.shape))}}N.create=(e,t)=>new N({shape:()=>e,unknownKeys:"strip",catchall:k.create(),typeName:y.ZodObject,...h(t)}),N.strictCreate=(e,t)=>new N({shape:()=>e,unknownKeys:"strict",catchall:k.create(),typeName:y.ZodObject,...h(t)}),N.lazycreate=(e,t)=>new N({shape:e,unknownKeys:"strip",catchall:k.create(),typeName:y.ZodObject,...h(t)});class oe extends T{_parse(t){const{ctx:r}=this._processInputParams(t),n=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 A(c.ctx.common.issues));return f(r,{code:d.invalid_union,unionErrors:s}),g}if(r.common.async)return Promise.all(n.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 n){const u={...r,common:{...r.common,issues:[]},parent:null},S=p._parseSync({data:r.data,path:r.path,parent:u});if(S.status==="valid")return S;S.status==="dirty"&&!o&&(o={result:S,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;const c=s.map(p=>new A(p));return f(r,{code:d.invalid_union,unionErrors:c}),g}}get options(){return this._def.options}}oe.create=(e,t)=>new oe({options:e,typeName:y.ZodUnion,...h(t)});const Ve=e=>e instanceof de?Ve(e.schema):e instanceof U?Ve(e.innerType()):e instanceof ue?[e.value]:e instanceof V?e.options:e instanceof le?Object.keys(e.enum):e instanceof fe?Ve(e._def.innerType):e instanceof ie?[void 0]:e instanceof ae?[null]:null;class Be extends T{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==l.object)return f(r,{code:d.invalid_type,expected:l.object,received:r.parsedType}),g;const n=this.discriminator,a=r.data[n],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:d.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),g)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){const a=new Map;for(const o of r){const s=Ve(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 Be({typeName:y.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:a,...h(n)})}}function yt(e,t){const r=M(e),n=M(t);if(e===t)return{valid:!0,data:e};if(r===l.object&&n===l.object){const a=C.objectKeys(t),o=C.objectKeys(e).filter(c=>a.indexOf(c)!==-1),s={...e,...t};for(const c of o){const p=yt(e[c],t[c]);if(!p.valid)return{valid:!1};s[c]=p.data}return{valid:!0,data:s}}else if(r===l.array&&n===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=yt(s,c);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return r===l.date&&n===l.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class se extends T{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=(o,s)=>{if(ft(o)||ft(s))return g;const c=yt(o.value,s.value);return c.valid?((pt(o)||pt(s))&&r.dirty(),{status:r.value,value:c.data}):(f(n,{code:d.invalid_intersection_types}),g)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([o,s])=>a(o,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}se.create=(e,t,r)=>new se({left:e,right:t,typeName:y.ZodIntersection,...h(r)});class F extends T{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==l.array)return f(n,{code:d.invalid_type,expected:l.array,received:n.parsedType}),g;if(n.data.length<this._def.items.length)return f(n,{code:d.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),g;!this._def.rest&&n.data.length>this._def.items.length&&(f(n,{code:d.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const o=[...n.data].map((s,c)=>{const p=this._def.items[c]||this._def.rest;return p?p._parse(new R(n,s,n.path,c)):null}).filter(s=>!!s);return n.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 F({...this._def,rest:t})}}F.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new F({items:e,typeName:y.ZodTuple,rest:null,...h(t)})};class ce extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==l.object)return f(n,{code:d.invalid_type,expected:l.object,received:n.parsedType}),g;const a=[],o=this._def.keyType,s=this._def.valueType;for(const c in n.data)a.push({key:o._parse(new R(n,c,n.path,c)),value:s._parse(new R(n,n.data[c],n.path,c))});return n.common.async?D.mergeObjectAsync(r,a):D.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof T?new ce({keyType:t,valueType:r,typeName:y.ZodRecord,...h(n)}):new ce({keyType:v.create(),valueType:t,typeName:y.ZodRecord,...h(r)})}}class $e extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==l.map)return f(n,{code:d.invalid_type,expected:l.map,received:n.parsedType}),g;const a=this._def.keyType,o=this._def.valueType,s=[...n.data.entries()].map(([c,p],u)=>({key:a._parse(new R(n,c,n.path,[u,"key"])),value:o._parse(new R(n,p,n.path,[u,"value"]))}));if(n.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const p of s){const u=await p.key,S=await p.value;if(u.status==="aborted"||S.status==="aborted")return g;(u.status==="dirty"||S.status==="dirty")&&r.dirty(),c.set(u.value,S.value)}return{status:r.value,value:c}})}else{const c=new Map;for(const p of s){const u=p.key,S=p.value;if(u.status==="aborted"||S.status==="aborted")return g;(u.status==="dirty"||S.status==="dirty")&&r.dirty(),c.set(u.value,S.value)}return{status:r.value,value:c}}}}$e.create=(e,t,r)=>new $e({valueType:t,keyType:e,typeName:y.ZodMap,...h(r)});class z extends T{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==l.set)return f(n,{code:d.invalid_type,expected:l.set,received:n.parsedType}),g;const a=this._def;a.minSize!==null&&n.data.size<a.minSize.value&&(f(n,{code:d.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&n.data.size>a.maxSize.value&&(f(n,{code:d.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 u=new Set;for(const S of p){if(S.status==="aborted")return g;S.status==="dirty"&&r.dirty(),u.add(S.value)}return{status:r.value,value:u}}const c=[...n.data.values()].map((p,u)=>o._parse(new R(n,p,n.path,u)));return n.common.async?Promise.all(c).then(p=>s(p)):s(c)}min(t,r){return new z({...this._def,minSize:{value:t,message:m.toString(r)}})}max(t,r){return new z({...this._def,maxSize:{value:t,message:m.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}z.create=(e,t)=>new z({valueType:e,minSize:null,maxSize:null,typeName:y.ZodSet,...h(t)});class W 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:d.invalid_type,expected:l.function,received:r.parsedType}),g;function n(c,p){return Le({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,qe(),te].filter(u=>!!u),issueData:{code:d.invalid_arguments,argumentsError:p}})}function a(c,p){return Le({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,qe(),te].filter(u=>!!u),issueData:{code:d.invalid_return_type,returnTypeError:p}})}const o={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof Y){const c=this;return J(async function(...p){const u=new A([]),S=await c._def.args.parseAsync(p,o).catch(gt=>{throw u.addIssue(n(p,gt)),u}),I=await Reflect.apply(s,this,S);return await c._def.returns._def.type.parseAsync(I,o).catch(gt=>{throw u.addIssue(a(I,gt)),u})})}else{const c=this;return J(function(...p){const u=c._def.args.safeParse(p,o);if(!u.success)throw new A([n(p,u.error)]);const S=Reflect.apply(s,this,u.data),I=c._def.returns.safeParse(S,o);if(!I.success)throw new A([a(S,I.error)]);return I.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new W({...this._def,args:F.create(t).rest($.create())})}returns(t){return new W({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new W({args:t||F.create([]).rest($.create()),returns:r||$.create(),typeName:y.ZodFunction,...h(n)})}}class de 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})}}de.create=(e,t)=>new de({getter:e,typeName:y.ZodLazy,...h(t)});class ue extends T{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return f(r,{received:r.data,code:d.invalid_literal,expected:this._def.value}),g}return{status:"valid",value:t.data}}get value(){return this._def.value}}ue.create=(e,t)=>new ue({value:e,typeName:y.ZodLiteral,...h(t)});function ga(e,t){return new V({values:e,typeName:y.ZodEnum,...h(t)})}class V extends T{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return f(r,{expected:C.joinValues(n),received:r.parsedType,code:d.invalid_type}),g}if(this._def.values.indexOf(t.data)===-1){const r=this._getOrReturnCtx(t),n=this._def.values;return f(r,{received:r.data,code:d.invalid_enum_value,options:n}),g}return J(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t){return V.create(t)}exclude(t){return V.create(this.options.filter(r=>!t.includes(r)))}}V.create=ga;class le extends T{_parse(t){const r=C.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==l.string&&n.parsedType!==l.number){const a=C.objectValues(r);return f(n,{expected:C.joinValues(a),received:n.parsedType,code:d.invalid_type}),g}if(r.indexOf(t.data)===-1){const a=C.objectValues(r);return f(n,{received:n.data,code:d.invalid_enum_value,options:a}),g}return J(t.data)}get enum(){return this._def.values}}le.create=(e,t)=>new le({values:e,typeName:y.ZodNativeEnum,...h(t)});class Y 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:d.invalid_type,expected:l.promise,received:r.parsedType}),g;const n=r.parsedType===l.promise?r.data:Promise.resolve(r.data);return J(n.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Y.create=(e,t)=>new Y({type:e,typeName:y.ZodPromise,...h(t)});class U extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===y.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=this._def.effect||null,o={addIssue:s=>{f(n,s),s.fatal?r.abort():r.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),a.type==="preprocess"){const s=a.transform(n.data,o);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(s).then(c=>this._def.schema._parseAsync({data:c,path:n.path,parent:n})):this._def.schema._parseSync({data:s,path:n.path,parent:n})}if(a.type==="refinement"){const s=c=>{const p=a.refinement(c,o);if(n.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(n.common.async===!1){const c=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return c.status==="aborted"?g:(c.status==="dirty"&&r.dirty(),s(c.value),{status:r.value,value:c.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(c=>c.status==="aborted"?g:(c.status==="dirty"&&r.dirty(),s(c.value).then(()=>({status:r.value,value:c.value}))))}if(a.type==="transform")if(n.common.async===!1){const s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!re(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:n.data,path:n.path,parent:n}).then(s=>re(s)?Promise.resolve(a.transform(s.value,o)).then(c=>({status:r.value,value:c})):s);C.assertNever(a)}}U.create=(e,t,r)=>new U({schema:e,typeName:y.ZodEffects,effect:t,...h(r)}),U.createWithPreprocess=(e,t,r)=>new U({schema:t,effect:{type:"preprocess",transform:e},typeName:y.ZodEffects,...h(r)});class q extends T{_parse(t){return this._getType(t)===l.undefined?J(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}q.create=(e,t)=>new q({innerType:e,typeName:y.ZodOptional,...h(t)});class x extends T{_parse(t){return this._getType(t)===l.null?J(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}x.create=(e,t)=>new x({innerType:e,typeName:y.ZodNullable,...h(t)});class fe extends T{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===l.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}fe.create=(e,t)=>new fe({innerType:e,typeName:y.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...h(t)});class ze extends T{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Me(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new A(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new A(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}ze.create=(e,t)=>new ze({innerType:e,typeName:y.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...h(t)});class xe extends T{_parse(t){if(this._getType(t)!==l.nan){const n=this._getOrReturnCtx(t);return f(n,{code:d.invalid_type,expected:l.nan,received:n.parsedType}),g}return{status:"valid",value:t.data}}}xe.create=e=>new xe({typeName:y.ZodNaN,...h(e)});const pc=Symbol("zod_brand");class ha extends T{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class pe extends T{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?g:o.status==="dirty"?(r.dirty(),ma(o.value)):this._def.out._parseAsync({data:o.value,path:n.path,parent:n})})();{const a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?g:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(t,r){return new pe({in:t,out:r,typeName:y.ZodPipeline})}}class Qe extends T{_parse(t){const r=this._def.innerType._parse(t);return re(r)&&(r.value=Object.freeze(r.value)),r}}Qe.create=(e,t)=>new Qe({innerType:e,typeName:y.ZodReadonly,...h(t)});const Ta=(e,t={},r)=>e?G.create().superRefine((n,a)=>{var o,s;if(!e(n)){const c=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,p=(s=(o=c.fatal)!==null&&o!==void 0?o:r)!==null&&s!==void 0?s:!0,u=typeof c=="string"?{message:c}:c;a.addIssue({code:"custom",...u,fatal:p})}}):G.create(),mc={object:N.lazycreate};var y;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(y||(y={}));const yc=(e,t={message:`Input not instance of ${e.name}`})=>Ta(r=>r instanceof e,t),Sa=v.create,Oa=Z.create,gc=xe.create,hc=H.create,Ca=ne.create,Tc=B.create,Sc=Ze.create,Oc=ie.create,Cc=ae.create,Nc=G.create,Dc=$.create,Pc=k.create,Jc=He.create,wc=b.create,_c=N.create,Ic=N.strictCreate,Ac=oe.create,vc=Be.create,bc=se.create,Uc=F.create,Rc=ce.create,Fc=$e.create,Ec=z.create,kc=W.create,qc=de.create,Lc=ue.create,Mc=V.create,Zc=le.create,Hc=Y.create,Na=U.create,Vc=q.create,Bc=x.create,$c=U.createWithPreprocess,zc=pe.create;var me=Object.freeze({__proto__:null,defaultErrorMap:te,setErrorMap:ec,getErrorMap:qe,makeIssue:Le,EMPTY_PATH:tc,addIssueToContext:f,ParseStatus:D,INVALID:g,DIRTY:ma,OK:J,isAborted:ft,isDirty:pt,isValid:re,isAsync:Me,get util(){return C},get objectUtil(){return lt},ZodParsedType:l,getParsedType:M,ZodType:T,ZodString:v,ZodNumber:Z,ZodBigInt:H,ZodBoolean:ne,ZodDate:B,ZodSymbol:Ze,ZodUndefined:ie,ZodNull:ae,ZodAny:G,ZodUnknown:$,ZodNever:k,ZodVoid:He,ZodArray:b,ZodObject:N,ZodUnion:oe,ZodDiscriminatedUnion:Be,ZodIntersection:se,ZodTuple:F,ZodRecord:ce,ZodMap:$e,ZodSet:z,ZodFunction:W,ZodLazy:de,ZodLiteral:ue,ZodEnum:V,ZodNativeEnum:le,ZodPromise:Y,ZodEffects:U,ZodTransformer:U,ZodOptional:q,ZodNullable:x,ZodDefault:fe,ZodCatch:ze,ZodNaN:xe,BRAND:pc,ZodBranded:ha,ZodPipeline:pe,ZodReadonly:Qe,custom:Ta,Schema:T,ZodSchema:T,late:mc,get ZodFirstPartyTypeKind(){return y},coerce:{string:e=>v.create({...e,coerce:!0}),number:e=>Z.create({...e,coerce:!0}),boolean:e=>ne.create({...e,coerce:!0}),bigint:e=>H.create({...e,coerce:!0}),date:e=>B.create({...e,coerce:!0})},any:Nc,array:wc,bigint:hc,boolean:Ca,date:Tc,discriminatedUnion:vc,effect:Na,enum:Mc,function:kc,instanceof:yc,intersection:bc,lazy:qc,literal:Lc,map:Fc,nan:gc,nativeEnum:Zc,never:Pc,null:Cc,nullable:Bc,number:Oa,object:_c,oboolean:()=>Ca().optional(),onumber:()=>Oa().optional(),optional:Vc,ostring:()=>Sa().optional(),pipeline:zc,preprocess:$c,promise:Hc,record:Rc,set:Ec,strictObject:Ic,string:Sa,symbol:Sc,transformer:Na,tuple:Uc,undefined:Oc,union:Ac,unknown:Dc,void:Jc,NEVER:g,ZodIssueCode:d,quotelessJson:js,ZodError:A});function xc(e){return e===401||e===403}function Qc(e){return Object.entries(e).map(([t,r])=>`${encodeURIComponent(t)}=${encodeURIComponent(r)}`).join("&")}const Gc=me.object({access_token:me.string().min(1),token_type:me.string(),expires_in:me.number(),scope:me.string()});async function Kc(e){const r=await(await fetch(e.tokenUrl,{method:"POST",body:Qc({grant_type:"client_credentials",client_id:e.clientId,client_secret:e.clientSecret}),headers:{"Content-Type":"application/x-www-form-urlencoded"}})).json();return Wc(r)}function Wc(e){const t=Gc.safeParse(e);if(!t.success)throw new Error("Bad access token response");return t.data}class Yc{constructor(t){E(this,"activeRequest",null);E(this,"refreshTimeout");E(this,"accessToken",null);this.clientCredentials=t}async getAccessToken(){return this.accessToken?this.accessToken:await this.refreshAccessToken()}async refreshAccessToken(){if(this.activeRequest)return await this.activeRequest,this.accessToken;this.accessToken=null,this.activeRequest=Kc(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 Da(e,t){e.headers=Xc("Authorization",`Bearer ${t}`,e.headers)}function Xc(e,t,r){return r?Array.isArray(r)?r.map(([n,a])=>n!==e?[n,a]:[e,t]):jc(r)?(r.has(e)?r.set(e,t):r.append(e,t),r):(r[e]=t,r):(r={},r[e]=t,r)}function jc(e){return"append"in e&&"delete"in e&&"get"in e&&"has"in e&&"set"in e&&"forEach"in e}function ed(e){const t=new Yc(e);return{pre:async r=>{const n=await t.getAccessToken();return Da(r.init,n),Promise.resolve({url:r.url,init:r.init})},post:async r=>{if(xc(r.response.status)){const n=await t.refreshAccessToken();return Da(r.init,n),await fetch(r.url,r.init)}return Promise.resolve(r.response)}}}function td(e){const t=[];let r={};e.clientCredentials&&t.push(ed(e.clientCredentials)),e.managementApiKey&&(r=rd(e.managementApiKey));const n=new L({basePath:e.managementApiUrl,headers:r,credentials:"same-origin",middleware:t,...e.configOverrides});return{uiApi:new la(n),useCaseApi:new fa(n),enterpriseEditionApi:new ua(n)}}function rd(e){return{"X-Api-Key":e}}i.AssetPageFromJSON=_t,i.AssetPageFromJSONTyped=It,i.AssetPageToJSON=ka,i.AssetPageToJSONTyped=At,i.BASE_PATH=w,i.BaseAPI=Q,i.BlobApiResponse=va,i.BuildInfoFromJSON=vt,i.BuildInfoFromJSONTyped=bt,i.BuildInfoToJSON=La,i.BuildInfoToJSONTyped=Ut,i.COLLECTION_FORMATS=wa,i.CatalogFilterExpressionFromJSON=Ht,i.CatalogFilterExpressionFromJSONTyped=Vt,i.CatalogFilterExpressionLiteralFromJSON=Et,i.CatalogFilterExpressionLiteralFromJSONTyped=kt,i.CatalogFilterExpressionLiteralToJSON=qt,i.CatalogFilterExpressionLiteralToJSONTyped=Lt,i.CatalogFilterExpressionLiteralType=he,i.CatalogFilterExpressionLiteralTypeFromJSON=Rt,i.CatalogFilterExpressionLiteralTypeFromJSONTyped=Ft,i.CatalogFilterExpressionLiteralTypeToJSON=Za,i.CatalogFilterExpressionLiteralTypeToJSONTyped=Ha,i.CatalogFilterExpressionOperator=Te,i.CatalogFilterExpressionOperatorFromJSON=Mt,i.CatalogFilterExpressionOperatorFromJSONTyped=Zt,i.CatalogFilterExpressionOperatorToJSON=$a,i.CatalogFilterExpressionOperatorToJSONTyped=za,i.CatalogFilterExpressionToJSON=Bt,i.CatalogFilterExpressionToJSONTyped=$t,i.CatalogQueryFromJSON=Ga,i.CatalogQueryFromJSONTyped=zt,i.CatalogQueryToJSON=xt,i.CatalogQueryToJSONTyped=Qt,i.Configuration=L,i.ConnectorLimitsFromJSON=Gt,i.ConnectorLimitsFromJSONTyped=Kt,i.ConnectorLimitsToJSON=Wa,i.ConnectorLimitsToJSONTyped=Wt,i.ContractAgreementCardFromJSON=rt,i.ContractAgreementCardFromJSONTyped=Ar,i.ContractAgreementCardToJSON=vr,i.ContractAgreementCardToJSONTyped=br,i.ContractAgreementDirection=Se,i.ContractAgreementDirectionFromJSON=We,i.ContractAgreementDirectionFromJSONTyped=Yt,i.ContractAgreementDirectionToJSON=Xa,i.ContractAgreementDirectionToJSONTyped=ja,i.ContractAgreementPageFromJSON=Ur,i.ContractAgreementPageFromJSONTyped=Rr,i.ContractAgreementPageQueryFromJSON=vo,i.ContractAgreementPageQueryFromJSONTyped=Er,i.ContractAgreementPageQueryToJSON=kr,i.ContractAgreementPageQueryToJSONTyped=qr,i.ContractAgreementPageToJSON=Io,i.ContractAgreementPageToJSONTyped=Fr,i.ContractAgreementTerminationInfoFromJSON=er,i.ContractAgreementTerminationInfoFromJSONTyped=tr,i.ContractAgreementTerminationInfoToJSON=rr,i.ContractAgreementTerminationInfoToJSONTyped=nr,i.ContractAgreementTransferProcessFromJSON=cr,i.ContractAgreementTransferProcessFromJSONTyped=dr,i.ContractAgreementTransferProcessToJSON=ur,i.ContractAgreementTransferProcessToJSONTyped=lr,i.ContractDefinitionEntryFromJSON=Gr,i.ContractDefinitionEntryFromJSONTyped=Kr,i.ContractDefinitionEntryToJSON=Wr,i.ContractDefinitionEntryToJSONTyped=Yr,i.ContractDefinitionPageFromJSON=Xr,i.ContractDefinitionPageFromJSONTyped=jr,i.ContractDefinitionPageToJSON=Ho,i.ContractDefinitionPageToJSONTyped=en,i.ContractDefinitionRequestFromJSON=Bo,i.ContractDefinitionRequestFromJSONTyped=tn,i.ContractDefinitionRequestToJSON=rn,i.ContractDefinitionRequestToJSONTyped=nn,i.ContractNegotiationRequestFromJSON=zo,i.ContractNegotiationRequestFromJSONTyped=an,i.ContractNegotiationRequestToJSON=on,i.ContractNegotiationRequestToJSONTyped=sn,i.ContractNegotiationSimplifiedState=ve,i.ContractNegotiationSimplifiedStateFromJSON=cn,i.ContractNegotiationSimplifiedStateFromJSONTyped=dn,i.ContractNegotiationSimplifiedStateToJSON=Qo,i.ContractNegotiationSimplifiedStateToJSONTyped=Go,i.ContractNegotiationStateFromJSON=un,i.ContractNegotiationStateFromJSONTyped=ln,i.ContractNegotiationStateToJSON=fn,i.ContractNegotiationStateToJSONTyped=pn,i.ContractTerminatedBy=Oe,i.ContractTerminatedByFromJSON=Xt,i.ContractTerminatedByFromJSONTyped=jt,i.ContractTerminatedByToJSON=to,i.ContractTerminatedByToJSONTyped=ro,i.ContractTerminationRequestFromJSON=Yo,i.ContractTerminationRequestFromJSONTyped=mn,i.ContractTerminationRequestToJSON=yn,i.ContractTerminationRequestToJSONTyped=gn,i.ContractTerminationStatus=Ne,i.ContractTerminationStatusFromJSON=je,i.ContractTerminationStatusFromJSONTyped=fr,i.ContractTerminationStatusToJSON=lo,i.ContractTerminationStatusToJSONTyped=fo,i.DashboardCxDidConfigFromJSON=hn,i.DashboardCxDidConfigFromJSONTyped=Tn,i.DashboardCxDidConfigToJSON=Sn,i.DashboardCxDidConfigToJSONTyped=On,i.DashboardDapsConfigFromJSON=Cn,i.DashboardDapsConfigFromJSONTyped=Nn,i.DashboardDapsConfigToJSON=Dn,i.DashboardDapsConfigToJSONTyped=Pn,i.DashboardPageFromJSON=_n,i.DashboardPageFromJSONTyped=In,i.DashboardPageToJSON=rs,i.DashboardPageToJSONTyped=An,i.DashboardTransferAmountsFromJSON=at,i.DashboardTransferAmountsFromJSONTyped=Jn,i.DashboardTransferAmountsToJSON=ot,i.DashboardTransferAmountsToJSONTyped=wn,i.DataOfferCreateRequestFromJSON=Ts,i.DataOfferCreateRequestFromJSONTyped=jn,i.DataOfferCreateRequestToJSON=ei,i.DataOfferCreateRequestToJSONTyped=ti,i.DataOfferPublishType=be,i.DataOfferPublishTypeFromJSON=vn,i.DataOfferPublishTypeFromJSONTyped=bn,i.DataOfferPublishTypeToJSON=is,i.DataOfferPublishTypeToJSONTyped=as,i.DataSourceAvailability=ye,i.DataSourceAvailabilityFromJSON=Dt,i.DataSourceAvailabilityFromJSONTyped=Pt,i.DataSourceAvailabilityToJSON=Ua,i.DataSourceAvailabilityToJSONTyped=Ra,i.DataSourceType=Ue,i.DataSourceTypeFromJSON=Un,i.DataSourceTypeFromJSONTyped=Rn,i.DataSourceTypeToJSON=ss,i.DataSourceTypeToJSONTyped=cs,i.DefaultConfig=ht,i.EnterpriseEditionApi=ua,i.FetchError=St,i.IdAvailabilityResponseFromJSON=Ee,i.IdAvailabilityResponseFromJSONTyped=ri,i.IdAvailabilityResponseToJSON=Os,i.IdAvailabilityResponseToJSONTyped=ni,i.IdResponseDtoFromJSON=_,i.IdResponseDtoFromJSONTyped=ii,i.IdResponseDtoToJSON=Ns,i.IdResponseDtoToJSONTyped=ai,i.InitiateCustomTransferRequestFromJSON=Ps,i.InitiateCustomTransferRequestFromJSONTyped=oi,i.InitiateCustomTransferRequestToJSON=si,i.InitiateCustomTransferRequestToJSONTyped=ci,i.InitiateTransferRequestFromJSON=ws,i.InitiateTransferRequestFromJSONTyped=di,i.InitiateTransferRequestToJSON=ui,i.InitiateTransferRequestToJSONTyped=li,i.JSONApiResponse=O,i.KpiResultFromJSON=gi,i.KpiResultFromJSONTyped=hi,i.KpiResultToJSON=As,i.KpiResultToJSONTyped=Ti,i.OperatorDto=De,i.OperatorDtoFromJSON=pr,i.OperatorDtoFromJSONTyped=mr,i.OperatorDtoToJSON=mo,i.OperatorDtoToJSONTyped=yo,i.PolicyDefinitionCreateDtoFromJSON=bs,i.PolicyDefinitionCreateDtoFromJSONTyped=Si,i.PolicyDefinitionCreateDtoToJSON=Oi,i.PolicyDefinitionCreateDtoToJSONTyped=Ci,i.PolicyDefinitionCreateRequestFromJSON=Fs,i.PolicyDefinitionCreateRequestFromJSONTyped=wi,i.PolicyDefinitionCreateRequestToJSON=_i,i.PolicyDefinitionCreateRequestToJSONTyped=Ii,i.PolicyDefinitionDtoFromJSON=Ai,i.PolicyDefinitionDtoFromJSONTyped=vi,i.PolicyDefinitionDtoToJSON=bi,i.PolicyDefinitionDtoToJSONTyped=Ui,i.PolicyDefinitionPageFromJSON=Ri,i.PolicyDefinitionPageFromJSONTyped=Fi,i.PolicyDefinitionPageToJSON=qs,i.PolicyDefinitionPageToJSONTyped=Ei,i.RequiredError=P,i.ResponseError=Tt,i.SecretValueFromJSON=Fn,i.SecretValueFromJSONTyped=En,i.SecretValueToJSON=kn,i.SecretValueToJSONTyped=qn,i.TextApiResponse=Nt,i.TransferHistoryEntryFromJSON=ki,i.TransferHistoryEntryFromJSONTyped=qi,i.TransferHistoryEntryToJSON=Li,i.TransferHistoryEntryToJSONTyped=Mi,i.TransferHistoryPageFromJSON=Zi,i.TransferHistoryPageFromJSONTyped=Hi,i.TransferHistoryPageToJSON=Zs,i.TransferHistoryPageToJSONTyped=Vi,i.TransferProcessSimplifiedState=Ce,i.TransferProcessSimplifiedStateFromJSON=ir,i.TransferProcessSimplifiedStateFromJSONTyped=ar,i.TransferProcessSimplifiedStateToJSON=ao,i.TransferProcessSimplifiedStateToJSONTyped=oo,i.TransferProcessStateFromJSON=Ye,i.TransferProcessStateFromJSONTyped=or,i.TransferProcessStateToJSON=Xe,i.TransferProcessStateToJSONTyped=sr,i.TransferProcessStatesDtoFromJSON=fi,i.TransferProcessStatesDtoFromJSONTyped=pi,i.TransferProcessStatesDtoToJSON=mi,i.TransferProcessStatesDtoToJSONTyped=yi,i.UIApi=la,i.UiAssetCreateRequestFromJSON=Wn,i.UiAssetCreateRequestFromJSONTyped=Yn,i.UiAssetCreateRequestToJSON=Fe,i.UiAssetCreateRequestToJSONTyped=Xn,i.UiAssetEditRequestFromJSON=Vs,i.UiAssetEditRequestFromJSONTyped=Bi,i.UiAssetEditRequestToJSON=$i,i.UiAssetEditRequestToJSONTyped=zi,i.UiAssetFromJSON=X,i.UiAssetFromJSONTyped=Jt,i.UiAssetToJSON=ge,i.UiAssetToJSONTyped=wt,i.UiConfigFeature=ke,i.UiConfigFeatureFromJSON=xi,i.UiConfigFeatureFromJSONTyped=Qi,i.UiConfigFeatureToJSON=Gi,i.UiConfigFeatureToJSONTyped=$s,i.UiConfigFromJSON=ji,i.UiConfigFromJSONTyped=ea,i.UiConfigPreconfiguredCounterpartyFromJSON=Ki,i.UiConfigPreconfiguredCounterpartyFromJSONTyped=Wi,i.UiConfigPreconfiguredCounterpartyToJSON=Yi,i.UiConfigPreconfiguredCounterpartyToJSONTyped=Xi,i.UiConfigToJSON=Qs,i.UiConfigToJSONTyped=ta,i.UiContractNegotiationFromJSON=dt,i.UiContractNegotiationFromJSONTyped=ra,i.UiContractNegotiationToJSON=Ks,i.UiContractNegotiationToJSONTyped=na,i.UiContractOfferFromJSON=ia,i.UiContractOfferFromJSONTyped=aa,i.UiContractOfferToJSON=oa,i.UiContractOfferToJSONTyped=sa,i.UiCriterionFromJSON=nt,i.UiCriterionFromJSONTyped=xr,i.UiCriterionLiteralFromJSON=Zr,i.UiCriterionLiteralFromJSONTyped=Hr,i.UiCriterionLiteralToJSON=Vr,i.UiCriterionLiteralToJSONTyped=Br,i.UiCriterionLiteralType=Ie,i.UiCriterionLiteralTypeFromJSON=Lr,i.UiCriterionLiteralTypeFromJSONTyped=Mr,i.UiCriterionLiteralTypeToJSON=Uo,i.UiCriterionLiteralTypeToJSONTyped=Ro,i.UiCriterionOperator=Ae,i.UiCriterionOperatorFromJSON=$r,i.UiCriterionOperatorFromJSONTyped=zr,i.UiCriterionOperatorToJSON=ko,i.UiCriterionOperatorToJSONTyped=qo,i.UiCriterionToJSON=it,i.UiCriterionToJSONTyped=Qr,i.UiDataOfferFromJSON=ut,i.UiDataOfferFromJSONTyped=ca,i.UiDataOfferToJSON=Xs,i.UiDataOfferToJSONTyped=da,i.UiDataSourceFromJSON=st,i.UiDataSourceFromJSONTyped=Gn,i.UiDataSourceHttpDataFromJSON=Zn,i.UiDataSourceHttpDataFromJSONTyped=Hn,i.UiDataSourceHttpDataMethod=Re,i.UiDataSourceHttpDataMethodFromJSON=Ln,i.UiDataSourceHttpDataMethodFromJSONTyped=Mn,i.UiDataSourceHttpDataMethodToJSON=ls,i.UiDataSourceHttpDataMethodToJSONTyped=fs,i.UiDataSourceHttpDataToJSON=Vn,i.UiDataSourceHttpDataToJSONTyped=Bn,i.UiDataSourceOnRequestFromJSON=$n,i.UiDataSourceOnRequestFromJSONTyped=zn,i.UiDataSourceOnRequestToJSON=xn,i.UiDataSourceOnRequestToJSONTyped=Qn,i.UiDataSourceToJSON=ct,i.UiDataSourceToJSONTyped=Kn,i.UiPolicyConstraintFromJSON=et,i.UiPolicyConstraintFromJSONTyped=Cr,i.UiPolicyConstraintToJSON=tt,i.UiPolicyConstraintToJSONTyped=Nr,i.UiPolicyCreateRequestFromJSON=Ni,i.UiPolicyCreateRequestFromJSONTyped=Di,i.UiPolicyCreateRequestToJSON=Pi,i.UiPolicyCreateRequestToJSONTyped=Ji,i.UiPolicyExpressionFromJSON=j,i.UiPolicyExpressionFromJSONTyped=Jr,i.UiPolicyExpressionToJSON=ee,i.UiPolicyExpressionToJSONTyped=wr,i.UiPolicyExpressionType=Je,i.UiPolicyExpressionTypeFromJSON=Dr,i.UiPolicyExpressionTypeFromJSONTyped=Pr,i.UiPolicyExpressionTypeToJSON=No,i.UiPolicyExpressionTypeToJSONTyped=Do,i.UiPolicyFromJSON=we,i.UiPolicyFromJSONTyped=_r,i.UiPolicyLiteralFromJSON=hr,i.UiPolicyLiteralFromJSONTyped=Tr,i.UiPolicyLiteralToJSON=Sr,i.UiPolicyLiteralToJSONTyped=Or,i.UiPolicyLiteralType=Pe,i.UiPolicyLiteralTypeFromJSON=yr,i.UiPolicyLiteralTypeFromJSONTyped=gr,i.UiPolicyLiteralTypeToJSON=ho,i.UiPolicyLiteralTypeToJSONTyped=To,i.UiPolicyToJSON=_e,i.UiPolicyToJSONTyped=Ir,i.UseCaseApi=fa,i.VoidApiResponse=Ct,i.buildEdcClient=td,i.canConsumeForm=Aa,i.exists=_a,i.instanceOfAssetPage=Ea,i.instanceOfBuildInfo=qa,i.instanceOfCatalogFilterExpression=xa,i.instanceOfCatalogFilterExpressionLiteral=Va,i.instanceOfCatalogFilterExpressionLiteralType=Ma,i.instanceOfCatalogFilterExpressionOperator=Ba,i.instanceOfCatalogQuery=Qa,i.instanceOfConnectorLimits=Ka,i.instanceOfContractAgreementCard=wo,i.instanceOfContractAgreementDirection=Ya,i.instanceOfContractAgreementPage=_o,i.instanceOfContractAgreementPageQuery=Ao,i.instanceOfContractAgreementTerminationInfo=no,i.instanceOfContractAgreementTransferProcess=co,i.instanceOfContractDefinitionEntry=Mo,i.instanceOfContractDefinitionPage=Zo,i.instanceOfContractDefinitionRequest=Vo,i.instanceOfContractNegotiationRequest=$o,i.instanceOfContractNegotiationSimplifiedState=xo,i.instanceOfContractNegotiationState=Ko,i.instanceOfContractTerminatedBy=eo,i.instanceOfContractTerminationRequest=Wo,i.instanceOfContractTerminationStatus=uo,i.instanceOfDashboardCxDidConfig=Xo,i.instanceOfDashboardDapsConfig=jo,i.instanceOfDashboardPage=ts,i.instanceOfDashboardTransferAmounts=es,i.instanceOfDataOfferCreateRequest=hs,i.instanceOfDataOfferPublishType=ns,i.instanceOfDataSourceAvailability=ba,i.instanceOfDataSourceType=os,i.instanceOfIdAvailabilityResponse=Ss,i.instanceOfIdResponseDto=Cs,i.instanceOfInitiateCustomTransferRequest=Ds,i.instanceOfInitiateTransferRequest=Js,i.instanceOfKpiResult=Is,i.instanceOfOperatorDto=po,i.instanceOfPolicyDefinitionCreateDto=vs,i.instanceOfPolicyDefinitionCreateRequest=Rs,i.instanceOfPolicyDefinitionDto=Es,i.instanceOfPolicyDefinitionPage=ks,i.instanceOfSecretValue=ds,i.instanceOfTransferHistoryEntry=Ls,i.instanceOfTransferHistoryPage=Ms,i.instanceOfTransferProcessSimplifiedState=io,i.instanceOfTransferProcessState=so,i.instanceOfTransferProcessStatesDto=_s,i.instanceOfUiAsset=Fa,i.instanceOfUiAssetCreateRequest=gs,i.instanceOfUiAssetEditRequest=Hs,i.instanceOfUiConfig=xs,i.instanceOfUiConfigFeature=Bs,i.instanceOfUiConfigPreconfiguredCounterparty=zs,i.instanceOfUiContractNegotiation=Gs,i.instanceOfUiContractOffer=Ws,i.instanceOfUiCriterion=Lo,i.instanceOfUiCriterionLiteral=Fo,i.instanceOfUiCriterionLiteralType=bo,i.instanceOfUiCriterionOperator=Eo,i.instanceOfUiDataOffer=Ys,i.instanceOfUiDataSource=ys,i.instanceOfUiDataSourceHttpData=ps,i.instanceOfUiDataSourceHttpDataMethod=us,i.instanceOfUiDataSourceOnRequest=ms,i.instanceOfUiPolicy=Jo,i.instanceOfUiPolicyConstraint=Oo,i.instanceOfUiPolicyCreateRequest=Us,i.instanceOfUiPolicyExpression=Po,i.instanceOfUiPolicyExpressionType=Co,i.instanceOfUiPolicyLiteral=So,i.instanceOfUiPolicyLiteralType=go,i.mapValues=Ia,i.querystring=Ke,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=sovity-edc-client.umd.cjs.map
|