jamespot-user-api 1.0.176 → 1.0.178
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/documentation/assets/search.js +1 -1
- package/documentation/classes/AdminLicenseApi.html +14 -14
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/AdminUtilsApi.html +1 -1
- package/documentation/classes/JApplicationApi.html +8 -8
- package/documentation/classes/JArticleApi.html +1 -1
- package/documentation/classes/JAssetReservation.html +1 -1
- package/documentation/classes/JAudienceApi.html +1 -1
- package/documentation/classes/JBaseApi.html +1 -1
- package/documentation/classes/JBbbApi.html +1 -1
- package/documentation/classes/JBookmarkApi.html +1 -1
- package/documentation/classes/JBusinessNetworkingApi.html +1 -1
- package/documentation/classes/JCommunityApi.html +1 -1
- package/documentation/classes/JDatasourceApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFaqApi.html +1 -1
- package/documentation/classes/JFileApi.html +6 -6
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGlobalApi.html +1 -1
- package/documentation/classes/JGroupApi.html +12 -12
- package/documentation/classes/JIAApi.html +1 -1
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JMessengerApi.html +1 -1
- package/documentation/classes/JObjectApi.html +1 -1
- package/documentation/classes/JSearchApi.html +6 -6
- package/documentation/classes/JShareApi.html +1 -1
- package/documentation/classes/JSocialActionApi.html +1 -1
- package/documentation/classes/JTaxonomyApi.html +2 -2
- package/documentation/classes/JUserApi.html +7 -7
- package/documentation/classes/JWedocApi.html +1 -1
- package/documentation/classes/JWidgetApi.html +1 -1
- package/documentation/classes/JamespotUserApi.html +1 -1
- package/documentation/classes/Network.html +1 -1
- package/documentation/classes/TVDisplayApi.html +1 -1
- package/documentation/classes/WindowBrowser.html +1 -1
- package/documentation/enums/BookmarkType.html +1 -1
- package/documentation/enums/Format.html +1 -1
- package/documentation/enums/GroupModerateStatus.html +1 -1
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/enums/WidgetsName.html +1 -1
- package/documentation/index.html +1 -1
- package/documentation/interfaces/AccessRightObject.html +1 -1
- package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
- package/documentation/interfaces/ApiWrapper.html +1 -1
- package/documentation/interfaces/BaseMessage.html +1 -1
- package/documentation/interfaces/Category.html +1 -1
- package/documentation/interfaces/FileBankProps.html +1 -1
- package/documentation/interfaces/FolderProps.html +1 -1
- package/documentation/interfaces/ListFilterSpec.html +1 -1
- package/documentation/interfaces/OF.html +1 -1
- package/documentation/interfaces/PagingResults.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WidgetType.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +11 -11
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/file/file.d.ts +5 -1
- package/lib/src/apis/file/file.mock.d.ts +1 -0
- package/lib/src/apis/{filebank.d.ts → filebank/filebank.d.ts} +26 -6
- package/lib/src/apis/filebank/filebank.mock.d.ts +4 -0
- package/lib/src/apis/filebank/filebank.test.d.ts +1 -0
- package/lib/src/apis/index.d.ts +1 -1
- package/lib/src/apis/jamespotUserApi.d.ts +1 -1
- package/lib/src/types/file.d.ts +15 -0
- package/package.json +1 -1
- package/phpunitMock/fileBankGetParents-success.json +38 -0
- package/phpunitMock/fileBankGetPath-success.json +85 -0
- package/phpunitMock/fileCopy-success.json +18 -0
package/lib/jamespot-user-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ACCESS_REQUEST_ACCEPT:()=>cl,ACCESS_REQUEST_DENY:()=>ul,AdminLicenseApi:()=>r,AdminStoreApi:()=>a,AdminUtilsApi:()=>s,BookmarkType:()=>Ji,DateFormatSchema:()=>ha,Format:()=>Yn,GroupModerateStatus:()=>Mi,JApplicationApi:()=>o,JArticleApi:()=>Q,JAssetReservation:()=>X,JAudienceApi:()=>ee,JBaseApi:()=>n,JBbbApi:()=>te,JBookmarkApi:()=>ne,JBusinessNetworkingApi:()=>ie,JCommunityApi:()=>re,JDatasourceApi:()=>ae,JDiapazoneApi:()=>se,JFaqApi:()=>ce,JFileApi:()=>le,JFilebankApi:()=>ue,JGlobalApi:()=>de,JGroupApi:()=>pe,JIAApi:()=>Fe,JLandApi:()=>fe,JMessengerApi:()=>ye,JObjectApi:()=>Ae,JSearchApi:()=>be,JShareApi:()=>je,JSocialActionApi:()=>Le,JTaxonomyApi:()=>ke,JUserApi:()=>we,JWedocApi:()=>_e,JWidgetApi:()=>Re,JamespotUserApi:()=>Pe,JamespotUserApiInstance:()=>jl,Network:()=>N,NumberFormatSchema:()=>fa,StudioApplicationStatus:()=>i,TVDisplayApi:()=>Se,UserLevel:()=>vi,WidgetsName:()=>wr,WindowBrowser:()=>Ze,actionVerbSchema:()=>ws,addCommentParamsSchema:()=>Qa,addFaqEntrySchema:()=>Hs,addRemoveActionParamsSchema:()=>nl,adminAppSchema:()=>or,adminAppTabSchema:()=>sr,adminAppsSchema:()=>lr,adminLicenseStatsSchema:()=>Qi,adminLicenseUserSchema:()=>ir,adminLicensesAssignedSchema:()=>er,adminLicensesNotAssignedSchema:()=>Xi,animationConfigurationTypeSchema:()=>ur,animationStatsRowSchema:()=>dr,animationStatsSchema:()=>pr,animationVariantSchema:()=>cr,api:()=>Cl,articleCreationSchema:()=>Ga,articleDisplayModeSchema:()=>Pr,articleGetConfigSchema:()=>Ja,articleListConfigSchema:()=>Va,aseiGroupsSchema:()=>is,aseiInstitutionSchema:()=>ns,aseiRightsSchema:()=>rs,aseiTicketSchema:()=>ts,aseiTicketStatusSchema:()=>es,assetReservationConfigurationSchema:()=>as,audienceAutocompleteSchema:()=>ms,audienceSchema:()=>Bi,baseArticleSchema:()=>Ka,baseAutocompleteSchema:()=>cs,bookableAssetListSchema:()=>ss,bookableAssetViewSchema:()=>os,bookmarkCustomSchema:()=>Hi,bookmarkLinkSchema:()=>Gi,bookmarkTypesSchema:()=>Ki,businessContactSchema:()=>Ei,combineFormat:()=>z,combinedWidgetContentSchema:()=>Za,combinedWidgetTypeSchema:()=>Pa,communitySchema:()=>gs,createFaqCategorySchema:()=>qs,createFaqEntrySchema:()=>Ks,createFaqThemeSchema:()=>Vs,cssBackgroundPositionSchema:()=>Tr,cssBackgroundSizeSchema:()=>Ar,cssTextAlignTypeSchema:()=>Cr,deepEqual:()=>B,default:()=>xl,deleteFaqThemeSchema:()=>Js,driveAccountSchema:()=>Es,driveDocumentParamsSchema:()=>Is,driveItemTypeSchema:()=>Ps,editFaqCategorySchema:()=>Bs,editFaqEntrySchema:()=>Qs,editFaqThemeSchema:()=>Gs,ensureWidgetApiType:()=>sa,ensureWidgetArticleAttachmentType:()=>ia,ensureWidgetArticleButtonType:()=>Br,ensureWidgetArticleGalleryType:()=>$r,ensureWidgetArticleImageType:()=>ea,ensureWidgetArticleSliderType:()=>ua,ensureWidgetArticleTextType:()=>Qr,ensureWidgetArticleTitleType:()=>Gr,ensureWidgetCheckListType:()=>ga,ensureWidgetDatasourceTableType:()=>La,ensureWidgetExcelDatasourceTableType:()=>Ea,ensureWidgetType:()=>Ir,ensureWidgetWrapperProps:()=>Ma,extensions:()=>S,extractTaxonomiesFromObject:()=>V,extractTaxonomiesFromObjectAndMapProperty:()=>J,extractTaxonomiesFromObjectAndMapUri:()=>G,facetModeSchema:()=>Po,faqAccessSchema:()=>$s,faqHookPropertiesSchema:()=>zs,faqItemListSchema:()=>Ds,faqItemViewSchema:()=>Us,faqListSchema:()=>Ms,faqTaxonomySchema:()=>Ws,faqViewSchema:()=>Zs,fileCropConfigSchema:()=>hr,filterSchema:()=>Gn,filterValueSchema:()=>$n,filtersSchema:()=>Hn,formatExtensionSchema:()=>ti,formatImgUrl:()=>w,formatListSchema:()=>ei,getActionUsersParamsSchema:()=>tl,getArgs:()=>y,getCommentsParamsSchema:()=>Ha,getExtensionFromName:()=>T,getFileExtensionFromMimetype:()=>C,getFileFamily:()=>E,getFileFamilyFromName:()=>F,getFormat:()=>v,getFrom:()=>h,getLicenseKindUsersParamsSchema:()=>ho,getMimetypeFromExtension:()=>x,getMimetypeFromName:()=>A,getSize:()=>b,getTimestamp:()=>f,getUnclassifiedFilesParamsSchema:()=>vo,getUri:()=>g,getUrl:()=>k,groupLittleSchema:()=>Ni,imageSizeSchema:()=>gr,inferBookmarkListSchema:()=>Vi,inferBookmarkRawListSchema:()=>$i,inferExtendedFaqCategory:()=>Ns,inferJInternalDraftView:()=>$a,inferJLinkListSchema:()=>zi,inferMaybeWithToken:()=>Qn,inferSearchQueryResultSchema:()=>Vo,inferUserLicenseSchema:()=>fo,inferWidgetWrapperPropsSchema:()=>Ia,jAdminLicenseUserListSchema:()=>nr,jArticleExtendViewSchema:()=>za,jArticleListSchema:()=>Ba,jArticleLittleSchema:()=>qa,jArticleViewSchema:()=>Wa,jArticleWidgetLittle:()=>dl,jArticleWidgetViewSchema:()=>_l,jBusinessContactListSchema:()=>ks,jBusinessContactLittleSchema:()=>vs,jCommentListSchema:()=>js,jCommentLittleSchema:()=>Ss,jDiapazoneListSchema:()=>xs,jEnsure:()=>u,jFileLittleCropSchema:()=>br,jFileLittleSchema:()=>fr,jFileRenditionSchema:()=>vr,jHrefSchema:()=>Wn,jIACapabilitiesSchema:()=>mo,jLinkLittleSchema:()=>Wi,jMeetingListSchema:()=>Co,jMeetingViewSchema:()=>To,jObjectAutocompleteSchema:()=>us,jObjectBaseSchema:()=>si,jObjectListSchema:()=>Ui,jObjectLittleSchema:()=>oi,jPollSurveyListSchema:()=>Oo,jPollSurveyViewSchema:()=>Lo,jQuizzListSchema:()=>Fo,jQuizzViewSchema:()=>Ro,jSocialEventListSchema:()=>jo,jSocialEventViewSchema:()=>xo,jSpotAutocompleteSchema:()=>ps,jSupportListSchema:()=>il,jSupportViewSchema:()=>rl,jSurveyDateListSchema:()=>al,jSurveyDateViewSchema:()=>sl,jUserAutocompleteSchema:()=>ds,jUserListSchema:()=>wi,jUserLittleSchema:()=>ki,jUserValuesSchema:()=>Ai,jUserViewSchema:()=>Si,legacyAngularJSTypeSchema:()=>xr,licenseSchema:()=>tr,mediaLibraryFilesStatsSchema:()=>ko,mediaLibraryFolderSchema:()=>yo,mediaLibraryFolderStatsSchema:()=>wo,mediaLibraryListSchema:()=>bo,mediaLibraryStatsSchema:()=>_o,mimetypeToExt:()=>j,mimetypes:()=>_,moveFaqEntrySchema:()=>Ys,moveFaqThemeSchema:()=>Xs,moveMediaLibraryFileParamsSchema:()=>So,msBaseEntitySchema:()=>Ts,msDocumentEntitySchema:()=>Fs,msGroupEntitySchema:()=>Ls,msSiteEntitySchema:()=>Os,msTenantEntitySchema:()=>As,msTenantsSchema:()=>Cs,msUnifiedEntitySchema:()=>Rs,network:()=>Sl,networkTypeSchema:()=>Ao,objectListPropsSchema:()=>ni,objectTimestamp:()=>O,objectWithoutLicenseFilterSchema:()=>Yi,openingTypeAnchorSchema:()=>Zr,openingTypeLinkSchema:()=>Mr,openingTypePopupSchema:()=>Nr,openingTypeSchema:()=>Fr,orderSchema:()=>zn,ordersSchema:()=>Kn,padStartTwoDigits:()=>m,prepareGroupForUpdate:()=>K,publicWebinarData:()=>bs,publicWebinarFullnameRequestSchema:()=>hs,publicWebinarGetDateRequestSchema:()=>ys,publicWebinarUrlSchema:()=>fs,removeIfStartsWith:()=>p,replacePropertiesWithTypes:()=>W,reservationListSchema:()=>ls,resolveFileFamily:()=>M,resolveFileMimetype:()=>I,resolveFilePath:()=>L,resolveFileUrl:()=>P,rightsSchema:()=>ri,searchCategoryModelSchema:()=>Mo,searchCategoryValueSchema:()=>Eo,searchConfigSchema:()=>Bo,searchFacetModelSchema:()=>Io,searchFacetValueModelSchema:()=>No,searchFacetValuesSchema:()=>Zo,searchLastQuerySchema:()=>Jo,searchQueryFilterModelSchema:()=>Do,searchQueryOptionSchema:()=>qo,searchQuerySchema:()=>$o,searchQuerySortModelSchema:()=>Uo,searchResultCatPropsSchema:()=>Ko,searchResultPropsAppSchema:()=>Wo,searchResultPropsObjectSchema:()=>zo,searchResultPropsSchema:()=>Go,shareAccessObjectSchema:()=>el,shareAccessPropsSchema:()=>Xo,shareGeneralAccessRulesSchema:()=>Ho,shareOptionObjectSchema:()=>Qo,sharedAudienceItemSchema:()=>Yo,socialActionSchema:()=>_s,storeFinalizeSchema:()=>ar,storeItemSchema:()=>rr,suffixIfDoesNotExist:()=>d,textEnhanceResponseSchema:()=>go,tinyMCECommonOptionsSchema:()=>ll,tinyMCEDynamicOptionsSchema:()=>ol,updateCommentParamsSchema:()=>Ya,uploadConfigSchema:()=>mr,userDefaultFieldsTypeSchema:()=>Ti,userDirectoryConfigurationSchema:()=>Pi,userDownloadSchema:()=>kr,userFieldSchema:()=>Li,userFieldsConfigurationTypeSchema:()=>Oi,userFieldsSchema:()=>Fi,userMapModelSchema:()=>xi,userReadSchema:()=>Xa,userValuesSchema:()=>Ri,userlevelSpotShema:()=>Zi,validateIsFormatFileLittle:()=>yr,validateIsFormatHookListType:()=>po,validateIsFormatObjectList:()=>qi,validateIsFormatObjectLittle:()=>li,validateIsFormatRights:()=>ai,validateIsFormatUserDirectoryConfiguration:()=>Ii,validateIsFormatUserLevelSpot:()=>Di,validateIsFormatUserList:()=>_i,validateIsFormatUserMapModel:()=>Ci,validateIsFormatUserView:()=>ji,variantSizeTypeSchema:()=>Or,variantTypeSchema:()=>Lr,widgetActiveValueSchema:()=>hi,widgetApiContentSchema:()=>ra,widgetApiTypeSchema:()=>aa,widgetArticleAttachmentContentSchema:()=>ta,widgetArticleAttachmentTypeSchema:()=>na,widgetArticleButtonContentSchema:()=>Ur,widgetArticleButtonTypeSchema:()=>qr,widgetArticleCheckListTypeForFrontSchema:()=>yl,widgetArticleGalleryContentSchema:()=>Wr,widgetArticleGalleryTypeSchema:()=>zr,widgetArticleImageContentSchema:()=>Yr,widgetArticleImageTypeSchema:()=>Xr,widgetArticleSliderContentSchema:()=>la,widgetArticleSliderTypeSchema:()=>ca,widgetArticleTextContentSchema:()=>Kr,widgetArticleTextTypeSchema:()=>Hr,widgetArticleTitleContentSchema:()=>Vr,widgetArticleTitleTypeSchema:()=>Jr,widgetBaseSchema:()=>jr,widgetButtonPropsSchema:()=>Dr,widgetCheckListContentArrForFrontSchema:()=>hl,widgetCheckListContentArrSchema:()=>da,widgetCheckListContentForFrontSchema:()=>fl,widgetCheckListContentSchema:()=>pa,widgetCheckListTypeSchema:()=>ma,widgetContentKeysSchema:()=>Da,widgetDatasourceTableContentSchema:()=>Aa,widgetDatasourceTableTypeSchema:()=>Oa,widgetDatePickerValueSchema:()=>gi,widgetDateValueSchema:()=>pi,widgetDatetimeValueSchema:()=>mi,widgetDefaultProps:()=>gl,widgetDefinitionPropsSchema:()=>bl,widgetDisplayModeSchema:()=>ml,widgetEmailValueSchema:()=>fi,widgetExcelDatasourceTableContentSchema:()=>Fa,widgetExcelDatasourceTableTypeSchema:()=>Ra,widgetExtendedTypeSchema:()=>Er,widgetKeysSchema:()=>_r,widgetLayerSchema:()=>pl,widgetModalPropsSchema:()=>vl,widgetNumberValueSchema:()=>di,widgetSlideSchema:()=>oa,widgetStatePropsSchema:()=>Ua,widgetTableColumnDataSchema:()=>Sa,widgetTableColumnSchema:()=>Ca,widgetTableColumnTypesSchema:()=>xa,widgetTableColumnWidgetDateSchema:()=>wa,widgetTableColumnWidgetDefaulSchema:()=>ya,widgetTableColumnWidgetSelectOptionSchema:()=>va,widgetTableColumnWidgetSelectSchema:()=>ka,widgetTableColumnWidgetTextSchema:()=>ba,widgetTableColumnWidgetsSchema:()=>_a,widgetTableColumnsData:()=>ja,widgetTableContentSchema:()=>Ta,widgetTextValueSchema:()=>ci,widgetTextareaValueSchema:()=>ui,widgetTypeKeysSchema:()=>Na,widgetUrlValueSchema:()=>yi,widgetVectorSchema:()=>Rr,widgetsRootStateSchema:()=>wl,widgetsStateSchema:()=>kl,widgetsValueSchema:()=>bi});class n{constructor(e){this.jApi=e,this.network=e.network}}var i;class r extends n{getLicenseUserStatistics(e){return this.network.post({o:"licenseManager",f:"userStatistics"},e)}getLicenseStatistics(e,t){return this.network.post({o:"licenseManager",f:"statistics",kind:e},t)}assignLicense(e){return this.network.postCSRF({o:"licenseManager",f:"assignLicense",uri:e})}assignKindLicense(e,t){return this.network.postCSRF({o:"licenseManager",f:"assignLicenseKind",uri:e,kind:t})}unAssignLicense(e){return this.network.postCSRF({o:"licenseManager",f:"unassignLicense",uri:e})}unAssignKindLicense(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignLicenseKind",uri:e,kind:t})}getAssignmentMode(e,t){return this.network.post({o:"licenseManager",f:"getAssignmentMode",type:e},t)}setAssignmentMode(e,t){return this.network.postCSRF({o:"licenseManager",f:"setAssignmentMode",value:t,type:e})}assignPossiblesLicenses(e){return this.network.postCSRF({o:"licenseManager",f:"assignPossiblesLicenses",type:e})}unAssignUnusedLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignUnusedLicenses",type:e,kind:t})}optimizeLicenses(e){return this.network.postCSRF({o:"licenseManager",f:"optimizeLicenses",type:e})}getObjectsWithoutLicense(e,t){return this.network.post({o:"licenseManager",f:"countObjectsWithoutLicense",type:e,filter:t})}getLicensesNotAssigned(e){return this.network.post({o:"licenseManager",f:"countLicensesNotAssigned",type:e})}getLicensesAssigned(e){return this.network.post({o:"licenseManager",f:"getLicensesAssigned",type:e})}getLicenceUsersByKind(e,t,n){var i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,[]);return this.network.post(Object.assign(Object.assign({o:"licenseManager",f:"getUsers"},i),{format:t}),n)}}class a extends n{getItem(e){return this.network.post({o:"adminStore",f:"getItem",uri:e})}checkoutBilling(e){return this.network.postCSRF({o:"adminStore",f:"checkoutBilling",uri:e})}checkoutFinalize(e){return this.network.postCSRF({o:"adminStore",f:"checkoutFinalize",uri:e})}}class s extends n{getApps(e){return this.network.post({o:"admin",f:"apps"},e)}}!function(e){e.local="local",e.installed="installed",e.autosaved="autosaved",e.saved="saved"}(i||(i={}));class o extends n{list(){return this.network.post({o:"studio",f:"list"})}get(e,t){return this.network.post({o:"studio",f:"get",idApp:e,status:t})}install(e){return this.network.postCSRF({o:"studio",f:"install",value:e})}suspend(e){return this.network.postCSRF({o:"studio",f:"suspend",idApp:e})}restart(e){return this.network.postCSRF({o:"studio",f:"restart",idApp:e})}save(e,t,n){if(n===i.saved||n===i.autosaved)return this.network.postCSRF({o:"studio",f:"save",idApp:e,value:t,status:n});throw"Invalid status value"}delete(e,t){return n=this,i=void 0,a=function*(){return this.network.postCSRF({o:"studio",f:"delete",idApp:e,status:t}).then((e=>{if(0===e.error)return e.messages;throw e.messages}))},new((r=void 0)||(r=Promise))((function(e,t){function s(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,o)}l((a=a.apply(n,i||[])).next())}));var n,i,r,a}cssClassList(){return this.network.post({o:"studio",f:"icons"})}}function l(e){const t=e;return t&&"number"==typeof t.id&&"number"==typeof t.targetId}const c={bookmarkLink:l},u={isBookmarkLink:function(e){return"targetId"in e&&!!e.targetId},isBookmarkCustom:function(e){const t=e;return void 0!==t.bookmarkLabel||void 0!==t.bookmarkMeta||void 0!==t.bookmarkUrl},isBookmarkRawList:l,isTVChannelType:function(e,t){return"tvChannelType"in e&&e.tvChannelType===t},objectIsType:function(e,t){return null!=t&&c[e](t)},isStandardApiError:e=>"object"==typeof e&&null!==e&&"error"in e&&"errorMsg"in e&&"messages"in e&&"number"==typeof e.error&&"string"==typeof e.errorMsg&&Array.isArray(e.messages),isAbortApiError:e=>null!==e&&"object"==typeof e&&"error"in e&&"aborted"in e&&-1===e.error&&!0===e.aborted};function d(e,t){return e&&!e.endsWith(t)?`${e}${t}`:e}function p(e,t){return e&&e.startsWith(t)?e.split("").slice(t.length).join(""):e}function m(e){return e.toString().padStart(2,"0")}function g(e){return"uri"in e&&e.uri?e.uri:`${e.type}/${e.recordId}`}function h(e){return p(d(e.from,"/"),"/")||""}function f(e){return e.timestamp?`?_=${e.timestamp}`:""}function y(e){const t=[];return"timestamp"in e&&e.timestamp&&t.push(`_=${e.timestamp}`),"iconColor"in e&&e.iconColor&&t.push(`color=${e.iconColor}`),t.length?"?"+t.join("&"):""}function b(e,t=2){return"size"in e&&e.size?e.size:"width"in e&&e.width&&"height"in e&&e.height?`${e.width*t}x${e.height*t}`:""}function v(e){return e.format||"png"}function k(e){try{return new URL(e)}catch(e){}try{return new URL(window.location.origin+"/"+p(e,"/"))}catch(e){}}function w(e,t=2){if("url"in e&&e.url){const t=k(e.url);if(t)return"timestamp"in e&&e.timestamp&&!t.searchParams.has("_")&&t.searchParams.append("_",e.timestamp.toString()),t.toString()}return`/${h(e)}${b(e,t)}/${g(e)}.${v(e)}${y(e)}`}const _=["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pdf","application/zip","application/illustrator","application/postscript","application/vnd.ms-opentype","application/x-font-ttf","application/octet-stream","audio/mp3","audio/mpeg","font/ttf","font/otf","image/jpeg","image/jpg","image/png","image/gif","image/vnd.adobe.photoshop","image/svg+xml","text/plain","text/csv","video/mp4","video/webm"],S=["docx","xlsx","csv","pptx","pdf","zip","ai","mp3","mpeg","ttf","otf","jpg","jpeg","png","gif","psd","svg","txt","mp4","odt","webm"],j={"application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/vnd.oasis.opendocument.text":"odt","application/pdf":"pdf","application/zip":"zip","application/x-zip-compressed":"zip","application/illustrator":"ai","application/postscript":"ai","audio/mp3":"mp3","audio/mpeg":"mpeg","font/ttf":"ttf","font/otf":"otf","image/jpeg":"jpeg","image/jpg":"jpg","image/png":"png","image/gif":"gif","application/x-font-ttf":"ttf","application/vnd.ms-opentype":"otf","image/vnd.adobe.photoshop":"psd","image/svg+xml":"svg","text/plain":"txt","text/csv":"xlsx","video/mp4":"mp4","video/webm":"mp4"},x=e=>Object.keys(j).find((t=>j[t]===e)),C=e=>{var t;return null!==(t=j[e])&&void 0!==t?t:void 0};function T(e){const t=String(e).split(".").pop();return S.find((e=>e===t))}const A=e=>{var t;const n=T(e);return null!==(t=x(n))&&void 0!==t?t:"application/octet-stream"},O=e=>e?(new Date(e).getTime()/1e3).toFixed(0):void 0,L=(e,t="fitx80")=>{const n=M(e),i=O(e.dateModified);switch(n){default:return;case"video":return`/media/${e.id}.mp4?stream=true`+(i?`&_=${i}`:"");case"audio":return`/media/${e.id}.mp3`+(i?`?_=${i}`:"");case"gif":return w({timestamp:i,size:t,from:"imagecache",uri:e.uri,format:"gif"});case"image":return w({timestamp:i,size:t,from:"imagecache",uri:e.uri})}},F=e=>{const t=T(e);return void 0!==t?E(x(t)):"application"},R=e=>-1!==["image/vnd","image/svg","image/heic"].findIndex((t=>e.startsWith(t)));function E(e){return e&&e.startsWith("folder/")?"folder":null==e||R(e)?"application":e.startsWith("image/gif")?"gif":e.startsWith("image/")?"image":e.startsWith("video/")?"video":e.startsWith("audio/")?"audio":e.startsWith("font/")||e.startsWith("application/x-font-ttf")||e.startsWith("application/vnd.ms-opentype")?"font":e.startsWith("text/")?"text":"application"}const P=(e,t,n="rr")=>"ng"===n?`/ng/file/${e}/${t}`:`/ng/rr/file/${e}/${t}`,I=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?A(e.title):e.mimetype,M=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?F(e.title):E(e.mimetype);var Z=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class N{constructor(e,t="api-front"){this.window=e,this.action=t}static _formatPostOptions(e){const t=e?{body:JSON.stringify(e)}:void 0;return Object.assign({method:"POST",credentials:"same-origin"},t)}getUrl(e,t){return Z(this,void 0,void 0,(function*(){const n=yield this.window.getBackendUrl();let i;try{i=new URL(`/${this.action}/${e}/${t}`,n).href}catch(r){i=`${n}/${this.action}/${e}/${t}`}return i}))}getHostname(){return Z(this,void 0,void 0,(function*(){const e=(yield this.window.getBackendUrl()).split("//");return e.length>1?e[1]:e[0]}))}fetch(e,t){var{o:n,f:i}=e,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["o","f"]);return Z(this,void 0,void 0,(function*(){void 0===t&&(t=null);const e=yield this.getUrl(n,i);return this.window.fetch(e,Object.assign(Object.assign({},N._formatPostOptions(r)),{signal:t}))}))}post(e,t){return this.fetch(e,t).then((e=>e.json())).then((e=>{if(0===e.error)return e;throw{error:e.error,errorMsg:e.errorMsg,messages:e.messages}})).catch((e=>{if(t&&t.aborted)throw{error:-1,aborted:!0};throw e}))}postFile(e){return Z(this,void 0,void 0,(function*(){const t=yield this.getUrl("file","create");if(e.append("format","raw-little"),!e.has("token")){const{result:t}=yield this.token();e.append("token",t)}const n=e.get("token");return n&&"string"==typeof n?this.window.fetch(t,{method:"POST",credentials:"same-origin",body:e}).then((e=>e.json())).then((e=>({response:e,token:n}))):Promise.reject("Missing token")}))}postCSRF(e){return this.tokenCSRF().then((t=>this.post(Object.assign(e,{tokenCSRF:t.result}))))}postToken(e){return this.token().then((t=>this.post(Object.assign(e,{token:t.result}))))}maybePostToken(e){return"token"in e&&e.token?this.post(e):this.postToken(e)}token(e){return this.post({o:"misc",f:"token"},e)}tokenCSRF(){return this.post({o:"misc",f:"tokenCSRF"})}}const D=Array.isArray,U=Object.keys,q=Object.prototype.hasOwnProperty;function B(e,t,n){const i=null==n?void 0:n.map((e=>e.split(".")));if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const r=D(e),a=D(t);let s,o,l;if(r&&a){if(o=e.length,o!==t.length)return!1;for(s=o;0!=s--;)if(!B(e[s],t[s],n))return!1;return!0}if(r!==a)return!1;const c=e instanceof Date,u=t instanceof Date;if(c!==u)return!1;if(c&&u)return e.getTime()===t.getTime();const d=e instanceof RegExp,p=t instanceof RegExp;if(d!==p)return!1;if(d&&p)return e.toString()===t.toString();const m=U(e).filter((e=>!(null==i?void 0:i.some((t=>1===t.length&&t[0]===e)))));if(o=m.length,o!==U(t).filter((e=>!(null==i?void 0:i.some((t=>1===t.length&&t[0]===e))))).length)return!1;for(s=o;0!=s--;)if(!q.call(t,m[s]))return!1;for(s=o;0!=s--;)if(l=m[s],!("_owner"===l&&e.$$typeof||B(e[l],t[l],null==i?void 0:i.filter((e=>e.length>1&&e[0]===l)).map((e=>e.splice(1).join("."))))))return!1;return!0}return e!=e&&t!=t}function W(e,t){if(Array.isArray(e))return e.map((e=>W(e,t)));if("object"==typeof e&&null!==e){let n={};return Object.keys(e).forEach((i=>{n=Object.assign(Object.assign({},n),{[i]:i&&t.includes(i)?typeof e[i]:W(e[i],t)})})),n}return e}const z=(e,t)=>Array.isArray(t)&&t.length?[e,...t].join(","):e;function $(e){return e.startsWith("tag_")||"tags"===e}function V(e){return Object.fromEntries(Object.entries(e).filter((([e])=>$(e))))}function J(e,t,n){return Object.fromEntries(Object.entries(e).filter((([e])=>$(e))).map((([e,i])=>{const r=Array.isArray(i)?i.map((e=>"object"==typeof e&&e&&t in e?e[t]:e)):i;return[e,n&&Array.isArray(r)?n(r):r]})))}function G(e){return J(e,"uri")}const K=e=>{var t;let n={};"_errors"in e&&(n._errors=e._errors),"_options"in e&&(n._options=e._options),"title"in e&&(n.title=e.title),"description"in e&&(n.description=e.description),"activity"in e&&(n.activity=e.activity),"image"in e&&(n.image=e.image),"uri"in e&&(n.uri=e.uri),"type"in e&&(n.type=e.type),"edito"in e&&(n.edito=e.edito),"category"in e&&(n.category=e.category.toString()),"commentLevel"in e&&(n.commentLevel=e.commentLevel),"_options"in e&&(null===(t=e._options)||void 0===t?void 0:t.custom_widgets)&&(n.custom_widgets=Array.isArray(e._options.custom_widgets)?{}:e._options.custom_widgets),"displayType"in e&&(n.displayType=e.displayType),"language"in e&&(n.language=e.language),"edit_access"in e&&(n.edit_access=e.edit_access),"lock_mail"in e&&(n.lock_mail=e.lock_mail),"fileSyncEnabled"in e&&(n.fileSyncEnabled=e.fileSyncEnabled),"fileSyncVersioningType"in e&&(n.fileSyncVersioningType=e.fileSyncVersioningType),"fileBankQuota"in e&&(n.fileBankQuota=e.fileBankQuota),"idCommunity"in e&&(n.idCommunity=e.idCommunity),"lastRssExecution"in e&&(n.lastRssExecution=e.lastRssExecution),"mail_comment"in e&&(n.mail_comment=e.mail_comment),"mail_frequency"in e&&(n.mail_frequency=e.mail_frequency),"mail_spotit"in e&&(n.mail_spotit=e.mail_spotit),"mail_subscriber"in e&&(n.mail_subscriber=e.mail_subscriber),"notifyFolder"in e&&(n.notifyFolder=e.notifyFolder),"nounsubscribe"in e&&(n.nounsubscribe=e.nounsubscribe),"privacy"in e&&(n.privacy=e.privacy),"publishFolder"in e&&(n.publishFolder=e.publishFolder),"rss_access"in e&&(n.rss_access=e.rss_access),"rss_feed"in e&&(n.rss_feed=e.rss_feed&&Array.isArray(e.rss_feed)?JSON.stringify(e.rss_feed.map((e=>{var{_user:t}=e,n=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["_user"]);return Object.assign(Object.assign({},n),{idUser:null==t?void 0:t.id})}))):"[]"),"rss_key"in e&&(n.rss_key=e.rss_key),"spot_right_user"in e&&(n.spot_right_user=e.spot_right_user),"spotBanner"in e&&(n.spotBanner=e.spotBanner),"spotDefaultPublishType"in e&&(n.spotDefaultPublishType=e.spotDefaultPublishType),"user_level_signup"in e&&(n.user_level_signup=e.user_level_signup),"useTeaser"in e&&(n.useTeaser=e.useTeaser),"widgets"in e&&(n.widgets=e.widgets);const i=V(e);if(n=Object.assign(Object.assign({},n),i),H(e,n))return n;throw new Error},H=(e,t)=>{const n=["id","mainType","dateCreation","dateModified","_url","o2apLinksSources"],i=["custom_widgets"],r=Object.keys(e),a=Object.keys(t),s=r.filter((e=>!a.includes(e)&&!n.includes(e))),o=a.filter((e=>!r.includes(e)&&!i.includes(e))),l=[...s.map((e=>"- "+e)),...o.map((e=>"+ "+e))];if(s.length>0||o.length>0)throw new Error(`prepareGroupForUpdate :: Wrong group mapping | Diff : ${JSON.stringify(l)}`);return!0};class Q extends n{list(e){var t,n;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"jamespotArticleQueryList"},e),{format:z(null!==(t=e.format)&&void 0!==t?t:"raw-list",null!==(n=e.formatExtend)&&void 0!==n?n:[])}))}get(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"article",f:"get"},e),{format:z(null!==(n=e.format)&&void 0!==n?n:"raw-view",null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}create(e,t){return this.network.maybePostToken(Object.assign({o:"article",f:"create",format:null!=t?t:"raw-list"},e))}update(e){return this.network.post(Object.assign(Object.assign({format:"raw-list"},e),{o:"article",f:"update"}))}delete(e){return this.network.postCSRF({o:"article",f:"delete",idArticle:e})}count(e){return this.network.post({o:"article",f:"count",type:e})}getAttachments(e,t,n){return this.network.post({o:"article",f:"getAttachment",idArticle:e,type:t,format:n})}permalink(e){return this.network.post({o:"article",f:"permalink",permalinkId:e})}saveAsDraft(e,t,n){return this.network.post({o:"article",f:"saveAsDraft",form:e,contentType:t,idDraft:n})}getComments(e,t){var n,i;return this.network.post(Object.assign(Object.assign({o:"article",f:"getComments"},e),{attachments:null!==(n=e.attachment)&&void 0!==n&&n,limits:null!==(i=e.limits)&&void 0!==i?i:{start:0,max:1e4},format:null!=t?t:"raw-little"}))}addComment(e,t){return this.network.post(Object.assign(Object.assign({o:"article",f:"addComment"},e),{alertAuthor:Number(e.alertAuthor),sendAlert:Number(e.sendAlert),type:"comment",format:null!=t?t:"raw-little"}))}updateComment(e,t){return this.network.post(Object.assign(Object.assign({o:"article",f:"updateComment"},e),{format:null!=t?t:"raw-little"}))}deleteComment(e){return this.network.postCSRF({o:"comment",f:"delete",idComment:e})}getRead(e){return this.network.post({o:"article",f:"getRead",uri:e})}}var Y=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class X extends n{configuration(){return this.network.post({o:"assetReservation",f:"configuration"})}createReservation(e){return this.network.postCSRF(Object.assign({o:"assetReservation",f:"createReservation",format:"raw-list"},e))}getReservations(e){var{format:t="raw-list"}=e,n=Y(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"getReservations",format:t},n))}cancelReservation(e){return this.network.post({o:"assetReservation",f:"cancelReservation",format:"raw-list",idArticle:e})}bookByDate(e){var{format:t="raw-list"}=e,n=Y(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"BookByDate",format:t},n))}getList(e){var{format:t="raw-list"}=e,n=Y(e,["format"]);return this.network.post(Object.assign({o:"objectList",f:"assetReservationList",format:t},n))}}class ee extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"audience",q:e}).then((e=>{if(Array.isArray(e.result))return e.result;throw"Bad response from backend"}))}}class te extends n{publicWebinarFullname(e){return this.network.post(Object.assign({o:"bigBlueButton",f:"publicWebinarFullname"},e))}getPublicWebinarData(e){return this.network.post(Object.assign({o:"bigBlueButton",f:"getPublicWebinarData"},e))}}class ne extends n{getFormattedList(e,t){return this.network.post(Object.assign({o:"objectList",f:"bookmarksList",format:t},e))}addFormattedLink(e,t,n){const i=null!=n?n:"list";return this.network.post({o:"custom",f:"actionAdd",type:"bookmarkLink",targetId:e,targetType:t,format:i})}addBookmark(e,t){return this.network.postCSRF(Object.assign({o:"bookmarks",f:"add"},e))}delete(e){return this.network.postCSRF({o:"bookmarks",f:"delete",bookmarkID:e})}rename(e,t,n){return this.network.postCSRF({o:"bookmarks",f:"rename",bookmarkID:e,bookmarkLabel:t,bookmarkUrl:n})}move(e,t,n){return this.network.postCSRF({o:"bookmarks",f:"move",bookmarkID:e,bookmarkReference:t,bookmarkPosition:n})}}class ie extends n{getInfos(e,t){return this.network.post({o:"BusinessNetworking",f:"MarkerInfo",id:e,format:null!=t?t:"raw-little"})}}class re extends n{get(e,t){return this.network.post({o:"community",f:"getCommunity",idCommunity:e,format:t||"raw-little"})}sendRequest(e,t){return this.network.post({o:"community",f:"sendRequest",message:e,idUserTo:t})}autocomplete(e){return this.network.post({o:"autocomplete",f:"community",q:e}).then((e=>e.result))}}class ae extends n{get(e,t){return this.network.post({o:"widget",f:"datasourceGet",uri:e,format:t})}getModel(e){return this.network.post({o:"widget",f:"datasourceGetModel",uri:e})}getObject(e){return this.network.post({o:"widget",f:"datasourceGetObject",uri:e})}updateModel(e,t){return this.network.post({o:"widget",f:"datasourceUpdateModel",uri:e,model:t})}getExcelDatasource(e){return this.network.post({o:"widget",f:"datasourceGetExcelDatasource",uri:e})}setExcelDatasource(e,t){return this.network.post({o:"widget",f:"datasourceSetExcelDatasource",uri:e,spreadsheet:t})}create({title:e,datasourceType:t,datasourceIdentifier:n,token:i}){return this.network.postCSRF({o:"widget",f:"datasourceCreate",title:e,datasourceType:t,datasourceIdentifier:n,token:i})}}class se extends n{create(e,t,n,i,r){return this.network.post({o:"article",f:"create",type:e,token:t,title:n,dateStart:i,publishTo:r})}getList(e="",t=[],n=[],i=1,r="raw-list"){return this.network.post({o:"objectList",f:"diapazoneQueryList",query:e,filters:t,orders:n,page:i,format:r})}}var oe=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class le extends n{upload(e){const t=new FormData;return t.append("attrName",e.attrName),e.file?t.append(e.attrName,e.file):e.url&&t.append("url",e.url),t.append("token",e.token),this.network.postFile(t)}uploadMany(e){return oe(this,void 0,void 0,(function*(){return Promise.all(e.map((e=>this.upload(e))))}))}get(e,t){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"get",idFile:e,format:t})}))}getParent(e,t){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getParent",idFile:e,format:t})}))}getWithHash(e,t,n){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getWithHash",idFile:e,hash:t,format:n})}))}duplicate(e,t,n){return oe(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"duplicateFile",idFile:e,title:t,publishTo:n})}))}updateFile(e,t){return oe(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"updateFile",idFile:e,title:t})}))}update(e,t,n){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"update",idFile:e,type:t,cropDatas:Object.assign(Object.assign({},n),{rotateBeforeCrop:!0}),killSize:n.killSize,format:"raw-little"})}))}deleteFile(e,t,n,i){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"delete",idFile:e,attrName:t,token:n},i)}))}deleteImage(e,t){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"deleteImage",id:e,type:t})}))}getDownload(e){return this.network.post({o:"file",f:"getDownload",id:e})}generatePreview(e){return this.network.post({o:"file",f:"generatePreview",id:e})}}class ce extends n{getCategoriesList(e,t){return this.network.post({o:"objectList",f:"faqQueryList",format:null!=e?e:"raw-list",orders:null!=t?t:[{name:"dateCreation",sort:"ASC"}]})}createCategory(e,t){return this.jApi.article.create(Object.assign(Object.assign({},e),{type:"faq"}),null!=t?t:"raw-view")}updateCategory(e,t){return this.jApi.article.update(Object.assign(Object.assign({},e),{type:"faq",format:null!=t?t:"raw-view"}))}getCategory(e,t){return this.jApi.article.get({idArticle:e,format:null!=t?t:"raw-view"})}deleteCategory(e){return this.jApi.article.delete(e)}checkItem(e,t,n){return this.network.post({o:"faq",f:"checkItem",query:e,page:null!=t?t:1,format:null!=n?n:"raw-list"})}getTaxonomy(){return this.network.post({o:"faq",f:"getFaqTaxonomy"})}getHookProperties(e){return this.network.post({o:"faq",f:"getHookProperties",properties:null!=e?e:["_web"]})}getAccess(){return this.network.post({o:"faq",f:"access"})}createTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-theme"},e),{format:null!=t?t:"raw-view"}))}deleteTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"delete-theme"},e),{format:null!=t?t:"raw-view"}))}updateTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"set-theme"},e),{format:null!=t?t:"raw-view"}))}getEntry(e,t){return this.network.post({o:"faq",f:"get-entry",uri:e,format:null!=t?t:"raw-view"})}deleteEntry(e){return this.jApi.article.delete(e)}createEntry(e,t){return this.jApi.article.create(Object.assign(Object.assign({},e),{idSpot:["content"],type:"faqItem"}),null!=t?t:"raw-view")}addEntry(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-entry"},e),{format:null!=t?t:"raw-view"}))}updateEntry(e,t){return this.jApi.article.update(Object.assign(Object.assign({},e),{type:"faqItem",format:null!=t?t:"raw-view"}))}moveEntry(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-entry"},e),{format:null!=t?t:"raw-view"}))}moveTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-theme"},e),{format:null!=t?t:"raw-view"}))}}class ue extends n{getBanks(e="list"){return this.network.post({o:"fileBank",f:"getBanks",format:e}).then((e=>e.result))}getFolders(e){return this.network.post({o:"fileBank",f:"getFolders",parentURI:e})}getDocuments(e){return this.network.post({o:"fileBank",f:"getDocuments",parentURI:e})}}class de extends n{countAction(e,t){return this.network.post({o:"activityLog",f:"log",count:!0,verb:e,uri:t})}useWebVersion(){return this.network.post({o:"global",f:"useWebVersion"})}}class pe extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"spot",q:e,idToUri:!1}).then((e=>e.result))}create(e,t){return this.network.post(Object.assign(Object.assign({o:"spot",f:"create"},e),{format:t}))}update(e,t){const{spotBanner:n}=e,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["spotBanner"]);return this.network.postCSRF(Object.assign(Object.assign({o:"spot",f:"update"},i),{format:t}))}getSpot(e,t){return this.network.post({o:"spot",f:"getSpot",idSpot:e,format:t})}getProperties(e){return this.network.post({o:"spot",f:"getProperties",idSpot:e})}getApplications(){return this.network.post({o:"spot",f:"get-available-widget"})}getCategories(){return this.network.post({o:"spot",f:"get-categories"})}getObjectListJamespotSpotMembers(e,t,n,i=1){return this.network.post({o:"objectListJamespot",f:"SpotMembers",idSpot:e,limit:n,page:i,format:"raw-little",query:t})}list(e){return this.network.post(Object.assign({o:"objectList",f:"jamespotSpotQueryList"},e))}resetNotifications(e){return this.network.post(Object.assign({o:"spot",f:"resetNotifications"},e))}getUserLevelAndRight(e){return this.network.post({o:"spot",f:"getUserLevelAndRight",idSpot:e})}groupRequest(e){return this.network.postCSRF({o:"spot",f:"request",idSpot:e})}groupAddToFavorite(e){return this.network.postCSRF({o:"spot",f:"addToFavorite",idSpot:e})}}class me extends n{list(e,t,n,i=[{name:"dateCreation",sort:"DESC"}]){return this.jApi.article.list({type:"aseiClearanceTicket",format:"raw-view",limit:t,page:e,orders:i,filters:n})}requestStatus(e,t,n){return this.network.post({o:"asei",f:"setStatus",uri:e,requestedStatus:t,audience:n})}getDedicatedGroups(){return this.network.post({o:"asei",f:"getDedicatedGroups"})}getConfiguration(){return this.network.post({o:"asei",f:"configuration"})}}class ge extends n{tenants(){return this.network.post({o:"drive",f:"getTenants"})}groups(e,t){return this.network.post({o:"drive",f:"getGroups",query:e,filter:t})}sites(){return this.network.post({o:"drive",f:"getSites"})}listAccount(e){return this.network.post({o:"drive",f:"listAccount",service:e})}isAccountLogged(e,t){return this.network.post({o:"drive",f:"isAccountLogged",service:e,id:t})}checkAccountToken(e){return this.network.post({o:"drive",f:"checkAccountToken",service:e})}documents(e,t){return this.network.post({o:"drive",f:"getDocuments",service:e,documentParams:t})}}class he extends n{GetUnclassifiedFiles(e){var t;return this.network.post({o:"objectListMediaLibrary",f:"GetUnclassifiedFiles",format:e.format,page:null!==(t=e.page)&&void 0!==t?t:1,limit:e.limit,nolimit:e.nolimit})}getAccess(){return this.network.post({o:"mediaLibrary",f:"access"})}getFoldersStatsList(e=[],t=[],n=1){return this.network.post({o:"objectListMediaLibrary",f:"FoldersStatsList",filters:e,orders:t,page:n})}getFilesStatsList(e=[],t=[],n=1){return this.network.post({o:"objectListMediaLibrary",f:"FilesStatsList",filters:e,orders:t,page:n})}getStats(){return this.network.post({o:"mediaLibrary",f:"moderatorStats"})}readFolder(e){return this.network.post({o:"mediaLibrary",f:"readFolder",uri:e})}readFile(e){return this.network.post({o:"mediaLibrary",f:"readFile",uri:e})}moveFile(e){return this.network.post({format:"raw-list",uri:e.uriFile,mediaLibraryFolderOrientedLinks:e.uriFolder,o:"article",f:"update"})}}class fe extends n{getLogs({dateEnd:e,idLogMax:t}){return this.network.post({o:"jLand",f:"adminLogs",dateEnd:e,idLogMax:t})}getStats({map:e,dateStart:t,dateEnd:n}){return this.network.post({o:"jLand",f:"adminStats",map:e,dateStart:t,dateEnd:n})}getAllMapsAsAdmin(e="raw-list,licenses"){return this.network.post({o:"objectListJLand",f:"jLandList",format:e})}createMap(e,t="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},e),{o:"article",f:"create",format:t,type:"jlandmap"}))}}class ye extends n{sendMessage(e,t){return this.network.post({o:"messenger",f:"newMessage",idDiscussion:t,msg:{description:e}})}getOrCreateDiscussion(e,t){const n=e<t?`${e}.${t}`:`${t}.${e}`;return this.network.post({o:"messenger",f:"getDiscussion",idDiscussion:n,type:"messengerUser",idUserTo:t})}}class be extends n{getConfig(){return this.network.post({o:"search",f:"getConfig"})}proposition({query:e,format:t},n){return this.network.post({o:"search",f:"proposition",query:e,format:t||"little"},n)}searchQuery(e,t){const{keywords:n,category:i,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:u}=e;return this.network.post({o:"search",f:"query",keywords:n,category:i,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:z(u,null==t?void 0:t.formatExtension)},null==t?void 0:t.signal)}getLastQueries(){return this.network.post({o:"search",f:"getLastQueries"})}getAdminConfig(){return this.network.post({o:"search",f:"getAdminConfig"})}setAdminConfig(e){return this.network.post({o:"search",f:"setAdminConfig",config:e})}}var ve=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class ke extends n{list(){return this.network.post({o:"taxonomy",f:"list",format:"raw-little"}).then((e=>{if(Array.isArray(e.result))return e.result;throw"Bad response from backend"}))}create(e){var{format:t="raw-little"}=e,n=ve(e,["format"]);return this.network.post(Object.assign({o:"taxonomy",f:"create",format:t},n))}autocomplete(e,t){return this.network.post({o:"autocomplete",f:"taxonomy",q:t,idTaxonomy:e,idToUri:!1})}autocompleteList(e){var{format:t="autocomplete"}=e,n=ve(e,["format"]);return this.network.post(Object.assign({o:"objectListTaxonomy",f:"concept",format:t},n))}autocompleteHierarchy(e){return this.network.post(Object.assign({o:"objectListTaxonomyHierarchy",f:"concept"},e))}}class we extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"user",q:e,idToUri:!1}).then((e=>e.result))}get(e,t="little",n){return this.network.post({o:"user",f:"get",uri:e,format:t},n)}updateImage(e,t="raw-little"){return this.network.postCSRF({o:"user",f:"updateImage",idFile:e,format:t})}updateBanner(e,t="raw-little"){return this.network.postCSRF({o:"user",f:"updateBanner",idFile:e,format:t})}updateMail(e,t){return this.network.postCSRF({o:"user",f:"editMail",mail:e,password:t})}userUpdateProfile(e){return this.network.postCSRF(Object.assign({o:"user",f:"updateProfile"},e))}configuration(){return this.network.post({o:"userDirectory",f:"configuration"})}fieldsConfiguration(){return this.network.post({o:"user",f:"fieldsConfiguration"})}userList(e,t){return this.network.post(Object.assign(Object.assign({o:"objectList",f:"JamespotUserList"},e),{format:z(e.format,null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}userQueryList(e,t){return this.network.post(Object.assign(Object.assign({o:"objectList",f:"JamespotUserQueryList"},e),{format:z(e.format,null==t?void 0:t.formatExtension)}))}userMap(e){return this.network.post(Object.assign({o:"objectListJamespot",f:"userMap"},e))}userBusinessContactQueryList(e){return this.network.post(Object.assign({o:"businessContact",f:"queryList"},e))}userCreateBusinessContact(e){const t=Object.assign(Object.assign({},e),{pseudo:e.title,firstName:e.firstname,lastName:e.lastname,champ1:e.field1,champ2:e.field2,champ3:e.field3,champ4:e.field4,champ5:e.field5}),n=Object.assign(Object.assign({},t),{type:"businessContactCard",publishTo:"networkPublic/1"});return this.jApi.article.create(n)}userUpdateBusinessContact(e){const t=Object.assign(Object.assign({},e),{pseudo:e.title,firstName:e.firstname,lastName:e.lastname,champ1:e.field1,champ2:e.field2,champ3:e.field3,champ4:e.field4,champ5:e.field5}),n=Object.assign(Object.assign({},t),{uri:e.uri,publishTo:"networkPublic/1"});return this.jApi.article.update(n)}userDeleteBusinessContact(e){return this.jApi.article.delete(e)}userAddContact(e){return this.network.post({o:"user",f:"addContact",idUser:e})}userRemoveContact(e){return this.network.post({o:"user",f:"removeContact",idUser:e})}signIn(e,t){return this.network.post({o:"user",f:"signIn",mail:e,password:t})}getFields(e,t){return this.network.post({o:"user",f:"getFields",idUser:e,fieldsType:t})}}class _e extends n{getFiles(e){return this.network.post(Object.assign({o:"onlyOffice",f:"getFiles"},e))}getFile(e,t){return this.network.post({o:"onlyOffice",f:"getFile",idFile:e,hash:t})}getTemplates(e){return this.network.post({o:"onlyOffice",f:"getTemplates"},e)}deleteFile(e,t){return this.network.postCSRF({o:"onlyOffice",f:"deleteFile",idFile:e,withParent:t})}createFile(e,t,n){return this.network.postCSRF({o:"onlyOffice",f:"createFile",title:e,type:t,publishTo:n})}updateFile(e,t){return this.network.postCSRF({o:"onlyOffice",f:"updateFile",idFile:e,title:t})}createVersion(e){return this.network.post({o:"onlyOffice",f:"createVersion",idFile:e})}setAccessRequest(e,t,n,i){return this.network.postCSRF({o:"onlyOffice",f:"setAccessRequest",uri:e,idUser:t,requestAccessValue:n,requestResponseMessage:i})}getAccessRequest(e,t){return this.network.post({o:"onlyOffice",f:"getAccessRequest",format:"raw-little",uri:e,idUser:t})}askAccess(e,t,n){return this.network.postCSRF({o:"onlyOffice",f:"askAccess",uri:e,askAccess:t,askMessage:n})}}class Se extends n{createChannel(e,t="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},e),{o:"article",f:"create",format:t,type:"tvDisplayChannel"}))}getChannel(e){return this.network.post(Object.assign(Object.assign({},e),{o:"tvDisplay",f:"getChannel"}))}getConfigureChannel(e){return this.network.post(Object.assign(Object.assign({},e),{o:"tvDisplay",f:"getConfigureChannel"}))}}class je extends n{contentObjectLinks(e){return this.network.post({o:"shared",f:"contentObjectLinks",format:"raw-little",uri:e})}contentSetObjectAccessRule(e,t,n){return this.network.postCSRF({o:"shared",f:"contentSetObjectAccessRule",format:"raw-little",uri:e,rule:t,hash:n})}}var xe=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class Ce extends n{SaveAnimationConfiguration(e){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"saveConfiguration",animation:e})}))}DeleteAnimation(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"deleteAnimation"})}))}GetCurrentAnimation(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfiguration"})}))}GetCurrentAnimationApp(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfigurationApp"})}))}ToggleAnimationActive(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"toggleAnimationActive"})}))}GetAnimationActive(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getAnimationActive"})}))}GetAnimationStats(e){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStats",name:e})}))}GetAnimationStatsCurrent(e){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStatsCurrent",uri:e})}))}}class Te extends n{GetStatus(){return e=this,t=void 0,i=function*(){return this.network.post({o:"accessibility",f:"getStatus"})},new((n=void 0)||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}));var e,t,n,i}}class Ae extends n{getObject(e){return this.network.post({o:"object",f:"getObject",uri:e})}setAccess(e,t,n,i){return this.network.post({o:"object",f:"setAccess",uri:e,access:t,message:n,generalAccessRule:i})}getAccess(e){return this.network.post({o:"object",f:"getAccess",uri:e})}getAccessHash(e){return this.network.post({o:"object",f:"getAccessHash",uri:e})}}class Oe extends n{getFileBanks(e){return this.network.post({o:"file-sync",f:"getFileBanks"},e)}saveFileBanks(e){return this.network.post({o:"file-sync",f:"saveFileBanks",fileBanks:e})}getUserQuota(e){return this.network.post({o:"file-sync",f:"getUserQuota"},e)}getAdminSpots(e,t){return this.network.post(Object.assign({o:"objectList",f:"fileSyncAdminSpots"},e),t)}}class Le extends n{getUsers(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"getUsers"},e),{format:null!=t?t:"raw-list"}))}add(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"add"},e),{format:null!=t?t:"raw-little"}))}remove(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"remove"},e),{format:null!=t?t:"raw-little"}))}}class Fe extends n{textEnhancement({text:e,capacity:t}){return this.network.post({o:"jia",f:"textEnhancement",text:e,capacity:t})}}class Re extends n{responseUserList(e,t,n){return this.network.post({o:"widget",f:"responseUserList",uri:e,uniqid:t,page:n})}removeWidget({id:e,type:t,uniqid:n}){return this.network.post({o:"widget",f:"removeWidget",id:e,type:t,uniqid:n})}checkListRespond({id:e,type:t,idUser:n,uniqid:i,index:r}){return this.network.post({o:"widget",f:"checkListRespond",id:e,type:t,uniqid:i,idUser:n,index:r})}updateWidget({id:e,uniqid:t,content:n,title:i,type:r}){return this.network.post({o:"widget",f:"updateWidget",id:e,uniqid:t,content:n,title:i,type:r})}}class Ee extends n{getThumbnailUrl(e){return this.network.post({o:"magicPad",f:"getThumbnailUrl",uri:e})}}class Pe{constructor(e){this.version="1.0",this.network=e,this.admin={license:new r(this),store:new a(this),utils:new s(this)},this.accessibility=new Te(this),this.application=new o(this),this.article=new Q(this),this.asei=new me(this),this.assetReservation=new X(this),this.audience=new ee(this),this.bbb=new te(this),this.bookmark=new ne(this),this.businessNetworking=new ie(this),this.community=new re(this),this.datasource=new ae(this),this.diapazone=new se(this),this.drive=new ge(this),this.faq=new ce(this),this.file=new le(this),this.filebank=new ue(this),this.fileSync=new Oe(this),this.global=new de(this),this.group=new pe(this),this.jia=new Fe(this),this.jland=new fe(this),this.magicPad=new Ee(this),this.mediaLibrary=new he(this),this.messenger=new ye(this),this.object=new Ae(this),this.search=new be(this),this.share=new je(this),this.socialAction=new Le(this),this.taxonomy=new ke(this),this.tvDisplay=new Se(this),this.user=new we(this),this.wedoc=new _e(this),this.widget=new Re(this),this.animations=new Ce(this)}}var Ie,Me;class Ze{getBackendUrl(){return e=this,t=void 0,i=function*(){const e=window.location;return`${e.protocol}//${e.host}`},new((n=void 0)||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}));var e,t,n,i}fetch(e,t){return window.fetch(e,t)}}!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),i={};for(const e of n)i[e]=t[e];return e.objectValues(i)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(Ie||(Ie={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(Me||(Me={}));const Ne=Ie.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),De=e=>{switch(typeof e){case"undefined":return Ne.undefined;case"string":return Ne.string;case"number":return isNaN(e)?Ne.nan:Ne.number;case"boolean":return Ne.boolean;case"function":return Ne.function;case"bigint":return Ne.bigint;case"symbol":return Ne.symbol;case"object":return Array.isArray(e)?Ne.array:null===e?Ne.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?Ne.promise:"undefined"!=typeof Map&&e instanceof Map?Ne.map:"undefined"!=typeof Set&&e instanceof Set?Ne.set:"undefined"!=typeof Date&&e instanceof Date?Ne.date:Ne.object;default:return Ne.unknown}},Ue=Ie.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"]);class qe extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},i=e=>{for(const r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(i);else if("invalid_return_type"===r.code)i(r.returnTypeError);else if("invalid_arguments"===r.code)i(r.argumentsError);else if(0===r.path.length)n._errors.push(t(r));else{let e=n,i=0;for(;i<r.path.length;){const n=r.path[i];i===r.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(r))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ie.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=(e=>e.message)){const t={},n=[];for(const i of this.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}qe.create=e=>new qe(e);const Be=(e,t)=>{let n;switch(e.code){case Ue.invalid_type:n=e.received===Ne.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Ue.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ie.jsonStringifyReplacer)}`;break;case Ue.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ie.joinValues(e.keys,", ")}`;break;case Ue.invalid_union:n="Invalid input";break;case Ue.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ie.joinValues(e.options)}`;break;case Ue.invalid_enum_value:n=`Invalid enum value. Expected ${Ie.joinValues(e.options)}, received '${e.received}'`;break;case Ue.invalid_arguments:n="Invalid function arguments";break;case Ue.invalid_return_type:n="Invalid function return type";break;case Ue.invalid_date:n="Invalid date";break;case Ue.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ie.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Ue.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Ue.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Ue.custom:n="Invalid input";break;case Ue.invalid_intersection_types:n="Intersection results could not be merged";break;case Ue.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ue.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ie.assertNever(e)}return{message:n}};let We=Be;function ze(){return We}const $e=e=>{const{data:t,path:n,errorMaps:i,issueData:r}=e,a=[...n,...r.path||[]],s={...r,path:a};let o="";const l=i.filter((e=>!!e)).slice().reverse();for(const e of l)o=e(s,{data:t,defaultError:o}).message;return{...r,path:a,message:r.message||o}};function Ve(e,t){const n=$e({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,ze(),Be].filter((e=>!!e))});e.common.issues.push(n)}class Je{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const i of t){if("aborted"===i.status)return Ge;"dirty"===i.status&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t)n.push({key:await e.key,value:await e.value});return Je.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const i of t){const{key:t,value:r}=i;if("aborted"===t.status)return Ge;if("aborted"===r.status)return Ge;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"===t.value||void 0===r.value&&!i.alwaysSet||(n[t.value]=r.value)}return{status:e.value,value:n}}}const Ge=Object.freeze({status:"aborted"}),Ke=e=>({status:"dirty",value:e}),He=e=>({status:"valid",value:e}),Qe=e=>"aborted"===e.status,Ye=e=>"dirty"===e.status,Xe=e=>"valid"===e.status,et=e=>"undefined"!=typeof Promise&&e instanceof Promise;var tt;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(tt||(tt={}));class nt{constructor(e,t,n,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=i}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 it=(e,t)=>{if(Xe(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 t=new qe(e.common.issues);return this._error=t,this._error}}};function rt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=i?i:t.defaultError}:{message:null!=n?n:t.defaultError},description:r}}class at{constructor(e){this.spa=this.safeParseAsync,this._def=e,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(e){return De(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:De(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Je,ctx:{common:e.parent.common,data:e.data,parsedType:De(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(et(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const i={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:De(e)},r=this._parseSync({data:e,path:i.path,parent:i});return it(i,r)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:De(e)},i=this._parse({data:e,path:n.path,parent:n}),r=await(et(i)?i:Promise.resolve(i));return it(n,r)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,i)=>{const r=e(t),a=()=>i.addIssue({code:Ue.custom,...n(t)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then((e=>!!e||(a(),!1))):!!r||(a(),!1)}))}refinement(e,t){return this._refinement(((n,i)=>!!e(n)||(i.addIssue("function"==typeof t?t(n,i):t),!1)))}_refinement(e){return new Vt({schema:this,typeName:an.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Jt.create(this,this._def)}nullable(){return Gt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Tt.create(this,this._def)}promise(){return $t.create(this,this._def)}or(e){return Lt.create([this,e],this._def)}and(e){return Pt.create(this,e,this._def)}transform(e){return new Vt({...rt(this._def),schema:this,typeName:an.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Kt({...rt(this._def),innerType:this,defaultValue:t,typeName:an.ZodDefault})}brand(){return new Xt({typeName:an.ZodBranded,type:this,...rt(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Ht({...rt(this._def),innerType:this,catchValue:t,typeName:an.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return en.create(this,e)}readonly(){return tn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const st=/^c[^\s-]{8,}$/i,ot=/^[a-z][a-z0-9]*$/,lt=/^[0-9A-HJKMNP-TV-Z]{26}$/,ct=/^[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,ut=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let dt;const pt=/^(((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}))$/,mt=/^(([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})))$/;class gt extends at{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Ne.string){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ne.string,received:t.parsedType}),Ge}const t=new Je;let n;for(const s of this._def.checks)if("min"===s.kind)e.data.length<s.value&&(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if("max"===s.kind)e.data.length>s.value&&(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if("length"===s.kind){const i=e.data.length>s.value,r=e.data.length<s.value;(i||r)&&(n=this._getOrReturnCtx(e,n),i?Ve(n,{code:Ue.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):r&&Ve(n,{code:Ue.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),t.dirty())}else if("email"===s.kind)ut.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"email",code:Ue.invalid_string,message:s.message}),t.dirty());else if("emoji"===s.kind)dt||(dt=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),dt.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"emoji",code:Ue.invalid_string,message:s.message}),t.dirty());else if("uuid"===s.kind)ct.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"uuid",code:Ue.invalid_string,message:s.message}),t.dirty());else if("cuid"===s.kind)st.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"cuid",code:Ue.invalid_string,message:s.message}),t.dirty());else if("cuid2"===s.kind)ot.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"cuid2",code:Ue.invalid_string,message:s.message}),t.dirty());else if("ulid"===s.kind)lt.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"ulid",code:Ue.invalid_string,message:s.message}),t.dirty());else if("url"===s.kind)try{new URL(e.data)}catch(i){n=this._getOrReturnCtx(e,n),Ve(n,{validation:"url",code:Ue.invalid_string,message:s.message}),t.dirty()}else"regex"===s.kind?(s.regex.lastIndex=0,s.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"regex",code:Ue.invalid_string,message:s.message}),t.dirty())):"trim"===s.kind?e.data=e.data.trim():"includes"===s.kind?e.data.includes(s.value,s.position)||(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),t.dirty()):"toLowerCase"===s.kind?e.data=e.data.toLowerCase():"toUpperCase"===s.kind?e.data=e.data.toUpperCase():"startsWith"===s.kind?e.data.startsWith(s.value)||(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.invalid_string,validation:{startsWith:s.value},message:s.message}),t.dirty()):"endsWith"===s.kind?e.data.endsWith(s.value)||(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.invalid_string,validation:{endsWith:s.value},message:s.message}),t.dirty()):"datetime"===s.kind?((a=s).precision?a.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${a.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${a.precision}}Z$`):0===a.precision?a.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$"):a.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$")).test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.invalid_string,validation:"datetime",message:s.message}),t.dirty()):"ip"===s.kind?(i=e.data,("v4"!==(r=s.version)&&r||!pt.test(i))&&("v6"!==r&&r||!mt.test(i))&&(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"ip",code:Ue.invalid_string,message:s.message}),t.dirty())):Ie.assertNever(s);var i,r,a;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:Ue.invalid_string,...tt.errToObj(n)})}_addCheck(e){return new gt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...tt.errToObj(e)})}url(e){return this._addCheck({kind:"url",...tt.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...tt.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...tt.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...tt.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...tt.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...tt.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...tt.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...tt.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...tt.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...tt.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...tt.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...tt.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...tt.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...tt.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...tt.errToObj(t)})}nonempty(e){return this.min(1,tt.errToObj(e))}trim(){return new gt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new gt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new gt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function ht(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i;return parseInt(e.toFixed(r).replace(".",""))%parseInt(t.toFixed(r).replace(".",""))/Math.pow(10,r)}gt.create=e=>{var t;return new gt({checks:[],typeName:an.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...rt(e)})};class ft extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Ne.number){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ne.number,received:t.parsedType}),Ge}let t;const n=new Je;for(const i of this._def.checks)"int"===i.kind?Ie.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"multipleOf"===i.kind?0!==ht(e.data,i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.not_finite,message:i.message}),n.dirty()):Ie.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tt.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tt.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tt.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tt.toString(t))}setLimit(e,t,n,i){return new ft({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:tt.toString(i)}]})}_addCheck(e){return new ft({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:tt.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:tt.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:tt.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:tt.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:tt.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tt.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:tt.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:tt.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:tt.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&Ie.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ft.create=e=>new ft({checks:[],typeName:an.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...rt(e)});class yt extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==Ne.bigint){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ne.bigint,received:t.parsedType}),Ge}let t;const n=new Je;for(const i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):Ie.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tt.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tt.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tt.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tt.toString(t))}setLimit(e,t,n,i){return new yt({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:tt.toString(i)}]})}_addCheck(e){return new yt({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:tt.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:tt.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:tt.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:tt.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tt.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}yt.create=e=>{var t;return new yt({checks:[],typeName:an.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...rt(e)})};class bt extends at{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==Ne.boolean){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ne.boolean,received:t.parsedType}),Ge}return He(e.data)}}bt.create=e=>new bt({typeName:an.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...rt(e)});class vt extends at{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Ne.date){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ne.date,received:t.parsedType}),Ge}if(isNaN(e.data.getTime()))return Ve(this._getOrReturnCtx(e),{code:Ue.invalid_date}),Ge;const t=new Je;let n;for(const i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),t.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),t.dirty()):Ie.assertNever(i);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new vt({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:tt.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:tt.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}vt.create=e=>new vt({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:an.ZodDate,...rt(e)});class kt extends at{_parse(e){if(this._getType(e)!==Ne.symbol){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ne.symbol,received:t.parsedType}),Ge}return He(e.data)}}kt.create=e=>new kt({typeName:an.ZodSymbol,...rt(e)});class wt extends at{_parse(e){if(this._getType(e)!==Ne.undefined){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ne.undefined,received:t.parsedType}),Ge}return He(e.data)}}wt.create=e=>new wt({typeName:an.ZodUndefined,...rt(e)});class _t extends at{_parse(e){if(this._getType(e)!==Ne.null){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ne.null,received:t.parsedType}),Ge}return He(e.data)}}_t.create=e=>new _t({typeName:an.ZodNull,...rt(e)});class St extends at{constructor(){super(...arguments),this._any=!0}_parse(e){return He(e.data)}}St.create=e=>new St({typeName:an.ZodAny,...rt(e)});class jt extends at{constructor(){super(...arguments),this._unknown=!0}_parse(e){return He(e.data)}}jt.create=e=>new jt({typeName:an.ZodUnknown,...rt(e)});class xt extends at{_parse(e){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ne.never,received:t.parsedType}),Ge}}xt.create=e=>new xt({typeName:an.ZodNever,...rt(e)});class Ct extends at{_parse(e){if(this._getType(e)!==Ne.undefined){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ne.void,received:t.parsedType}),Ge}return He(e.data)}}Ct.create=e=>new Ct({typeName:an.ZodVoid,...rt(e)});class Tt extends at{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==Ne.array)return Ve(t,{code:Ue.invalid_type,expected:Ne.array,received:t.parsedType}),Ge;if(null!==i.exactLength){const e=t.data.length>i.exactLength.value,r=t.data.length<i.exactLength.value;(e||r)&&(Ve(t,{code:e?Ue.too_big:Ue.too_small,minimum:r?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(Ve(t,{code:Ue.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(Ve(t,{code:Ue.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>i.type._parseAsync(new nt(t,e,t.path,n))))).then((e=>Je.mergeArray(n,e)));const r=[...t.data].map(((e,n)=>i.type._parseSync(new nt(t,e,t.path,n))));return Je.mergeArray(n,r)}get element(){return this._def.type}min(e,t){return new Tt({...this._def,minLength:{value:e,message:tt.toString(t)}})}max(e,t){return new Tt({...this._def,maxLength:{value:e,message:tt.toString(t)}})}length(e,t){return new Tt({...this._def,exactLength:{value:e,message:tt.toString(t)}})}nonempty(e){return this.min(1,e)}}function At(e){if(e instanceof Ot){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=Jt.create(At(i))}return new Ot({...e._def,shape:()=>t})}return e instanceof Tt?new Tt({...e._def,type:At(e.element)}):e instanceof Jt?Jt.create(At(e.unwrap())):e instanceof Gt?Gt.create(At(e.unwrap())):e instanceof It?It.create(e.items.map((e=>At(e)))):e}Tt.create=(e,t)=>new Tt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:an.ZodArray,...rt(t)});class Ot extends at{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=Ie.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Ne.object){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ne.object,received:t.parsedType}),Ge}const{status:t,ctx:n}=this._processInputParams(e),{shape:i,keys:r}=this._getCached(),a=[];if(!(this._def.catchall instanceof xt&&"strip"===this._def.unknownKeys))for(const e in n.data)r.includes(e)||a.push(e);const s=[];for(const e of r){const t=i[e],r=n.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new nt(n,r,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof xt){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)a.length>0&&(Ve(n,{code:Ue.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const i=n.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new nt(n,i,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of s){const n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>Je.mergeObjectSync(t,e))):Je.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return tt.errToObj,new Ot({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var i,r,a,s;const o=null!==(a=null===(r=(i=this._def).errorMap)||void 0===r?void 0:r.call(i,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=tt.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new Ot({...this._def,unknownKeys:"strip"})}passthrough(){return new Ot({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ot({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ot({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:an.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Ot({...this._def,catchall:e})}pick(e){const t={};return Ie.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new Ot({...this._def,shape:()=>t})}omit(e){const t={};return Ie.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new Ot({...this._def,shape:()=>t})}deepPartial(){return At(this)}partial(e){const t={};return Ie.objectKeys(this.shape).forEach((n=>{const i=this.shape[n];e&&!e[n]?t[n]=i:t[n]=i.optional()})),new Ot({...this._def,shape:()=>t})}required(e){const t={};return Ie.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Jt;)e=e._def.innerType;t[n]=e}})),new Ot({...this._def,shape:()=>t})}keyof(){return Bt(Ie.objectKeys(this.shape))}}Ot.create=(e,t)=>new Ot({shape:()=>e,unknownKeys:"strip",catchall:xt.create(),typeName:an.ZodObject,...rt(t)}),Ot.strictCreate=(e,t)=>new Ot({shape:()=>e,unknownKeys:"strict",catchall:xt.create(),typeName:an.ZodObject,...rt(t)}),Ot.lazycreate=(e,t)=>new Ot({shape:e,unknownKeys:"strip",catchall:xt.create(),typeName:an.ZodObject,...rt(t)});class Lt extends at{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map((e=>new qe(e.ctx.common.issues)));return Ve(t,{code:Ue.invalid_union,unionErrors:n}),Ge}));{let e;const i=[];for(const r of n){const n={...t,common:{...t.common,issues:[]},parent:null},a=r._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&i.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const r=i.map((e=>new qe(e)));return Ve(t,{code:Ue.invalid_union,unionErrors:r}),Ge}}get options(){return this._def.options}}Lt.create=(e,t)=>new Lt({options:e,typeName:an.ZodUnion,...rt(t)});const Ft=e=>e instanceof Ut?Ft(e.schema):e instanceof Vt?Ft(e.innerType()):e instanceof qt?[e.value]:e instanceof Wt?e.options:e instanceof zt?Object.keys(e.enum):e instanceof Kt?Ft(e._def.innerType):e instanceof wt?[void 0]:e instanceof _t?[null]:null;class Rt extends at{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ne.object)return Ve(t,{code:Ue.invalid_type,expected:Ne.object,received:t.parsedType}),Ge;const n=this.discriminator,i=t.data[n],r=this.optionsMap.get(i);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):(Ve(t,{code:Ue.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Ge)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const i=new Map;for(const n of t){const t=Ft(n.shape[e]);if(!t)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const r of t){if(i.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);i.set(r,n)}}return new Rt({typeName:an.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...rt(n)})}}function Et(e,t){const n=De(e),i=De(t);if(e===t)return{valid:!0,data:e};if(n===Ne.object&&i===Ne.object){const n=Ie.objectKeys(t),i=Ie.objectKeys(e).filter((e=>-1!==n.indexOf(e))),r={...e,...t};for(const n of i){const i=Et(e[n],t[n]);if(!i.valid)return{valid:!1};r[n]=i.data}return{valid:!0,data:r}}if(n===Ne.array&&i===Ne.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let i=0;i<e.length;i++){const r=Et(e[i],t[i]);if(!r.valid)return{valid:!1};n.push(r.data)}return{valid:!0,data:n}}return n===Ne.date&&i===Ne.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Pt extends at{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=(e,i)=>{if(Qe(e)||Qe(i))return Ge;const r=Et(e.value,i.value);return r.valid?((Ye(e)||Ye(i))&&t.dirty(),{status:t.value,value:r.data}):(Ve(n,{code:Ue.invalid_intersection_types}),Ge)};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((([e,t])=>i(e,t))):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Pt.create=(e,t,n)=>new Pt({left:e,right:t,typeName:an.ZodIntersection,...rt(n)});class It extends at{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ne.array)return Ve(n,{code:Ue.invalid_type,expected:Ne.array,received:n.parsedType}),Ge;if(n.data.length<this._def.items.length)return Ve(n,{code:Ue.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ge;!this._def.rest&&n.data.length>this._def.items.length&&(Ve(n,{code:Ue.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const i=[...n.data].map(((e,t)=>{const i=this._def.items[t]||this._def.rest;return i?i._parse(new nt(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(i).then((e=>Je.mergeArray(t,e))):Je.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new It({...this._def,rest:e})}}It.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new It({items:e,typeName:an.ZodTuple,rest:null,...rt(t)})};class Mt extends at{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ne.object)return Ve(n,{code:Ue.invalid_type,expected:Ne.object,received:n.parsedType}),Ge;const i=[],r=this._def.keyType,a=this._def.valueType;for(const e in n.data)i.push({key:r._parse(new nt(n,e,n.path,e)),value:a._parse(new nt(n,n.data[e],n.path,e))});return n.common.async?Je.mergeObjectAsync(t,i):Je.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return new Mt(t instanceof at?{keyType:e,valueType:t,typeName:an.ZodRecord,...rt(n)}:{keyType:gt.create(),valueType:e,typeName:an.ZodRecord,...rt(t)})}}class Zt extends at{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ne.map)return Ve(n,{code:Ue.invalid_type,expected:Ne.map,received:n.parsedType}),Ge;const i=this._def.keyType,r=this._def.valueType,a=[...n.data.entries()].map((([e,t],a)=>({key:i._parse(new nt(n,e,n.path,[a,"key"])),value:r._parse(new nt(n,t,n.path,[a,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const i=await n.key,r=await n.value;if("aborted"===i.status||"aborted"===r.status)return Ge;"dirty"!==i.status&&"dirty"!==r.status||t.dirty(),e.set(i.value,r.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const i=n.key,r=n.value;if("aborted"===i.status||"aborted"===r.status)return Ge;"dirty"!==i.status&&"dirty"!==r.status||t.dirty(),e.set(i.value,r.value)}return{status:t.value,value:e}}}}Zt.create=(e,t,n)=>new Zt({valueType:t,keyType:e,typeName:an.ZodMap,...rt(n)});class Nt extends at{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ne.set)return Ve(n,{code:Ue.invalid_type,expected:Ne.set,received:n.parsedType}),Ge;const i=this._def;null!==i.minSize&&n.data.size<i.minSize.value&&(Ve(n,{code:Ue.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&n.data.size>i.maxSize.value&&(Ve(n,{code:Ue.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());const r=this._def.valueType;function a(e){const n=new Set;for(const i of e){if("aborted"===i.status)return Ge;"dirty"===i.status&&t.dirty(),n.add(i.value)}return{status:t.value,value:n}}const s=[...n.data.values()].map(((e,t)=>r._parse(new nt(n,e,n.path,t))));return n.common.async?Promise.all(s).then((e=>a(e))):a(s)}min(e,t){return new Nt({...this._def,minSize:{value:e,message:tt.toString(t)}})}max(e,t){return new Nt({...this._def,maxSize:{value:e,message:tt.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Nt.create=(e,t)=>new Nt({valueType:e,minSize:null,maxSize:null,typeName:an.ZodSet,...rt(t)});class Dt extends at{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ne.function)return Ve(t,{code:Ue.invalid_type,expected:Ne.function,received:t.parsedType}),Ge;function n(e,n){return $e({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ze(),Be].filter((e=>!!e)),issueData:{code:Ue.invalid_arguments,argumentsError:n}})}function i(e,n){return $e({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ze(),Be].filter((e=>!!e)),issueData:{code:Ue.invalid_return_type,returnTypeError:n}})}const r={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof $t){const e=this;return He((async function(...t){const s=new qe([]),o=await e._def.args.parseAsync(t,r).catch((e=>{throw s.addIssue(n(t,e)),s})),l=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(l,r).catch((e=>{throw s.addIssue(i(l,e)),s}))}))}{const e=this;return He((function(...t){const s=e._def.args.safeParse(t,r);if(!s.success)throw new qe([n(t,s.error)]);const o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,r);if(!l.success)throw new qe([i(o,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Dt({...this._def,args:It.create(e).rest(jt.create())})}returns(e){return new Dt({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Dt({args:e||It.create([]).rest(jt.create()),returns:t||jt.create(),typeName:an.ZodFunction,...rt(n)})}}class Ut extends at{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Ut.create=(e,t)=>new Ut({getter:e,typeName:an.ZodLazy,...rt(t)});class qt extends at{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Ve(t,{received:t.data,code:Ue.invalid_literal,expected:this._def.value}),Ge}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Bt(e,t){return new Wt({values:e,typeName:an.ZodEnum,...rt(t)})}qt.create=(e,t)=>new qt({value:e,typeName:an.ZodLiteral,...rt(t)});class Wt extends at{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return Ve(t,{expected:Ie.joinValues(n),received:t.parsedType,code:Ue.invalid_type}),Ge}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return Ve(t,{received:t.data,code:Ue.invalid_enum_value,options:n}),Ge}return He(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return Wt.create(e)}exclude(e){return Wt.create(this.options.filter((t=>!e.includes(t))))}}Wt.create=Bt;class zt extends at{_parse(e){const t=Ie.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Ne.string&&n.parsedType!==Ne.number){const e=Ie.objectValues(t);return Ve(n,{expected:Ie.joinValues(e),received:n.parsedType,code:Ue.invalid_type}),Ge}if(-1===t.indexOf(e.data)){const e=Ie.objectValues(t);return Ve(n,{received:n.data,code:Ue.invalid_enum_value,options:e}),Ge}return He(e.data)}get enum(){return this._def.values}}zt.create=(e,t)=>new zt({values:e,typeName:an.ZodNativeEnum,...rt(t)});class $t extends at{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ne.promise&&!1===t.common.async)return Ve(t,{code:Ue.invalid_type,expected:Ne.promise,received:t.parsedType}),Ge;const n=t.parsedType===Ne.promise?t.data:Promise.resolve(t.data);return He(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}$t.create=(e,t)=>new $t({type:e,typeName:an.ZodPromise,...rt(t)});class Vt extends at{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===an.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=this._def.effect||null,r={addIssue:e=>{Ve(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===i.type){const e=i.transform(n.data,r);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n}))):this._def.schema._parseSync({data:e,path:n.path,parent:n})}if("refinement"===i.type){const e=e=>{const t=i.refinement(e,r);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===i.status?Ge:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?Ge:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===i.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Xe(e))return e;const a=i.transform(e.value,r);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>Xe(e)?Promise.resolve(i.transform(e.value,r)).then((e=>({status:t.value,value:e}))):e))}Ie.assertNever(i)}}Vt.create=(e,t,n)=>new Vt({schema:e,typeName:an.ZodEffects,effect:t,...rt(n)}),Vt.createWithPreprocess=(e,t,n)=>new Vt({schema:t,effect:{type:"preprocess",transform:e},typeName:an.ZodEffects,...rt(n)});class Jt extends at{_parse(e){return this._getType(e)===Ne.undefined?He(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Jt.create=(e,t)=>new Jt({innerType:e,typeName:an.ZodOptional,...rt(t)});class Gt extends at{_parse(e){return this._getType(e)===Ne.null?He(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Gt.create=(e,t)=>new Gt({innerType:e,typeName:an.ZodNullable,...rt(t)});class Kt extends at{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===Ne.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Kt.create=(e,t)=>new Kt({innerType:e,typeName:an.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...rt(t)});class Ht extends at{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return et(i)?i.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new qe(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new qe(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ht.create=(e,t)=>new Ht({innerType:e,typeName:an.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...rt(t)});class Qt extends at{_parse(e){if(this._getType(e)!==Ne.nan){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ne.nan,received:t.parsedType}),Ge}return{status:"valid",value:e.data}}}Qt.create=e=>new Qt({typeName:an.ZodNaN,...rt(e)});const Yt=Symbol("zod_brand");class Xt extends at{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class en extends at{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Ge:"dirty"===e.status?(t.dirty(),Ke(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Ge:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new en({in:e,out:t,typeName:an.ZodPipeline})}}class tn extends at{_parse(e){const t=this._def.innerType._parse(e);return Xe(t)&&(t.value=Object.freeze(t.value)),t}}tn.create=(e,t)=>new tn({innerType:e,typeName:an.ZodReadonly,...rt(t)});const nn=(e,t={},n)=>e?St.create().superRefine(((i,r)=>{var a,s;if(!e(i)){const e="function"==typeof t?t(i):"string"==typeof t?{message:t}:t,o=null===(s=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===s||s,l="string"==typeof e?{message:e}:e;r.addIssue({code:"custom",...l,fatal:o})}})):St.create(),rn={object:Ot.lazycreate};var an;!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"}(an||(an={}));const sn=gt.create,on=ft.create,ln=Qt.create,cn=yt.create,un=bt.create,dn=vt.create,pn=kt.create,mn=wt.create,gn=_t.create,hn=St.create,fn=jt.create,yn=xt.create,bn=Ct.create,vn=Tt.create,kn=Ot.create,wn=Ot.strictCreate,_n=Lt.create,Sn=Rt.create,jn=Pt.create,xn=It.create,Cn=Mt.create,Tn=Zt.create,An=Nt.create,On=Dt.create,Ln=Ut.create,Fn=qt.create,Rn=Wt.create,En=zt.create,Pn=$t.create,In=Vt.create,Mn=Jt.create,Zn=Gt.create,Nn=Vt.createWithPreprocess,Dn=en.create,Un={string:e=>gt.create({...e,coerce:!0}),number:e=>ft.create({...e,coerce:!0}),boolean:e=>bt.create({...e,coerce:!0}),bigint:e=>yt.create({...e,coerce:!0}),date:e=>vt.create({...e,coerce:!0})},qn=Ge;var Bn=Object.freeze({__proto__:null,defaultErrorMap:Be,setErrorMap:function(e){We=e},getErrorMap:ze,makeIssue:$e,EMPTY_PATH:[],addIssueToContext:Ve,ParseStatus:Je,INVALID:Ge,DIRTY:Ke,OK:He,isAborted:Qe,isDirty:Ye,isValid:Xe,isAsync:et,get util(){return Ie},get objectUtil(){return Me},ZodParsedType:Ne,getParsedType:De,ZodType:at,ZodString:gt,ZodNumber:ft,ZodBigInt:yt,ZodBoolean:bt,ZodDate:vt,ZodSymbol:kt,ZodUndefined:wt,ZodNull:_t,ZodAny:St,ZodUnknown:jt,ZodNever:xt,ZodVoid:Ct,ZodArray:Tt,ZodObject:Ot,ZodUnion:Lt,ZodDiscriminatedUnion:Rt,ZodIntersection:Pt,ZodTuple:It,ZodRecord:Mt,ZodMap:Zt,ZodSet:Nt,ZodFunction:Dt,ZodLazy:Ut,ZodLiteral:qt,ZodEnum:Wt,ZodNativeEnum:zt,ZodPromise:$t,ZodEffects:Vt,ZodTransformer:Vt,ZodOptional:Jt,ZodNullable:Gt,ZodDefault:Kt,ZodCatch:Ht,ZodNaN:Qt,BRAND:Yt,ZodBranded:Xt,ZodPipeline:en,ZodReadonly:tn,custom:nn,Schema:at,ZodSchema:at,late:rn,get ZodFirstPartyTypeKind(){return an},coerce:Un,any:hn,array:vn,bigint:cn,boolean:un,date:dn,discriminatedUnion:Sn,effect:In,enum:Rn,function:On,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>nn((t=>t instanceof e),t),intersection:jn,lazy:Ln,literal:Fn,map:Tn,nan:ln,nativeEnum:En,never:yn,null:gn,nullable:Zn,number:on,object:kn,oboolean:()=>un().optional(),onumber:()=>on().optional(),optional:Mn,ostring:()=>sn().optional(),pipeline:Dn,preprocess:Nn,promise:Pn,record:Cn,set:An,strictObject:wn,string:sn,symbol:pn,transformer:In,tuple:xn,undefined:mn,union:_n,unknown:fn,void:bn,NEVER:qn,ZodIssueCode:Ue,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:qe});const Wn=Bn.object({href:Bn.string(),target:Bn.string()}),zn=Bn.object({name:Bn.string(),sort:Bn.union([Bn.literal("ASC"),Bn.literal("DESC")])}),$n=Bn.union([Bn.boolean(),Bn.string(),Bn.number(),Bn.array(Bn.string()),Bn.object({srcId:Bn.union([Bn.number(),Bn.string()]),srcType:Bn.string()}),Bn.object({targetId:Bn.union([Bn.number(),Bn.string()]),targetType:Bn.string()}),Bn.object({start:Bn.string(),end:Bn.string()})]),Vn=Bn.union([Bn.literal("<"),Bn.literal(">"),Bn.literal("<="),Bn.literal(">="),Bn.literal("!="),Bn.literal("<>"),Bn.literal("like"),Bn.literal("between"),Bn.literal("is"),Bn.literal("is not"),Bn.literal("in"),Bn.literal("link"),Bn.literal("match"),Bn.literal("equal")]),Jn=Bn.union([Bn.literal("<"),Bn.literal(">"),Bn.literal("<="),Bn.literal(">="),Bn.literal("!="),Bn.literal("<>"),Bn.literal("+"),Bn.literal("-"),Bn.literal("like"),Bn.literal("between"),Bn.literal("is"),Bn.literal("is not"),Bn.literal("in"),Bn.literal("link"),Bn.literal("match"),Bn.literal("equal")]),Gn=Bn.object({name:Bn.string(),value:$n,operator:Vn.optional(),method:Jn.optional(),or:Bn.boolean().optional(),isNull:Bn.boolean().optional(),isNotNull:Bn.boolean().optional()}),Kn=zn.array(),Hn=Bn.array(Gn),Qn=e=>e.and(Bn.object({token:Bn.string().or(Bn.undefined()).optional()}));var Yn;!function(e){e.LITTLE="raw-little",e.LIST="raw-list",e.VIEW="raw-view",e.USER_API="user-api",e.MOBILE="mobile"}(Yn||(Yn={}));const Xn=Bn.nativeEnum(Yn).transform((e=>`${e}`)),ei=Bn.union([Xn,Bn.undefined()]),ti=Bn.array(Bn.union([Bn.literal("bookmark"),Bn.literal("contact"),Bn.literal("licenses"),Bn.literal("quizFieldDefinitions"),Bn.literal("quizResponseRecord"),Bn.literal("search"),Bn.literal("socialEventRecord"),Bn.literal("surveyDateRecord")])),ni=Bn.object({additionalFilter:Bn.object({}).optional(),facets:Bn.array(Bn.object({})).optional(),filters:Hn.optional(),query:Bn.string().optional(),limit:Bn.number().optional(),page:Bn.number().optional(),orders:Kn.optional(),format:ei.optional()}),ii=e=>Bn.object(e),ri=ii({create:Bn.boolean(),read:Bn.boolean(),publish:Bn.boolean(),administrate:Bn.boolean(),update:Bn.boolean(),delete:Bn.boolean(),comment:Bn.boolean(),member:Bn.boolean()}),ai=e=>ri.safeParse(e).success,si=ii({id:Bn.number(),mainType:Bn.string(),type:Bn.string(),uri:Bn.string(),dateCreation:Bn.string().optional(),dateModified:Bn.string().nullable().optional()}),oi=si.extend({title:Bn.string(),_url:Bn.string()}),li=e=>oi.safeParse(e).success,ci=Bn.string(),ui=Bn.string().nullable(),di=Bn.number(),pi=Bn.string().nullable(),mi=Bn.string().nullable(),gi=Bn.string().nullable(),hi=Bn.number(),fi=Bn.string(),yi=Bn.string(),bi=Bn.union([hi,gi,mi,pi,fi,di,ui,ci,yi]),vi={ADMIN:9,USER:5,EXTERNAL:3,GUEST:0},ki=si.extend({title:Bn.string(),_url:Bn.string(),level:Bn.nativeEnum(vi),dateCreation:Bn.string(),dateModified:Bn.string()}).catchall(bi),wi=ki.extend({active:Bn.number()}),_i=e=>wi.safeParse(e).success,Si=wi,ji=e=>Si.safeParse(e).success,xi=Bn.object({idInType:Bn.number(),lat:Bn.number(),lng:Bn.number()}),Ci=e=>xi.safeParse(e).success,Ti=Bn.object({title:Bn.string(),firstname:Bn.string(),lastname:Bn.string(),mail:Bn.union([Bn.string(),Bn.undefined()]).optional(),description:Bn.string().optional(),dateOfBirth:Bn.string().optional(),phoneNumber:Bn.string().optional(),language:Bn.string().optional(),timeZone:Bn.string().optional(),mobileNumber:Bn.string().optional(),company:Bn.string().optional(),country:Bn.string().optional(),department:Bn.string().optional(),function:Bn.string().optional(),webSite:Bn.string().optional(),image:Bn.union([Bn.string(),Bn.undefined()]).optional(),userBanner:Bn.union([Bn.string(),Bn.undefined()]).optional(),field1:Bn.string().optional(),field2:Bn.string().optional(),field3:Bn.string().optional(),field4:Bn.string().optional(),field5:Bn.string().optional()}),Ai=Ti.required().extend({level:Bn.string(),image:Bn.string().optional(),businessManagementManager:ki.array().optional(),businessNetworkingUserToCompanySrc:ki.array().optional()}),Oi=Bn.object({user_field_edit_profil:Bn.record(Ti.keyof(),Bn.number()),user_field_editable:Bn.record(Ti.keyof(),Bn.number()),user_field_my_page:Bn.record(Ti.keyof(),Bn.number()),user_page_mandatory_fields:Bn.object({firstname:Bn.enum(["0","1"]),lastname:Bn.enum(["0","1"]),pseudo:Bn.enum(["0","1"])})}),Li=Bn.object({name:Bn.string(),value:Bn.union([Bn.string(),Bn.record(Bn.string(),Bn.any())])}),Fi=Bn.enum(["popover"]),Ri=Bn.object({values:Ai,mobileEditableFields:Ai.keyof().array()}),Ei=Bn.object({mail:Bn.union([Bn.string(),Bn.undefined()]),title:Bn.string(),firstname:Bn.string(),lastname:Bn.string(),phoneNumber:Bn.union([Bn.string(),Bn.undefined()]).optional(),company:Bn.union([Bn.string(),Bn.undefined()]).optional(),function:Bn.union([Bn.string(),Bn.undefined()]).optional(),uri:Bn.union([Bn.string(),Bn.undefined()]).optional(),field1:Bn.union([Bn.string(),Bn.undefined()]).optional(),field2:Bn.union([Bn.string(),Bn.undefined()]).optional(),field3:Bn.union([Bn.string(),Bn.undefined()]).optional(),field4:Bn.union([Bn.string(),Bn.undefined()]).optional(),field5:Bn.union([Bn.string(),Bn.undefined()]).optional()}),Pi=Bn.object({userDirectoryShow:Bn.union([Bn.literal(""),Bn.literal("1")]),contactDirectoryShow:Bn.union([Bn.literal("0"),Bn.literal("1")]),businessContactShow:Bn.boolean(),menu:Bn.union([Bn.literal("0"),Bn.literal("1")]),cardFields:Bn.string().array(),tableFields:Bn.string().array(),viewFields:Bn.string().array(),userGeoloc:Bn.boolean().optional(),sort:Bn.string(),cnt:Bn.number().optional(),filters:Bn.object({name:Bn.string(),type:Bn.string()}).array()}),Ii=e=>Pi.safeParse(e).success;var Mi;!function(e){e[e.SPOT_MODERATE_IGNORE=0]="SPOT_MODERATE_IGNORE",e[e.SPOT_MODERATE_ACCEPT=1]="SPOT_MODERATE_ACCEPT",e[e.SPOT_MODERATE_PENDING=2]="SPOT_MODERATE_PENDING"}(Mi||(Mi={}));const Zi=Bn.object({RF_Constant_levelName:Bn.string(),RF_delete:Bn.boolean(),RF_editing:Bn.boolean(),RF_level:Bn.number(),RF_levelName:Bn.string(),RF_levelName_Trad:Bn.string(),RF_parameters:Bn.boolean(),RF_setAdmin:Bn.boolean(),RF_spotit:Bn.boolean(),RF_spotit_own:Bn.boolean()}),Ni=oi.extend({dateCreation:Bn.string(),dateModified:Bn.string(),category:Bn.number(),privacy:Bn.number()}),Di=e=>Zi.safeParse(e).success,Ui=oi.extend({description:Bn.string().optional().nullable(),_user:ki,_right:ri}),qi=e=>Ui.safeParse(e).success,Bi=Bn.union([ki,Ni]),Wi=si.extend({srcId:Bn.number(),srcType:Bn.string(),targetId:Bn.number(),targetType:Bn.string().nullable()}),zi=e=>Wi.extend({value:Bn.string().nullable(),_src:e.optional(),_target:e.optional().or(Bn.undefined())}),$i=e=>zi(null!=e?e:oi.or(ki)).extend({bookmarkUrl:Bn.string().optional().nullable(),bookmarkOrder:Bn.number().optional(),bookmarkLabel:Bn.string().optional(),bookmarkMeta:Bn.string().optional().nullable(),url:Bn.string().optional().nullable(),type:Bn.literal("bookmarkLink")}),Vi=e=>Bn.object({id:Bn.number(),mainType:Bn.string(),type:Bn.string(),uri:Bn.string(),_values:Bn.object({dateCreation:Bn.string(),dateModified:Bn.string()}).optional(),srcId:Bn.number(),srcType:Bn.string(),targetId:Bn.number(),targetType:Bn.string().nullable(),value:Bn.string().nullable(),_cssColor:Bn.string(),_cssClass:Bn.string(),_src:(null!=e?e:oi).optional(),_target:(null!=e?e:oi).optional(),bookmarkUrl:Bn.string().optional().nullable(),bookmarkOrder:Bn.string().optional(),bookmarkLabel:Bn.string().optional(),bookmarkMeta:Bn.string().optional().nullable(),url:Bn.string().optional().nullable()});var Ji;!function(e){e.RAW_LIST="raw-list",e.LIST="list"}(Ji||(Ji={}));const Gi=Bn.object({targetId:Bn.number(),targetType:Bn.string(),format:Bn.nativeEnum(Ji).transform((e=>`${e}`)).optional()}),Ki=Bn.object({[Ji.RAW_LIST]:$i(),[Ji.LIST]:Vi()}),Hi=Bn.object({bookmarkLabel:$i(oi).shape.bookmarkLabel,bookmarkMeta:$i(oi).shape.bookmarkMeta,bookmarkUrl:$i(oi).shape.bookmarkUrl}),Qi=Bn.object({countActiveUsersWithoutLicense:Bn.number().optional(),countLicensesAssigned:Bn.number(),countLicensesNotAssigned:Bn.number()}),Yi=Bn.object({name:Bn.string(),operator:Bn.string(),value:Bn.number()}),Xi=Bn.record(Bn.number()),er=Bn.object({id:Bn.number(),kind:Bn.string(),dateCreation:Bn.string(),idFeature:Bn.number(),uri:Bn.string(),contentId:Bn.number(),contentType:Bn.string(),status:Bn.number()}),tr=Bn.object({id:Bn.number(),kind:Bn.string(),dateCreation:Bn.string(),idFeature:Bn.number(),uri:Bn.string(),contentId:Bn.number(),contentType:Bn.string(),status:Bn.number()}),nr=wi.extend({_extend:Bn.object({licenses:Bn.array(tr)})}),ir=ni.extend({data:nr.array()}),rr=Bn.object({uri:Bn.string(),title:Bn.string(),price:Bn.number(),image:Bn.string(),license:Bn.boolean()}),ar=Bn.object({url:Bn.string()}),sr=Bn.object({sref:Bn.string().optional(),href:Bn.string().optional(),idDiv:Bn.string(),label:Bn.string(),icon:Bn.string(),licenseMode:Bn.literal("classic").optional(),hook:Bn.string().optional()}),or=Bn.object({name:Bn.string(),label:Bn.string(),icon:Bn.string(),color:Bn.tuple([Bn.string(),Bn.string(),Bn.string()]),state:Bn.string().optional(),access:Bn.boolean(),url:Bn.string().optional(),tabs:Bn.array(sr).optional()}),lr=Bn.array(or),cr=Bn.union([Bn.literal("Celebration"),Bn.literal("Olympics"),Bn.literal("Maythefourth"),Bn.literal("Spring"),Bn.literal("MusicFestival"),Bn.literal("EasterEggs"),Bn.literal("CustomAnimation")]),ur=Bn.object({name:cr,activeClickEffect:Bn.number(),activeDecor:Bn.number(),auto:Bn.boolean(),audience:Bn.array(Bn.string())}),dr=Bn.object({date:Bn.string(),number:Bn.number()}),pr=Bn.object({id:Bn.number(),mainType:Bn.string(),type:Bn.string(),uri:Bn.string(),dateCreation:Bn.string().nullable(),dateModified:Bn.string().nullable(),animationName:Bn.string(),dateStart:Bn.string(),dateEnd:Bn.string().nullable(),auto:Bn.boolean(),stats:Bn.array(dr),animAudience:Bn.array(Bn.string())}),mr=Bn.object({attrName:Bn.string(),token:Bn.string(),file:Bn.instanceof(File).nullable().optional(),url:Bn.string().optional()}),gr=Bn.object({width:Bn.number(),height:Bn.number()}),hr=Bn.object({x:Bn.number(),y:Bn.number(),w:Bn.number(),h:Bn.number(),rotation:Bn.number(),killSize:Bn.boolean().optional()}),fr=oi.extend({dateCreation:Bn.string(),dateModified:Bn.string().nullable(),mimetype:Bn.string(),path:Bn.string().optional(),size:Bn.number()}),yr=e=>fr.parse(e),br=fr.extend({_extend:Bn.object({crop:hr})}),vr=Bn.object({name:Bn.string(),filename:Bn.string(),dateModified:Bn.string(),mimetype:Bn.string()}),kr=Bn.object({idUser:Bn.string(),dateDownload:Bn.string(),Pseudo:Bn.string(),type:Bn.string()});var wr;!function(e){e.ArticleButton="widget-article-button",e.ArticleGallery="widget-article-gallery",e.ArticleTitle="widget-article-title",e.ArticleText="widget-article-text",e.ArticleImage="widget-article-image",e.ArticleAttachment="widget-article-attachment",e.Api="widget-api",e.ArticleSlider="widget-article-slider",e.CheckList="widget-check-list",e.DatasourceTable="widget-datasource-table",e.ExcelDatasourceTable="widget-excel-datasource-table"}(wr||(wr={}));const _r=Bn.nativeEnum(wr),Sr=Bn.object({title:Bn.string(),widget:Bn.object({name:_r,uniqid:Bn.string(),content:Bn.unknown()})}).catchall(Bn.unknown()),jr=Sr,xr=ii({css:Bn.record(Bn.string(),Bn.string()).optional(),widgets:jr.array().optional()}),Cr=Bn.enum(["left","right","center","justify"]),Tr=Bn.enum(["top","bottom","center","left","right"]),Ar=Bn.enum(["auto","contain","cover"]),Or=Bn.enum(["sm","md","lg"]),Lr=Bn.enum(["contained","outlined"]),Fr=Bn.enum(["link","anchor","popup"]),Rr=Bn.object({x:Bn.number(),y:Bn.number()}),Er=Bn.object({layers:Bn.string().array().optional()}),Pr=Bn.enum(["default","vertical"]),Ir=(e,t)=>t.safeParse(e).success,Mr=Bn.object({url:Bn.string(),target:Bn.string()}),Zr=Bn.object({uniqid:Bn.string()}),Nr=Bn.object({title:Bn.string(),widgets:jr.array()}),Dr=ii({text:Bn.string().optional(),color:Bn.string().optional(),backgroundColor:Bn.string().optional(),borderRadius:Bn.string().optional(),fontSize:Bn.string().optional(),buttonSize:Or.optional(),variant:Lr.optional(),url:Bn.string().optional(),target:Bn.string().optional()}),Ur=Dr.extend({openingType:Fr.optional(),openingTypeLink:Mr.optional(),openingTypeAnchor:Zr.optional(),openingTypePopup:Nr.optional()}),qr=ii({name:Bn.literal(wr.ArticleButton),uniqid:Bn.string(),content:Ur}),Br=e=>Ir(e,qr),Wr=ii({gap:Bn.string().optional(),column:Bn.string().optional(),files:fr.array().optional()}),zr=ii({name:Bn.literal(wr.ArticleGallery),uniqid:Bn.string(),content:Wr}),$r=e=>Ir(e,zr),Vr=ii({text:Bn.string().optional(),textAlign:Cr.optional(),heading:Bn.string().optional(),color:Bn.string().optional(),backgroundColor:Bn.string().optional()}),Jr=ii({name:Bn.literal(wr.ArticleTitle),uniqid:Bn.string(),content:Vr}),Gr=e=>Ir(e,Jr),Kr=ii({text:Bn.string().optional(),color:Bn.string().optional(),fontSize:Bn.string().optional(),lineHeight:Bn.string().optional(),linkColor:Bn.string().optional()}),Hr=ii({name:Bn.literal(wr.ArticleText),uniqid:Bn.string(),content:Kr}),Qr=e=>Ir(e,Hr),Yr=ii({file:fr.optional(),useFilter:Bn.boolean().optional()}),Xr=ii({name:Bn.literal(wr.ArticleImage),uniqid:Bn.string(),content:Yr}),ea=e=>Ir(e,Xr),ta=ii({files:fr.array().optional(),fileDisplay:Bn.enum(["list","gallery"]).optional()}),na=ii({name:Bn.literal(wr.ArticleAttachment),uniqid:Bn.string(),content:ta}),ia=e=>Ir(e,na),ra=ii({url:Bn.string().optional(),keys:Bn.array(Bn.string()).optional(),order:Bn.string().optional(),orderBy:Bn.string().optional()}),aa=ii({name:Bn.literal(wr.Api),uniqid:Bn.string(),content:ra}),sa=e=>Ir(e,aa),oa=ii({title:Bn.string(),text:Bn.string(),titleHeading:Bn.enum(["h1","h2","h3","h4","h5","h6","p","span"]).optional(),textColor:Bn.string().optional(),opacityFilter:Bn.number().optional(),opacityColor:Bn.string().optional(),file:fr.optional()}),la=ii({slides:oa.array().optional(),maxWidth:Bn.number().optional(),loop:Bn.boolean().optional(),useDots:Bn.boolean().optional(),startAt:Bn.number().optional()}),ca=ii({name:Bn.literal(wr.ArticleSlider),uniqid:Bn.string(),content:la}),ua=e=>Ir(e,ca),da=ii({title:Bn.string(),value:Bn.boolean().optional(),links:Wn.array().optional(),id:Bn.number().optional(),user:Bn.object({id:Bn.number(),type:Bn.literal("user"),mainType:Bn.literal("user")}).optional()}),pa=ii({arr:da.array().optional()}),ma=ii({name:Bn.literal(wr.CheckList),uniqid:Bn.string(),content:pa.and(xr)}),ga=e=>Ir(e,ma),ha=Bn.enum(["date","date-time","date-time-sec","time","time-sec"]),fa=Bn.enum(["fr-FR","en-EN","filesize"]),ya=Bn.object({}),ba=Bn.object({type:Bn.literal("text")}),va=Bn.object({label:Bn.string(),value:Bn.string()}),ka=Bn.object({type:Bn.literal("select"),options:va.array()}),wa=Bn.object({type:Bn.literal("date")}),_a=Bn.union([ba,ka,wa,ya]),Sa=Bn.object({name:Bn.string().optional(),isVisible:Bn.boolean().optional(),textEllipsis:Bn.boolean().optional(),label:Bn.string().optional(),dateFormat:ha.optional(),numberFormat:fa.optional()}),ja=Sa.array(),xa=Bn.enum(["text","uri","file","select","url","transient","date","datetime","email","number","title"]),Ca=Bn.object({name:Bn.string(),label:Bn.string(),sortable:Bn.boolean().optional(),type:xa,widget:_a}),Ta=Bn.object({limit:Bn.number().optional(),tableColumnsData:Sa.array().optional(),tableHeadColor:Bn.string().optional(),tableHeadTextColor:Bn.string().optional(),tableHeadIconColor:Bn.string().optional(),tableRowColor:Bn.string().optional(),tableRowTextColor:Bn.string().optional(),tableBorderRadius:Bn.number().optional(),tableSizedColumns:Bn.boolean().optional(),tableSizedColumnsWidth:Bn.number().optional()}),Aa=Ta.extend({uri:Bn.string().optional()}),Oa=ii({name:Bn.literal(wr.DatasourceTable),uniqid:Bn.string(),content:Aa}),La=e=>Ir(e,Oa),Fa=Aa.extend({uri:Bn.string().optional()}),Ra=Bn.lazy((()=>Bn.object({name:Bn.literal(wr.ExcelDatasourceTable),uniqid:Bn.string(),content:Fa}))),Ea=e=>Ir(e,Ra),Pa=Bn.union([aa,na,qr,zr,Xr,Jr,Hr,ca,ma,Oa,Ra]),Ia=e=>Bn.object({title:Bn.string(),widget:Er.and(null!=e?e:Pa)}),Ma=e=>Ia().safeParse(e).success,Za=Bn.object({widgets:Ia().array().optional()}).and(Bn.union([ra,ta,Ur,Wr,Yr,Kr,Vr,la,pa,Aa])),Na=Bn.object({[wr.ArticleButton]:qr,[wr.ArticleGallery]:zr,[wr.ArticleTitle]:Jr,[wr.ArticleText]:Hr,[wr.ArticleImage]:Xr,[wr.ArticleAttachment]:na,[wr.Api]:aa,[wr.ArticleSlider]:ca,[wr.CheckList]:ma,[wr.DatasourceTable]:Oa,[wr.ExcelDatasourceTable]:Ra}),Da=Bn.object({[wr.ArticleButton]:Ur,[wr.ArticleGallery]:Wr,[wr.ArticleTitle]:Vr,[wr.ArticleText]:Kr,[wr.ArticleImage]:Yr,[wr.ArticleAttachment]:ta,[wr.Api]:ra,[wr.ArticleSlider]:la,[wr.CheckList]:pa,[wr.DatasourceTable]:Aa,[wr.ExcelDatasourceTable]:Fa}),Ua=Bn.object({busy:Bn.union([Bn.boolean(),Bn.undefined()]).optional(),loading:Bn.union([Bn.boolean(),Bn.undefined()]).optional(),initialized:Bn.union([Bn.boolean(),Bn.undefined()]).optional(),mounted:Bn.union([Bn.boolean(),Bn.undefined()]).optional(),hover:Bn.union([Bn.boolean(),Bn.undefined()]).optional(),empty:Bn.boolean().optional()}),qa=oi.extend({dateCreation:Bn.string(),dateModified:Bn.string()}),Ba=qa.extend({description:Bn.string().nullable().optional(),_user:ki,_right:ri,_audience:Bi.array(),image:gr.optional(),articleWidgets:Ia().array().optional()}),Wa=Ba.extend({_attachedFiles:fr.array()}),za=Wa.extend({processContext:Bn.null(),uiObjectLink:oi.array().optional()}),$a=e=>Wa.extend({idDraft:Bn.number(),form:e}),Va=Bn.object({type:Bn.string().optional(),format:ei.optional(),formatExtend:ti.optional(),query:Bn.string().optional(),limit:Bn.number().optional(),page:Bn.number().optional(),orders:Kn.optional(),filters:Hn.optional()}),Ja=Bn.object({uri:Bn.string().optional(),idArticle:Bn.number().optional(),format:ei.optional()}),Ga=Bn.object({title:Bn.string().optional(),description:Bn.string().optional().nullable(),type:Bn.string().optional(),publishTo:Bn.string().optional(),idSpot:Bn.array(Bn.string()).optional()}),Ka=Bn.object({id:Bn.number(),type:Bn.string(),dateCreation:Bn.string(),dateModified:Bn.string(),title:Bn.string(),uri:Bn.string()}),Ha=Bn.object({attachment:Bn.boolean().optional(),idArticle:Bn.number(),limits:Bn.object({max:Bn.number(),start:Bn.number()}).optional()}),Qa=Bn.object({token:Bn.string(),content:Bn.string(),idArticle:Bn.number(),sendAlert:Bn.boolean(),alertAuthor:Bn.boolean(),widgets:Ia().array().optional()}),Ya=Bn.object({token:Bn.string().optional(),description:Bn.string().optional(),idComment:Bn.number(),widgets:Ia().array().optional()}),Xa=Bn.object({idUser:Bn.string(),dateRead:Bn.string(),Pseudo:Bn.string(),type:Bn.string()}),es=Bn.union([Bn.literal("created"),Bn.literal("validated"),Bn.literal("handled")]),ts=Wa.extend({aseiClearanceTicketValidator:ki.array(),aseiClearanceTicketHandler:oi.array(),aseiClearanceTicketApplicationManagers:oi.array(),aseiClearanceTicketInstitution:oi.array(),processContext:Bn.null(),aseiClearanceTicketNatureOfDemand:Bn.string(),aseiClearanceTicketInternetAccess:Bn.string(),aseiClearanceTicketInternetAccessSpecify:Bn.string(),aseiClearanceTicketMicrosoftTeams:Bn.string().nullable(),aseiClearanceTicketVariousNetworks:Bn.string().nullable(),aseiClearanceTicketFreeText:Bn.string(),aseiClearanceTicketOfficeAccess:Bn.string().nullable(),aseiClearanceTicketSharedDirectoriesSpecify:Bn.string(),aseiClearanceTicketBlueKanGo:Bn.string().nullable(),aseiClearanceTicketAccounting:Bn.string(),aseiClearanceTicketAccountingBudget:Bn.string(),aseiClearanceTicketTransfers:Bn.string().nullable(),aseiClearanceTicketBilling:Bn.string(),aseiClearanceTicketPayroll:Bn.string(),aseiClearanceTicketPayrollBudget:Bn.string(),aseiClearanceTicketAccommodationCosts:Bn.string(),aseiClearanceTicketCommercialManagement:Bn.string(),aseiClearanceTicketInventoryManagement:Bn.string(),aseiClearanceTicketTimeManagement:Bn.string(),aseiClearanceTicketBdes:Bn.string(),aseiClearanceTicketMandateStart:Bn.string().nullable(),aseiClearanceTicketMandateEnd:Bn.string().nullable(),aseiClearanceTicketIndicatorsPlatform:Bn.string().nullable(),aseiClearanceTicketBudgetLetters:Bn.string(),aseiClearanceTicketComputerisedFile:Bn.string().nullable(),aseiClearanceTicketRecruiterAccess:Bn.string().nullable(),aseiClearanceTicketTypeOfWorkContractFrom:Bn.null(),aseiClearanceTicketTypeOfWorkContractTo:Bn.null(),aseiClearanceTicketLastName:Bn.string(),aseiClearanceTicketFirstName:Bn.string(),aseiClearanceTicketUser:ki.array(),aseiClearanceTicketTypeOfWorkContract:Bn.string(),aseiClearanceTicketTypeOfWorkContractSpecify:Bn.string(),aseiClearanceTicketPosition:Bn.string(),aseiClearanceTicketStatus:es}),ns=qa.extend({_right:ri,_user:ki,aseiInstitutionValidator:oi.array(),processContext:Bn.null()}),is=Bn.object({dsi:Bn.string(),gestionnaireApplicatif:Bn.string(),createurDemande:Bn.string()}),rs=Bn.object({accessWriter:Bn.boolean(),accessApp:Bn.boolean()}),as=Bn.object({description:Bn.string(),right:Bn.object({manage:Bn.boolean()}),daysOff:Bn.array(Bn.string()).optional(),weekEnd:Bn.union([Bn.literal("0"),Bn.literal("1")]),bookingOpeningTime:Bn.string(),bookingClosingTime:Bn.string(),lastBookingSchedule:Bn.string()}),ss=Ba.extend({_isColorDark:Bn.boolean().nullable(),assetPlannerBackgroundColor:Bn.string().nullable()}),os=ss.extend({assetBanner:Bn.record(Bn.object({id:Bn.string(),name:Bn.string(),size:Bn.string()}))}),ls=Ba.extend({dateStart:Bn.string(),dateEnd:Bn.string(),reservationCancelled:Bn.boolean(),_asset:ss}),cs=Bn.object({id:Bn.string(),uri:Bn.string(),shortUri:Bn.string(),title:Bn.string(),name:Bn.string(),mainType:Bn.string(),type:Bn.string(),label:Bn.string(),cssClass:Bn.string(),cssColor:Bn.string(),class:Bn.string()}),us=cs.extend({title:Bn.string()}),ds=us.extend({Pseudo:Bn.string()}),ps=us.extend({idspot:Bn.string()}),ms=Bn.union([us,ds,ps]),gs=oi.extend({isTechnical:Bn.number(),status:Bn.number(),image:Bn.string(),isMember:Bn.boolean(),stats:Bn.object({moderators:Bn.number(),members:Bn.string()}),_members:Bn.array(oi)}),hs=Bn.object({token:Bn.string(),fullname:Bn.string()}),fs=Bn.object({redirectUrl:Bn.string()}),ys=Bn.object({token:Bn.string()}),bs=Bn.object({dateStart:Bn.string(),title:Bn.string()}),vs=qa.extend({type:Bn.literal("businessContactCard")}),ks=Ba.and(vs.and(Bn.object({mail:Bn.string().nullable(),pseudo:Bn.string().nullable(),firstName:Bn.string().nullable(),lastName:Bn.string().nullable(),phoneNumber:Bn.string().nullable(),company:Bn.string().nullable(),function:Bn.string().nullable(),champ1:Bn.string().nullable().optional(),champ2:Bn.string().nullable().optional(),champ3:Bn.string().nullable().optional(),champ4:Bn.string().nullable().optional(),champ5:Bn.string().nullable().optional()}))),ws=Bn.literal("read"),_s=Bn.object({type:Bn.string(),class:Bn.string(),isActive:Bn.boolean(),label:Bn.string(),cssClass:Bn.string(),cssColor:Bn.string(),struct:Bn.object({action:Bn.string(),do:Bn.string(),type:Bn.string(),targetId:Bn.number(),targetType:Bn.string()}),stats:Bn.object({total:Bn.number()})}),Ss=si.omit({dateModified:!0}).extend({dateCreation:Bn.string(),dateModified:Bn.string().nullable(),description:Bn.string().nullable(),_user:ki}),js=Ss.extend({_right:ri,_attachedFiles:Bn.array(fr).optional(),_actions:Bn.record(_s).optional(),_widgets:Bn.array(Ia()).optional()}),xs=Ui.extend({dateStart:Bn.string(),animatedMeetingContent:Bn.record(Bn.unknown()),_extend:Bn.object({status:Bn.string(),statusValue:Bn.literal(1).or(Bn.literal(2)).or(Bn.literal(3)),date:Bn.string()}),_audience:Bi.array(),_audienceLeft:Bn.number()}),Cs=Bn.union([Bn.literal("groups"),Bn.literal("sites"),Bn.literal("onedrive"),Bn.literal("group"),Bn.literal("documents")]),Ts=Bn.object({title:Bn.string(),id:Bn.string(),type:Bn.string()}),As=Ts.omit({id:!0}).extend({name:Cs.optional()}),Os=Ts.and(Bn.object({})),Ls=Ts.extend({visibility:Bn.union([Bn.literal("public"),Bn.literal("private")]).optional()}),Fs=Ts.extend({mimetype:Bn.string().optional(),webUrl:Bn.string().optional()}),Rs=Ls.and(Fs),Es=Bn.object({id:Bn.string(),title:Bn.string(),mail:Bn.string(),default:Bn.boolean()}),Ps=Bn.object({title:Bn.string(),id:Bn.string(),type:Bn.string(),mimetype:Bn.string().optional(),webUrl:Bn.string().optional()}),Is=Bn.object({msTenant:Bn.union([Cs,Bn.undefined()]),msId:Bn.union([Bn.string(),Bn.undefined()]),idFolder:Bn.union([Bn.string(),Bn.undefined()]),page:Bn.number(),limit:Bn.number(),query:Bn.string().optional().nullable()}),Ms=Ba.extend({faqColor:Bn.string().optional(),image:gr.optional(),type:Bn.literal("faq")}),Zs=Wa.and(Ms).and(Bn.object({_audience:ms.array(),tags:us.array().optional(),isWeb:Bn.boolean(),faqContent:Bn.array(Bn.object({title:Bn.string(),id:Bn.string().optional(),items:Bn.array(Bn.string())})).optional()})),Ns=e=>e.and(Bn.object({_extend:Bn.object({itemsCount:Bn.number()})})),Ds=Ba.extend({type:Bn.literal("faqItem"),hierarchy:Bn.object({category:Bn.string().optional(),theme:Bn.string().optional()})}),Us=Ds.omit({hierarchy:!0}).extend({faqResponse:Bn.string(),tags:us.array().optional(),uriCategory:qa.array(),themeId:Bn.string(),_nbAttachedFiles:Bn.number().optional(),_attachedFiles:fr.array(),uiObjectLink:Bn.unknown()}),qs=Qn(Ga.omit({idSpot:!0})).and(Bn.object({image:gr.nullable().optional(),tags:Bn.string().optional(),faqColor:Bn.string().optional(),isWeb:Bn.boolean().optional(),type:Bn.literal("faq")})),Bs=qs.and(Bn.object({uri:Bn.string(),format:ei.optional()})),Ws=Bn.object({title:Bn.string(),id:Bn.string()}),zs=Bn.object({_web:Bn.union([Bn.literal("0"),Bn.literal("1"),Bn.literal("")]).optional(),appImageText:Bn.string().optional(),appImage:Bn.union([Bn.string(),Bn.object({image:Bn.object({id:Bn.string(),type:Bn.string()})})]).optional(),_displayComment:Bn.union([Bn.literal("0"),Bn.literal("1"),Bn.literal("")]).optional()}),$s=Bn.object({createCategory:Bn.boolean()}),Vs=Bn.object({idCategory:Bn.number(),title:Bn.string()}),Js=Bn.object({idCategory:Bn.number(),indexTheme:Bn.number(),deleteEntries:Bn.boolean().optional()}),Gs=Bn.object({idCategory:Bn.number(),indexTheme:Bn.number(),title:Bn.string()}),Ks=Qn(Ga).and(Bn.object({tags:Bn.string().optional(),faqResponse:Bn.string().optional(),type:Bn.literal("faqItem")})),Hs=Bn.object({idEntry:Bn.number(),idCategory:Bn.number(),theme:Bn.number()}),Qs=Ks.and(Bn.object({uri:Bn.string()})),Ys=Bn.object({entryURI:Bn.string(),sourceURI:Bn.string().optional(),targetURI:Bn.string(),theme:Bn.number()}),Xs=Bn.object({sourceUri:Bn.string(),targetUri:Bn.string(),themeIndex:Bn.number()}),eo=e=>Bn.object({isActive:Bn.boolean()}).and(e),to=Bn.enum(["drive_microsoft_graph","drive_dropbox","drive_google"]),no=eo(Bn.object({drives:Bn.record(to,Bn.boolean())})),io=eo(Bn.object({label:Bn.string()})),ro=eo(Bn.object({orderBy:Bn.string(),order:Bn.enum(["ASC","DESC"])})),ao=eo(Bn.object({sendAlert:Bn.boolean()})),so=eo(Bn.object({})),oo=eo(Bn.object({create:Bn.boolean(),autorize:Bn.array(Bn.enum(["message","comment","board","article"]).optional())})),lo=eo(Bn.object({label:Bn.string(),hasLicense:Bn.boolean()})),co=Bn.object({MagicPadHook:lo}).partial(),uo=Bn.object({DriveHook:no,calendarHook:io,FileBankHook:ro,spotRssFeed:so,WidgetHook:oo,AdminAdvancedHook:ao}).partial().and(co),po=e=>uo.and(Bn.record(Bn.string(),Bn.any())).parse(e),mo=Bn.union([Bn.literal("summarize"),Bn.literal("develop"),Bn.literal("reformulate"),Bn.literal("tldr"),Bn.literal("en"),Bn.literal("es"),Bn.literal("formal"),Bn.literal("funny")]),go=Bn.object({text:Bn.string()}),ho=Bn.object({kind:Bn.string(),page:Bn.number(),limit:Bn.number(),filters:Gn.array().optional(),orders:zn.array().optional()}),fo=e=>Bn.object({license:Bn.union([Bn.literal("1"),Bn.literal("0")]),user:e}),yo=qa.extend({attachment:fr,description:Bn.string()}),bo=Ba.extend({description:Bn.string(),attachment:fr,_audience:ms.array()}),vo=Bn.object({format:ei,page:Bn.number().optional(),limit:Bn.number().optional(),nolimit:Bn.boolean().optional()}),ko=Bn.object({id:Bn.number(),idFolder:Bn.number().optional(),fileName:Bn.string(),nbViews:Bn.number(),nbDistinctViews:Bn.number(),nbDownloads:Bn.number()}),wo=Bn.object({id:Bn.number(),folderName:Bn.string(),nb:Bn.number(),nbDistinct:Bn.number()}),_o=Bn.object({nbFolders:Bn.number(),nbFiles:Bn.number()}),So=Bn.object({uriFile:Bn.string(),uriFolder:Bn.string()}),jo=Ba.extend({place:Bn.string(),address:Bn.string(),dateStart:Bn.string(),dateEnd:Bn.string(),noGestion:Bn.boolean()}),xo=Wa.and(jo).and(Bn.object({allDay:Bn.null(),useQrcode:Bn.null(),textColor:Bn.string(),bgColor:Bn.string(),socialEventUseCeiling:Bn.null(),socialEventCeiling:Bn.null(),hideFromCalendar:Bn.null(),urlGestion:Bn.string().optional().nullable()})),Co=jo.extend({}),To=Wa.and(Co).and(Bn.object({allDay:Bn.null(),agenda:Bn.string(),useQrcode:Bn.null(),textColor:Bn.string(),bgColor:Bn.string(),report:Bn.string(),reportFile:Bn.array(Bn.never()),urlGestion:Bn.string().nullable().optional()})),Ao=Bn.object({uri:Bn.string(),title:Bn.string(),type:Bn.string(),mainType:Bn.string()}),Oo=Ba.extend({anonymousResponse:Bn.null(),multipleResponse:Bn.number(),publicResults:Bn.null(),pollProgression:Bn.object({colors:Bn.record(Bn.string()),maxRespondentsValue:Bn.number(),countRespondentsValue:Bn.number()}),pollResponseShowProgression:Bn.number(),dateEnd:Bn.string(),status:Bn.object({name:Bn.string(),value:Bn.number()})}),Lo=Wa.and(Oo).and(Bn.object({pollContent:Bn.null(),pollLinks:Bn.null(),pollForceClose:Bn.null(),pollResponseUserVisibility:Bn.null(),pollResponseAuthorVisibility:Bn.null(),pollResponseShowRespondent:Bn.null(),pollBanner:Bn.tuple([]),pollMessage:Bn.string()})),Fo=Ba.extend({quizzDescription:Bn.string().nullable(),quizzClosingDate:Bn.string().nullable(),dateStart:Bn.string().nullable(),dateEnd:Bn.string().nullable()}),Ro=Wa.and(Fo).and(Bn.object({quizzInvitation:Bn.null(),quizzFormSpec:Bn.string(),quizzRandom:Bn.null(),quizzHideResponses:Bn.null(),quizzStatus:Bn.null(),quizzPublicationDate:Bn.string().nullable()})),Eo=Bn.object({count:Bn.number(),id:Bn.string()}),Po=Bn.union([Bn.literal("AND"),Bn.literal("OR")]),Io=Bn.object({facetType:Bn.string(),facetOptions:Bn.union([Bn.record(Bn.union([Bn.object({}).passthrough(),Bn.number(),Bn.string()])),Bn.array(Bn.never())]),facetMode:Po.optional(),field:Bn.string(),title:Bn.string(),description:Bn.string().optional(),category:Bn.string().optional()}),Mo=Bn.object({id:Bn.string(),mainType:Bn.string(),type:Bn.string().optional(),title:Bn.string(),cssclass:Bn.string().optional(),active:Bn.boolean().optional(),count:Bn.number().optional(),typesExcluded:Bn.array(Bn.string()),facets:Io.array()}),Zo=Bn.object({count:Bn.number(),value:Bn.string(),title:Bn.string()}),No=Bn.object({name:Bn.string(),count:Bn.number(),values:Zo.array(),title:Bn.string()}),Do=Bn.object({field:Bn.string(),value:Bn.union([Bn.string(),Bn.array(Bn.string())]),exclude:Bn.boolean().optional(),or:Bn.boolean().optional()}),Uo=Bn.object({field:Bn.string(),order:Bn.union([Bn.literal("desc"),Bn.literal("asc")])}),qo=Bn.object({facetLimit:Bn.number(),skipEmptyFacets:Bn.boolean()}),Bo=Bn.object({home:Bn.object({mode:Bn.union([Bn.literal("result"),Bn.literal("category")]),facets:Io.array()}),categories:Mo.array(),viewcard:Bn.record(Bn.array(Bn.object({name:Bn.string(),title:Bn.string()}))),facetMode:Bn.boolean()}),Wo=Bn.object({name:Bn.string(),title:Bn.string(),icon:Bn.string(),_url:Bn.string()}),zo=Bn.object({id:Bn.number().optional(),title:Bn.string(),picture:Bn.string(),uri:Bn.string(),type:Bn.string().optional(),icon:Bn.string().optional(),_cssColor:Bn.string().optional(),_url:Bn.string().optional(),idArticle:Bn.number().optional(),_user:Bn.object({title:Bn.string()}).optional(),_values:Bn.object({dateModified:Bn.string()}).optional()}),$o=Bn.object({keywords:Bn.string().optional(),category:Bn.string().optional(),facetCategories:Bn.boolean().optional(),filters:Do.array().optional(),facets:Io.array().optional(),page:Bn.number().optional(),limit:Bn.number().optional(),sort:Uo.optional(),options:qo.optional(),format:ei.optional()}),Vo=e=>Bn.object({start:Bn.number(),count:Bn.number(),results:Bn.array(null!=e?e:oi),facets:No.array(),categories:Eo.array()}),Jo=Bn.object({keywords:Bn.string()}),Go=Bn.union([Wo,zo]),Ko=Bn.object({title:Bn.string(),id:Bn.string(),showAll:Bn.boolean().optional(),results:Go.array()}),Ho=Bn.union([Bn.literal("link"),Bn.literal("invitation")]),Qo=Bn.object({id:Bn.number(),title:Bn.string(),uri:Bn.string(),idUser:Bn.number(),_right:ri}),Yo=Bn.union([ki,Ni]),Xo=Bn.object({audience:Bn.array(Yo),read:Bn.array(Bn.string()),write:Bn.array(Bn.string())}),el=Bn.object({id:Bn.number(),type:Bn.string(),uri:Bn.string(),title:Bn.string(),generalAccessRule:Ho,generalAccessHash:Bn.string().nullable(),idUser:Bn.number(),_audience:Bn.array(Yo),_right:ri}),tl=Bn.object({targetId:Bn.number(),targetType:Bn.string(),type:Bn.string()}),nl=Bn.object({targetId:Bn.number(),targetType:Bn.string(),type:Bn.string()}),il=Ba.extend({supportStatus:Bn.union([Bn.number(),Bn.string()]).nullable(),supportType:Bn.union([Bn.number(),Bn.string()]).nullable(),supportOwner:Bn.array(ki)}),rl=Wa.and(il).and(Bn.object({})),al=Ba.extend({dates:Bn.array(Bn.string()),dateStart:Bn.string().nullable(),dateEnd:Bn.string()}),sl=Wa.and(al).and(Bn.object({surveyObjectLink:Bn.array(qa)})),ol=Bn.object({cache_suffix:Bn.string(),toolbar:Bn.string(),language:Bn.string(),content_css:Bn.string(),quickbars_selection_toolbar:Bn.string()}),ll=ol.extend({plugins:Bn.array(Bn.string()),text_patterns:Bn.array(Bn.object({start:Bn.string(),end:Bn.string().optional(),format:Bn.string().optional(),cmd:Bn.string().optional()})),height:Bn.number(),menubar:Bn.boolean(),branding:Bn.boolean(),skin:Bn.string(),convert_urls:Bn.boolean(),invalid_elements:Bn.string(),extended_valid_elements:Bn.string(),custom_elements:Bn.string(),inline_boundaries_selector:Bn.string(),toolbar_mode:Bn.union([Bn.literal("floating"),Bn.literal("sliding"),Bn.literal("scrolling"),Bn.literal("wrap")]),promotion:Bn.boolean(),font_size_formats:Bn.string(),contextmenu:Bn.union([Bn.string(),Bn.literal(!1)]),paste_data_images:Bn.boolean(),browser_spellcheck:Bn.boolean(),quickbars_insert_toolbar:Bn.boolean()}),cl="accept",ul="deny",dl=qa.extend({articleWidgets:Ia().array(),articleWidgetDisplayMode:Pr.nullable().or(Bn.undefined())}),pl=Bn.object({uniqid:Bn.string(),title:Bn.string(),locked:Bn.boolean(),visible:Bn.boolean(),widgets:Ia().array(),position:Rr.optional()}),ml=Bn.enum(["edit","view","preview"]),gl=Bn.object({width:Bn.number().or(Bn.undefined()).optional(),inplace:Bn.boolean(),isComponentVisible:Bn.boolean().optional(),mode:ml,onClick:Bn.function().returns(Bn.void()).optional(),onChange:Bn.function().args(Za,Bn.boolean()).returns(Bn.void()),onStateChange:Bn.function().args(Ua).returns(Bn.void())}),hl=Bn.object({text:Bn.string(),value:Bn.boolean().optional(),links:Wn.array().optional(),uri:Bn.string().optional(),mimetype:Bn.string().optional(),id:Bn.number().optional(),user:ki.optional()}),fl=Bn.object({arr:hl.array().optional()}),yl=Bn.object({name:Bn.literal("widget-check-list"),uniqid:Bn.string(),content:fl,title:Bn.string()}),bl=Bn.object({label:Bn.string(),description:Bn.string(),name:_r,img:Bn.string(),available:Bn.boolean(),panel:Bn.object({useWrapper:Bn.boolean(),useEditor:Bn.boolean(),useWidgets:Bn.boolean()})}),vl=Bn.object({title:Bn.string().optional(),view:Bn.any().optional()}),kl=Bn.object({token:Bn.string().or(Bn.undefined()).optional(),ids:Bn.record(Bn.string(),Ia()),layers:Bn.record(Bn.string(),pl),states:Bn.record(Bn.string(),Ua),modal:vl.or(Bn.undefined()),editableMap:Bn.record(Bn.string(),Bn.object({index:Bn.number(),uniqid:Bn.string()})),currentEditableIndex:Bn.number(),currentEditableWidgetId:Bn.string().or(Bn.undefined()),widgetObject:Bn.record(Bn.string(),oi.partial())}),wl=Bn.object({widgets:kl}),_l=dl.extend({articleWidgetsCover:Bn.number().or(Bn.undefined()),_audience:ms.array()}),Sl=new N(new Ze),jl=new Pe(Sl);window.JamespotUserApi=jl;const xl=jl,Cl=Pe;module.exports=t})();
|
|
1
|
+
(()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ACCESS_REQUEST_ACCEPT:()=>cl,ACCESS_REQUEST_DENY:()=>ul,AdminLicenseApi:()=>r,AdminStoreApi:()=>a,AdminUtilsApi:()=>s,BookmarkType:()=>Ji,DateFormatSchema:()=>ha,Format:()=>Yn,GroupModerateStatus:()=>Mi,JApplicationApi:()=>o,JArticleApi:()=>Q,JAssetReservation:()=>X,JAudienceApi:()=>ee,JBaseApi:()=>n,JBbbApi:()=>te,JBookmarkApi:()=>ne,JBusinessNetworkingApi:()=>ie,JCommunityApi:()=>re,JDatasourceApi:()=>ae,JDiapazoneApi:()=>se,JFaqApi:()=>ce,JFileApi:()=>le,JFilebankApi:()=>ue,JGlobalApi:()=>de,JGroupApi:()=>pe,JIAApi:()=>Fe,JLandApi:()=>fe,JMessengerApi:()=>ye,JObjectApi:()=>Ae,JSearchApi:()=>be,JShareApi:()=>je,JSocialActionApi:()=>Le,JTaxonomyApi:()=>ke,JUserApi:()=>we,JWedocApi:()=>_e,JWidgetApi:()=>Re,JamespotUserApi:()=>Pe,JamespotUserApiInstance:()=>jl,Network:()=>Z,NumberFormatSchema:()=>fa,StudioApplicationStatus:()=>i,TVDisplayApi:()=>Se,UserLevel:()=>vi,WidgetsName:()=>wr,WindowBrowser:()=>Ne,actionVerbSchema:()=>ws,addCommentParamsSchema:()=>Qa,addFaqEntrySchema:()=>Hs,addRemoveActionParamsSchema:()=>nl,adminAppSchema:()=>or,adminAppTabSchema:()=>sr,adminAppsSchema:()=>lr,adminLicenseStatsSchema:()=>Qi,adminLicenseUserSchema:()=>ir,adminLicensesAssignedSchema:()=>er,adminLicensesNotAssignedSchema:()=>Xi,animationConfigurationTypeSchema:()=>ur,animationStatsRowSchema:()=>dr,animationStatsSchema:()=>pr,animationVariantSchema:()=>cr,api:()=>Cl,articleCreationSchema:()=>Ga,articleDisplayModeSchema:()=>Pr,articleGetConfigSchema:()=>Ja,articleListConfigSchema:()=>Va,aseiGroupsSchema:()=>is,aseiInstitutionSchema:()=>ns,aseiRightsSchema:()=>rs,aseiTicketSchema:()=>ts,aseiTicketStatusSchema:()=>es,assetReservationConfigurationSchema:()=>as,audienceAutocompleteSchema:()=>ms,audienceSchema:()=>Bi,baseArticleSchema:()=>Ka,baseAutocompleteSchema:()=>cs,bookableAssetListSchema:()=>ss,bookableAssetViewSchema:()=>os,bookmarkCustomSchema:()=>Hi,bookmarkLinkSchema:()=>Gi,bookmarkTypesSchema:()=>Ki,businessContactSchema:()=>Ei,combineFormat:()=>z,combinedWidgetContentSchema:()=>Na,combinedWidgetTypeSchema:()=>Pa,communitySchema:()=>gs,createFaqCategorySchema:()=>qs,createFaqEntrySchema:()=>Ks,createFaqThemeSchema:()=>Vs,cssBackgroundPositionSchema:()=>Tr,cssBackgroundSizeSchema:()=>Ar,cssTextAlignTypeSchema:()=>Cr,deepEqual:()=>B,default:()=>xl,deleteFaqThemeSchema:()=>Js,driveAccountSchema:()=>Es,driveDocumentParamsSchema:()=>Is,driveItemTypeSchema:()=>Ps,editFaqCategorySchema:()=>Bs,editFaqEntrySchema:()=>Qs,editFaqThemeSchema:()=>Gs,ensureWidgetApiType:()=>sa,ensureWidgetArticleAttachmentType:()=>ia,ensureWidgetArticleButtonType:()=>Br,ensureWidgetArticleGalleryType:()=>$r,ensureWidgetArticleImageType:()=>ea,ensureWidgetArticleSliderType:()=>ua,ensureWidgetArticleTextType:()=>Qr,ensureWidgetArticleTitleType:()=>Gr,ensureWidgetCheckListType:()=>ga,ensureWidgetDatasourceTableType:()=>La,ensureWidgetExcelDatasourceTableType:()=>Ea,ensureWidgetType:()=>Ir,ensureWidgetWrapperProps:()=>Ma,extensions:()=>S,extractTaxonomiesFromObject:()=>V,extractTaxonomiesFromObjectAndMapProperty:()=>J,extractTaxonomiesFromObjectAndMapUri:()=>G,facetModeSchema:()=>Po,faqAccessSchema:()=>$s,faqHookPropertiesSchema:()=>zs,faqItemListSchema:()=>Ds,faqItemViewSchema:()=>Us,faqListSchema:()=>Ms,faqTaxonomySchema:()=>Ws,faqViewSchema:()=>Ns,fileCropConfigSchema:()=>hr,filterSchema:()=>Gn,filterValueSchema:()=>$n,filtersSchema:()=>Hn,formatExtensionSchema:()=>ti,formatImgUrl:()=>w,formatListSchema:()=>ei,getActionUsersParamsSchema:()=>tl,getArgs:()=>y,getCommentsParamsSchema:()=>Ha,getExtensionFromName:()=>T,getFileExtensionFromMimetype:()=>C,getFileFamily:()=>E,getFileFamilyFromName:()=>F,getFormat:()=>v,getFrom:()=>h,getLicenseKindUsersParamsSchema:()=>ho,getMimetypeFromExtension:()=>x,getMimetypeFromName:()=>A,getSize:()=>b,getTimestamp:()=>f,getUnclassifiedFilesParamsSchema:()=>vo,getUri:()=>g,getUrl:()=>k,groupLittleSchema:()=>Zi,imageSizeSchema:()=>gr,inferBookmarkListSchema:()=>Vi,inferBookmarkRawListSchema:()=>$i,inferExtendedFaqCategory:()=>Zs,inferJInternalDraftView:()=>$a,inferJLinkListSchema:()=>zi,inferMaybeWithToken:()=>Qn,inferSearchQueryResultSchema:()=>Vo,inferUserLicenseSchema:()=>fo,inferWidgetWrapperPropsSchema:()=>Ia,jAdminLicenseUserListSchema:()=>nr,jArticleExtendViewSchema:()=>za,jArticleListSchema:()=>Ba,jArticleLittleSchema:()=>qa,jArticleViewSchema:()=>Wa,jArticleWidgetLittle:()=>dl,jArticleWidgetViewSchema:()=>_l,jBusinessContactListSchema:()=>ks,jBusinessContactLittleSchema:()=>vs,jCommentListSchema:()=>js,jCommentLittleSchema:()=>Ss,jDiapazoneListSchema:()=>xs,jEnsure:()=>u,jFileLittleCropSchema:()=>br,jFileLittleSchema:()=>fr,jFileRenditionSchema:()=>vr,jHrefSchema:()=>Wn,jIACapabilitiesSchema:()=>mo,jLinkLittleSchema:()=>Wi,jMeetingListSchema:()=>Co,jMeetingViewSchema:()=>To,jObjectAutocompleteSchema:()=>us,jObjectBaseSchema:()=>si,jObjectListSchema:()=>Ui,jObjectLittleSchema:()=>oi,jPollSurveyListSchema:()=>Oo,jPollSurveyViewSchema:()=>Lo,jQuizzListSchema:()=>Fo,jQuizzViewSchema:()=>Ro,jSocialEventListSchema:()=>jo,jSocialEventViewSchema:()=>xo,jSpotAutocompleteSchema:()=>ps,jSupportListSchema:()=>il,jSupportViewSchema:()=>rl,jSurveyDateListSchema:()=>al,jSurveyDateViewSchema:()=>sl,jUserAutocompleteSchema:()=>ds,jUserListSchema:()=>wi,jUserLittleSchema:()=>ki,jUserValuesSchema:()=>Ai,jUserViewSchema:()=>Si,legacyAngularJSTypeSchema:()=>xr,licenseSchema:()=>tr,mediaLibraryFilesStatsSchema:()=>ko,mediaLibraryFolderSchema:()=>yo,mediaLibraryFolderStatsSchema:()=>wo,mediaLibraryListSchema:()=>bo,mediaLibraryStatsSchema:()=>_o,mimetypeToExt:()=>j,mimetypes:()=>_,moveFaqEntrySchema:()=>Ys,moveFaqThemeSchema:()=>Xs,moveMediaLibraryFileParamsSchema:()=>So,msBaseEntitySchema:()=>Ts,msDocumentEntitySchema:()=>Fs,msGroupEntitySchema:()=>Ls,msSiteEntitySchema:()=>Os,msTenantEntitySchema:()=>As,msTenantsSchema:()=>Cs,msUnifiedEntitySchema:()=>Rs,network:()=>Sl,networkTypeSchema:()=>Ao,objectListPropsSchema:()=>ni,objectTimestamp:()=>O,objectWithoutLicenseFilterSchema:()=>Yi,openingTypeAnchorSchema:()=>Nr,openingTypeLinkSchema:()=>Mr,openingTypePopupSchema:()=>Zr,openingTypeSchema:()=>Fr,orderSchema:()=>zn,ordersSchema:()=>Kn,padStartTwoDigits:()=>m,prepareGroupForUpdate:()=>K,publicWebinarData:()=>bs,publicWebinarFullnameRequestSchema:()=>hs,publicWebinarGetDateRequestSchema:()=>ys,publicWebinarUrlSchema:()=>fs,removeIfStartsWith:()=>p,replacePropertiesWithTypes:()=>W,reservationListSchema:()=>ls,resolveFileFamily:()=>M,resolveFileMimetype:()=>I,resolveFilePath:()=>L,resolveFileUrl:()=>P,rightsSchema:()=>ri,searchCategoryModelSchema:()=>Mo,searchCategoryValueSchema:()=>Eo,searchConfigSchema:()=>Bo,searchFacetModelSchema:()=>Io,searchFacetValueModelSchema:()=>Zo,searchFacetValuesSchema:()=>No,searchLastQuerySchema:()=>Jo,searchQueryFilterModelSchema:()=>Do,searchQueryOptionSchema:()=>qo,searchQuerySchema:()=>$o,searchQuerySortModelSchema:()=>Uo,searchResultCatPropsSchema:()=>Ko,searchResultPropsAppSchema:()=>Wo,searchResultPropsObjectSchema:()=>zo,searchResultPropsSchema:()=>Go,shareAccessObjectSchema:()=>el,shareAccessPropsSchema:()=>Xo,shareGeneralAccessRulesSchema:()=>Ho,shareOptionObjectSchema:()=>Qo,sharedAudienceItemSchema:()=>Yo,socialActionSchema:()=>_s,storeFinalizeSchema:()=>ar,storeItemSchema:()=>rr,suffixIfDoesNotExist:()=>d,textEnhanceResponseSchema:()=>go,tinyMCECommonOptionsSchema:()=>ll,tinyMCEDynamicOptionsSchema:()=>ol,updateCommentParamsSchema:()=>Ya,uploadConfigSchema:()=>mr,userDefaultFieldsTypeSchema:()=>Ti,userDirectoryConfigurationSchema:()=>Pi,userDownloadSchema:()=>kr,userFieldSchema:()=>Li,userFieldsConfigurationTypeSchema:()=>Oi,userFieldsSchema:()=>Fi,userMapModelSchema:()=>xi,userReadSchema:()=>Xa,userValuesSchema:()=>Ri,userlevelSpotShema:()=>Ni,validateIsFormatFileLittle:()=>yr,validateIsFormatHookListType:()=>po,validateIsFormatObjectList:()=>qi,validateIsFormatObjectLittle:()=>li,validateIsFormatRights:()=>ai,validateIsFormatUserDirectoryConfiguration:()=>Ii,validateIsFormatUserLevelSpot:()=>Di,validateIsFormatUserList:()=>_i,validateIsFormatUserMapModel:()=>Ci,validateIsFormatUserView:()=>ji,variantSizeTypeSchema:()=>Or,variantTypeSchema:()=>Lr,widgetActiveValueSchema:()=>hi,widgetApiContentSchema:()=>ra,widgetApiTypeSchema:()=>aa,widgetArticleAttachmentContentSchema:()=>ta,widgetArticleAttachmentTypeSchema:()=>na,widgetArticleButtonContentSchema:()=>Ur,widgetArticleButtonTypeSchema:()=>qr,widgetArticleCheckListTypeForFrontSchema:()=>yl,widgetArticleGalleryContentSchema:()=>Wr,widgetArticleGalleryTypeSchema:()=>zr,widgetArticleImageContentSchema:()=>Yr,widgetArticleImageTypeSchema:()=>Xr,widgetArticleSliderContentSchema:()=>la,widgetArticleSliderTypeSchema:()=>ca,widgetArticleTextContentSchema:()=>Kr,widgetArticleTextTypeSchema:()=>Hr,widgetArticleTitleContentSchema:()=>Vr,widgetArticleTitleTypeSchema:()=>Jr,widgetBaseSchema:()=>jr,widgetButtonPropsSchema:()=>Dr,widgetCheckListContentArrForFrontSchema:()=>hl,widgetCheckListContentArrSchema:()=>da,widgetCheckListContentForFrontSchema:()=>fl,widgetCheckListContentSchema:()=>pa,widgetCheckListTypeSchema:()=>ma,widgetContentKeysSchema:()=>Da,widgetDatasourceTableContentSchema:()=>Aa,widgetDatasourceTableTypeSchema:()=>Oa,widgetDatePickerValueSchema:()=>gi,widgetDateValueSchema:()=>pi,widgetDatetimeValueSchema:()=>mi,widgetDefaultProps:()=>gl,widgetDefinitionPropsSchema:()=>bl,widgetDisplayModeSchema:()=>ml,widgetEmailValueSchema:()=>fi,widgetExcelDatasourceTableContentSchema:()=>Fa,widgetExcelDatasourceTableTypeSchema:()=>Ra,widgetExtendedTypeSchema:()=>Er,widgetKeysSchema:()=>_r,widgetLayerSchema:()=>pl,widgetModalPropsSchema:()=>vl,widgetNumberValueSchema:()=>di,widgetSlideSchema:()=>oa,widgetStatePropsSchema:()=>Ua,widgetTableColumnDataSchema:()=>Sa,widgetTableColumnSchema:()=>Ca,widgetTableColumnTypesSchema:()=>xa,widgetTableColumnWidgetDateSchema:()=>wa,widgetTableColumnWidgetDefaulSchema:()=>ya,widgetTableColumnWidgetSelectOptionSchema:()=>va,widgetTableColumnWidgetSelectSchema:()=>ka,widgetTableColumnWidgetTextSchema:()=>ba,widgetTableColumnWidgetsSchema:()=>_a,widgetTableColumnsData:()=>ja,widgetTableContentSchema:()=>Ta,widgetTextValueSchema:()=>ci,widgetTextareaValueSchema:()=>ui,widgetTypeKeysSchema:()=>Za,widgetUrlValueSchema:()=>yi,widgetVectorSchema:()=>Rr,widgetsRootStateSchema:()=>wl,widgetsStateSchema:()=>kl,widgetsValueSchema:()=>bi});class n{constructor(e){this.jApi=e,this.network=e.network}}var i;class r extends n{getLicenseUserStatistics(e){return this.network.post({o:"licenseManager",f:"userStatistics"},e)}getLicenseStatistics(e,t){return this.network.post({o:"licenseManager",f:"statistics",kind:e},t)}assignLicense(e){return this.network.postCSRF({o:"licenseManager",f:"assignLicense",uri:e})}assignKindLicense(e,t){return this.network.postCSRF({o:"licenseManager",f:"assignLicenseKind",uri:e,kind:t})}unAssignLicense(e){return this.network.postCSRF({o:"licenseManager",f:"unassignLicense",uri:e})}unAssignKindLicense(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignLicenseKind",uri:e,kind:t})}getAssignmentMode(e,t){return this.network.post({o:"licenseManager",f:"getAssignmentMode",type:e},t)}setAssignmentMode(e,t){return this.network.postCSRF({o:"licenseManager",f:"setAssignmentMode",value:t,type:e})}assignPossiblesLicenses(e){return this.network.postCSRF({o:"licenseManager",f:"assignPossiblesLicenses",type:e})}unAssignUnusedLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignUnusedLicenses",type:e,kind:t})}optimizeLicenses(e){return this.network.postCSRF({o:"licenseManager",f:"optimizeLicenses",type:e})}getObjectsWithoutLicense(e,t){return this.network.post({o:"licenseManager",f:"countObjectsWithoutLicense",type:e,filter:t})}getLicensesNotAssigned(e){return this.network.post({o:"licenseManager",f:"countLicensesNotAssigned",type:e})}getLicensesAssigned(e){return this.network.post({o:"licenseManager",f:"getLicensesAssigned",type:e})}getLicenceUsersByKind(e,t,n){var i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,[]);return this.network.post(Object.assign(Object.assign({o:"licenseManager",f:"getUsers"},i),{format:t}),n)}}class a extends n{getItem(e){return this.network.post({o:"adminStore",f:"getItem",uri:e})}checkoutBilling(e){return this.network.postCSRF({o:"adminStore",f:"checkoutBilling",uri:e})}checkoutFinalize(e){return this.network.postCSRF({o:"adminStore",f:"checkoutFinalize",uri:e})}}class s extends n{getApps(e){return this.network.post({o:"admin",f:"apps"},e)}}!function(e){e.local="local",e.installed="installed",e.autosaved="autosaved",e.saved="saved"}(i||(i={}));class o extends n{list(){return this.network.post({o:"studio",f:"list"})}get(e,t){return this.network.post({o:"studio",f:"get",idApp:e,status:t})}install(e){return this.network.postCSRF({o:"studio",f:"install",value:e})}suspend(e){return this.network.postCSRF({o:"studio",f:"suspend",idApp:e})}restart(e){return this.network.postCSRF({o:"studio",f:"restart",idApp:e})}save(e,t,n){if(n===i.saved||n===i.autosaved)return this.network.postCSRF({o:"studio",f:"save",idApp:e,value:t,status:n});throw"Invalid status value"}delete(e,t){return n=this,i=void 0,a=function*(){return this.network.postCSRF({o:"studio",f:"delete",idApp:e,status:t}).then((e=>{if(0===e.error)return e.messages;throw e.messages}))},new((r=void 0)||(r=Promise))((function(e,t){function s(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,o)}l((a=a.apply(n,i||[])).next())}));var n,i,r,a}cssClassList(){return this.network.post({o:"studio",f:"icons"})}}function l(e){const t=e;return t&&"number"==typeof t.id&&"number"==typeof t.targetId}const c={bookmarkLink:l},u={isBookmarkLink:function(e){return"targetId"in e&&!!e.targetId},isBookmarkCustom:function(e){const t=e;return void 0!==t.bookmarkLabel||void 0!==t.bookmarkMeta||void 0!==t.bookmarkUrl},isBookmarkRawList:l,isTVChannelType:function(e,t){return"tvChannelType"in e&&e.tvChannelType===t},objectIsType:function(e,t){return null!=t&&c[e](t)},isStandardApiError:e=>"object"==typeof e&&null!==e&&"error"in e&&"errorMsg"in e&&"messages"in e&&"number"==typeof e.error&&"string"==typeof e.errorMsg&&Array.isArray(e.messages),isAbortApiError:e=>null!==e&&"object"==typeof e&&"error"in e&&"aborted"in e&&-1===e.error&&!0===e.aborted};function d(e,t){return e&&!e.endsWith(t)?`${e}${t}`:e}function p(e,t){return e&&e.startsWith(t)?e.split("").slice(t.length).join(""):e}function m(e){return e.toString().padStart(2,"0")}function g(e){return"uri"in e&&e.uri?e.uri:`${e.type}/${e.recordId}`}function h(e){return p(d(e.from,"/"),"/")||""}function f(e){return e.timestamp?`?_=${e.timestamp}`:""}function y(e){const t=[];return"timestamp"in e&&e.timestamp&&t.push(`_=${e.timestamp}`),"iconColor"in e&&e.iconColor&&t.push(`color=${e.iconColor}`),t.length?"?"+t.join("&"):""}function b(e,t=2){return"size"in e&&e.size?e.size:"width"in e&&e.width&&"height"in e&&e.height?`${e.width*t}x${e.height*t}`:""}function v(e){return e.format||"png"}function k(e){try{return new URL(e)}catch(e){}try{return new URL(window.location.origin+"/"+p(e,"/"))}catch(e){}}function w(e,t=2){if("url"in e&&e.url){const t=k(e.url);if(t)return"timestamp"in e&&e.timestamp&&!t.searchParams.has("_")&&t.searchParams.append("_",e.timestamp.toString()),t.toString()}return`/${h(e)}${b(e,t)}/${g(e)}.${v(e)}${y(e)}`}const _=["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pdf","application/zip","application/illustrator","application/postscript","application/vnd.ms-opentype","application/x-font-ttf","application/octet-stream","audio/mp3","audio/mpeg","font/ttf","font/otf","image/jpeg","image/jpg","image/png","image/gif","image/vnd.adobe.photoshop","image/svg+xml","text/plain","text/csv","video/mp4","video/webm"],S=["docx","xlsx","csv","pptx","pdf","zip","ai","mp3","mpeg","ttf","otf","jpg","jpeg","png","gif","psd","svg","txt","mp4","odt","webm"],j={"application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/vnd.oasis.opendocument.text":"odt","application/pdf":"pdf","application/zip":"zip","application/x-zip-compressed":"zip","application/illustrator":"ai","application/postscript":"ai","audio/mp3":"mp3","audio/mpeg":"mpeg","font/ttf":"ttf","font/otf":"otf","image/jpeg":"jpeg","image/jpg":"jpg","image/png":"png","image/gif":"gif","application/x-font-ttf":"ttf","application/vnd.ms-opentype":"otf","image/vnd.adobe.photoshop":"psd","image/svg+xml":"svg","text/plain":"txt","text/csv":"xlsx","video/mp4":"mp4","video/webm":"mp4"},x=e=>Object.keys(j).find((t=>j[t]===e)),C=e=>{var t;return null!==(t=j[e])&&void 0!==t?t:void 0};function T(e){const t=String(e).split(".").pop();return S.find((e=>e===t))}const A=e=>{var t;const n=T(e);return null!==(t=x(n))&&void 0!==t?t:"application/octet-stream"},O=e=>e?(new Date(e).getTime()/1e3).toFixed(0):void 0,L=(e,t="fitx80")=>{const n=M(e),i=O(e.dateModified);switch(n){default:return;case"video":return`/media/${e.id}.mp4?stream=true`+(i?`&_=${i}`:"");case"audio":return`/media/${e.id}.mp3`+(i?`?_=${i}`:"");case"gif":return w({timestamp:i,size:t,from:"imagecache",uri:e.uri,format:"gif"});case"image":return w({timestamp:i,size:t,from:"imagecache",uri:e.uri})}},F=e=>{const t=T(e);return void 0!==t?E(x(t)):"application"},R=e=>-1!==["image/vnd","image/svg","image/heic"].findIndex((t=>e.startsWith(t)));function E(e){return e&&e.startsWith("folder/")?"folder":null==e||R(e)?"application":e.startsWith("image/gif")?"gif":e.startsWith("image/")?"image":e.startsWith("video/")?"video":e.startsWith("audio/")?"audio":e.startsWith("font/")||e.startsWith("application/x-font-ttf")||e.startsWith("application/vnd.ms-opentype")?"font":e.startsWith("text/")?"text":"application"}const P=(e,t,n="rr")=>"ng"===n?`/ng/file/${e}/${t}`:`/ng/rr/file/${e}/${t}`,I=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?A(e.title):e.mimetype,M=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?F(e.title):E(e.mimetype);var N=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class Z{constructor(e,t="api-front"){this.window=e,this.action=t}static _formatPostOptions(e){const t=e?{body:JSON.stringify(e)}:void 0;return Object.assign({method:"POST",credentials:"same-origin"},t)}getUrl(e,t){return N(this,void 0,void 0,(function*(){const n=yield this.window.getBackendUrl();let i;try{i=new URL(`/${this.action}/${e}/${t}`,n).href}catch(r){i=`${n}/${this.action}/${e}/${t}`}return i}))}getHostname(){return N(this,void 0,void 0,(function*(){const e=(yield this.window.getBackendUrl()).split("//");return e.length>1?e[1]:e[0]}))}fetch(e,t){var{o:n,f:i}=e,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["o","f"]);return N(this,void 0,void 0,(function*(){void 0===t&&(t=null);const e=yield this.getUrl(n,i);return this.window.fetch(e,Object.assign(Object.assign({},Z._formatPostOptions(r)),{signal:t}))}))}post(e,t){return this.fetch(e,t).then((e=>e.json())).then((e=>{if(0===e.error)return e;throw{error:e.error,errorMsg:e.errorMsg,messages:e.messages}})).catch((e=>{if(t&&t.aborted)throw{error:-1,aborted:!0};throw e}))}postFile(e){return N(this,void 0,void 0,(function*(){const t=yield this.getUrl("file","create");if(e.append("format","raw-little"),!e.has("token")){const{result:t}=yield this.token();e.append("token",t)}const n=e.get("token");return n&&"string"==typeof n?this.window.fetch(t,{method:"POST",credentials:"same-origin",body:e}).then((e=>e.json())).then((e=>({response:e,token:n}))):Promise.reject("Missing token")}))}postCSRF(e){return this.tokenCSRF().then((t=>this.post(Object.assign(e,{tokenCSRF:t.result}))))}postToken(e){return this.token().then((t=>this.post(Object.assign(e,{token:t.result}))))}maybePostToken(e){return"token"in e&&e.token?this.post(e):this.postToken(e)}token(e){return this.post({o:"misc",f:"token"},e)}tokenCSRF(){return this.post({o:"misc",f:"tokenCSRF"})}}const D=Array.isArray,U=Object.keys,q=Object.prototype.hasOwnProperty;function B(e,t,n){const i=null==n?void 0:n.map((e=>e.split(".")));if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const r=D(e),a=D(t);let s,o,l;if(r&&a){if(o=e.length,o!==t.length)return!1;for(s=o;0!=s--;)if(!B(e[s],t[s],n))return!1;return!0}if(r!==a)return!1;const c=e instanceof Date,u=t instanceof Date;if(c!==u)return!1;if(c&&u)return e.getTime()===t.getTime();const d=e instanceof RegExp,p=t instanceof RegExp;if(d!==p)return!1;if(d&&p)return e.toString()===t.toString();const m=U(e).filter((e=>!(null==i?void 0:i.some((t=>1===t.length&&t[0]===e)))));if(o=m.length,o!==U(t).filter((e=>!(null==i?void 0:i.some((t=>1===t.length&&t[0]===e))))).length)return!1;for(s=o;0!=s--;)if(!q.call(t,m[s]))return!1;for(s=o;0!=s--;)if(l=m[s],!("_owner"===l&&e.$$typeof||B(e[l],t[l],null==i?void 0:i.filter((e=>e.length>1&&e[0]===l)).map((e=>e.splice(1).join("."))))))return!1;return!0}return e!=e&&t!=t}function W(e,t){if(Array.isArray(e))return e.map((e=>W(e,t)));if("object"==typeof e&&null!==e){let n={};return Object.keys(e).forEach((i=>{n=Object.assign(Object.assign({},n),{[i]:i&&t.includes(i)?typeof e[i]:W(e[i],t)})})),n}return e}const z=(e,t)=>Array.isArray(t)&&t.length?[e,...t].join(","):e;function $(e){return e.startsWith("tag_")||"tags"===e}function V(e){return Object.fromEntries(Object.entries(e).filter((([e])=>$(e))))}function J(e,t,n){return Object.fromEntries(Object.entries(e).filter((([e])=>$(e))).map((([e,i])=>{const r=Array.isArray(i)?i.map((e=>"object"==typeof e&&e&&t in e?e[t]:e)):i;return[e,n&&Array.isArray(r)?n(r):r]})))}function G(e){return J(e,"uri")}const K=e=>{var t;let n={};"_errors"in e&&(n._errors=e._errors),"_options"in e&&(n._options=e._options),"title"in e&&(n.title=e.title),"description"in e&&(n.description=e.description),"activity"in e&&(n.activity=e.activity),"image"in e&&(n.image=e.image),"uri"in e&&(n.uri=e.uri),"type"in e&&(n.type=e.type),"edito"in e&&(n.edito=e.edito),"category"in e&&(n.category=e.category.toString()),"commentLevel"in e&&(n.commentLevel=e.commentLevel),"_options"in e&&(null===(t=e._options)||void 0===t?void 0:t.custom_widgets)&&(n.custom_widgets=Array.isArray(e._options.custom_widgets)?{}:e._options.custom_widgets),"displayType"in e&&(n.displayType=e.displayType),"language"in e&&(n.language=e.language),"edit_access"in e&&(n.edit_access=e.edit_access),"lock_mail"in e&&(n.lock_mail=e.lock_mail),"fileSyncEnabled"in e&&(n.fileSyncEnabled=e.fileSyncEnabled),"fileSyncVersioningType"in e&&(n.fileSyncVersioningType=e.fileSyncVersioningType),"fileBankQuota"in e&&(n.fileBankQuota=e.fileBankQuota),"idCommunity"in e&&(n.idCommunity=e.idCommunity),"lastRssExecution"in e&&(n.lastRssExecution=e.lastRssExecution),"mail_comment"in e&&(n.mail_comment=e.mail_comment),"mail_frequency"in e&&(n.mail_frequency=e.mail_frequency),"mail_spotit"in e&&(n.mail_spotit=e.mail_spotit),"mail_subscriber"in e&&(n.mail_subscriber=e.mail_subscriber),"notifyFolder"in e&&(n.notifyFolder=e.notifyFolder),"nounsubscribe"in e&&(n.nounsubscribe=e.nounsubscribe),"privacy"in e&&(n.privacy=e.privacy),"publishFolder"in e&&(n.publishFolder=e.publishFolder),"rss_access"in e&&(n.rss_access=e.rss_access),"rss_feed"in e&&(n.rss_feed=e.rss_feed&&Array.isArray(e.rss_feed)?JSON.stringify(e.rss_feed.map((e=>{var{_user:t}=e,n=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["_user"]);return Object.assign(Object.assign({},n),{idUser:null==t?void 0:t.id})}))):"[]"),"rss_key"in e&&(n.rss_key=e.rss_key),"spot_right_user"in e&&(n.spot_right_user=e.spot_right_user),"spotBanner"in e&&(n.spotBanner=e.spotBanner),"spotDefaultPublishType"in e&&(n.spotDefaultPublishType=e.spotDefaultPublishType),"user_level_signup"in e&&(n.user_level_signup=e.user_level_signup),"useTeaser"in e&&(n.useTeaser=e.useTeaser),"widgets"in e&&(n.widgets=e.widgets);const i=V(e);if(n=Object.assign(Object.assign({},n),i),H(e,n))return n;throw new Error},H=(e,t)=>{const n=["id","mainType","dateCreation","dateModified","_url","o2apLinksSources"],i=["custom_widgets"],r=Object.keys(e),a=Object.keys(t),s=r.filter((e=>!a.includes(e)&&!n.includes(e))),o=a.filter((e=>!r.includes(e)&&!i.includes(e))),l=[...s.map((e=>"- "+e)),...o.map((e=>"+ "+e))];if(s.length>0||o.length>0)throw new Error(`prepareGroupForUpdate :: Wrong group mapping | Diff : ${JSON.stringify(l)}`);return!0};class Q extends n{list(e){var t,n;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"jamespotArticleQueryList"},e),{format:z(null!==(t=e.format)&&void 0!==t?t:"raw-list",null!==(n=e.formatExtend)&&void 0!==n?n:[])}))}get(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"article",f:"get"},e),{format:z(null!==(n=e.format)&&void 0!==n?n:"raw-view",null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}create(e,t){return this.network.maybePostToken(Object.assign({o:"article",f:"create",format:null!=t?t:"raw-list"},e))}update(e){return this.network.post(Object.assign(Object.assign({format:"raw-list"},e),{o:"article",f:"update"}))}delete(e){return this.network.postCSRF({o:"article",f:"delete",idArticle:e})}count(e){return this.network.post({o:"article",f:"count",type:e})}getAttachments(e,t,n){return this.network.post({o:"article",f:"getAttachment",idArticle:e,type:t,format:n})}permalink(e){return this.network.post({o:"article",f:"permalink",permalinkId:e})}saveAsDraft(e,t,n){return this.network.post({o:"article",f:"saveAsDraft",form:e,contentType:t,idDraft:n})}getComments(e,t){var n,i;return this.network.post(Object.assign(Object.assign({o:"article",f:"getComments"},e),{attachments:null!==(n=e.attachment)&&void 0!==n&&n,limits:null!==(i=e.limits)&&void 0!==i?i:{start:0,max:1e4},format:null!=t?t:"raw-little"}))}addComment(e,t){return this.network.post(Object.assign(Object.assign({o:"article",f:"addComment"},e),{alertAuthor:Number(e.alertAuthor),sendAlert:Number(e.sendAlert),type:"comment",format:null!=t?t:"raw-little"}))}updateComment(e,t){return this.network.post(Object.assign(Object.assign({o:"article",f:"updateComment"},e),{format:null!=t?t:"raw-little"}))}deleteComment(e){return this.network.postCSRF({o:"comment",f:"delete",idComment:e})}getRead(e){return this.network.post({o:"article",f:"getRead",uri:e})}}var Y=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class X extends n{configuration(){return this.network.post({o:"assetReservation",f:"configuration"})}createReservation(e){return this.network.postCSRF(Object.assign({o:"assetReservation",f:"createReservation",format:"raw-list"},e))}getReservations(e){var{format:t="raw-list"}=e,n=Y(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"getReservations",format:t},n))}cancelReservation(e){return this.network.post({o:"assetReservation",f:"cancelReservation",format:"raw-list",idArticle:e})}bookByDate(e){var{format:t="raw-list"}=e,n=Y(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"BookByDate",format:t},n))}getList(e){var{format:t="raw-list"}=e,n=Y(e,["format"]);return this.network.post(Object.assign({o:"objectList",f:"assetReservationList",format:t},n))}}class ee extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"audience",q:e}).then((e=>{if(Array.isArray(e.result))return e.result;throw"Bad response from backend"}))}}class te extends n{publicWebinarFullname(e){return this.network.post(Object.assign({o:"bigBlueButton",f:"publicWebinarFullname"},e))}getPublicWebinarData(e){return this.network.post(Object.assign({o:"bigBlueButton",f:"getPublicWebinarData"},e))}}class ne extends n{getFormattedList(e,t){return this.network.post(Object.assign({o:"objectList",f:"bookmarksList",format:t},e))}addFormattedLink(e,t,n){const i=null!=n?n:"list";return this.network.post({o:"custom",f:"actionAdd",type:"bookmarkLink",targetId:e,targetType:t,format:i})}addBookmark(e,t){return this.network.postCSRF(Object.assign({o:"bookmarks",f:"add"},e))}delete(e){return this.network.postCSRF({o:"bookmarks",f:"delete",bookmarkID:e})}rename(e,t,n){return this.network.postCSRF({o:"bookmarks",f:"rename",bookmarkID:e,bookmarkLabel:t,bookmarkUrl:n})}move(e,t,n){return this.network.postCSRF({o:"bookmarks",f:"move",bookmarkID:e,bookmarkReference:t,bookmarkPosition:n})}}class ie extends n{getInfos(e,t){return this.network.post({o:"BusinessNetworking",f:"MarkerInfo",id:e,format:null!=t?t:"raw-little"})}}class re extends n{get(e,t){return this.network.post({o:"community",f:"getCommunity",idCommunity:e,format:t||"raw-little"})}sendRequest(e,t){return this.network.post({o:"community",f:"sendRequest",message:e,idUserTo:t})}autocomplete(e){return this.network.post({o:"autocomplete",f:"community",q:e}).then((e=>e.result))}}class ae extends n{get(e,t){return this.network.post({o:"widget",f:"datasourceGet",uri:e,format:t})}getModel(e){return this.network.post({o:"widget",f:"datasourceGetModel",uri:e})}getObject(e){return this.network.post({o:"widget",f:"datasourceGetObject",uri:e})}updateModel(e,t){return this.network.post({o:"widget",f:"datasourceUpdateModel",uri:e,model:t})}getExcelDatasource(e){return this.network.post({o:"widget",f:"datasourceGetExcelDatasource",uri:e})}setExcelDatasource(e,t){return this.network.post({o:"widget",f:"datasourceSetExcelDatasource",uri:e,spreadsheet:t})}create({title:e,datasourceType:t,datasourceIdentifier:n,token:i}){return this.network.postCSRF({o:"widget",f:"datasourceCreate",title:e,datasourceType:t,datasourceIdentifier:n,token:i})}}class se extends n{create(e,t,n,i,r){return this.network.post({o:"article",f:"create",type:e,token:t,title:n,dateStart:i,publishTo:r})}getList(e="",t=[],n=[],i=1,r="raw-list"){return this.network.post({o:"objectList",f:"diapazoneQueryList",query:e,filters:t,orders:n,page:i,format:r})}}var oe=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class le extends n{upload(e){const t=new FormData;return t.append("attrName",e.attrName),e.file?t.append(e.attrName,e.file):e.url&&t.append("url",e.url),t.append("token",e.token),this.network.postFile(t)}uploadMany(e){return oe(this,void 0,void 0,(function*(){return Promise.all(e.map((e=>this.upload(e))))}))}get(e,t){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"get",idFile:e,format:t})}))}getParent(e,t){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getParent",idFile:e,format:t})}))}getWithHash(e,t,n){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getWithHash",idFile:e,hash:t,format:n})}))}duplicate(e,t,n){return oe(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"duplicateFile",idFile:e,title:t,publishTo:n})}))}updateFile(e,t){return oe(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"updateFile",idFile:e,title:t})}))}update(e,t,n){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"update",idFile:e,type:t,cropDatas:Object.assign(Object.assign({},n),{rotateBeforeCrop:!0}),killSize:n.killSize,format:"raw-little"})}))}deleteFile(e,t,n,i){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"delete",idFile:e,attrName:t,token:n},i)}))}deleteImage(e,t){return oe(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"deleteImage",id:e,type:t})}))}getDownload(e){return this.network.post({o:"file",f:"getDownload",id:e})}generatePreview(e){return this.network.post({o:"file",f:"generatePreview",id:e})}copy(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"file",f:"copy"},e),{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"}))}}class ce extends n{getCategoriesList(e,t){return this.network.post({o:"objectList",f:"faqQueryList",format:null!=e?e:"raw-list",orders:null!=t?t:[{name:"dateCreation",sort:"ASC"}]})}createCategory(e,t){return this.jApi.article.create(Object.assign(Object.assign({},e),{type:"faq"}),null!=t?t:"raw-view")}updateCategory(e,t){return this.jApi.article.update(Object.assign(Object.assign({},e),{type:"faq",format:null!=t?t:"raw-view"}))}getCategory(e,t){return this.jApi.article.get({idArticle:e,format:null!=t?t:"raw-view"})}deleteCategory(e){return this.jApi.article.delete(e)}checkItem(e,t,n){return this.network.post({o:"faq",f:"checkItem",query:e,page:null!=t?t:1,format:null!=n?n:"raw-list"})}getTaxonomy(){return this.network.post({o:"faq",f:"getFaqTaxonomy"})}getHookProperties(e){return this.network.post({o:"faq",f:"getHookProperties",properties:null!=e?e:["_web"]})}getAccess(){return this.network.post({o:"faq",f:"access"})}createTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-theme"},e),{format:null!=t?t:"raw-view"}))}deleteTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"delete-theme"},e),{format:null!=t?t:"raw-view"}))}updateTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"set-theme"},e),{format:null!=t?t:"raw-view"}))}getEntry(e,t){return this.network.post({o:"faq",f:"get-entry",uri:e,format:null!=t?t:"raw-view"})}deleteEntry(e){return this.jApi.article.delete(e)}createEntry(e,t){return this.jApi.article.create(Object.assign(Object.assign({},e),{idSpot:["content"],type:"faqItem"}),null!=t?t:"raw-view")}addEntry(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-entry"},e),{format:null!=t?t:"raw-view"}))}updateEntry(e,t){return this.jApi.article.update(Object.assign(Object.assign({},e),{type:"faqItem",format:null!=t?t:"raw-view"}))}moveEntry(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-entry"},e),{format:null!=t?t:"raw-view"}))}moveTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-theme"},e),{format:null!=t?t:"raw-view"}))}}class ue extends n{getBanks(e="list"){return this.network.post({o:"fileBank",f:"getBanks",format:e}).then((e=>e.result))}getFolders(e){return this.network.post({o:"fileBank",f:"getFolders",parentURI:e})}getDocuments(e){return this.network.post({o:"fileBank",f:"getDocuments",parentURI:e})}getPath(e,t){var n,i;return this.network.post({o:"fileBank",f:"getPath",uri:e.uri,mode:null!==(n=e.mode)&&void 0!==n?n:"browse",format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little"},null==t?void 0:t.signal)}getParents(e,t){var n;return this.network.post({o:"fileBank",f:"getParents",id:e.id,format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"},null==t?void 0:t.signal)}}class de extends n{countAction(e,t){return this.network.post({o:"activityLog",f:"log",count:!0,verb:e,uri:t})}useWebVersion(){return this.network.post({o:"global",f:"useWebVersion"})}}class pe extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"spot",q:e,idToUri:!1}).then((e=>e.result))}create(e,t){return this.network.post(Object.assign(Object.assign({o:"spot",f:"create"},e),{format:t}))}update(e,t){const{spotBanner:n}=e,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["spotBanner"]);return this.network.postCSRF(Object.assign(Object.assign({o:"spot",f:"update"},i),{format:t}))}getSpot(e,t){return this.network.post({o:"spot",f:"getSpot",idSpot:e,format:t})}getProperties(e){return this.network.post({o:"spot",f:"getProperties",idSpot:e})}getApplications(){return this.network.post({o:"spot",f:"get-available-widget"})}getCategories(){return this.network.post({o:"spot",f:"get-categories"})}getObjectListJamespotSpotMembers(e,t,n,i=1){return this.network.post({o:"objectListJamespot",f:"SpotMembers",idSpot:e,limit:n,page:i,format:"raw-little",query:t})}list(e){return this.network.post(Object.assign({o:"objectList",f:"jamespotSpotQueryList"},e))}resetNotifications(e){return this.network.post(Object.assign({o:"spot",f:"resetNotifications"},e))}getUserLevelAndRight(e){return this.network.post({o:"spot",f:"getUserLevelAndRight",idSpot:e})}groupRequest(e){return this.network.postCSRF({o:"spot",f:"request",idSpot:e})}groupAddToFavorite(e){return this.network.postCSRF({o:"spot",f:"addToFavorite",idSpot:e})}}class me extends n{list(e,t,n,i=[{name:"dateCreation",sort:"DESC"}]){return this.jApi.article.list({type:"aseiClearanceTicket",format:"raw-view",limit:t,page:e,orders:i,filters:n})}requestStatus(e,t,n){return this.network.post({o:"asei",f:"setStatus",uri:e,requestedStatus:t,audience:n})}getDedicatedGroups(){return this.network.post({o:"asei",f:"getDedicatedGroups"})}getConfiguration(){return this.network.post({o:"asei",f:"configuration"})}}class ge extends n{tenants(){return this.network.post({o:"drive",f:"getTenants"})}groups(e,t){return this.network.post({o:"drive",f:"getGroups",query:e,filter:t})}sites(){return this.network.post({o:"drive",f:"getSites"})}listAccount(e){return this.network.post({o:"drive",f:"listAccount",service:e})}isAccountLogged(e,t){return this.network.post({o:"drive",f:"isAccountLogged",service:e,id:t})}checkAccountToken(e){return this.network.post({o:"drive",f:"checkAccountToken",service:e})}documents(e,t){return this.network.post({o:"drive",f:"getDocuments",service:e,documentParams:t})}}class he extends n{GetUnclassifiedFiles(e){var t;return this.network.post({o:"objectListMediaLibrary",f:"GetUnclassifiedFiles",format:e.format,page:null!==(t=e.page)&&void 0!==t?t:1,limit:e.limit,nolimit:e.nolimit})}getAccess(){return this.network.post({o:"mediaLibrary",f:"access"})}getFoldersStatsList(e=[],t=[],n=1){return this.network.post({o:"objectListMediaLibrary",f:"FoldersStatsList",filters:e,orders:t,page:n})}getFilesStatsList(e=[],t=[],n=1){return this.network.post({o:"objectListMediaLibrary",f:"FilesStatsList",filters:e,orders:t,page:n})}getStats(){return this.network.post({o:"mediaLibrary",f:"moderatorStats"})}readFolder(e){return this.network.post({o:"mediaLibrary",f:"readFolder",uri:e})}readFile(e){return this.network.post({o:"mediaLibrary",f:"readFile",uri:e})}moveFile(e){return this.network.post({format:"raw-list",uri:e.uriFile,mediaLibraryFolderOrientedLinks:e.uriFolder,o:"article",f:"update"})}}class fe extends n{getLogs({dateEnd:e,idLogMax:t}){return this.network.post({o:"jLand",f:"adminLogs",dateEnd:e,idLogMax:t})}getStats({map:e,dateStart:t,dateEnd:n}){return this.network.post({o:"jLand",f:"adminStats",map:e,dateStart:t,dateEnd:n})}getAllMapsAsAdmin(e="raw-list,licenses"){return this.network.post({o:"objectListJLand",f:"jLandList",format:e})}createMap(e,t="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},e),{o:"article",f:"create",format:t,type:"jlandmap"}))}}class ye extends n{sendMessage(e,t){return this.network.post({o:"messenger",f:"newMessage",idDiscussion:t,msg:{description:e}})}getOrCreateDiscussion(e,t){const n=e<t?`${e}.${t}`:`${t}.${e}`;return this.network.post({o:"messenger",f:"getDiscussion",idDiscussion:n,type:"messengerUser",idUserTo:t})}}class be extends n{getConfig(){return this.network.post({o:"search",f:"getConfig"})}proposition({query:e,format:t},n){return this.network.post({o:"search",f:"proposition",query:e,format:t||"little"},n)}searchQuery(e,t){const{keywords:n,category:i,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:u}=e;return this.network.post({o:"search",f:"query",keywords:n,category:i,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:z(u,null==t?void 0:t.formatExtension)},null==t?void 0:t.signal)}getLastQueries(){return this.network.post({o:"search",f:"getLastQueries"})}getAdminConfig(){return this.network.post({o:"search",f:"getAdminConfig"})}setAdminConfig(e){return this.network.post({o:"search",f:"setAdminConfig",config:e})}}var ve=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class ke extends n{list(){return this.network.post({o:"taxonomy",f:"list",format:"raw-little"}).then((e=>{if(Array.isArray(e.result))return e.result;throw"Bad response from backend"}))}create(e){var{format:t="raw-little"}=e,n=ve(e,["format"]);return this.network.post(Object.assign({o:"taxonomy",f:"create",format:t},n))}autocomplete(e,t){return this.network.post({o:"autocomplete",f:"taxonomy",q:t,idTaxonomy:e,idToUri:!1})}autocompleteList(e){var{format:t="autocomplete"}=e,n=ve(e,["format"]);return this.network.post(Object.assign({o:"objectListTaxonomy",f:"concept",format:t},n))}autocompleteHierarchy(e){return this.network.post(Object.assign({o:"objectListTaxonomyHierarchy",f:"concept"},e))}}class we extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"user",q:e,idToUri:!1}).then((e=>e.result))}get(e,t="little",n){return this.network.post({o:"user",f:"get",uri:e,format:t},n)}updateImage(e,t="raw-little"){return this.network.postCSRF({o:"user",f:"updateImage",idFile:e,format:t})}updateBanner(e,t="raw-little"){return this.network.postCSRF({o:"user",f:"updateBanner",idFile:e,format:t})}updateMail(e,t){return this.network.postCSRF({o:"user",f:"editMail",mail:e,password:t})}userUpdateProfile(e){return this.network.postCSRF(Object.assign({o:"user",f:"updateProfile"},e))}configuration(){return this.network.post({o:"userDirectory",f:"configuration"})}fieldsConfiguration(){return this.network.post({o:"user",f:"fieldsConfiguration"})}userList(e,t){return this.network.post(Object.assign(Object.assign({o:"objectList",f:"JamespotUserList"},e),{format:z(e.format,null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}userQueryList(e,t){return this.network.post(Object.assign(Object.assign({o:"objectList",f:"JamespotUserQueryList"},e),{format:z(e.format,null==t?void 0:t.formatExtension)}))}userMap(e){return this.network.post(Object.assign({o:"objectListJamespot",f:"userMap"},e))}userBusinessContactQueryList(e){return this.network.post(Object.assign({o:"businessContact",f:"queryList"},e))}userCreateBusinessContact(e){const t=Object.assign(Object.assign({},e),{pseudo:e.title,firstName:e.firstname,lastName:e.lastname,champ1:e.field1,champ2:e.field2,champ3:e.field3,champ4:e.field4,champ5:e.field5}),n=Object.assign(Object.assign({},t),{type:"businessContactCard",publishTo:"networkPublic/1"});return this.jApi.article.create(n)}userUpdateBusinessContact(e){const t=Object.assign(Object.assign({},e),{pseudo:e.title,firstName:e.firstname,lastName:e.lastname,champ1:e.field1,champ2:e.field2,champ3:e.field3,champ4:e.field4,champ5:e.field5}),n=Object.assign(Object.assign({},t),{uri:e.uri,publishTo:"networkPublic/1"});return this.jApi.article.update(n)}userDeleteBusinessContact(e){return this.jApi.article.delete(e)}userAddContact(e){return this.network.post({o:"user",f:"addContact",idUser:e})}userRemoveContact(e){return this.network.post({o:"user",f:"removeContact",idUser:e})}signIn(e,t){return this.network.post({o:"user",f:"signIn",mail:e,password:t})}getFields(e,t){return this.network.post({o:"user",f:"getFields",idUser:e,fieldsType:t})}}class _e extends n{getFiles(e){return this.network.post(Object.assign({o:"onlyOffice",f:"getFiles"},e))}getFile(e,t){return this.network.post({o:"onlyOffice",f:"getFile",idFile:e,hash:t})}getTemplates(e){return this.network.post({o:"onlyOffice",f:"getTemplates"},e)}deleteFile(e,t){return this.network.postCSRF({o:"onlyOffice",f:"deleteFile",idFile:e,withParent:t})}createFile(e,t,n){return this.network.postCSRF({o:"onlyOffice",f:"createFile",title:e,type:t,publishTo:n})}updateFile(e,t){return this.network.postCSRF({o:"onlyOffice",f:"updateFile",idFile:e,title:t})}createVersion(e){return this.network.post({o:"onlyOffice",f:"createVersion",idFile:e})}setAccessRequest(e,t,n,i){return this.network.postCSRF({o:"onlyOffice",f:"setAccessRequest",uri:e,idUser:t,requestAccessValue:n,requestResponseMessage:i})}getAccessRequest(e,t){return this.network.post({o:"onlyOffice",f:"getAccessRequest",format:"raw-little",uri:e,idUser:t})}askAccess(e,t,n){return this.network.postCSRF({o:"onlyOffice",f:"askAccess",uri:e,askAccess:t,askMessage:n})}}class Se extends n{createChannel(e,t="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},e),{o:"article",f:"create",format:t,type:"tvDisplayChannel"}))}getChannel(e){return this.network.post(Object.assign(Object.assign({},e),{o:"tvDisplay",f:"getChannel"}))}getConfigureChannel(e){return this.network.post(Object.assign(Object.assign({},e),{o:"tvDisplay",f:"getConfigureChannel"}))}}class je extends n{contentObjectLinks(e){return this.network.post({o:"shared",f:"contentObjectLinks",format:"raw-little",uri:e})}contentSetObjectAccessRule(e,t,n){return this.network.postCSRF({o:"shared",f:"contentSetObjectAccessRule",format:"raw-little",uri:e,rule:t,hash:n})}}var xe=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class Ce extends n{SaveAnimationConfiguration(e){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"saveConfiguration",animation:e})}))}DeleteAnimation(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"deleteAnimation"})}))}GetCurrentAnimation(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfiguration"})}))}GetCurrentAnimationApp(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfigurationApp"})}))}ToggleAnimationActive(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"toggleAnimationActive"})}))}GetAnimationActive(){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getAnimationActive"})}))}GetAnimationStats(e){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStats",name:e})}))}GetAnimationStatsCurrent(e){return xe(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStatsCurrent",uri:e})}))}}class Te extends n{GetStatus(){return e=this,t=void 0,i=function*(){return this.network.post({o:"accessibility",f:"getStatus"})},new((n=void 0)||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}));var e,t,n,i}}class Ae extends n{getObject(e){return this.network.post({o:"object",f:"getObject",uri:e})}setAccess(e,t,n,i){return this.network.post({o:"object",f:"setAccess",uri:e,access:t,message:n,generalAccessRule:i})}getAccess(e){return this.network.post({o:"object",f:"getAccess",uri:e})}getAccessHash(e){return this.network.post({o:"object",f:"getAccessHash",uri:e})}}class Oe extends n{getFileBanks(e){return this.network.post({o:"file-sync",f:"getFileBanks"},e)}saveFileBanks(e){return this.network.post({o:"file-sync",f:"saveFileBanks",fileBanks:e})}getUserQuota(e){return this.network.post({o:"file-sync",f:"getUserQuota"},e)}getAdminSpots(e,t){return this.network.post(Object.assign({o:"objectList",f:"fileSyncAdminSpots"},e),t)}}class Le extends n{getUsers(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"getUsers"},e),{format:null!=t?t:"raw-list"}))}add(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"add"},e),{format:null!=t?t:"raw-little"}))}remove(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"remove"},e),{format:null!=t?t:"raw-little"}))}}class Fe extends n{textEnhancement({text:e,capacity:t}){return this.network.post({o:"jia",f:"textEnhancement",text:e,capacity:t})}}class Re extends n{responseUserList(e,t,n){return this.network.post({o:"widget",f:"responseUserList",uri:e,uniqid:t,page:n})}removeWidget({id:e,type:t,uniqid:n}){return this.network.post({o:"widget",f:"removeWidget",id:e,type:t,uniqid:n})}checkListRespond({id:e,type:t,idUser:n,uniqid:i,index:r}){return this.network.post({o:"widget",f:"checkListRespond",id:e,type:t,uniqid:i,idUser:n,index:r})}updateWidget({id:e,uniqid:t,content:n,title:i,type:r}){return this.network.post({o:"widget",f:"updateWidget",id:e,uniqid:t,content:n,title:i,type:r})}}class Ee extends n{getThumbnailUrl(e){return this.network.post({o:"magicPad",f:"getThumbnailUrl",uri:e})}}class Pe{constructor(e){this.version="1.0",this.network=e,this.admin={license:new r(this),store:new a(this),utils:new s(this)},this.accessibility=new Te(this),this.application=new o(this),this.article=new Q(this),this.asei=new me(this),this.assetReservation=new X(this),this.audience=new ee(this),this.bbb=new te(this),this.bookmark=new ne(this),this.businessNetworking=new ie(this),this.community=new re(this),this.datasource=new ae(this),this.diapazone=new se(this),this.drive=new ge(this),this.faq=new ce(this),this.file=new le(this),this.filebank=new ue(this),this.fileSync=new Oe(this),this.global=new de(this),this.group=new pe(this),this.jia=new Fe(this),this.jland=new fe(this),this.magicPad=new Ee(this),this.mediaLibrary=new he(this),this.messenger=new ye(this),this.object=new Ae(this),this.search=new be(this),this.share=new je(this),this.socialAction=new Le(this),this.taxonomy=new ke(this),this.tvDisplay=new Se(this),this.user=new we(this),this.wedoc=new _e(this),this.widget=new Re(this),this.animations=new Ce(this)}}var Ie,Me;class Ne{getBackendUrl(){return e=this,t=void 0,i=function*(){const e=window.location;return`${e.protocol}//${e.host}`},new((n=void 0)||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}));var e,t,n,i}fetch(e,t){return window.fetch(e,t)}}!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),i={};for(const e of n)i[e]=t[e];return e.objectValues(i)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(Ie||(Ie={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(Me||(Me={}));const Ze=Ie.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),De=e=>{switch(typeof e){case"undefined":return Ze.undefined;case"string":return Ze.string;case"number":return isNaN(e)?Ze.nan:Ze.number;case"boolean":return Ze.boolean;case"function":return Ze.function;case"bigint":return Ze.bigint;case"symbol":return Ze.symbol;case"object":return Array.isArray(e)?Ze.array:null===e?Ze.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?Ze.promise:"undefined"!=typeof Map&&e instanceof Map?Ze.map:"undefined"!=typeof Set&&e instanceof Set?Ze.set:"undefined"!=typeof Date&&e instanceof Date?Ze.date:Ze.object;default:return Ze.unknown}},Ue=Ie.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"]);class qe extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},i=e=>{for(const r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(i);else if("invalid_return_type"===r.code)i(r.returnTypeError);else if("invalid_arguments"===r.code)i(r.argumentsError);else if(0===r.path.length)n._errors.push(t(r));else{let e=n,i=0;for(;i<r.path.length;){const n=r.path[i];i===r.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(r))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ie.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=(e=>e.message)){const t={},n=[];for(const i of this.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}qe.create=e=>new qe(e);const Be=(e,t)=>{let n;switch(e.code){case Ue.invalid_type:n=e.received===Ze.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Ue.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ie.jsonStringifyReplacer)}`;break;case Ue.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ie.joinValues(e.keys,", ")}`;break;case Ue.invalid_union:n="Invalid input";break;case Ue.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ie.joinValues(e.options)}`;break;case Ue.invalid_enum_value:n=`Invalid enum value. Expected ${Ie.joinValues(e.options)}, received '${e.received}'`;break;case Ue.invalid_arguments:n="Invalid function arguments";break;case Ue.invalid_return_type:n="Invalid function return type";break;case Ue.invalid_date:n="Invalid date";break;case Ue.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ie.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Ue.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Ue.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Ue.custom:n="Invalid input";break;case Ue.invalid_intersection_types:n="Intersection results could not be merged";break;case Ue.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ue.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ie.assertNever(e)}return{message:n}};let We=Be;function ze(){return We}const $e=e=>{const{data:t,path:n,errorMaps:i,issueData:r}=e,a=[...n,...r.path||[]],s={...r,path:a};let o="";const l=i.filter((e=>!!e)).slice().reverse();for(const e of l)o=e(s,{data:t,defaultError:o}).message;return{...r,path:a,message:r.message||o}};function Ve(e,t){const n=$e({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,ze(),Be].filter((e=>!!e))});e.common.issues.push(n)}class Je{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const i of t){if("aborted"===i.status)return Ge;"dirty"===i.status&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t)n.push({key:await e.key,value:await e.value});return Je.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const i of t){const{key:t,value:r}=i;if("aborted"===t.status)return Ge;if("aborted"===r.status)return Ge;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"===t.value||void 0===r.value&&!i.alwaysSet||(n[t.value]=r.value)}return{status:e.value,value:n}}}const Ge=Object.freeze({status:"aborted"}),Ke=e=>({status:"dirty",value:e}),He=e=>({status:"valid",value:e}),Qe=e=>"aborted"===e.status,Ye=e=>"dirty"===e.status,Xe=e=>"valid"===e.status,et=e=>"undefined"!=typeof Promise&&e instanceof Promise;var tt;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(tt||(tt={}));class nt{constructor(e,t,n,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=i}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 it=(e,t)=>{if(Xe(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 t=new qe(e.common.issues);return this._error=t,this._error}}};function rt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=i?i:t.defaultError}:{message:null!=n?n:t.defaultError},description:r}}class at{constructor(e){this.spa=this.safeParseAsync,this._def=e,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(e){return De(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:De(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Je,ctx:{common:e.parent.common,data:e.data,parsedType:De(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(et(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const i={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:De(e)},r=this._parseSync({data:e,path:i.path,parent:i});return it(i,r)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:De(e)},i=this._parse({data:e,path:n.path,parent:n}),r=await(et(i)?i:Promise.resolve(i));return it(n,r)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,i)=>{const r=e(t),a=()=>i.addIssue({code:Ue.custom,...n(t)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then((e=>!!e||(a(),!1))):!!r||(a(),!1)}))}refinement(e,t){return this._refinement(((n,i)=>!!e(n)||(i.addIssue("function"==typeof t?t(n,i):t),!1)))}_refinement(e){return new Vt({schema:this,typeName:an.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Jt.create(this,this._def)}nullable(){return Gt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Tt.create(this,this._def)}promise(){return $t.create(this,this._def)}or(e){return Lt.create([this,e],this._def)}and(e){return Pt.create(this,e,this._def)}transform(e){return new Vt({...rt(this._def),schema:this,typeName:an.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Kt({...rt(this._def),innerType:this,defaultValue:t,typeName:an.ZodDefault})}brand(){return new Xt({typeName:an.ZodBranded,type:this,...rt(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Ht({...rt(this._def),innerType:this,catchValue:t,typeName:an.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return en.create(this,e)}readonly(){return tn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const st=/^c[^\s-]{8,}$/i,ot=/^[a-z][a-z0-9]*$/,lt=/^[0-9A-HJKMNP-TV-Z]{26}$/,ct=/^[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,ut=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let dt;const pt=/^(((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}))$/,mt=/^(([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})))$/;class gt extends at{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Ze.string){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.string,received:t.parsedType}),Ge}const t=new Je;let n;for(const s of this._def.checks)if("min"===s.kind)e.data.length<s.value&&(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if("max"===s.kind)e.data.length>s.value&&(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if("length"===s.kind){const i=e.data.length>s.value,r=e.data.length<s.value;(i||r)&&(n=this._getOrReturnCtx(e,n),i?Ve(n,{code:Ue.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):r&&Ve(n,{code:Ue.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),t.dirty())}else if("email"===s.kind)ut.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"email",code:Ue.invalid_string,message:s.message}),t.dirty());else if("emoji"===s.kind)dt||(dt=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),dt.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"emoji",code:Ue.invalid_string,message:s.message}),t.dirty());else if("uuid"===s.kind)ct.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"uuid",code:Ue.invalid_string,message:s.message}),t.dirty());else if("cuid"===s.kind)st.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"cuid",code:Ue.invalid_string,message:s.message}),t.dirty());else if("cuid2"===s.kind)ot.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"cuid2",code:Ue.invalid_string,message:s.message}),t.dirty());else if("ulid"===s.kind)lt.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"ulid",code:Ue.invalid_string,message:s.message}),t.dirty());else if("url"===s.kind)try{new URL(e.data)}catch(i){n=this._getOrReturnCtx(e,n),Ve(n,{validation:"url",code:Ue.invalid_string,message:s.message}),t.dirty()}else"regex"===s.kind?(s.regex.lastIndex=0,s.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"regex",code:Ue.invalid_string,message:s.message}),t.dirty())):"trim"===s.kind?e.data=e.data.trim():"includes"===s.kind?e.data.includes(s.value,s.position)||(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),t.dirty()):"toLowerCase"===s.kind?e.data=e.data.toLowerCase():"toUpperCase"===s.kind?e.data=e.data.toUpperCase():"startsWith"===s.kind?e.data.startsWith(s.value)||(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.invalid_string,validation:{startsWith:s.value},message:s.message}),t.dirty()):"endsWith"===s.kind?e.data.endsWith(s.value)||(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.invalid_string,validation:{endsWith:s.value},message:s.message}),t.dirty()):"datetime"===s.kind?((a=s).precision?a.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${a.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${a.precision}}Z$`):0===a.precision?a.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$"):a.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$")).test(e.data)||(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.invalid_string,validation:"datetime",message:s.message}),t.dirty()):"ip"===s.kind?(i=e.data,("v4"!==(r=s.version)&&r||!pt.test(i))&&("v6"!==r&&r||!mt.test(i))&&(n=this._getOrReturnCtx(e,n),Ve(n,{validation:"ip",code:Ue.invalid_string,message:s.message}),t.dirty())):Ie.assertNever(s);var i,r,a;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:Ue.invalid_string,...tt.errToObj(n)})}_addCheck(e){return new gt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...tt.errToObj(e)})}url(e){return this._addCheck({kind:"url",...tt.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...tt.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...tt.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...tt.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...tt.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...tt.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...tt.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...tt.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...tt.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...tt.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...tt.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...tt.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...tt.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...tt.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...tt.errToObj(t)})}nonempty(e){return this.min(1,tt.errToObj(e))}trim(){return new gt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new gt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new gt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function ht(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i;return parseInt(e.toFixed(r).replace(".",""))%parseInt(t.toFixed(r).replace(".",""))/Math.pow(10,r)}gt.create=e=>{var t;return new gt({checks:[],typeName:an.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...rt(e)})};class ft extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Ze.number){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.number,received:t.parsedType}),Ge}let t;const n=new Je;for(const i of this._def.checks)"int"===i.kind?Ie.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"multipleOf"===i.kind?0!==ht(e.data,i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.not_finite,message:i.message}),n.dirty()):Ie.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tt.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tt.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tt.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tt.toString(t))}setLimit(e,t,n,i){return new ft({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:tt.toString(i)}]})}_addCheck(e){return new ft({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:tt.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:tt.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:tt.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:tt.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:tt.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tt.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:tt.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:tt.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:tt.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&Ie.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ft.create=e=>new ft({checks:[],typeName:an.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...rt(e)});class yt extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==Ze.bigint){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.bigint,received:t.parsedType}),Ge}let t;const n=new Je;for(const i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),Ve(t,{code:Ue.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):Ie.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tt.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tt.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tt.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tt.toString(t))}setLimit(e,t,n,i){return new yt({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:tt.toString(i)}]})}_addCheck(e){return new yt({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:tt.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:tt.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:tt.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:tt.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tt.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}yt.create=e=>{var t;return new yt({checks:[],typeName:an.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...rt(e)})};class bt extends at{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==Ze.boolean){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.boolean,received:t.parsedType}),Ge}return He(e.data)}}bt.create=e=>new bt({typeName:an.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...rt(e)});class vt extends at{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Ze.date){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.date,received:t.parsedType}),Ge}if(isNaN(e.data.getTime()))return Ve(this._getOrReturnCtx(e),{code:Ue.invalid_date}),Ge;const t=new Je;let n;for(const i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),t.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(n=this._getOrReturnCtx(e,n),Ve(n,{code:Ue.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),t.dirty()):Ie.assertNever(i);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new vt({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:tt.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:tt.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}vt.create=e=>new vt({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:an.ZodDate,...rt(e)});class kt extends at{_parse(e){if(this._getType(e)!==Ze.symbol){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.symbol,received:t.parsedType}),Ge}return He(e.data)}}kt.create=e=>new kt({typeName:an.ZodSymbol,...rt(e)});class wt extends at{_parse(e){if(this._getType(e)!==Ze.undefined){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.undefined,received:t.parsedType}),Ge}return He(e.data)}}wt.create=e=>new wt({typeName:an.ZodUndefined,...rt(e)});class _t extends at{_parse(e){if(this._getType(e)!==Ze.null){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.null,received:t.parsedType}),Ge}return He(e.data)}}_t.create=e=>new _t({typeName:an.ZodNull,...rt(e)});class St extends at{constructor(){super(...arguments),this._any=!0}_parse(e){return He(e.data)}}St.create=e=>new St({typeName:an.ZodAny,...rt(e)});class jt extends at{constructor(){super(...arguments),this._unknown=!0}_parse(e){return He(e.data)}}jt.create=e=>new jt({typeName:an.ZodUnknown,...rt(e)});class xt extends at{_parse(e){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.never,received:t.parsedType}),Ge}}xt.create=e=>new xt({typeName:an.ZodNever,...rt(e)});class Ct extends at{_parse(e){if(this._getType(e)!==Ze.undefined){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.void,received:t.parsedType}),Ge}return He(e.data)}}Ct.create=e=>new Ct({typeName:an.ZodVoid,...rt(e)});class Tt extends at{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==Ze.array)return Ve(t,{code:Ue.invalid_type,expected:Ze.array,received:t.parsedType}),Ge;if(null!==i.exactLength){const e=t.data.length>i.exactLength.value,r=t.data.length<i.exactLength.value;(e||r)&&(Ve(t,{code:e?Ue.too_big:Ue.too_small,minimum:r?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(Ve(t,{code:Ue.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(Ve(t,{code:Ue.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>i.type._parseAsync(new nt(t,e,t.path,n))))).then((e=>Je.mergeArray(n,e)));const r=[...t.data].map(((e,n)=>i.type._parseSync(new nt(t,e,t.path,n))));return Je.mergeArray(n,r)}get element(){return this._def.type}min(e,t){return new Tt({...this._def,minLength:{value:e,message:tt.toString(t)}})}max(e,t){return new Tt({...this._def,maxLength:{value:e,message:tt.toString(t)}})}length(e,t){return new Tt({...this._def,exactLength:{value:e,message:tt.toString(t)}})}nonempty(e){return this.min(1,e)}}function At(e){if(e instanceof Ot){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=Jt.create(At(i))}return new Ot({...e._def,shape:()=>t})}return e instanceof Tt?new Tt({...e._def,type:At(e.element)}):e instanceof Jt?Jt.create(At(e.unwrap())):e instanceof Gt?Gt.create(At(e.unwrap())):e instanceof It?It.create(e.items.map((e=>At(e)))):e}Tt.create=(e,t)=>new Tt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:an.ZodArray,...rt(t)});class Ot extends at{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=Ie.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Ze.object){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.object,received:t.parsedType}),Ge}const{status:t,ctx:n}=this._processInputParams(e),{shape:i,keys:r}=this._getCached(),a=[];if(!(this._def.catchall instanceof xt&&"strip"===this._def.unknownKeys))for(const e in n.data)r.includes(e)||a.push(e);const s=[];for(const e of r){const t=i[e],r=n.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new nt(n,r,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof xt){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)a.length>0&&(Ve(n,{code:Ue.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const i=n.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new nt(n,i,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of s){const n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>Je.mergeObjectSync(t,e))):Je.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return tt.errToObj,new Ot({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var i,r,a,s;const o=null!==(a=null===(r=(i=this._def).errorMap)||void 0===r?void 0:r.call(i,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=tt.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new Ot({...this._def,unknownKeys:"strip"})}passthrough(){return new Ot({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ot({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ot({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:an.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Ot({...this._def,catchall:e})}pick(e){const t={};return Ie.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new Ot({...this._def,shape:()=>t})}omit(e){const t={};return Ie.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new Ot({...this._def,shape:()=>t})}deepPartial(){return At(this)}partial(e){const t={};return Ie.objectKeys(this.shape).forEach((n=>{const i=this.shape[n];e&&!e[n]?t[n]=i:t[n]=i.optional()})),new Ot({...this._def,shape:()=>t})}required(e){const t={};return Ie.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Jt;)e=e._def.innerType;t[n]=e}})),new Ot({...this._def,shape:()=>t})}keyof(){return Bt(Ie.objectKeys(this.shape))}}Ot.create=(e,t)=>new Ot({shape:()=>e,unknownKeys:"strip",catchall:xt.create(),typeName:an.ZodObject,...rt(t)}),Ot.strictCreate=(e,t)=>new Ot({shape:()=>e,unknownKeys:"strict",catchall:xt.create(),typeName:an.ZodObject,...rt(t)}),Ot.lazycreate=(e,t)=>new Ot({shape:e,unknownKeys:"strip",catchall:xt.create(),typeName:an.ZodObject,...rt(t)});class Lt extends at{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map((e=>new qe(e.ctx.common.issues)));return Ve(t,{code:Ue.invalid_union,unionErrors:n}),Ge}));{let e;const i=[];for(const r of n){const n={...t,common:{...t.common,issues:[]},parent:null},a=r._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&i.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const r=i.map((e=>new qe(e)));return Ve(t,{code:Ue.invalid_union,unionErrors:r}),Ge}}get options(){return this._def.options}}Lt.create=(e,t)=>new Lt({options:e,typeName:an.ZodUnion,...rt(t)});const Ft=e=>e instanceof Ut?Ft(e.schema):e instanceof Vt?Ft(e.innerType()):e instanceof qt?[e.value]:e instanceof Wt?e.options:e instanceof zt?Object.keys(e.enum):e instanceof Kt?Ft(e._def.innerType):e instanceof wt?[void 0]:e instanceof _t?[null]:null;class Rt extends at{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ze.object)return Ve(t,{code:Ue.invalid_type,expected:Ze.object,received:t.parsedType}),Ge;const n=this.discriminator,i=t.data[n],r=this.optionsMap.get(i);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):(Ve(t,{code:Ue.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Ge)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const i=new Map;for(const n of t){const t=Ft(n.shape[e]);if(!t)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const r of t){if(i.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);i.set(r,n)}}return new Rt({typeName:an.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...rt(n)})}}function Et(e,t){const n=De(e),i=De(t);if(e===t)return{valid:!0,data:e};if(n===Ze.object&&i===Ze.object){const n=Ie.objectKeys(t),i=Ie.objectKeys(e).filter((e=>-1!==n.indexOf(e))),r={...e,...t};for(const n of i){const i=Et(e[n],t[n]);if(!i.valid)return{valid:!1};r[n]=i.data}return{valid:!0,data:r}}if(n===Ze.array&&i===Ze.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let i=0;i<e.length;i++){const r=Et(e[i],t[i]);if(!r.valid)return{valid:!1};n.push(r.data)}return{valid:!0,data:n}}return n===Ze.date&&i===Ze.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Pt extends at{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=(e,i)=>{if(Qe(e)||Qe(i))return Ge;const r=Et(e.value,i.value);return r.valid?((Ye(e)||Ye(i))&&t.dirty(),{status:t.value,value:r.data}):(Ve(n,{code:Ue.invalid_intersection_types}),Ge)};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((([e,t])=>i(e,t))):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Pt.create=(e,t,n)=>new Pt({left:e,right:t,typeName:an.ZodIntersection,...rt(n)});class It extends at{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ze.array)return Ve(n,{code:Ue.invalid_type,expected:Ze.array,received:n.parsedType}),Ge;if(n.data.length<this._def.items.length)return Ve(n,{code:Ue.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ge;!this._def.rest&&n.data.length>this._def.items.length&&(Ve(n,{code:Ue.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const i=[...n.data].map(((e,t)=>{const i=this._def.items[t]||this._def.rest;return i?i._parse(new nt(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(i).then((e=>Je.mergeArray(t,e))):Je.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new It({...this._def,rest:e})}}It.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new It({items:e,typeName:an.ZodTuple,rest:null,...rt(t)})};class Mt extends at{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ze.object)return Ve(n,{code:Ue.invalid_type,expected:Ze.object,received:n.parsedType}),Ge;const i=[],r=this._def.keyType,a=this._def.valueType;for(const e in n.data)i.push({key:r._parse(new nt(n,e,n.path,e)),value:a._parse(new nt(n,n.data[e],n.path,e))});return n.common.async?Je.mergeObjectAsync(t,i):Je.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return new Mt(t instanceof at?{keyType:e,valueType:t,typeName:an.ZodRecord,...rt(n)}:{keyType:gt.create(),valueType:e,typeName:an.ZodRecord,...rt(t)})}}class Nt extends at{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ze.map)return Ve(n,{code:Ue.invalid_type,expected:Ze.map,received:n.parsedType}),Ge;const i=this._def.keyType,r=this._def.valueType,a=[...n.data.entries()].map((([e,t],a)=>({key:i._parse(new nt(n,e,n.path,[a,"key"])),value:r._parse(new nt(n,t,n.path,[a,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const i=await n.key,r=await n.value;if("aborted"===i.status||"aborted"===r.status)return Ge;"dirty"!==i.status&&"dirty"!==r.status||t.dirty(),e.set(i.value,r.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const i=n.key,r=n.value;if("aborted"===i.status||"aborted"===r.status)return Ge;"dirty"!==i.status&&"dirty"!==r.status||t.dirty(),e.set(i.value,r.value)}return{status:t.value,value:e}}}}Nt.create=(e,t,n)=>new Nt({valueType:t,keyType:e,typeName:an.ZodMap,...rt(n)});class Zt extends at{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ze.set)return Ve(n,{code:Ue.invalid_type,expected:Ze.set,received:n.parsedType}),Ge;const i=this._def;null!==i.minSize&&n.data.size<i.minSize.value&&(Ve(n,{code:Ue.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&n.data.size>i.maxSize.value&&(Ve(n,{code:Ue.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());const r=this._def.valueType;function a(e){const n=new Set;for(const i of e){if("aborted"===i.status)return Ge;"dirty"===i.status&&t.dirty(),n.add(i.value)}return{status:t.value,value:n}}const s=[...n.data.values()].map(((e,t)=>r._parse(new nt(n,e,n.path,t))));return n.common.async?Promise.all(s).then((e=>a(e))):a(s)}min(e,t){return new Zt({...this._def,minSize:{value:e,message:tt.toString(t)}})}max(e,t){return new Zt({...this._def,maxSize:{value:e,message:tt.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Zt.create=(e,t)=>new Zt({valueType:e,minSize:null,maxSize:null,typeName:an.ZodSet,...rt(t)});class Dt extends at{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ze.function)return Ve(t,{code:Ue.invalid_type,expected:Ze.function,received:t.parsedType}),Ge;function n(e,n){return $e({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ze(),Be].filter((e=>!!e)),issueData:{code:Ue.invalid_arguments,argumentsError:n}})}function i(e,n){return $e({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ze(),Be].filter((e=>!!e)),issueData:{code:Ue.invalid_return_type,returnTypeError:n}})}const r={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof $t){const e=this;return He((async function(...t){const s=new qe([]),o=await e._def.args.parseAsync(t,r).catch((e=>{throw s.addIssue(n(t,e)),s})),l=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(l,r).catch((e=>{throw s.addIssue(i(l,e)),s}))}))}{const e=this;return He((function(...t){const s=e._def.args.safeParse(t,r);if(!s.success)throw new qe([n(t,s.error)]);const o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,r);if(!l.success)throw new qe([i(o,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Dt({...this._def,args:It.create(e).rest(jt.create())})}returns(e){return new Dt({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Dt({args:e||It.create([]).rest(jt.create()),returns:t||jt.create(),typeName:an.ZodFunction,...rt(n)})}}class Ut extends at{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Ut.create=(e,t)=>new Ut({getter:e,typeName:an.ZodLazy,...rt(t)});class qt extends at{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Ve(t,{received:t.data,code:Ue.invalid_literal,expected:this._def.value}),Ge}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Bt(e,t){return new Wt({values:e,typeName:an.ZodEnum,...rt(t)})}qt.create=(e,t)=>new qt({value:e,typeName:an.ZodLiteral,...rt(t)});class Wt extends at{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return Ve(t,{expected:Ie.joinValues(n),received:t.parsedType,code:Ue.invalid_type}),Ge}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return Ve(t,{received:t.data,code:Ue.invalid_enum_value,options:n}),Ge}return He(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return Wt.create(e)}exclude(e){return Wt.create(this.options.filter((t=>!e.includes(t))))}}Wt.create=Bt;class zt extends at{_parse(e){const t=Ie.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Ze.string&&n.parsedType!==Ze.number){const e=Ie.objectValues(t);return Ve(n,{expected:Ie.joinValues(e),received:n.parsedType,code:Ue.invalid_type}),Ge}if(-1===t.indexOf(e.data)){const e=Ie.objectValues(t);return Ve(n,{received:n.data,code:Ue.invalid_enum_value,options:e}),Ge}return He(e.data)}get enum(){return this._def.values}}zt.create=(e,t)=>new zt({values:e,typeName:an.ZodNativeEnum,...rt(t)});class $t extends at{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ze.promise&&!1===t.common.async)return Ve(t,{code:Ue.invalid_type,expected:Ze.promise,received:t.parsedType}),Ge;const n=t.parsedType===Ze.promise?t.data:Promise.resolve(t.data);return He(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}$t.create=(e,t)=>new $t({type:e,typeName:an.ZodPromise,...rt(t)});class Vt extends at{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===an.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=this._def.effect||null,r={addIssue:e=>{Ve(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===i.type){const e=i.transform(n.data,r);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n}))):this._def.schema._parseSync({data:e,path:n.path,parent:n})}if("refinement"===i.type){const e=e=>{const t=i.refinement(e,r);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===i.status?Ge:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?Ge:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===i.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Xe(e))return e;const a=i.transform(e.value,r);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>Xe(e)?Promise.resolve(i.transform(e.value,r)).then((e=>({status:t.value,value:e}))):e))}Ie.assertNever(i)}}Vt.create=(e,t,n)=>new Vt({schema:e,typeName:an.ZodEffects,effect:t,...rt(n)}),Vt.createWithPreprocess=(e,t,n)=>new Vt({schema:t,effect:{type:"preprocess",transform:e},typeName:an.ZodEffects,...rt(n)});class Jt extends at{_parse(e){return this._getType(e)===Ze.undefined?He(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Jt.create=(e,t)=>new Jt({innerType:e,typeName:an.ZodOptional,...rt(t)});class Gt extends at{_parse(e){return this._getType(e)===Ze.null?He(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Gt.create=(e,t)=>new Gt({innerType:e,typeName:an.ZodNullable,...rt(t)});class Kt extends at{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===Ze.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Kt.create=(e,t)=>new Kt({innerType:e,typeName:an.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...rt(t)});class Ht extends at{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return et(i)?i.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new qe(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new qe(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ht.create=(e,t)=>new Ht({innerType:e,typeName:an.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...rt(t)});class Qt extends at{_parse(e){if(this._getType(e)!==Ze.nan){const t=this._getOrReturnCtx(e);return Ve(t,{code:Ue.invalid_type,expected:Ze.nan,received:t.parsedType}),Ge}return{status:"valid",value:e.data}}}Qt.create=e=>new Qt({typeName:an.ZodNaN,...rt(e)});const Yt=Symbol("zod_brand");class Xt extends at{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class en extends at{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Ge:"dirty"===e.status?(t.dirty(),Ke(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Ge:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new en({in:e,out:t,typeName:an.ZodPipeline})}}class tn extends at{_parse(e){const t=this._def.innerType._parse(e);return Xe(t)&&(t.value=Object.freeze(t.value)),t}}tn.create=(e,t)=>new tn({innerType:e,typeName:an.ZodReadonly,...rt(t)});const nn=(e,t={},n)=>e?St.create().superRefine(((i,r)=>{var a,s;if(!e(i)){const e="function"==typeof t?t(i):"string"==typeof t?{message:t}:t,o=null===(s=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===s||s,l="string"==typeof e?{message:e}:e;r.addIssue({code:"custom",...l,fatal:o})}})):St.create(),rn={object:Ot.lazycreate};var an;!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"}(an||(an={}));const sn=gt.create,on=ft.create,ln=Qt.create,cn=yt.create,un=bt.create,dn=vt.create,pn=kt.create,mn=wt.create,gn=_t.create,hn=St.create,fn=jt.create,yn=xt.create,bn=Ct.create,vn=Tt.create,kn=Ot.create,wn=Ot.strictCreate,_n=Lt.create,Sn=Rt.create,jn=Pt.create,xn=It.create,Cn=Mt.create,Tn=Nt.create,An=Zt.create,On=Dt.create,Ln=Ut.create,Fn=qt.create,Rn=Wt.create,En=zt.create,Pn=$t.create,In=Vt.create,Mn=Jt.create,Nn=Gt.create,Zn=Vt.createWithPreprocess,Dn=en.create,Un={string:e=>gt.create({...e,coerce:!0}),number:e=>ft.create({...e,coerce:!0}),boolean:e=>bt.create({...e,coerce:!0}),bigint:e=>yt.create({...e,coerce:!0}),date:e=>vt.create({...e,coerce:!0})},qn=Ge;var Bn=Object.freeze({__proto__:null,defaultErrorMap:Be,setErrorMap:function(e){We=e},getErrorMap:ze,makeIssue:$e,EMPTY_PATH:[],addIssueToContext:Ve,ParseStatus:Je,INVALID:Ge,DIRTY:Ke,OK:He,isAborted:Qe,isDirty:Ye,isValid:Xe,isAsync:et,get util(){return Ie},get objectUtil(){return Me},ZodParsedType:Ze,getParsedType:De,ZodType:at,ZodString:gt,ZodNumber:ft,ZodBigInt:yt,ZodBoolean:bt,ZodDate:vt,ZodSymbol:kt,ZodUndefined:wt,ZodNull:_t,ZodAny:St,ZodUnknown:jt,ZodNever:xt,ZodVoid:Ct,ZodArray:Tt,ZodObject:Ot,ZodUnion:Lt,ZodDiscriminatedUnion:Rt,ZodIntersection:Pt,ZodTuple:It,ZodRecord:Mt,ZodMap:Nt,ZodSet:Zt,ZodFunction:Dt,ZodLazy:Ut,ZodLiteral:qt,ZodEnum:Wt,ZodNativeEnum:zt,ZodPromise:$t,ZodEffects:Vt,ZodTransformer:Vt,ZodOptional:Jt,ZodNullable:Gt,ZodDefault:Kt,ZodCatch:Ht,ZodNaN:Qt,BRAND:Yt,ZodBranded:Xt,ZodPipeline:en,ZodReadonly:tn,custom:nn,Schema:at,ZodSchema:at,late:rn,get ZodFirstPartyTypeKind(){return an},coerce:Un,any:hn,array:vn,bigint:cn,boolean:un,date:dn,discriminatedUnion:Sn,effect:In,enum:Rn,function:On,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>nn((t=>t instanceof e),t),intersection:jn,lazy:Ln,literal:Fn,map:Tn,nan:ln,nativeEnum:En,never:yn,null:gn,nullable:Nn,number:on,object:kn,oboolean:()=>un().optional(),onumber:()=>on().optional(),optional:Mn,ostring:()=>sn().optional(),pipeline:Dn,preprocess:Zn,promise:Pn,record:Cn,set:An,strictObject:wn,string:sn,symbol:pn,transformer:In,tuple:xn,undefined:mn,union:_n,unknown:fn,void:bn,NEVER:qn,ZodIssueCode:Ue,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:qe});const Wn=Bn.object({href:Bn.string(),target:Bn.string()}),zn=Bn.object({name:Bn.string(),sort:Bn.union([Bn.literal("ASC"),Bn.literal("DESC")])}),$n=Bn.union([Bn.boolean(),Bn.string(),Bn.number(),Bn.array(Bn.string()),Bn.object({srcId:Bn.union([Bn.number(),Bn.string()]),srcType:Bn.string()}),Bn.object({targetId:Bn.union([Bn.number(),Bn.string()]),targetType:Bn.string()}),Bn.object({start:Bn.string(),end:Bn.string()})]),Vn=Bn.union([Bn.literal("<"),Bn.literal(">"),Bn.literal("<="),Bn.literal(">="),Bn.literal("!="),Bn.literal("<>"),Bn.literal("like"),Bn.literal("between"),Bn.literal("is"),Bn.literal("is not"),Bn.literal("in"),Bn.literal("link"),Bn.literal("match"),Bn.literal("equal")]),Jn=Bn.union([Bn.literal("<"),Bn.literal(">"),Bn.literal("<="),Bn.literal(">="),Bn.literal("!="),Bn.literal("<>"),Bn.literal("+"),Bn.literal("-"),Bn.literal("like"),Bn.literal("between"),Bn.literal("is"),Bn.literal("is not"),Bn.literal("in"),Bn.literal("link"),Bn.literal("match"),Bn.literal("equal")]),Gn=Bn.object({name:Bn.string(),value:$n,operator:Vn.optional(),method:Jn.optional(),or:Bn.boolean().optional(),isNull:Bn.boolean().optional(),isNotNull:Bn.boolean().optional()}),Kn=zn.array(),Hn=Bn.array(Gn),Qn=e=>e.and(Bn.object({token:Bn.string().or(Bn.undefined()).optional()}));var Yn;!function(e){e.LITTLE="raw-little",e.LIST="raw-list",e.VIEW="raw-view",e.USER_API="user-api",e.MOBILE="mobile"}(Yn||(Yn={}));const Xn=Bn.nativeEnum(Yn).transform((e=>`${e}`)),ei=Bn.union([Xn,Bn.undefined()]),ti=Bn.array(Bn.union([Bn.literal("bookmark"),Bn.literal("contact"),Bn.literal("licenses"),Bn.literal("quizFieldDefinitions"),Bn.literal("quizResponseRecord"),Bn.literal("search"),Bn.literal("socialEventRecord"),Bn.literal("surveyDateRecord")])),ni=Bn.object({additionalFilter:Bn.object({}).optional(),facets:Bn.array(Bn.object({})).optional(),filters:Hn.optional(),query:Bn.string().optional(),limit:Bn.number().optional(),page:Bn.number().optional(),orders:Kn.optional(),format:ei.optional()}),ii=e=>Bn.object(e),ri=ii({create:Bn.boolean(),read:Bn.boolean(),publish:Bn.boolean(),administrate:Bn.boolean(),update:Bn.boolean(),delete:Bn.boolean(),comment:Bn.boolean(),member:Bn.boolean()}),ai=e=>ri.safeParse(e).success,si=ii({id:Bn.number(),mainType:Bn.string(),type:Bn.string(),uri:Bn.string(),dateCreation:Bn.string().optional(),dateModified:Bn.string().nullable().optional()}),oi=si.extend({title:Bn.string(),_url:Bn.string()}),li=e=>oi.safeParse(e).success,ci=Bn.string(),ui=Bn.string().nullable(),di=Bn.number(),pi=Bn.string().nullable(),mi=Bn.string().nullable(),gi=Bn.string().nullable(),hi=Bn.number(),fi=Bn.string(),yi=Bn.string(),bi=Bn.union([hi,gi,mi,pi,fi,di,ui,ci,yi]),vi={ADMIN:9,USER:5,EXTERNAL:3,GUEST:0},ki=si.extend({title:Bn.string(),_url:Bn.string(),level:Bn.nativeEnum(vi),dateCreation:Bn.string(),dateModified:Bn.string()}).catchall(bi),wi=ki.extend({active:Bn.number()}),_i=e=>wi.safeParse(e).success,Si=wi,ji=e=>Si.safeParse(e).success,xi=Bn.object({idInType:Bn.number(),lat:Bn.number(),lng:Bn.number()}),Ci=e=>xi.safeParse(e).success,Ti=Bn.object({title:Bn.string(),firstname:Bn.string(),lastname:Bn.string(),mail:Bn.union([Bn.string(),Bn.undefined()]).optional(),description:Bn.string().optional(),dateOfBirth:Bn.string().optional(),phoneNumber:Bn.string().optional(),language:Bn.string().optional(),timeZone:Bn.string().optional(),mobileNumber:Bn.string().optional(),company:Bn.string().optional(),country:Bn.string().optional(),department:Bn.string().optional(),function:Bn.string().optional(),webSite:Bn.string().optional(),image:Bn.union([Bn.string(),Bn.undefined()]).optional(),userBanner:Bn.union([Bn.string(),Bn.undefined()]).optional(),field1:Bn.string().optional(),field2:Bn.string().optional(),field3:Bn.string().optional(),field4:Bn.string().optional(),field5:Bn.string().optional()}),Ai=Ti.required().extend({level:Bn.string(),image:Bn.string().optional(),businessManagementManager:ki.array().optional(),businessNetworkingUserToCompanySrc:ki.array().optional()}),Oi=Bn.object({user_field_edit_profil:Bn.record(Ti.keyof(),Bn.number()),user_field_editable:Bn.record(Ti.keyof(),Bn.number()),user_field_my_page:Bn.record(Ti.keyof(),Bn.number()),user_page_mandatory_fields:Bn.object({firstname:Bn.enum(["0","1"]),lastname:Bn.enum(["0","1"]),pseudo:Bn.enum(["0","1"])})}),Li=Bn.object({name:Bn.string(),value:Bn.union([Bn.string(),Bn.record(Bn.string(),Bn.any())])}),Fi=Bn.enum(["popover"]),Ri=Bn.object({values:Ai,mobileEditableFields:Ai.keyof().array()}),Ei=Bn.object({mail:Bn.union([Bn.string(),Bn.undefined()]),title:Bn.string(),firstname:Bn.string(),lastname:Bn.string(),phoneNumber:Bn.union([Bn.string(),Bn.undefined()]).optional(),company:Bn.union([Bn.string(),Bn.undefined()]).optional(),function:Bn.union([Bn.string(),Bn.undefined()]).optional(),uri:Bn.union([Bn.string(),Bn.undefined()]).optional(),field1:Bn.union([Bn.string(),Bn.undefined()]).optional(),field2:Bn.union([Bn.string(),Bn.undefined()]).optional(),field3:Bn.union([Bn.string(),Bn.undefined()]).optional(),field4:Bn.union([Bn.string(),Bn.undefined()]).optional(),field5:Bn.union([Bn.string(),Bn.undefined()]).optional()}),Pi=Bn.object({userDirectoryShow:Bn.union([Bn.literal(""),Bn.literal("1")]),contactDirectoryShow:Bn.union([Bn.literal("0"),Bn.literal("1")]),businessContactShow:Bn.boolean(),menu:Bn.union([Bn.literal("0"),Bn.literal("1")]),cardFields:Bn.string().array(),tableFields:Bn.string().array(),viewFields:Bn.string().array(),userGeoloc:Bn.boolean().optional(),sort:Bn.string(),cnt:Bn.number().optional(),filters:Bn.object({name:Bn.string(),type:Bn.string()}).array()}),Ii=e=>Pi.safeParse(e).success;var Mi;!function(e){e[e.SPOT_MODERATE_IGNORE=0]="SPOT_MODERATE_IGNORE",e[e.SPOT_MODERATE_ACCEPT=1]="SPOT_MODERATE_ACCEPT",e[e.SPOT_MODERATE_PENDING=2]="SPOT_MODERATE_PENDING"}(Mi||(Mi={}));const Ni=Bn.object({RF_Constant_levelName:Bn.string(),RF_delete:Bn.boolean(),RF_editing:Bn.boolean(),RF_level:Bn.number(),RF_levelName:Bn.string(),RF_levelName_Trad:Bn.string(),RF_parameters:Bn.boolean(),RF_setAdmin:Bn.boolean(),RF_spotit:Bn.boolean(),RF_spotit_own:Bn.boolean()}),Zi=oi.extend({dateCreation:Bn.string(),dateModified:Bn.string(),category:Bn.number(),privacy:Bn.number()}),Di=e=>Ni.safeParse(e).success,Ui=oi.extend({description:Bn.string().optional().nullable(),_user:ki,_right:ri}),qi=e=>Ui.safeParse(e).success,Bi=Bn.union([ki,Zi]),Wi=si.extend({srcId:Bn.number(),srcType:Bn.string(),targetId:Bn.number(),targetType:Bn.string().nullable()}),zi=e=>Wi.extend({value:Bn.string().nullable(),_src:e.optional(),_target:e.optional().or(Bn.undefined())}),$i=e=>zi(null!=e?e:oi.or(ki)).extend({bookmarkUrl:Bn.string().optional().nullable(),bookmarkOrder:Bn.number().optional(),bookmarkLabel:Bn.string().optional(),bookmarkMeta:Bn.string().optional().nullable(),url:Bn.string().optional().nullable(),type:Bn.literal("bookmarkLink")}),Vi=e=>Bn.object({id:Bn.number(),mainType:Bn.string(),type:Bn.string(),uri:Bn.string(),_values:Bn.object({dateCreation:Bn.string(),dateModified:Bn.string()}).optional(),srcId:Bn.number(),srcType:Bn.string(),targetId:Bn.number(),targetType:Bn.string().nullable(),value:Bn.string().nullable(),_cssColor:Bn.string(),_cssClass:Bn.string(),_src:(null!=e?e:oi).optional(),_target:(null!=e?e:oi).optional(),bookmarkUrl:Bn.string().optional().nullable(),bookmarkOrder:Bn.string().optional(),bookmarkLabel:Bn.string().optional(),bookmarkMeta:Bn.string().optional().nullable(),url:Bn.string().optional().nullable()});var Ji;!function(e){e.RAW_LIST="raw-list",e.LIST="list"}(Ji||(Ji={}));const Gi=Bn.object({targetId:Bn.number(),targetType:Bn.string(),format:Bn.nativeEnum(Ji).transform((e=>`${e}`)).optional()}),Ki=Bn.object({[Ji.RAW_LIST]:$i(),[Ji.LIST]:Vi()}),Hi=Bn.object({bookmarkLabel:$i(oi).shape.bookmarkLabel,bookmarkMeta:$i(oi).shape.bookmarkMeta,bookmarkUrl:$i(oi).shape.bookmarkUrl}),Qi=Bn.object({countActiveUsersWithoutLicense:Bn.number().optional(),countLicensesAssigned:Bn.number(),countLicensesNotAssigned:Bn.number()}),Yi=Bn.object({name:Bn.string(),operator:Bn.string(),value:Bn.number()}),Xi=Bn.record(Bn.number()),er=Bn.object({id:Bn.number(),kind:Bn.string(),dateCreation:Bn.string(),idFeature:Bn.number(),uri:Bn.string(),contentId:Bn.number(),contentType:Bn.string(),status:Bn.number()}),tr=Bn.object({id:Bn.number(),kind:Bn.string(),dateCreation:Bn.string(),idFeature:Bn.number(),uri:Bn.string(),contentId:Bn.number(),contentType:Bn.string(),status:Bn.number()}),nr=wi.extend({_extend:Bn.object({licenses:Bn.array(tr)})}),ir=ni.extend({data:nr.array()}),rr=Bn.object({uri:Bn.string(),title:Bn.string(),price:Bn.number(),image:Bn.string(),license:Bn.boolean()}),ar=Bn.object({url:Bn.string()}),sr=Bn.object({sref:Bn.string().optional(),href:Bn.string().optional(),idDiv:Bn.string(),label:Bn.string(),icon:Bn.string(),licenseMode:Bn.literal("classic").optional(),hook:Bn.string().optional()}),or=Bn.object({name:Bn.string(),label:Bn.string(),icon:Bn.string(),color:Bn.tuple([Bn.string(),Bn.string(),Bn.string()]),state:Bn.string().optional(),access:Bn.boolean(),url:Bn.string().optional(),tabs:Bn.array(sr).optional()}),lr=Bn.array(or),cr=Bn.union([Bn.literal("Celebration"),Bn.literal("Olympics"),Bn.literal("Maythefourth"),Bn.literal("Spring"),Bn.literal("MusicFestival"),Bn.literal("EasterEggs"),Bn.literal("CustomAnimation")]),ur=Bn.object({name:cr,activeClickEffect:Bn.number(),activeDecor:Bn.number(),auto:Bn.boolean(),audience:Bn.array(Bn.string())}),dr=Bn.object({date:Bn.string(),number:Bn.number()}),pr=Bn.object({id:Bn.number(),mainType:Bn.string(),type:Bn.string(),uri:Bn.string(),dateCreation:Bn.string().nullable(),dateModified:Bn.string().nullable(),animationName:Bn.string(),dateStart:Bn.string(),dateEnd:Bn.string().nullable(),auto:Bn.boolean(),stats:Bn.array(dr),animAudience:Bn.array(Bn.string())}),mr=Bn.object({attrName:Bn.string(),token:Bn.string(),file:Bn.instanceof(File).nullable().optional(),url:Bn.string().optional()}),gr=Bn.object({width:Bn.number(),height:Bn.number()}),hr=Bn.object({x:Bn.number(),y:Bn.number(),w:Bn.number(),h:Bn.number(),rotation:Bn.number(),killSize:Bn.boolean().optional()}),fr=oi.extend({dateCreation:Bn.string(),dateModified:Bn.string().nullable(),mimetype:Bn.string(),path:Bn.string().optional(),size:Bn.number()}),yr=e=>fr.parse(e),br=fr.extend({_extend:Bn.object({crop:hr})}),vr=Bn.object({name:Bn.string(),filename:Bn.string(),dateModified:Bn.string(),mimetype:Bn.string()}),kr=Bn.object({idUser:Bn.string(),dateDownload:Bn.string(),Pseudo:Bn.string(),type:Bn.string()});var wr;Bn.object({id:Bn.number(),token:Bn.string().optional(),attrName:Bn.string()}),function(e){e.ArticleButton="widget-article-button",e.ArticleGallery="widget-article-gallery",e.ArticleTitle="widget-article-title",e.ArticleText="widget-article-text",e.ArticleImage="widget-article-image",e.ArticleAttachment="widget-article-attachment",e.Api="widget-api",e.ArticleSlider="widget-article-slider",e.CheckList="widget-check-list",e.DatasourceTable="widget-datasource-table",e.ExcelDatasourceTable="widget-excel-datasource-table"}(wr||(wr={}));const _r=Bn.nativeEnum(wr),Sr=Bn.object({title:Bn.string(),widget:Bn.object({name:_r,uniqid:Bn.string(),content:Bn.unknown()})}).catchall(Bn.unknown()),jr=Sr,xr=ii({css:Bn.record(Bn.string(),Bn.string()).optional(),widgets:jr.array().optional()}),Cr=Bn.enum(["left","right","center","justify"]),Tr=Bn.enum(["top","bottom","center","left","right"]),Ar=Bn.enum(["auto","contain","cover"]),Or=Bn.enum(["sm","md","lg"]),Lr=Bn.enum(["contained","outlined"]),Fr=Bn.enum(["link","anchor","popup"]),Rr=Bn.object({x:Bn.number(),y:Bn.number()}),Er=Bn.object({layers:Bn.string().array().optional()}),Pr=Bn.enum(["default","vertical"]),Ir=(e,t)=>t.safeParse(e).success,Mr=Bn.object({url:Bn.string(),target:Bn.string()}),Nr=Bn.object({uniqid:Bn.string()}),Zr=Bn.object({title:Bn.string(),widgets:jr.array()}),Dr=ii({text:Bn.string().optional(),color:Bn.string().optional(),backgroundColor:Bn.string().optional(),borderRadius:Bn.string().optional(),fontSize:Bn.string().optional(),buttonSize:Or.optional(),variant:Lr.optional(),url:Bn.string().optional(),target:Bn.string().optional()}),Ur=Dr.extend({openingType:Fr.optional(),openingTypeLink:Mr.optional(),openingTypeAnchor:Nr.optional(),openingTypePopup:Zr.optional()}),qr=ii({name:Bn.literal(wr.ArticleButton),uniqid:Bn.string(),content:Ur}),Br=e=>Ir(e,qr),Wr=ii({gap:Bn.string().optional(),column:Bn.string().optional(),files:fr.array().optional()}),zr=ii({name:Bn.literal(wr.ArticleGallery),uniqid:Bn.string(),content:Wr}),$r=e=>Ir(e,zr),Vr=ii({text:Bn.string().optional(),textAlign:Cr.optional(),heading:Bn.string().optional(),color:Bn.string().optional(),backgroundColor:Bn.string().optional()}),Jr=ii({name:Bn.literal(wr.ArticleTitle),uniqid:Bn.string(),content:Vr}),Gr=e=>Ir(e,Jr),Kr=ii({text:Bn.string().optional(),color:Bn.string().optional(),fontSize:Bn.string().optional(),lineHeight:Bn.string().optional(),linkColor:Bn.string().optional()}),Hr=ii({name:Bn.literal(wr.ArticleText),uniqid:Bn.string(),content:Kr}),Qr=e=>Ir(e,Hr),Yr=ii({file:fr.optional(),useFilter:Bn.boolean().optional()}),Xr=ii({name:Bn.literal(wr.ArticleImage),uniqid:Bn.string(),content:Yr}),ea=e=>Ir(e,Xr),ta=ii({files:fr.array().optional(),fileDisplay:Bn.enum(["list","gallery"]).optional()}),na=ii({name:Bn.literal(wr.ArticleAttachment),uniqid:Bn.string(),content:ta}),ia=e=>Ir(e,na),ra=ii({url:Bn.string().optional(),keys:Bn.array(Bn.string()).optional(),order:Bn.string().optional(),orderBy:Bn.string().optional()}),aa=ii({name:Bn.literal(wr.Api),uniqid:Bn.string(),content:ra}),sa=e=>Ir(e,aa),oa=ii({title:Bn.string(),text:Bn.string(),titleHeading:Bn.enum(["h1","h2","h3","h4","h5","h6","p","span"]).optional(),textColor:Bn.string().optional(),opacityFilter:Bn.number().optional(),opacityColor:Bn.string().optional(),file:fr.optional()}),la=ii({slides:oa.array().optional(),maxWidth:Bn.number().optional(),loop:Bn.boolean().optional(),useDots:Bn.boolean().optional(),startAt:Bn.number().optional()}),ca=ii({name:Bn.literal(wr.ArticleSlider),uniqid:Bn.string(),content:la}),ua=e=>Ir(e,ca),da=ii({title:Bn.string(),value:Bn.boolean().optional(),links:Wn.array().optional(),id:Bn.number().optional(),user:Bn.object({id:Bn.number(),type:Bn.literal("user"),mainType:Bn.literal("user")}).optional()}),pa=ii({arr:da.array().optional()}),ma=ii({name:Bn.literal(wr.CheckList),uniqid:Bn.string(),content:pa.and(xr)}),ga=e=>Ir(e,ma),ha=Bn.enum(["date","date-time","date-time-sec","time","time-sec"]),fa=Bn.enum(["fr-FR","en-EN","filesize"]),ya=Bn.object({}),ba=Bn.object({type:Bn.literal("text")}),va=Bn.object({label:Bn.string(),value:Bn.string()}),ka=Bn.object({type:Bn.literal("select"),options:va.array()}),wa=Bn.object({type:Bn.literal("date")}),_a=Bn.union([ba,ka,wa,ya]),Sa=Bn.object({name:Bn.string().optional(),isVisible:Bn.boolean().optional(),textEllipsis:Bn.boolean().optional(),label:Bn.string().optional(),dateFormat:ha.optional(),numberFormat:fa.optional()}),ja=Sa.array(),xa=Bn.enum(["text","uri","file","select","url","transient","date","datetime","email","number","title"]),Ca=Bn.object({name:Bn.string(),label:Bn.string(),sortable:Bn.boolean().optional(),type:xa,widget:_a}),Ta=Bn.object({limit:Bn.number().optional(),tableColumnsData:Sa.array().optional(),tableHeadColor:Bn.string().optional(),tableHeadTextColor:Bn.string().optional(),tableHeadIconColor:Bn.string().optional(),tableRowColor:Bn.string().optional(),tableRowTextColor:Bn.string().optional(),tableBorderRadius:Bn.number().optional(),tableSizedColumns:Bn.boolean().optional(),tableSizedColumnsWidth:Bn.number().optional()}),Aa=Ta.extend({uri:Bn.string().optional()}),Oa=ii({name:Bn.literal(wr.DatasourceTable),uniqid:Bn.string(),content:Aa}),La=e=>Ir(e,Oa),Fa=Aa.extend({uri:Bn.string().optional()}),Ra=Bn.lazy((()=>Bn.object({name:Bn.literal(wr.ExcelDatasourceTable),uniqid:Bn.string(),content:Fa}))),Ea=e=>Ir(e,Ra),Pa=Bn.union([aa,na,qr,zr,Xr,Jr,Hr,ca,ma,Oa,Ra]),Ia=e=>Bn.object({title:Bn.string(),widget:Er.and(null!=e?e:Pa)}),Ma=e=>Ia().safeParse(e).success,Na=Bn.object({widgets:Ia().array().optional()}).and(Bn.union([ra,ta,Ur,Wr,Yr,Kr,Vr,la,pa,Aa])),Za=Bn.object({[wr.ArticleButton]:qr,[wr.ArticleGallery]:zr,[wr.ArticleTitle]:Jr,[wr.ArticleText]:Hr,[wr.ArticleImage]:Xr,[wr.ArticleAttachment]:na,[wr.Api]:aa,[wr.ArticleSlider]:ca,[wr.CheckList]:ma,[wr.DatasourceTable]:Oa,[wr.ExcelDatasourceTable]:Ra}),Da=Bn.object({[wr.ArticleButton]:Ur,[wr.ArticleGallery]:Wr,[wr.ArticleTitle]:Vr,[wr.ArticleText]:Kr,[wr.ArticleImage]:Yr,[wr.ArticleAttachment]:ta,[wr.Api]:ra,[wr.ArticleSlider]:la,[wr.CheckList]:pa,[wr.DatasourceTable]:Aa,[wr.ExcelDatasourceTable]:Fa}),Ua=Bn.object({busy:Bn.union([Bn.boolean(),Bn.undefined()]).optional(),loading:Bn.union([Bn.boolean(),Bn.undefined()]).optional(),initialized:Bn.union([Bn.boolean(),Bn.undefined()]).optional(),mounted:Bn.union([Bn.boolean(),Bn.undefined()]).optional(),hover:Bn.union([Bn.boolean(),Bn.undefined()]).optional(),empty:Bn.boolean().optional()}),qa=oi.extend({dateCreation:Bn.string(),dateModified:Bn.string()}),Ba=qa.extend({description:Bn.string().nullable().optional(),_user:ki,_right:ri,_audience:Bi.array(),image:gr.optional(),articleWidgets:Ia().array().optional()}),Wa=Ba.extend({_attachedFiles:fr.array()}),za=Wa.extend({processContext:Bn.null(),uiObjectLink:oi.array().optional()}),$a=e=>Wa.extend({idDraft:Bn.number(),form:e}),Va=Bn.object({type:Bn.string().optional(),format:ei.optional(),formatExtend:ti.optional(),query:Bn.string().optional(),limit:Bn.number().optional(),page:Bn.number().optional(),orders:Kn.optional(),filters:Hn.optional()}),Ja=Bn.object({uri:Bn.string().optional(),idArticle:Bn.number().optional(),format:ei.optional()}),Ga=Bn.object({title:Bn.string().optional(),description:Bn.string().optional().nullable(),type:Bn.string().optional(),publishTo:Bn.string().optional(),idSpot:Bn.array(Bn.string()).optional()}),Ka=Bn.object({id:Bn.number(),type:Bn.string(),dateCreation:Bn.string(),dateModified:Bn.string(),title:Bn.string(),uri:Bn.string()}),Ha=Bn.object({attachment:Bn.boolean().optional(),idArticle:Bn.number(),limits:Bn.object({max:Bn.number(),start:Bn.number()}).optional()}),Qa=Bn.object({token:Bn.string(),content:Bn.string(),idArticle:Bn.number(),sendAlert:Bn.boolean(),alertAuthor:Bn.boolean(),widgets:Ia().array().optional()}),Ya=Bn.object({token:Bn.string().optional(),description:Bn.string().optional(),idComment:Bn.number(),widgets:Ia().array().optional()}),Xa=Bn.object({idUser:Bn.string(),dateRead:Bn.string(),Pseudo:Bn.string(),type:Bn.string()}),es=Bn.union([Bn.literal("created"),Bn.literal("validated"),Bn.literal("handled")]),ts=Wa.extend({aseiClearanceTicketValidator:ki.array(),aseiClearanceTicketHandler:oi.array(),aseiClearanceTicketApplicationManagers:oi.array(),aseiClearanceTicketInstitution:oi.array(),processContext:Bn.null(),aseiClearanceTicketNatureOfDemand:Bn.string(),aseiClearanceTicketInternetAccess:Bn.string(),aseiClearanceTicketInternetAccessSpecify:Bn.string(),aseiClearanceTicketMicrosoftTeams:Bn.string().nullable(),aseiClearanceTicketVariousNetworks:Bn.string().nullable(),aseiClearanceTicketFreeText:Bn.string(),aseiClearanceTicketOfficeAccess:Bn.string().nullable(),aseiClearanceTicketSharedDirectoriesSpecify:Bn.string(),aseiClearanceTicketBlueKanGo:Bn.string().nullable(),aseiClearanceTicketAccounting:Bn.string(),aseiClearanceTicketAccountingBudget:Bn.string(),aseiClearanceTicketTransfers:Bn.string().nullable(),aseiClearanceTicketBilling:Bn.string(),aseiClearanceTicketPayroll:Bn.string(),aseiClearanceTicketPayrollBudget:Bn.string(),aseiClearanceTicketAccommodationCosts:Bn.string(),aseiClearanceTicketCommercialManagement:Bn.string(),aseiClearanceTicketInventoryManagement:Bn.string(),aseiClearanceTicketTimeManagement:Bn.string(),aseiClearanceTicketBdes:Bn.string(),aseiClearanceTicketMandateStart:Bn.string().nullable(),aseiClearanceTicketMandateEnd:Bn.string().nullable(),aseiClearanceTicketIndicatorsPlatform:Bn.string().nullable(),aseiClearanceTicketBudgetLetters:Bn.string(),aseiClearanceTicketComputerisedFile:Bn.string().nullable(),aseiClearanceTicketRecruiterAccess:Bn.string().nullable(),aseiClearanceTicketTypeOfWorkContractFrom:Bn.null(),aseiClearanceTicketTypeOfWorkContractTo:Bn.null(),aseiClearanceTicketLastName:Bn.string(),aseiClearanceTicketFirstName:Bn.string(),aseiClearanceTicketUser:ki.array(),aseiClearanceTicketTypeOfWorkContract:Bn.string(),aseiClearanceTicketTypeOfWorkContractSpecify:Bn.string(),aseiClearanceTicketPosition:Bn.string(),aseiClearanceTicketStatus:es}),ns=qa.extend({_right:ri,_user:ki,aseiInstitutionValidator:oi.array(),processContext:Bn.null()}),is=Bn.object({dsi:Bn.string(),gestionnaireApplicatif:Bn.string(),createurDemande:Bn.string()}),rs=Bn.object({accessWriter:Bn.boolean(),accessApp:Bn.boolean()}),as=Bn.object({description:Bn.string(),right:Bn.object({manage:Bn.boolean()}),daysOff:Bn.array(Bn.string()).optional(),weekEnd:Bn.union([Bn.literal("0"),Bn.literal("1")]),bookingOpeningTime:Bn.string(),bookingClosingTime:Bn.string(),lastBookingSchedule:Bn.string()}),ss=Ba.extend({_isColorDark:Bn.boolean().nullable(),assetPlannerBackgroundColor:Bn.string().nullable()}),os=ss.extend({assetBanner:Bn.record(Bn.object({id:Bn.string(),name:Bn.string(),size:Bn.string()}))}),ls=Ba.extend({dateStart:Bn.string(),dateEnd:Bn.string(),reservationCancelled:Bn.boolean(),_asset:ss}),cs=Bn.object({id:Bn.string(),uri:Bn.string(),shortUri:Bn.string(),title:Bn.string(),name:Bn.string(),mainType:Bn.string(),type:Bn.string(),label:Bn.string(),cssClass:Bn.string(),cssColor:Bn.string(),class:Bn.string()}),us=cs.extend({title:Bn.string()}),ds=us.extend({Pseudo:Bn.string()}),ps=us.extend({idspot:Bn.string()}),ms=Bn.union([us,ds,ps]),gs=oi.extend({isTechnical:Bn.number(),status:Bn.number(),image:Bn.string(),isMember:Bn.boolean(),stats:Bn.object({moderators:Bn.number(),members:Bn.string()}),_members:Bn.array(oi)}),hs=Bn.object({token:Bn.string(),fullname:Bn.string()}),fs=Bn.object({redirectUrl:Bn.string()}),ys=Bn.object({token:Bn.string()}),bs=Bn.object({dateStart:Bn.string(),title:Bn.string()}),vs=qa.extend({type:Bn.literal("businessContactCard")}),ks=Ba.and(vs.and(Bn.object({mail:Bn.string().nullable(),pseudo:Bn.string().nullable(),firstName:Bn.string().nullable(),lastName:Bn.string().nullable(),phoneNumber:Bn.string().nullable(),company:Bn.string().nullable(),function:Bn.string().nullable(),champ1:Bn.string().nullable().optional(),champ2:Bn.string().nullable().optional(),champ3:Bn.string().nullable().optional(),champ4:Bn.string().nullable().optional(),champ5:Bn.string().nullable().optional()}))),ws=Bn.literal("read"),_s=Bn.object({type:Bn.string(),class:Bn.string(),isActive:Bn.boolean(),label:Bn.string(),cssClass:Bn.string(),cssColor:Bn.string(),struct:Bn.object({action:Bn.string(),do:Bn.string(),type:Bn.string(),targetId:Bn.number(),targetType:Bn.string()}),stats:Bn.object({total:Bn.number()})}),Ss=si.omit({dateModified:!0}).extend({dateCreation:Bn.string(),dateModified:Bn.string().nullable(),description:Bn.string().nullable(),_user:ki}),js=Ss.extend({_right:ri,_attachedFiles:Bn.array(fr).optional(),_actions:Bn.record(_s).optional(),_widgets:Bn.array(Ia()).optional()}),xs=Ui.extend({dateStart:Bn.string(),animatedMeetingContent:Bn.record(Bn.unknown()),_extend:Bn.object({status:Bn.string(),statusValue:Bn.literal(1).or(Bn.literal(2)).or(Bn.literal(3)),date:Bn.string()}),_audience:Bi.array(),_audienceLeft:Bn.number()}),Cs=Bn.union([Bn.literal("groups"),Bn.literal("sites"),Bn.literal("onedrive"),Bn.literal("group"),Bn.literal("documents")]),Ts=Bn.object({title:Bn.string(),id:Bn.string(),type:Bn.string()}),As=Ts.omit({id:!0}).extend({name:Cs.optional()}),Os=Ts.and(Bn.object({})),Ls=Ts.extend({visibility:Bn.union([Bn.literal("public"),Bn.literal("private")]).optional()}),Fs=Ts.extend({mimetype:Bn.string().optional(),webUrl:Bn.string().optional()}),Rs=Ls.and(Fs),Es=Bn.object({id:Bn.string(),title:Bn.string(),mail:Bn.string(),default:Bn.boolean()}),Ps=Bn.object({title:Bn.string(),id:Bn.string(),type:Bn.string(),mimetype:Bn.string().optional(),webUrl:Bn.string().optional()}),Is=Bn.object({msTenant:Bn.union([Cs,Bn.undefined()]),msId:Bn.union([Bn.string(),Bn.undefined()]),idFolder:Bn.union([Bn.string(),Bn.undefined()]),page:Bn.number(),limit:Bn.number(),query:Bn.string().optional().nullable()}),Ms=Ba.extend({faqColor:Bn.string().optional(),image:gr.optional(),type:Bn.literal("faq")}),Ns=Wa.and(Ms).and(Bn.object({_audience:ms.array(),tags:us.array().optional(),isWeb:Bn.boolean(),faqContent:Bn.array(Bn.object({title:Bn.string(),id:Bn.string().optional(),items:Bn.array(Bn.string())})).optional()})),Zs=e=>e.and(Bn.object({_extend:Bn.object({itemsCount:Bn.number()})})),Ds=Ba.extend({type:Bn.literal("faqItem"),hierarchy:Bn.object({category:Bn.string().optional(),theme:Bn.string().optional()})}),Us=Ds.omit({hierarchy:!0}).extend({faqResponse:Bn.string(),tags:us.array().optional(),uriCategory:qa.array(),themeId:Bn.string(),_nbAttachedFiles:Bn.number().optional(),_attachedFiles:fr.array(),uiObjectLink:Bn.unknown()}),qs=Qn(Ga.omit({idSpot:!0})).and(Bn.object({image:gr.nullable().optional(),tags:Bn.string().optional(),faqColor:Bn.string().optional(),isWeb:Bn.boolean().optional(),type:Bn.literal("faq")})),Bs=qs.and(Bn.object({uri:Bn.string(),format:ei.optional()})),Ws=Bn.object({title:Bn.string(),id:Bn.string()}),zs=Bn.object({_web:Bn.union([Bn.literal("0"),Bn.literal("1"),Bn.literal("")]).optional(),appImageText:Bn.string().optional(),appImage:Bn.union([Bn.string(),Bn.object({image:Bn.object({id:Bn.string(),type:Bn.string()})})]).optional(),_displayComment:Bn.union([Bn.literal("0"),Bn.literal("1"),Bn.literal("")]).optional()}),$s=Bn.object({createCategory:Bn.boolean()}),Vs=Bn.object({idCategory:Bn.number(),title:Bn.string()}),Js=Bn.object({idCategory:Bn.number(),indexTheme:Bn.number(),deleteEntries:Bn.boolean().optional()}),Gs=Bn.object({idCategory:Bn.number(),indexTheme:Bn.number(),title:Bn.string()}),Ks=Qn(Ga).and(Bn.object({tags:Bn.string().optional(),faqResponse:Bn.string().optional(),type:Bn.literal("faqItem")})),Hs=Bn.object({idEntry:Bn.number(),idCategory:Bn.number(),theme:Bn.number()}),Qs=Ks.and(Bn.object({uri:Bn.string()})),Ys=Bn.object({entryURI:Bn.string(),sourceURI:Bn.string().optional(),targetURI:Bn.string(),theme:Bn.number()}),Xs=Bn.object({sourceUri:Bn.string(),targetUri:Bn.string(),themeIndex:Bn.number()}),eo=e=>Bn.object({isActive:Bn.boolean()}).and(e),to=Bn.enum(["drive_microsoft_graph","drive_dropbox","drive_google"]),no=eo(Bn.object({drives:Bn.record(to,Bn.boolean())})),io=eo(Bn.object({label:Bn.string()})),ro=eo(Bn.object({orderBy:Bn.string(),order:Bn.enum(["ASC","DESC"])})),ao=eo(Bn.object({sendAlert:Bn.boolean()})),so=eo(Bn.object({})),oo=eo(Bn.object({create:Bn.boolean(),autorize:Bn.array(Bn.enum(["message","comment","board","article"]).optional())})),lo=eo(Bn.object({label:Bn.string(),hasLicense:Bn.boolean()})),co=Bn.object({MagicPadHook:lo}).partial(),uo=Bn.object({DriveHook:no,calendarHook:io,FileBankHook:ro,spotRssFeed:so,WidgetHook:oo,AdminAdvancedHook:ao}).partial().and(co),po=e=>uo.and(Bn.record(Bn.string(),Bn.any())).parse(e),mo=Bn.union([Bn.literal("summarize"),Bn.literal("develop"),Bn.literal("reformulate"),Bn.literal("tldr"),Bn.literal("en"),Bn.literal("es"),Bn.literal("formal"),Bn.literal("funny")]),go=Bn.object({text:Bn.string()}),ho=Bn.object({kind:Bn.string(),page:Bn.number(),limit:Bn.number(),filters:Gn.array().optional(),orders:zn.array().optional()}),fo=e=>Bn.object({license:Bn.union([Bn.literal("1"),Bn.literal("0")]),user:e}),yo=qa.extend({attachment:fr,description:Bn.string()}),bo=Ba.extend({description:Bn.string(),attachment:fr,_audience:ms.array()}),vo=Bn.object({format:ei,page:Bn.number().optional(),limit:Bn.number().optional(),nolimit:Bn.boolean().optional()}),ko=Bn.object({id:Bn.number(),idFolder:Bn.number().optional(),fileName:Bn.string(),nbViews:Bn.number(),nbDistinctViews:Bn.number(),nbDownloads:Bn.number()}),wo=Bn.object({id:Bn.number(),folderName:Bn.string(),nb:Bn.number(),nbDistinct:Bn.number()}),_o=Bn.object({nbFolders:Bn.number(),nbFiles:Bn.number()}),So=Bn.object({uriFile:Bn.string(),uriFolder:Bn.string()}),jo=Ba.extend({place:Bn.string(),address:Bn.string(),dateStart:Bn.string(),dateEnd:Bn.string(),noGestion:Bn.boolean()}),xo=Wa.and(jo).and(Bn.object({allDay:Bn.null(),useQrcode:Bn.null(),textColor:Bn.string(),bgColor:Bn.string(),socialEventUseCeiling:Bn.null(),socialEventCeiling:Bn.null(),hideFromCalendar:Bn.null(),urlGestion:Bn.string().optional().nullable()})),Co=jo.extend({}),To=Wa.and(Co).and(Bn.object({allDay:Bn.null(),agenda:Bn.string(),useQrcode:Bn.null(),textColor:Bn.string(),bgColor:Bn.string(),report:Bn.string(),reportFile:Bn.array(Bn.never()),urlGestion:Bn.string().nullable().optional()})),Ao=Bn.object({uri:Bn.string(),title:Bn.string(),type:Bn.string(),mainType:Bn.string()}),Oo=Ba.extend({anonymousResponse:Bn.null(),multipleResponse:Bn.number(),publicResults:Bn.null(),pollProgression:Bn.object({colors:Bn.record(Bn.string()),maxRespondentsValue:Bn.number(),countRespondentsValue:Bn.number()}),pollResponseShowProgression:Bn.number(),dateEnd:Bn.string(),status:Bn.object({name:Bn.string(),value:Bn.number()})}),Lo=Wa.and(Oo).and(Bn.object({pollContent:Bn.null(),pollLinks:Bn.null(),pollForceClose:Bn.null(),pollResponseUserVisibility:Bn.null(),pollResponseAuthorVisibility:Bn.null(),pollResponseShowRespondent:Bn.null(),pollBanner:Bn.tuple([]),pollMessage:Bn.string()})),Fo=Ba.extend({quizzDescription:Bn.string().nullable(),quizzClosingDate:Bn.string().nullable(),dateStart:Bn.string().nullable(),dateEnd:Bn.string().nullable()}),Ro=Wa.and(Fo).and(Bn.object({quizzInvitation:Bn.null(),quizzFormSpec:Bn.string(),quizzRandom:Bn.null(),quizzHideResponses:Bn.null(),quizzStatus:Bn.null(),quizzPublicationDate:Bn.string().nullable()})),Eo=Bn.object({count:Bn.number(),id:Bn.string()}),Po=Bn.union([Bn.literal("AND"),Bn.literal("OR")]),Io=Bn.object({facetType:Bn.string(),facetOptions:Bn.union([Bn.record(Bn.union([Bn.object({}).passthrough(),Bn.number(),Bn.string()])),Bn.array(Bn.never())]),facetMode:Po.optional(),field:Bn.string(),title:Bn.string(),description:Bn.string().optional(),category:Bn.string().optional()}),Mo=Bn.object({id:Bn.string(),mainType:Bn.string(),type:Bn.string().optional(),title:Bn.string(),cssclass:Bn.string().optional(),active:Bn.boolean().optional(),count:Bn.number().optional(),typesExcluded:Bn.array(Bn.string()),facets:Io.array()}),No=Bn.object({count:Bn.number(),value:Bn.string(),title:Bn.string()}),Zo=Bn.object({name:Bn.string(),count:Bn.number(),values:No.array(),title:Bn.string()}),Do=Bn.object({field:Bn.string(),value:Bn.union([Bn.string(),Bn.array(Bn.string())]),exclude:Bn.boolean().optional(),or:Bn.boolean().optional()}),Uo=Bn.object({field:Bn.string(),order:Bn.union([Bn.literal("desc"),Bn.literal("asc")])}),qo=Bn.object({facetLimit:Bn.number(),skipEmptyFacets:Bn.boolean()}),Bo=Bn.object({home:Bn.object({mode:Bn.union([Bn.literal("result"),Bn.literal("category")]),facets:Io.array()}),categories:Mo.array(),viewcard:Bn.record(Bn.array(Bn.object({name:Bn.string(),title:Bn.string()}))),facetMode:Bn.boolean()}),Wo=Bn.object({name:Bn.string(),title:Bn.string(),icon:Bn.string(),_url:Bn.string()}),zo=Bn.object({id:Bn.number().optional(),title:Bn.string(),picture:Bn.string(),uri:Bn.string(),type:Bn.string().optional(),icon:Bn.string().optional(),_cssColor:Bn.string().optional(),_url:Bn.string().optional(),idArticle:Bn.number().optional(),_user:Bn.object({title:Bn.string()}).optional(),_values:Bn.object({dateModified:Bn.string()}).optional()}),$o=Bn.object({keywords:Bn.string().optional(),category:Bn.string().optional(),facetCategories:Bn.boolean().optional(),filters:Do.array().optional(),facets:Io.array().optional(),page:Bn.number().optional(),limit:Bn.number().optional(),sort:Uo.optional(),options:qo.optional(),format:ei.optional()}),Vo=e=>Bn.object({start:Bn.number(),count:Bn.number(),results:Bn.array(null!=e?e:oi),facets:Zo.array(),categories:Eo.array()}),Jo=Bn.object({keywords:Bn.string()}),Go=Bn.union([Wo,zo]),Ko=Bn.object({title:Bn.string(),id:Bn.string(),showAll:Bn.boolean().optional(),results:Go.array()}),Ho=Bn.union([Bn.literal("link"),Bn.literal("invitation")]),Qo=Bn.object({id:Bn.number(),title:Bn.string(),uri:Bn.string(),idUser:Bn.number(),_right:ri}),Yo=Bn.union([ki,Zi]),Xo=Bn.object({audience:Bn.array(Yo),read:Bn.array(Bn.string()),write:Bn.array(Bn.string())}),el=Bn.object({id:Bn.number(),type:Bn.string(),uri:Bn.string(),title:Bn.string(),generalAccessRule:Ho,generalAccessHash:Bn.string().nullable(),idUser:Bn.number(),_audience:Bn.array(Yo),_right:ri}),tl=Bn.object({targetId:Bn.number(),targetType:Bn.string(),type:Bn.string()}),nl=Bn.object({targetId:Bn.number(),targetType:Bn.string(),type:Bn.string()}),il=Ba.extend({supportStatus:Bn.union([Bn.number(),Bn.string()]).nullable(),supportType:Bn.union([Bn.number(),Bn.string()]).nullable(),supportOwner:Bn.array(ki)}),rl=Wa.and(il).and(Bn.object({})),al=Ba.extend({dates:Bn.array(Bn.string()),dateStart:Bn.string().nullable(),dateEnd:Bn.string()}),sl=Wa.and(al).and(Bn.object({surveyObjectLink:Bn.array(qa)})),ol=Bn.object({cache_suffix:Bn.string(),toolbar:Bn.string(),language:Bn.string(),content_css:Bn.string(),quickbars_selection_toolbar:Bn.string()}),ll=ol.extend({plugins:Bn.array(Bn.string()),text_patterns:Bn.array(Bn.object({start:Bn.string(),end:Bn.string().optional(),format:Bn.string().optional(),cmd:Bn.string().optional()})),height:Bn.number(),menubar:Bn.boolean(),branding:Bn.boolean(),skin:Bn.string(),convert_urls:Bn.boolean(),invalid_elements:Bn.string(),extended_valid_elements:Bn.string(),custom_elements:Bn.string(),inline_boundaries_selector:Bn.string(),toolbar_mode:Bn.union([Bn.literal("floating"),Bn.literal("sliding"),Bn.literal("scrolling"),Bn.literal("wrap")]),promotion:Bn.boolean(),font_size_formats:Bn.string(),contextmenu:Bn.union([Bn.string(),Bn.literal(!1)]),paste_data_images:Bn.boolean(),browser_spellcheck:Bn.boolean(),quickbars_insert_toolbar:Bn.boolean()}),cl="accept",ul="deny",dl=qa.extend({articleWidgets:Ia().array(),articleWidgetDisplayMode:Pr.nullable().or(Bn.undefined())}),pl=Bn.object({uniqid:Bn.string(),title:Bn.string(),locked:Bn.boolean(),visible:Bn.boolean(),widgets:Ia().array(),position:Rr.optional()}),ml=Bn.enum(["edit","view","preview"]),gl=Bn.object({width:Bn.number().or(Bn.undefined()).optional(),inplace:Bn.boolean(),isComponentVisible:Bn.boolean().optional(),mode:ml,onClick:Bn.function().returns(Bn.void()).optional(),onChange:Bn.function().args(Na,Bn.boolean()).returns(Bn.void()),onStateChange:Bn.function().args(Ua).returns(Bn.void())}),hl=Bn.object({text:Bn.string(),value:Bn.boolean().optional(),links:Wn.array().optional(),uri:Bn.string().optional(),mimetype:Bn.string().optional(),id:Bn.number().optional(),user:ki.optional()}),fl=Bn.object({arr:hl.array().optional()}),yl=Bn.object({name:Bn.literal("widget-check-list"),uniqid:Bn.string(),content:fl,title:Bn.string()}),bl=Bn.object({label:Bn.string(),description:Bn.string(),name:_r,img:Bn.string(),available:Bn.boolean(),panel:Bn.object({useWrapper:Bn.boolean(),useEditor:Bn.boolean(),useWidgets:Bn.boolean()})}),vl=Bn.object({title:Bn.string().optional(),view:Bn.any().optional()}),kl=Bn.object({token:Bn.string().or(Bn.undefined()).optional(),ids:Bn.record(Bn.string(),Ia()),layers:Bn.record(Bn.string(),pl),states:Bn.record(Bn.string(),Ua),modal:vl.or(Bn.undefined()),editableMap:Bn.record(Bn.string(),Bn.object({index:Bn.number(),uniqid:Bn.string()})),currentEditableIndex:Bn.number(),currentEditableWidgetId:Bn.string().or(Bn.undefined()),widgetObject:Bn.record(Bn.string(),oi.partial())}),wl=Bn.object({widgets:kl}),_l=dl.extend({articleWidgetsCover:Bn.number().or(Bn.undefined()),_audience:ms.array()}),Sl=new Z(new Ne),jl=new Pe(Sl);window.JamespotUserApi=jl;const xl=jl,Cl=Pe;module.exports=t})();
|
|
2
2
|
//# sourceMappingURL=jamespot-user-api.js.map
|