jamespot-user-api 1.0.200 → 1.0.201

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.
Files changed (64) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +14 -14
  3. package/documentation/classes/AdminStoreApi.html +1 -1
  4. package/documentation/classes/AdminUtilsApi.html +1 -1
  5. package/documentation/classes/JApplicationApi.html +8 -8
  6. package/documentation/classes/JArticleApi.html +1 -1
  7. package/documentation/classes/JAssetReservation.html +1 -1
  8. package/documentation/classes/JAudienceApi.html +1 -1
  9. package/documentation/classes/JBaseApi.html +1 -1
  10. package/documentation/classes/JBbbApi.html +1 -1
  11. package/documentation/classes/JBookmarkApi.html +1 -1
  12. package/documentation/classes/JBusinessNetworkingApi.html +1 -1
  13. package/documentation/classes/JCommunityApi.html +1 -1
  14. package/documentation/classes/JDatasourceApi.html +1 -1
  15. package/documentation/classes/JDiapazoneApi.html +1 -1
  16. package/documentation/classes/JFaqApi.html +1 -1
  17. package/documentation/classes/JFileApi.html +5 -5
  18. package/documentation/classes/JFilebankApi.html +1 -1
  19. package/documentation/classes/JGlobalApi.html +1 -1
  20. package/documentation/classes/JGroupApi.html +12 -12
  21. package/documentation/classes/JIAApi.html +1 -1
  22. package/documentation/classes/JLandApi.html +1 -1
  23. package/documentation/classes/JMessengerApi.html +1 -1
  24. package/documentation/classes/JObjectApi.html +1 -1
  25. package/documentation/classes/JSearchApi.html +6 -6
  26. package/documentation/classes/JShareApi.html +1 -1
  27. package/documentation/classes/JSocialActionApi.html +1 -1
  28. package/documentation/classes/JTaxonomyApi.html +2 -2
  29. package/documentation/classes/JUserApi.html +7 -7
  30. package/documentation/classes/JWedocApi.html +1 -1
  31. package/documentation/classes/JWidgetApi.html +1 -1
  32. package/documentation/classes/JamespotUserApi.html +1 -1
  33. package/documentation/classes/Network.html +1 -1
  34. package/documentation/classes/TVDisplayApi.html +1 -1
  35. package/documentation/classes/WindowBrowser.html +1 -1
  36. package/documentation/enums/BookmarkType.html +1 -1
  37. package/documentation/enums/Format.html +1 -1
  38. package/documentation/enums/GroupModerateStatus.html +1 -1
  39. package/documentation/enums/StudioApplicationStatus.html +1 -1
  40. package/documentation/enums/WidgetsName.html +1 -1
  41. package/documentation/index.html +1 -1
  42. package/documentation/interfaces/AccessRightObject.html +1 -1
  43. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  44. package/documentation/interfaces/ApiWrapper.html +1 -1
  45. package/documentation/interfaces/BaseMessage.html +1 -1
  46. package/documentation/interfaces/FileBankProps.html +1 -1
  47. package/documentation/interfaces/FolderProps.html +1 -1
  48. package/documentation/interfaces/ListFilterSpec.html +1 -1
  49. package/documentation/interfaces/OF.html +1 -1
  50. package/documentation/interfaces/PagingResults.html +1 -1
  51. package/documentation/interfaces/RootFolderProps.html +1 -1
  52. package/documentation/interfaces/SpotProps.html +1 -1
  53. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  54. package/documentation/interfaces/WidgetType.html +1 -1
  55. package/documentation/interfaces/WindowInterface.html +1 -1
  56. package/documentation/modules.html +11 -11
  57. package/lib/jamespot-user-api.js +1 -1
  58. package/lib/jamespot-user-api.js.map +1 -1
  59. package/lib/src/types/widgets/default.d.ts +120 -132
  60. package/lib/src/types/widgets/legacy.d.ts +3 -0
  61. package/lib/src/types/widgets/widgetPresence.d.ts +12 -12
  62. package/lib/src/types/widgets/widgetQuickSurvey.d.ts +40 -45
  63. package/lib/src/types/widgets.d.ts +51 -55
  64. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var e={d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},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:()=>Cc,ACCESS_REQUEST_DENY:()=>Tc,AdminLicenseApi:()=>r,AdminStoreApi:()=>a,AdminUtilsApi:()=>s,BookmarkType:()=>ss,DateFormatSchema:()=>Tr,Format:()=>Ti,GroupModerateStatus:()=>fa,JApplicationApi:()=>o,JArticleApi:()=>cu,JAssetReservation:()=>du,JAudienceApi:()=>pu,JBaseApi:()=>i,JBbbApi:()=>mu,JBookmarkApi:()=>gu,JBusinessNetworkingApi:()=>hu,JCommunityApi:()=>fu,JDatasourceApi:()=>bu,JDiapazoneApi:()=>yu,JFaqApi:()=>ku,JFileApi:()=>wu,JFilebankApi:()=>_u,JGlobalApi:()=>Su,JGroupApi:()=>ju,JIAApi:()=>Bu,JLandApi:()=>Au,JLandMapCreationSchema:()=>ol,JMessengerApi:()=>Ou,JObjectApi:()=>qu,JSearchApi:()=>Lu,JShareApi:()=>Mu,JSocialActionApi:()=>Wu,JTaxonomyApi:()=>Fu,JUserApi:()=>Eu,JWedocApi:()=>Pu,JWidgetApi:()=>$u,JamespotUserApi:()=>Ju,JamespotUserApiInstance:()=>Hu,Network:()=>di,NumberFormatSchema:()=>Ar,StudioApplicationStatus:()=>n,TVDisplayApi:()=>Iu,UserLevel:()=>vn,WidgetPresenceResponseUserListSchema:()=>Yr,WidgetQuickSurveyContentArrSchema:()=>Xr,WidgetQuickSurveyResponseSchema:()=>na,WidgetQuickSurveyResponseUserListSchema:()=>ra,WidgetsName:()=>zn,WindowBrowser:()=>Qu,accessRequestStatusValuesSchema:()=>Ac,actionVerbSchema:()=>Gs,addCommentParamsSchema:()=>Qa,addFaqEntrySchema:()=>Mo,addRemoveActionParamsSchema:()=>Yl,adminAppSchema:()=>ws,adminAppTabSchema:()=>vs,adminAppsSchema:()=>ks,adminLicenseStatsSchema:()=>us,adminLicenseUserSchema:()=>fs,adminLicensesAssignedSchema:()=>ms,adminLicensesNotAssignedSchema:()=>ps,animationConfigurationTypeSchema:()=>Ss,animationStatsRowSchema:()=>js,animationStatsSchema:()=>xs,animationVariantSchema:()=>_s,api:()=>Xu,articleCreationSchema:()=>za,articleDisplayModeSchema:()=>ir,articleGetConfigSchema:()=>Va,articleListConfigSchema:()=>$a,aseiGroupsSchema:()=>Os,aseiInstitutionSchema:()=>As,aseiRightsSchema:()=>Ls,aseiTicketSchema:()=>Ts,aseiTicketStatusSchema:()=>Cs,assetReservationConfigurationSchema:()=>Rs,audienceAutocompleteSchema:()=>Zs,audienceSchema:()=>Da,baseArticleSchema:()=>Ga,baseAutocompleteSchema:()=>Is,baseEntitySchema:()=>Xs,bookableAssetListSchema:()=>Fs,bookableAssetViewSchema:()=>Es,bookmarkCustomSchema:()=>cs,bookmarkLinkSchema:()=>os,bookmarkTypesSchema:()=>ls,businessContactSchema:()=>En,categorySchema:()=>Ta,checkProperties:()=>ci,combineFormat:()=>bi,combinedWidgetContentSchema:()=>oa,combinedWidgetTypeSchema:()=>aa,communitySchema:()=>qs,createFaqCategorySchema:()=>To,createFaqEntrySchema:()=>Io,createFaqThemeSchema:()=>Fo,createGroupSchema:()=>da,cssBackgroundPositionSchema:()=>Kn,cssBackgroundSizeSchema:()=>Hn,cssTextAlignTypeSchema:()=>Qn,deepEqual:()=>hi,default:()=>Yu,deleteFaqThemeSchema:()=>Eo,documentEntitySchema:()=>no,driveAccountSchema:()=>oo,driveGetAccountParamsSchema:()=>ho,driveGetAccountSchema:()=>fo,driveGetDocumentParamsSchema:()=>mo,driveGetGroupsParamsSchema:()=>ko,driveGetTenantsParamsSchema:()=>yo,driveItemTypeSchema:()=>lo,driveLogoutParamsSchema:()=>go,driveSetDefaultAccountParamsSchema:()=>bo,driveTmpFileSchema:()=>po,dropboxDocumentEntitySchema:()=>ao,dropboxDocumentParamsSchema:()=>uo,dropboxGetDocumentsParamsSchema:()=>wo,editFaqCategorySchema:()=>Ao,editFaqEntrySchema:()=>Do,editFaqThemeSchema:()=>Po,ensureIsViewEvent:()=>ts,ensureTVGetConfigureDynamicChannelResponse:()=>yc,ensureTVGetConfigureSlideshowChannelResponse:()=>wc,ensureWidgetArticleAttachmentType:()=>Yc,ensureWidgetArticleButtonType:()=>Xc,ensureWidgetArticleGalleryType:()=>eu,ensureWidgetArticleImageType:()=>tu,ensureWidgetArticleSliderType:()=>iu,ensureWidgetArticleTextType:()=>nu,ensureWidgetArticleTitleType:()=>ru,ensureWidgetCheckListType:()=>au,ensureWidgetContent:()=>rr,ensureWidgetDatasourceTableType:()=>su,ensureWidgetDefinitionProps:()=>Dc,ensureWidgetExcelDatasourceTableType:()=>ou,ensureWidgetObjectHasMinimumProperties:()=>Nc,ensureWidgetPresenceContent:()=>Vr,ensureWidgetPresenceResponse:()=>Hr,ensureWidgetPresenceResponsePayload:()=>Qr,ensureWidgetPresenceType:()=>Gr,ensureWidgetQuickSurveyType:()=>lu,ensureWidgetType:()=>nr,ensureWidgetWrapperProps:()=>Hc,extensions:()=>$t,extractTaxonomiesFromObject:()=>ai,extractTaxonomiesFromObjectAndMapProperty:()=>si,extractTaxonomiesFromObjectAndMapUri:()=>oi,facetModeSchema:()=>Rl,faqAccessSchema:()=>Ro,faqHookPropertiesSchema:()=>Lo,faqItemListSchema:()=>xo,faqItemViewSchema:()=>Co,faqListSchema:()=>_o,faqTaxonomySchema:()=>Oo,faqViewSchema:()=>So,fileCropConfigSchema:()=>qn,filterSchema:()=>Si,filterValueSchema:()=>wi,filtersSchema:()=>xi,formatExtensionSchema:()=>Li,formatImgUrl:()=>Wt,formatListSchema:()=>Oi,getActionUsersParamsSchema:()=>Hl,getArgs:()=>Nt,getCommentsParamsSchema:()=>Ja,getExtensionFromName:()=>Jt,getFileExtensionFromMimetype:()=>Gt,getFileFamily:()=>ei,getFileFamilyFromName:()=>Yt,getFormat:()=>qt,getFrom:()=>Mt,getLicenseKindUsersParamsSchema:()=>pl,getMimetypeFromExtension:()=>zt,getMimetypeFromName:()=>Qt,getSize:()=>Zt,getTimestamp:()=>Dt,getUnclassifiedFilesParamsSchema:()=>fl,getUri:()=>It,getUrl:()=>Ut,groupCustomWidgetSchema:()=>ka,groupListConfigSchema:()=>Fa,groupMemberLevelSchema:()=>ga,groupMemberSchema:()=>ya,groupModerateStatusSchema:()=>ba,groupPropertiesOptionsSchema:()=>_a,groupPropertiesSchema:()=>ja,groupUserLevelSchema:()=>ma,groupWidgetLittleSchema:()=>wa,groupWidgetSchema:()=>Ca,hookListTypeSchema:()=>Xo,imageSizeSchema:()=>Zn,inferBookmarkListSchema:()=>as,inferBookmarkRawListSchema:()=>rs,inferExtendedFaqCategory:()=>jo,inferJInternalDraftView:()=>Ba,inferJLinkListSchema:()=>ns,inferMaybeWithToken:()=>Ci,inferSearchQueryResultSchema:()=>Bl,inferTVChannelCustomSchema:()=>rc,inferUserLicenseSchema:()=>ml,jAdminLicenseUserListSchema:()=>hs,jArticleExtendViewSchema:()=>Wa,jArticleListSchema:()=>qa,jArticleListShapeTmp:()=>Za,jArticleLittleSchema:()=>Na,jArticleViewSchema:()=>Ua,jArticleWidgetLittle:()=>Zc,jArticleWidgetViewSchema:()=>Kc,jBusinessContactListSchema:()=>zs,jBusinessContactLittleSchema:()=>Vs,jCommentListSchema:()=>Ks,jCommentLittleSchema:()=>Qs,jDiapazoneListSchema:()=>Hs,jEnsure:()=>u,jFileLittleCropSchema:()=>Bn,jFileLittleSchema:()=>Un,jFileRenditionSchema:()=>$n,jFolderListSchema:()=>Ya,jFolderLittleSchema:()=>Ma,jGroupListSchema:()=>Oa,jGroupLittleSchema:()=>Aa,jGroupViewSchema:()=>La,jHrefSchema:()=>yi,jIACapabilitiesSchema:()=>el,jLandAdditionalPropsSchema:()=>ll,jLandLogSchema:()=>il,jLandMapFlavorSchema:()=>rl,jLandMapKindSchema:()=>al,jLandMapListSchema:()=>ul,jLandMapLittleSchema:()=>cl,jLandMapSchema:()=>sl,jLandMapViewSchema:()=>dl,jLandStatSchema:()=>nl,jLinkLittleSchema:()=>is,jMeetingListSchema:()=>kl,jMeetingViewSchema:()=>_l,jObjectAutocompleteSchema:()=>Ms,jObjectBaseSchema:()=>Ei,jObjectListSchema:()=>Pa,jObjectLittleSchema:()=>Pi,jPollSurveyListSchema:()=>jl,jPollSurveyViewSchema:()=>xl,jQuizzListSchema:()=>Al,jQuizzViewSchema:()=>Ol,jSocialEventListSchema:()=>Xa,jSocialEventViewSchema:()=>es,jSpotAutocompleteSchema:()=>Ns,jSupportListSchema:()=>Xl,jSupportViewSchema:()=>ec,jSurveyDateListSchema:()=>tc,jSurveyDateViewSchema:()=>ic,jUserAutocompleteSchema:()=>Ds,jUserListSchema:()=>kn,jUserLittleSchema:()=>wn,jUserValuesSchema:()=>An,jUserViewSchema:()=>Sn,licenseSchema:()=>gs,mediaLibraryFilesStatsSchema:()=>bl,mediaLibraryFolderSchema:()=>gl,mediaLibraryFolderStatsSchema:()=>yl,mediaLibraryListSchema:()=>hl,mediaLibraryStatsSchema:()=>vl,mimetypeToExt:()=>Vt,mimetypes:()=>Bt,moveFaqEntrySchema:()=>No,moveFaqThemeSchema:()=>Zo,moveMediaLibraryFileParamsSchema:()=>wl,msDocumentEntitySchema:()=>ro,msDocumentParamsSchema:()=>co,msGetDocumentsParamsSchema:()=>vo,msGroupEntitySchema:()=>io,msSiteEntitySchema:()=>to,msTenantEntitySchema:()=>eo,msTenantsSchema:()=>Ys,msUnifiedEntitySchema:()=>so,network:()=>Ku,networkTypeSchema:()=>Sl,objectListPropsSchema:()=>Ri,objectTimestamp:()=>Kt,objectWithoutLicenseFilterSchema:()=>ds,onlyOfficeTemplateSchema:()=>Vo,openingTypeAnchorSchema:()=>lr,openingTypeLinkSchema:()=>or,openingTypePopupSchema:()=>cr,openingTypeSchema:()=>er,orderSchema:()=>vi,ordersSchema:()=>ji,padStartTwoDigits:()=>m,prepareGroupForUpdate:()=>li,publicWebinarData:()=>$s,publicWebinarFullnameRequestSchema:()=>Us,publicWebinarGetDateRequestSchema:()=>Bs,publicWebinarUrlSchema:()=>Ws,questionAnswerSelectResponseParamsSchema:()=>Cl,questionAnswerUnselectResponseParamsSchema:()=>Tl,removeIfStartsWith:()=>p,replacePropertiesWithTypes:()=>fi,reservationListSchema:()=>Ps,resetNotificationConfigurationSchema:()=>Ra,resolveFileFamily:()=>ni,resolveFileMimetype:()=>ii,resolveFilePath:()=>Ht,resolveFileUrl:()=>ti,rightsSchema:()=>Mn,rssTypeSchema:()=>Sa,searchCategoryModelSchema:()=>El,searchCategoryValueSchema:()=>Ll,searchConfigSchema:()=>Zl,searchFacetModelSchema:()=>Fl,searchFacetValueModelSchema:()=>Il,searchFacetValuesSchema:()=>Pl,searchLastQuerySchema:()=>$l,searchQueryFilterModelSchema:()=>Ml,searchQueryOptionSchema:()=>Nl,searchQuerySchema:()=>Wl,searchQuerySortModelSchema:()=>Dl,searchResultCatPropsSchema:()=>zl,searchResultPropsAppSchema:()=>ql,searchResultPropsObjectSchema:()=>Ul,searchResultPropsSchema:()=>Vl,shareAccessObjectSchema:()=>Kl,shareAccessPropsSchema:()=>Ql,shareGeneralAccessRulesSchema:()=>Gl,shareOptionObjectSchema:()=>Jl,socialActionSchema:()=>Js,spotBannerImageSchema:()=>pa,storeFinalizeSchema:()=>ys,storeItemSchema:()=>bs,suffixIfDoesNotExist:()=>d,textEnhanceResponseSchema:()=>tl,tinyMCECommonOptionsSchema:()=>jc,tinyMCEDynamicOptionsSchema:()=>Sc,tinymceExtendedOptionsSchema:()=>xc,tvChannelCreatePayloadSchema:()=>mc,tvChannelCreationSchema:()=>pc,tvChannelCustomListDynamicSchema:()=>ac,tvChannelCustomListSchema:()=>uc,tvChannelCustomListSlideshowSchema:()=>sc,tvChannelDynamicArticleSchema:()=>hc,tvChannelDynamicCommentSchema:()=>gc,tvChannelDynamicListSchema:()=>lc,tvChannelListSchema:()=>dc,tvChannelLittleSchema:()=>oc,tvChannelSlideshowFileSchema:()=>fc,tvChannelSlideshowListSchema:()=>cc,tvChannelTypeSchema:()=>nc,tvGetChannelResponseSchema:()=>_c,tvGetConfigureChannelResponseSchema:()=>kc,tvGetConfigureDynamicChannelResponse:()=>bc,tvGetConfigureSlideshowChannelResponse:()=>vc,updateCommentParamsSchema:()=>Ka,updateGroupSchema:()=>xa,uploadConfigSchema:()=>Nn,userDefaultFieldsTypeSchema:()=>Tn,userDirectoryConfigurationSchema:()=>Pn,userDownloadSchema:()=>Vn,userFieldSchema:()=>Ln,userFieldsConfigurationTypeSchema:()=>On,userFieldsSchema:()=>Rn,userLevelSpotSchema:()=>ha,userMapModelSchema:()=>xn,userReadSchema:()=>Ha,userValuesSchema:()=>Fn,validateIsFormatFileLittle:()=>Wn,validateIsFormatObjectList:()=>Ia,validateIsFormatObjectLittle:()=>Ii,validateIsFormatRights:()=>Dn,validateIsFormatUserDirectoryConfiguration:()=>In,validateIsFormatUserLevelSpot:()=>Ea,validateIsFormatUserList:()=>_n,validateIsFormatUserMapModel:()=>Cn,validateIsFormatUserView:()=>jn,valueLabelSchema:()=>va,variantSizeTypeSchema:()=>Yn,variantTypeSchema:()=>Xn,wedocEmptyTypeSchema:()=>Ic,wedocFileAudienceTypeSchema:()=>Rc,wedocFileInfoSchema:()=>Oc,wedocFileTypeSchema:()=>Lc,wedocQueryResultsSchema:()=>Ec,wedocQueryTypeSchema:()=>Pc,wedocTemplateSchema:()=>Fc,widgetActiveValueSchema:()=>Qi,widgetArticleAttachmentContentSchema:()=>ar,widgetArticleAttachmentTypeSchema:()=>sr,widgetArticleButtonContentSchema:()=>dr,widgetArticleButtonTypeSchema:()=>pr,widgetArticleCheckListTypeForFrontSchema:()=>Vc,widgetArticleGalleryContentSchema:()=>mr,widgetArticleGalleryTypeSchema:()=>gr,widgetArticleImageContentSchema:()=>hr,widgetArticleImageTypeSchema:()=>fr,widgetArticleSliderContentSchema:()=>yr,widgetArticleSliderTypeSchema:()=>vr,widgetArticleTextContentSchema:()=>wr,widgetArticleTextTypeSchema:()=>kr,widgetArticleTitleContentSchema:()=>_r,widgetArticleTitleTypeSchema:()=>Sr,widgetAudienceSchema:()=>Ki,widgetBaseSchema:()=>Jn,widgetButtonPropsSchema:()=>ur,widgetCheckListContentArrForFrontSchema:()=>Bc,widgetCheckListContentArrSchema:()=>jr,widgetCheckListContentForFrontSchema:()=>$c,widgetCheckListContentSchema:()=>xr,widgetCheckListTypeSchema:()=>Cr,widgetCheckboxSchema:()=>dn,widgetColorSchema:()=>Wi,widgetContentKeysSchema:()=>ca,widgetDatasourceTableContentSchema:()=>qr,widgetDatasourceTableTypeSchema:()=>Ur,widgetDatePickerSchema:()=>Gi,widgetDatePickerValueSchema:()=>Ji,widgetDateSchema:()=>Bi,widgetDateValueSchema:()=>$i,widgetDatetimeSchema:()=>Vi,widgetDatetimeValueSchema:()=>zi,widgetDefaultProps:()=>Wc,widgetDefinitionPropsSchema:()=>Mc,widgetDisplayModeSchema:()=>Uc,widgetEmailSchema:()=>nn,widgetEmailValueSchema:()=>rn,widgetEmbedSchema:()=>tn,widgetExcelDatasourceTableContentSchema:()=>Wr,widgetExcelDatasourceTableTypeSchema:()=>Br,widgetFileSchema:()=>Xi,widgetKeysSchema:()=>Gn,widgetLayerSchema:()=>qc,widgetLinkSchema:()=>Hi,widgetModalPropsSchema:()=>zc,widgetMultiattributeSchema:()=>Yi,widgetNumberSchema:()=>qi,widgetNumberValueSchema:()=>Ui,widgetOrientedlinksSchema:()=>hn,widgetPlaceSchema:()=>on,widgetPresenceContentSchema:()=>$r,widgetPresenceRespondPayloadSchema:()=>Jr,widgetPresenceResponseSchema:()=>Kr,widgetPresenceTypeSchema:()=>zr,widgetQuickSurveyContentSchema:()=>ea,widgetQuickSurveyTypeSchema:()=>ta,widgetRadioSchema:()=>un,widgetRefUserSchema:()=>ln,widgetRtObjectSchema:()=>Gc,widgetSchema:()=>bn,widgetSelectSchema:()=>en,widgetSlideSchema:()=>br,widgetStatePropsSchema:()=>ua,widgetTableColumnDataSchema:()=>Ir,widgetTableColumnSchema:()=>Nr,widgetTableColumnTypesSchema:()=>Dr,widgetTableColumnWidgetDateSchema:()=>Er,widgetTableColumnWidgetDefaulSchema:()=>Or,widgetTableColumnWidgetSelectOptionSchema:()=>Rr,widgetTableColumnWidgetSelectSchema:()=>Fr,widgetTableColumnWidgetTextSchema:()=>Lr,widgetTableColumnWidgetsSchema:()=>Pr,widgetTableColumnsData:()=>Mr,widgetTableContentSchema:()=>Zr,widgetTaxonomySchema:()=>pn,widgetTelSchema:()=>mn,widgetTextSchema:()=>Mi,widgetTextValueSchema:()=>Di,widgetTextareaSchema:()=>Ni,widgetTextareaValueSchema:()=>Zi,widgetToggleSchema:()=>gn,widgetTransientSchema:()=>cn,widgetTypeKeysSchema:()=>la,widgetUriSchema:()=>fn,widgetUrlSchema:()=>an,widgetUrlValueSchema:()=>sn,widgetVectorSchema:()=>tr,widgetWrapperPropsSchema:()=>sa,widgetsRootStateSchema:()=>Qc,widgetsStateSchema:()=>Jc,widgetsValueSchema:()=>yn});class i{constructor(e){this.jApi=e,this.network=e.network}}var n;class r extends i{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,t){return this.network.postCSRF({o:"licenseManager",f:"assignPossiblesLicenses",type:e,kind:t})}unAssignUnusedLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignUnusedLicenses",type:e,kind:t})}optimizeLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"optimizeLicenses",type:e,kind:t})}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})}getLicenseUsersByKind(e,t,i){var n=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(e,[]);return this.network.post(Object.assign(Object.assign({o:"licenseManager",f:"getUsers"},n),{format:t}),i)}}class a extends i{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 i{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"}(n||(n={}));class o extends i{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,i){return this.network.postCSRF({o:"studio",f:"save",idApp:e,value:t,status:i})}delete(e,t){return i=this,n=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 i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r((function(e){e(i)}))).then(s,o)}l((a=a.apply(i,n||[])).next())}));var i,n,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")}var g,h;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const i of e)t[i]=i;return t},e.getValidEnumValues=t=>{const i=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),n={};for(const e of i)n[e]=t[e];return e.objectValues(n)},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 i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t},e.find=(e,t)=>{for(const i of e)if(t(i))return i},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}(g||(g={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(h||(h={}));const f=g.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),b=e=>{switch(typeof e){case"undefined":return f.undefined;case"string":return f.string;case"number":return isNaN(e)?f.nan:f.number;case"boolean":return f.boolean;case"function":return f.function;case"bigint":return f.bigint;case"symbol":return f.symbol;case"object":return Array.isArray(e)?f.array:null===e?f.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?f.promise:"undefined"!=typeof Map&&e instanceof Map?f.map:"undefined"!=typeof Set&&e instanceof Set?f.set:"undefined"!=typeof Date&&e instanceof Date?f.date:f.object;default:return f.unknown}},y=g.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 v 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},i={_errors:[]},n=e=>{for(const r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(n);else if("invalid_return_type"===r.code)n(r.returnTypeError);else if("invalid_arguments"===r.code)n(r.argumentsError);else if(0===r.path.length)i._errors.push(t(r));else{let e=i,n=0;for(;n<r.path.length;){const i=r.path[n];n===r.path.length-1?(e[i]=e[i]||{_errors:[]},e[i]._errors.push(t(r))):e[i]=e[i]||{_errors:[]},e=e[i],n++}}};return n(this),i}static assert(e){if(!(e instanceof v))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,g.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},i=[];for(const n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):i.push(e(n));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}v.create=e=>new v(e);const w=(e,t)=>{let i;switch(e.code){case y.invalid_type:i=e.received===f.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case y.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,g.jsonStringifyReplacer)}`;break;case y.unrecognized_keys:i=`Unrecognized key(s) in object: ${g.joinValues(e.keys,", ")}`;break;case y.invalid_union:i="Invalid input";break;case y.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${g.joinValues(e.options)}`;break;case y.invalid_enum_value:i=`Invalid enum value. Expected ${g.joinValues(e.options)}, received '${e.received}'`;break;case y.invalid_arguments:i="Invalid function arguments";break;case y.invalid_return_type:i="Invalid function return type";break;case y.invalid_date:i="Invalid date";break;case y.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:g.assertNever(e.validation):i="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case y.too_small:i="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 y.too_big:i="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 y.custom:i="Invalid input";break;case y.invalid_intersection_types:i="Intersection results could not be merged";break;case y.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case y.not_finite:i="Number must be finite";break;default:i=t.defaultError,g.assertNever(e)}return{message:i}};let k=w;function _(){return k}const S=e=>{const{data:t,path:i,errorMaps:n,issueData:r}=e,a=[...i,...r.path||[]],s={...r,path:a};if(void 0!==r.message)return{...r,path:a,message:r.message};let o="";const l=n.filter((e=>!!e)).slice().reverse();for(const e of l)o=e(s,{data:t,defaultError:o}).message;return{...r,path:a,message:o}};function j(e,t){const i=_(),n=S({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,i,i===w?void 0:w].filter((e=>!!e))});e.common.issues.push(n)}class x{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const i=[];for(const n of t){if("aborted"===n.status)return C;"dirty"===n.status&&e.dirty(),i.push(n.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){const i=[];for(const e of t){const t=await e.key,n=await e.value;i.push({key:t,value:n})}return x.mergeObjectSync(e,i)}static mergeObjectSync(e,t){const i={};for(const n of t){const{key:t,value:r}=n;if("aborted"===t.status)return C;if("aborted"===r.status)return C;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"===t.value||void 0===r.value&&!n.alwaysSet||(i[t.value]=r.value)}return{status:e.value,value:i}}}const C=Object.freeze({status:"aborted"}),T=e=>({status:"dirty",value:e}),A=e=>({status:"valid",value:e}),O=e=>"aborted"===e.status,L=e=>"dirty"===e.status,R=e=>"valid"===e.status,F=e=>"undefined"!=typeof Promise&&e instanceof Promise;function E(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)}function P(e,t,i,n,r){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(e,i):r?r.value=i:t.set(e,i),i}var I,M,D;"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(I||(I={}));class N{constructor(e,t,i,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=n}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 Z=(e,t)=>{if(R(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 v(e.common.issues);return this._error=t,this._error}}};function q(e){if(!e)return{};const{errorMap:t,invalid_type_error:i,required_error:n,description:r}=e;if(t&&(i||n))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:(t,r)=>{var a,s;const{message:o}=e;return"invalid_enum_value"===t.code?{message:null!=o?o:r.defaultError}:void 0===r.data?{message:null!==(a=null!=o?o:n)&&void 0!==a?a:r.defaultError}:"invalid_type"!==t.code?{message:r.defaultError}:{message:null!==(s=null!=o?o:i)&&void 0!==s?s:r.defaultError}},description:r}}class U{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 b(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:b(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new x,ctx:{common:e.parent.common,data:e.data,parsedType:b(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(F(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 i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){var i;const n={common:{issues:[],async:null!==(i=null==t?void 0:t.async)&&void 0!==i&&i,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:b(e)},r=this._parseSync({data:e,path:n.path,parent:n});return Z(n,r)}async parseAsync(e,t){const i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){const i={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:b(e)},n=this._parse({data:e,path:i.path,parent:i}),r=await(F(n)?n:Promise.resolve(n));return Z(i,r)}refine(e,t){const i=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,n)=>{const r=e(t),a=()=>n.addIssue({code:y.custom,...i(t)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then((e=>!!e||(a(),!1))):!!r||(a(),!1)}))}refinement(e,t){return this._refinement(((i,n)=>!!e(i)||(n.addIssue("function"==typeof t?t(i,n):t),!1)))}_refinement(e){return new Ie({schema:this,typeName:Ge.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Me.create(this,this._def)}nullable(){return De.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return fe.create(this,this._def)}promise(){return Pe.create(this,this._def)}or(e){return ve.create([this,e],this._def)}and(e){return Se.create(this,e,this._def)}transform(e){return new Ie({...q(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Ne({...q(this._def),innerType:this,defaultValue:t,typeName:Ge.ZodDefault})}brand(){return new We({typeName:Ge.ZodBranded,type:this,...q(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Ze({...q(this._def),innerType:this,catchValue:t,typeName:Ge.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Be.create(this,e)}readonly(){return $e.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const W=/^c[^\s-]{8,}$/i,B=/^[0-9a-z]+$/,$=/^[0-9A-HJKMNP-TV-Z]{26}$/,V=/^[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,z=/^[a-z0-9_-]{21}$/i,G=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,J=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Q;const K=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,H=/^(([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})))$/,Y=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,X="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ee=new RegExp(`^${X}$`);function te(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function ie(e){let t=`${X}T${te(e)}`;const i=[];return i.push(e.local?"Z?":"Z"),e.offset&&i.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${i.join("|")})`,new RegExp(`^${t}$`)}class ne extends U{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==f.string){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.string,received:t.parsedType}),C}const t=new x;let i;for(const a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(i=this._getOrReturnCtx(e,i),j(i,{code:y.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("max"===a.kind)e.data.length>a.value&&(i=this._getOrReturnCtx(e,i),j(i,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const n=e.data.length>a.value,r=e.data.length<a.value;(n||r)&&(i=this._getOrReturnCtx(e,i),n?j(i,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):r&&j(i,{code:y.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if("email"===a.kind)J.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"email",code:y.invalid_string,message:a.message}),t.dirty());else if("emoji"===a.kind)Q||(Q=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Q.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"emoji",code:y.invalid_string,message:a.message}),t.dirty());else if("uuid"===a.kind)V.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"uuid",code:y.invalid_string,message:a.message}),t.dirty());else if("nanoid"===a.kind)z.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"nanoid",code:y.invalid_string,message:a.message}),t.dirty());else if("cuid"===a.kind)W.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"cuid",code:y.invalid_string,message:a.message}),t.dirty());else if("cuid2"===a.kind)B.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"cuid2",code:y.invalid_string,message:a.message}),t.dirty());else if("ulid"===a.kind)$.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"ulid",code:y.invalid_string,message:a.message}),t.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(n){i=this._getOrReturnCtx(e,i),j(i,{validation:"url",code:y.invalid_string,message:a.message}),t.dirty()}else"regex"===a.kind?(a.regex.lastIndex=0,a.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"regex",code:y.invalid_string,message:a.message}),t.dirty())):"trim"===a.kind?e.data=e.data.trim():"includes"===a.kind?e.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty()):"toLowerCase"===a.kind?e.data=e.data.toLowerCase():"toUpperCase"===a.kind?e.data=e.data.toUpperCase():"startsWith"===a.kind?e.data.startsWith(a.value)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):"endsWith"===a.kind?e.data.endsWith(a.value)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):"datetime"===a.kind?ie(a).test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:"datetime",message:a.message}),t.dirty()):"date"===a.kind?ee.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:"date",message:a.message}),t.dirty()):"time"===a.kind?new RegExp(`^${te(a)}$`).test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:"time",message:a.message}),t.dirty()):"duration"===a.kind?G.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"duration",code:y.invalid_string,message:a.message}),t.dirty()):"ip"===a.kind?(n=e.data,("v4"!==(r=a.version)&&r||!K.test(n))&&("v6"!==r&&r||!H.test(n))&&(i=this._getOrReturnCtx(e,i),j(i,{validation:"ip",code:y.invalid_string,message:a.message}),t.dirty())):"base64"===a.kind?Y.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"base64",code:y.invalid_string,message:a.message}),t.dirty()):g.assertNever(a);var n,r;return{status:t.value,value:e.data}}_regex(e,t,i){return this.refinement((t=>e.test(t)),{validation:t,code:y.invalid_string,...I.errToObj(i)})}_addCheck(e){return new ne({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...I.errToObj(e)})}url(e){return this._addCheck({kind:"url",...I.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...I.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...I.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...I.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...I.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...I.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...I.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...I.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...I.errToObj(e)})}datetime(e){var t,i;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!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,local:null!==(i=null==e?void 0:e.local)&&void 0!==i&&i,...I.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...I.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...I.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...I.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...I.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...I.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...I.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...I.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...I.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...I.errToObj(t)})}nonempty(e){return this.min(1,I.errToObj(e))}trim(){return new ne({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ne({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ne({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===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 isNANOID(){return!!this._def.checks.find((e=>"nanoid"===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 isBase64(){return!!this._def.checks.find((e=>"base64"===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 re(e,t){const i=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,r=i>n?i:n;return parseInt(e.toFixed(r).replace(".",""))%parseInt(t.toFixed(r).replace(".",""))/Math.pow(10,r)}ne.create=e=>{var t;return new ne({checks:[],typeName:Ge.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...q(e)})};class ae extends U{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)!==f.number){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.number,received:t.parsedType}),C}let t;const i=new x;for(const n of this._def.checks)"int"===n.kind?g.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),j(t,{code:y.invalid_type,expected:"integer",received:"float",message:n.message}),i.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):"multipleOf"===n.kind?0!==re(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_finite,message:n.message}),i.dirty()):g.assertNever(n);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,I.toString(t))}gt(e,t){return this.setLimit("min",e,!1,I.toString(t))}lte(e,t){return this.setLimit("max",e,!0,I.toString(t))}lt(e,t){return this.setLimit("max",e,!1,I.toString(t))}setLimit(e,t,i,n){return new ae({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:I.toString(n)}]})}_addCheck(e){return new ae({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:I.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:I.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:I.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:I.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:I.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:I.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&&g.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const i of this._def.checks){if("finite"===i.kind||"int"===i.kind||"multipleOf"===i.kind)return!0;"min"===i.kind?(null===t||i.value>t)&&(t=i.value):"max"===i.kind&&(null===e||i.value<e)&&(e=i.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ae.create=e=>new ae({checks:[],typeName:Ge.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...q(e)});class se extends U{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)!==f.bigint){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.bigint,received:t.parsedType}),C}let t;const i=new x;for(const n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):g.assertNever(n);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,I.toString(t))}gt(e,t){return this.setLimit("min",e,!1,I.toString(t))}lte(e,t){return this.setLimit("max",e,!0,I.toString(t))}lt(e,t){return this.setLimit("max",e,!1,I.toString(t))}setLimit(e,t,i,n){return new se({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:I.toString(n)}]})}_addCheck(e){return new se({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:I.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:I.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}}se.create=e=>{var t;return new se({checks:[],typeName:Ge.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...q(e)})};class oe extends U{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==f.boolean){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.boolean,received:t.parsedType}),C}return A(e.data)}}oe.create=e=>new oe({typeName:Ge.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...q(e)});class le extends U{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==f.date){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.date,received:t.parsedType}),C}if(isNaN(e.data.getTime()))return j(this._getOrReturnCtx(e),{code:y.invalid_date}),C;const t=new x;let i;for(const n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(i=this._getOrReturnCtx(e,i),j(i,{code:y.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),t.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(i=this._getOrReturnCtx(e,i),j(i,{code:y.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),t.dirty()):g.assertNever(n);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new le({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:I.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:I.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}}le.create=e=>new le({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...q(e)});class ce extends U{_parse(e){if(this._getType(e)!==f.symbol){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.symbol,received:t.parsedType}),C}return A(e.data)}}ce.create=e=>new ce({typeName:Ge.ZodSymbol,...q(e)});class ue extends U{_parse(e){if(this._getType(e)!==f.undefined){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.undefined,received:t.parsedType}),C}return A(e.data)}}ue.create=e=>new ue({typeName:Ge.ZodUndefined,...q(e)});class de extends U{_parse(e){if(this._getType(e)!==f.null){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.null,received:t.parsedType}),C}return A(e.data)}}de.create=e=>new de({typeName:Ge.ZodNull,...q(e)});class pe extends U{constructor(){super(...arguments),this._any=!0}_parse(e){return A(e.data)}}pe.create=e=>new pe({typeName:Ge.ZodAny,...q(e)});class me extends U{constructor(){super(...arguments),this._unknown=!0}_parse(e){return A(e.data)}}me.create=e=>new me({typeName:Ge.ZodUnknown,...q(e)});class ge extends U{_parse(e){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.never,received:t.parsedType}),C}}ge.create=e=>new ge({typeName:Ge.ZodNever,...q(e)});class he extends U{_parse(e){if(this._getType(e)!==f.undefined){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.void,received:t.parsedType}),C}return A(e.data)}}he.create=e=>new he({typeName:Ge.ZodVoid,...q(e)});class fe extends U{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),n=this._def;if(t.parsedType!==f.array)return j(t,{code:y.invalid_type,expected:f.array,received:t.parsedType}),C;if(null!==n.exactLength){const e=t.data.length>n.exactLength.value,r=t.data.length<n.exactLength.value;(e||r)&&(j(t,{code:e?y.too_big:y.too_small,minimum:r?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(j(t,{code:y.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(j(t,{code:y.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map(((e,i)=>n.type._parseAsync(new N(t,e,t.path,i))))).then((e=>x.mergeArray(i,e)));const r=[...t.data].map(((e,i)=>n.type._parseSync(new N(t,e,t.path,i))));return x.mergeArray(i,r)}get element(){return this._def.type}min(e,t){return new fe({...this._def,minLength:{value:e,message:I.toString(t)}})}max(e,t){return new fe({...this._def,maxLength:{value:e,message:I.toString(t)}})}length(e,t){return new fe({...this._def,exactLength:{value:e,message:I.toString(t)}})}nonempty(e){return this.min(1,e)}}function be(e){if(e instanceof ye){const t={};for(const i in e.shape){const n=e.shape[i];t[i]=Me.create(be(n))}return new ye({...e._def,shape:()=>t})}return e instanceof fe?new fe({...e._def,type:be(e.element)}):e instanceof Me?Me.create(be(e.unwrap())):e instanceof De?De.create(be(e.unwrap())):e instanceof je?je.create(e.items.map((e=>be(e)))):e}fe.create=(e,t)=>new fe({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...q(t)});class ye extends U{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=g.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==f.object){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.object,received:t.parsedType}),C}const{status:t,ctx:i}=this._processInputParams(e),{shape:n,keys:r}=this._getCached(),a=[];if(!(this._def.catchall instanceof ge&&"strip"===this._def.unknownKeys))for(const e in i.data)r.includes(e)||a.push(e);const s=[];for(const e of r){const t=n[e],r=i.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new N(i,r,i.path,e)),alwaysSet:e in i.data})}if(this._def.catchall instanceof ge){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:i.data[e]}});else if("strict"===e)a.length>0&&(j(i,{code:y.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 n=i.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new N(i,n,i.path,t)),alwaysSet:t in i.data})}}return i.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of s){const i=await t.key,n=await t.value;e.push({key:i,value:n,alwaysSet:t.alwaysSet})}return e})).then((e=>x.mergeObjectSync(t,e))):x.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return I.errToObj,new ye({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,i)=>{var n,r,a,s;const o=null!==(a=null===(r=(n=this._def).errorMap)||void 0===r?void 0:r.call(n,t,i).message)&&void 0!==a?a:i.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=I.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new ye({...this._def,unknownKeys:"strip"})}passthrough(){return new ye({...this._def,unknownKeys:"passthrough"})}extend(e){return new ye({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ye({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Ge.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ye({...this._def,catchall:e})}pick(e){const t={};return g.objectKeys(e).forEach((i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])})),new ye({...this._def,shape:()=>t})}omit(e){const t={};return g.objectKeys(this.shape).forEach((i=>{e[i]||(t[i]=this.shape[i])})),new ye({...this._def,shape:()=>t})}deepPartial(){return be(this)}partial(e){const t={};return g.objectKeys(this.shape).forEach((i=>{const n=this.shape[i];e&&!e[i]?t[i]=n:t[i]=n.optional()})),new ye({...this._def,shape:()=>t})}required(e){const t={};return g.objectKeys(this.shape).forEach((i=>{if(e&&!e[i])t[i]=this.shape[i];else{let e=this.shape[i];for(;e instanceof Me;)e=e._def.innerType;t[i]=e}})),new ye({...this._def,shape:()=>t})}keyof(){return Re(g.objectKeys(this.shape))}}ye.create=(e,t)=>new ye({shape:()=>e,unknownKeys:"strip",catchall:ge.create(),typeName:Ge.ZodObject,...q(t)}),ye.strictCreate=(e,t)=>new ye({shape:()=>e,unknownKeys:"strict",catchall:ge.create(),typeName:Ge.ZodObject,...q(t)}),ye.lazycreate=(e,t)=>new ye({shape:e,unknownKeys:"strip",catchall:ge.create(),typeName:Ge.ZodObject,...q(t)});class ve extends U{_parse(e){const{ctx:t}=this._processInputParams(e),i=this._def.options;if(t.common.async)return Promise.all(i.map((async e=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const i of e)if("dirty"===i.result.status)return t.common.issues.push(...i.ctx.common.issues),i.result;const i=e.map((e=>new v(e.ctx.common.issues)));return j(t,{code:y.invalid_union,unionErrors:i}),C}));{let e;const n=[];for(const r of i){const i={...t,common:{...t.common,issues:[]},parent:null},a=r._parseSync({data:t.data,path:t.path,parent:i});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:i}),i.common.issues.length&&n.push(i.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const r=n.map((e=>new v(e)));return j(t,{code:y.invalid_union,unionErrors:r}),C}}get options(){return this._def.options}}ve.create=(e,t)=>new ve({options:e,typeName:Ge.ZodUnion,...q(t)});const we=e=>e instanceof Oe?we(e.schema):e instanceof Ie?we(e.innerType()):e instanceof Le?[e.value]:e instanceof Fe?e.options:e instanceof Ee?g.objectValues(e.enum):e instanceof Ne?we(e._def.innerType):e instanceof ue?[void 0]:e instanceof de?[null]:e instanceof Me?[void 0,...we(e.unwrap())]:e instanceof De?[null,...we(e.unwrap())]:e instanceof We||e instanceof $e?we(e.unwrap()):e instanceof Ze?we(e._def.innerType):[];class ke extends U{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.object)return j(t,{code:y.invalid_type,expected:f.object,received:t.parsedType}),C;const i=this.discriminator,n=t.data[i],r=this.optionsMap.get(n);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}):(j(t,{code:y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),C)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){const n=new Map;for(const i of t){const t=we(i.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const r of t){if(n.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);n.set(r,i)}}return new ke({typeName:Ge.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...q(i)})}}function _e(e,t){const i=b(e),n=b(t);if(e===t)return{valid:!0,data:e};if(i===f.object&&n===f.object){const i=g.objectKeys(t),n=g.objectKeys(e).filter((e=>-1!==i.indexOf(e))),r={...e,...t};for(const i of n){const n=_e(e[i],t[i]);if(!n.valid)return{valid:!1};r[i]=n.data}return{valid:!0,data:r}}if(i===f.array&&n===f.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let n=0;n<e.length;n++){const r=_e(e[n],t[n]);if(!r.valid)return{valid:!1};i.push(r.data)}return{valid:!0,data:i}}return i===f.date&&n===f.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Se extends U{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),n=(e,n)=>{if(O(e)||O(n))return C;const r=_e(e.value,n.value);return r.valid?((L(e)||L(n))&&t.dirty(),{status:t.value,value:r.data}):(j(i,{code:y.invalid_intersection_types}),C)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then((([e,t])=>n(e,t))):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Se.create=(e,t,i)=>new Se({left:e,right:t,typeName:Ge.ZodIntersection,...q(i)});class je extends U{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.array)return j(i,{code:y.invalid_type,expected:f.array,received:i.parsedType}),C;if(i.data.length<this._def.items.length)return j(i,{code:y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),C;!this._def.rest&&i.data.length>this._def.items.length&&(j(i,{code:y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...i.data].map(((e,t)=>{const n=this._def.items[t]||this._def.rest;return n?n._parse(new N(i,e,i.path,t)):null})).filter((e=>!!e));return i.common.async?Promise.all(n).then((e=>x.mergeArray(t,e))):x.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new je({...this._def,rest:e})}}je.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new je({items:e,typeName:Ge.ZodTuple,rest:null,...q(t)})};class xe extends U{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.object)return j(i,{code:y.invalid_type,expected:f.object,received:i.parsedType}),C;const n=[],r=this._def.keyType,a=this._def.valueType;for(const e in i.data)n.push({key:r._parse(new N(i,e,i.path,e)),value:a._parse(new N(i,i.data[e],i.path,e)),alwaysSet:e in i.data});return i.common.async?x.mergeObjectAsync(t,n):x.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,i){return new xe(t instanceof U?{keyType:e,valueType:t,typeName:Ge.ZodRecord,...q(i)}:{keyType:ne.create(),valueType:e,typeName:Ge.ZodRecord,...q(t)})}}class Ce extends U{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.map)return j(i,{code:y.invalid_type,expected:f.map,received:i.parsedType}),C;const n=this._def.keyType,r=this._def.valueType,a=[...i.data.entries()].map((([e,t],a)=>({key:n._parse(new N(i,e,i.path,[a,"key"])),value:r._parse(new N(i,t,i.path,[a,"value"]))})));if(i.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const i of a){const n=await i.key,r=await i.value;if("aborted"===n.status||"aborted"===r.status)return C;"dirty"!==n.status&&"dirty"!==r.status||t.dirty(),e.set(n.value,r.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const i of a){const n=i.key,r=i.value;if("aborted"===n.status||"aborted"===r.status)return C;"dirty"!==n.status&&"dirty"!==r.status||t.dirty(),e.set(n.value,r.value)}return{status:t.value,value:e}}}}Ce.create=(e,t,i)=>new Ce({valueType:t,keyType:e,typeName:Ge.ZodMap,...q(i)});class Te extends U{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.set)return j(i,{code:y.invalid_type,expected:f.set,received:i.parsedType}),C;const n=this._def;null!==n.minSize&&i.data.size<n.minSize.value&&(j(i,{code:y.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&i.data.size>n.maxSize.value&&(j(i,{code:y.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const r=this._def.valueType;function a(e){const i=new Set;for(const n of e){if("aborted"===n.status)return C;"dirty"===n.status&&t.dirty(),i.add(n.value)}return{status:t.value,value:i}}const s=[...i.data.values()].map(((e,t)=>r._parse(new N(i,e,i.path,t))));return i.common.async?Promise.all(s).then((e=>a(e))):a(s)}min(e,t){return new Te({...this._def,minSize:{value:e,message:I.toString(t)}})}max(e,t){return new Te({...this._def,maxSize:{value:e,message:I.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Te.create=(e,t)=>new Te({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...q(t)});class Ae extends U{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.function)return j(t,{code:y.invalid_type,expected:f.function,received:t.parsedType}),C;function i(e,i){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),w].filter((e=>!!e)),issueData:{code:y.invalid_arguments,argumentsError:i}})}function n(e,i){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),w].filter((e=>!!e)),issueData:{code:y.invalid_return_type,returnTypeError:i}})}const r={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Pe){const e=this;return A((async function(...t){const s=new v([]),o=await e._def.args.parseAsync(t,r).catch((e=>{throw s.addIssue(i(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(n(l,e)),s}))}))}{const e=this;return A((function(...t){const s=e._def.args.safeParse(t,r);if(!s.success)throw new v([i(t,s.error)]);const o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,r);if(!l.success)throw new v([n(o,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ae({...this._def,args:je.create(e).rest(me.create())})}returns(e){return new Ae({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new Ae({args:e||je.create([]).rest(me.create()),returns:t||me.create(),typeName:Ge.ZodFunction,...q(i)})}}class Oe extends U{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})}}Oe.create=(e,t)=>new Oe({getter:e,typeName:Ge.ZodLazy,...q(t)});class Le extends U{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return j(t,{received:t.data,code:y.invalid_literal,expected:this._def.value}),C}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Re(e,t){return new Fe({values:e,typeName:Ge.ZodEnum,...q(t)})}Le.create=(e,t)=>new Le({value:e,typeName:Ge.ZodLiteral,...q(t)});class Fe extends U{constructor(){super(...arguments),M.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),i=this._def.values;return j(t,{expected:g.joinValues(i),received:t.parsedType,code:y.invalid_type}),C}if(E(this,M,"f")||P(this,M,new Set(this._def.values),"f"),!E(this,M,"f").has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return j(t,{received:t.data,code:y.invalid_enum_value,options:i}),C}return A(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,t=this._def){return Fe.create(e,{...this._def,...t})}exclude(e,t=this._def){return Fe.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}M=new WeakMap,Fe.create=Re;class Ee extends U{constructor(){super(...arguments),D.set(this,void 0)}_parse(e){const t=g.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==f.string&&i.parsedType!==f.number){const e=g.objectValues(t);return j(i,{expected:g.joinValues(e),received:i.parsedType,code:y.invalid_type}),C}if(E(this,D,"f")||P(this,D,new Set(g.getValidEnumValues(this._def.values)),"f"),!E(this,D,"f").has(e.data)){const e=g.objectValues(t);return j(i,{received:i.data,code:y.invalid_enum_value,options:e}),C}return A(e.data)}get enum(){return this._def.values}}D=new WeakMap,Ee.create=(e,t)=>new Ee({values:e,typeName:Ge.ZodNativeEnum,...q(t)});class Pe extends U{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.promise&&!1===t.common.async)return j(t,{code:y.invalid_type,expected:f.promise,received:t.parsedType}),C;const i=t.parsedType===f.promise?t.data:Promise.resolve(t.data);return A(i.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Pe.create=(e,t)=>new Pe({type:e,typeName:Ge.ZodPromise,...q(t)});class Ie extends U{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:i}=this._processInputParams(e),n=this._def.effect||null,r={addIssue:e=>{j(i,e),e.fatal?t.abort():t.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===n.type){const e=n.transform(i.data,r);if(i.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return C;const n=await this._def.schema._parseAsync({data:e,path:i.path,parent:i});return"aborted"===n.status?C:"dirty"===n.status||"dirty"===t.value?T(n.value):n}));{if("aborted"===t.value)return C;const n=this._def.schema._parseSync({data:e,path:i.path,parent:i});return"aborted"===n.status?C:"dirty"===n.status||"dirty"===t.value?T(n.value):n}}if("refinement"===n.type){const e=e=>{const t=n.refinement(e,r);if(i.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===i.common.async){const n=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===n.status?C:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then((i=>"aborted"===i.status?C:("dirty"===i.status&&t.dirty(),e(i.value).then((()=>({status:t.value,value:i.value}))))))}if("transform"===n.type){if(!1===i.common.async){const e=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!R(e))return e;const a=n.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:i.data,path:i.path,parent:i}).then((e=>R(e)?Promise.resolve(n.transform(e.value,r)).then((e=>({status:t.value,value:e}))):e))}g.assertNever(n)}}Ie.create=(e,t,i)=>new Ie({schema:e,typeName:Ge.ZodEffects,effect:t,...q(i)}),Ie.createWithPreprocess=(e,t,i)=>new Ie({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...q(i)});class Me extends U{_parse(e){return this._getType(e)===f.undefined?A(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Me.create=(e,t)=>new Me({innerType:e,typeName:Ge.ZodOptional,...q(t)});class De extends U{_parse(e){return this._getType(e)===f.null?A(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:Ge.ZodNullable,...q(t)});class Ne extends U{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===f.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Ne.create=(e,t)=>new Ne({innerType:e,typeName:Ge.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...q(t)});class Ze extends U{_parse(e){const{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return F(n)?n.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new v(i.common.issues)},input:i.data})}))):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new v(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Ze.create=(e,t)=>new Ze({innerType:e,typeName:Ge.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...q(t)});class qe extends U{_parse(e){if(this._getType(e)!==f.nan){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.nan,received:t.parsedType}),C}return{status:"valid",value:e.data}}}qe.create=e=>new qe({typeName:Ge.ZodNaN,...q(e)});const Ue=Symbol("zod_brand");class We extends U{_parse(e){const{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class Be extends U{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),T(e.value)):this._def.out._parseAsync({data:e.value,path:i.path,parent:i})})();{const e=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:i.path,parent:i})}}static create(e,t){return new Be({in:e,out:t,typeName:Ge.ZodPipeline})}}class $e extends U{_parse(e){const t=this._def.innerType._parse(e),i=e=>(R(e)&&(e.value=Object.freeze(e.value)),e);return F(t)?t.then((e=>i(e))):i(t)}unwrap(){return this._def.innerType}}function Ve(e,t={},i){return e?pe.create().superRefine(((n,r)=>{var a,s;if(!e(n)){const e="function"==typeof t?t(n):"string"==typeof t?{message:t}:t,o=null===(s=null!==(a=e.fatal)&&void 0!==a?a:i)||void 0===s||s,l="string"==typeof e?{message:e}:e;r.addIssue({code:"custom",...l,fatal:o})}})):pe.create()}$e.create=(e,t)=>new $e({innerType:e,typeName:Ge.ZodReadonly,...q(t)});const ze={object:ye.lazycreate};var Ge;!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"}(Ge||(Ge={}));const Je=ne.create,Qe=ae.create,Ke=qe.create,He=se.create,Ye=oe.create,Xe=le.create,et=ce.create,tt=ue.create,it=de.create,nt=pe.create,rt=me.create,at=ge.create,st=he.create,ot=fe.create,lt=ye.create,ct=ye.strictCreate,ut=ve.create,dt=ke.create,pt=Se.create,mt=je.create,gt=xe.create,ht=Ce.create,ft=Te.create,bt=Ae.create,yt=Oe.create,vt=Le.create,wt=Fe.create,kt=Ee.create,_t=Pe.create,St=Ie.create,jt=Me.create,xt=De.create,Ct=Ie.createWithPreprocess,Tt=Be.create,At={string:e=>ne.create({...e,coerce:!0}),number:e=>ae.create({...e,coerce:!0}),boolean:e=>oe.create({...e,coerce:!0}),bigint:e=>se.create({...e,coerce:!0}),date:e=>le.create({...e,coerce:!0})},Ot=C;var Lt=Object.freeze({__proto__:null,defaultErrorMap:w,setErrorMap:function(e){k=e},getErrorMap:_,makeIssue:S,EMPTY_PATH:[],addIssueToContext:j,ParseStatus:x,INVALID:C,DIRTY:T,OK:A,isAborted:O,isDirty:L,isValid:R,isAsync:F,get util(){return g},get objectUtil(){return h},ZodParsedType:f,getParsedType:b,ZodType:U,datetimeRegex:ie,ZodString:ne,ZodNumber:ae,ZodBigInt:se,ZodBoolean:oe,ZodDate:le,ZodSymbol:ce,ZodUndefined:ue,ZodNull:de,ZodAny:pe,ZodUnknown:me,ZodNever:ge,ZodVoid:he,ZodArray:fe,ZodObject:ye,ZodUnion:ve,ZodDiscriminatedUnion:ke,ZodIntersection:Se,ZodTuple:je,ZodRecord:xe,ZodMap:Ce,ZodSet:Te,ZodFunction:Ae,ZodLazy:Oe,ZodLiteral:Le,ZodEnum:Fe,ZodNativeEnum:Ee,ZodPromise:Pe,ZodEffects:Ie,ZodTransformer:Ie,ZodOptional:Me,ZodNullable:De,ZodDefault:Ne,ZodCatch:Ze,ZodNaN:qe,BRAND:Ue,ZodBranded:We,ZodPipeline:Be,ZodReadonly:$e,custom:Ve,Schema:U,ZodSchema:U,late:ze,get ZodFirstPartyTypeKind(){return Ge},coerce:At,any:nt,array:ot,bigint:He,boolean:Ye,date:Xe,discriminatedUnion:dt,effect:St,enum:wt,function:bt,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Ve((t=>t instanceof e),t),intersection:pt,lazy:yt,literal:vt,map:ht,nan:Ke,nativeEnum:kt,never:at,null:it,nullable:xt,number:Qe,object:lt,oboolean:()=>Ye().optional(),onumber:()=>Qe().optional(),optional:jt,ostring:()=>Je().optional(),pipeline:Tt,preprocess:Ct,promise:_t,record:gt,set:ft,strictObject:ct,string:Je,symbol:et,transformer:St,tuple:mt,undefined:tt,union:ut,unknown:rt,void:st,NEVER:Ot,ZodIssueCode:y,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:v});const Rt=Lt.object({type:Lt.string(),recordId:Lt.union([Lt.string().regex(new RegExp("[0-9]+")),Lt.number()])}),Ft=(e,t)=>(t?Rt.passthrough():Rt).safeParse(e).success,Et=Lt.object({uri:Lt.string().regex(new RegExp("[a-zA-Z]+/[0-9]+"))}),Pt=(e,t)=>(t?Et.passthrough():Et).safeParse(e).success;function It(e){if(Pt(e,!0))return e.uri;if(Ft(e,!0))return`${e.type}/${e.recordId}`;throw new Error("Invalid uri or typeId "+("uri"in e?e.uri:"type"in e&&"recordId"in e?e.type+"/"+e.recordId:"undefined"))}function Mt(e){return p(d(e.from,"/"),"/")||""}function Dt(e){return e.timestamp?`?_=${e.timestamp}`:""}function Nt(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 Zt(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 qt(e){return e.format||"png"}function Ut(e){try{return new URL(e)}catch(e){}try{return new URL(window.location.origin+"/"+p(e,"/"))}catch(e){}}function Wt(e,t=2){var i;if("url"in e&&e.url){const t=Ut(e.url);if(t)return"timestamp"in e&&e.timestamp&&!t.searchParams.has("_")&&t.searchParams.append("_",e.timestamp.toString()),t.toString()}const n=0===(null===(i=e.uri)||void 0===i?void 0:i.indexOf("icons/"))?e.uri:"icons"===e.type?e.type+"/"+e.recordId:It(e);return`/${Mt(e)}${Zt(e,t)}/`+n+`.${qt(e)}${Nt(e)}`}Rt.partial().or(Et.partial());const Bt=["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"],$t=["docx","xlsx","csv","pptx","pdf","zip","ai","mp3","mpeg","ttf","otf","jpg","jpeg","png","gif","psd","svg","txt","mp4","odt","webm"],Vt={"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"},zt=e=>Object.keys(Vt).find((t=>Vt[t]===e)),Gt=e=>{var t;return null!==(t=Vt[e])&&void 0!==t?t:void 0};function Jt(e){const t=String(e).split(".").pop();return $t.find((e=>e===t))}const Qt=e=>{var t;const i=Jt(e);return null!==(t=zt(i))&&void 0!==t?t:"application/octet-stream"},Kt=e=>e?(new Date(e).getTime()/1e3).toFixed(0):void 0,Ht=(e,t="fitx80")=>{const i=ni(e),n=Kt(e.dateModified);switch(i){default:return;case"video":return`/media/${e.id}.mp4?stream=true`+(n?`&_=${n}`:"");case"audio":return`/media/${e.id}.mp3`+(n?`?_=${n}`:"");case"gif":return Wt({timestamp:n,size:t,from:"imagecache",uri:e.uri,format:"gif"});case"image":return Wt({timestamp:n,size:t,from:"imagecache",uri:e.uri})}},Yt=e=>{const t=Jt(e);return void 0!==t?ei(zt(t)):"application"},Xt=e=>-1!==["image/vnd","image/svg","image/heic"].findIndex((t=>e.startsWith(t)));function ei(e){return e&&e.startsWith("folder/")?"folder":null==e||Xt(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 ti=(e,t,i="rr")=>"ng"===i?`/ng/file/${e}/${t}`:`/ng/rr/file/${e}/${t}`,ii=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?Qt(e.title):e.mimetype,ni=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?Yt(e.title):ei(e.mimetype);function ri(e){return e.startsWith("tag_")||"tags"===e}function ai(e){return Object.fromEntries(Object.entries(e).filter((([e])=>ri(e))))}function si(e,t,i){return Object.fromEntries(Object.entries(e).filter((([e])=>ri(e))).map((([e,n])=>{const r=Array.isArray(n)?n.map((e=>"object"==typeof e&&e&&t in e?e[t]:e)):n;return[e,i&&Array.isArray(r)?i(r):r]})))}function oi(e){return si(e,"uri")}const li=e=>{var t;let i={};"_errors"in e&&(i._errors=e._errors),"_options"in e&&(i._options=e._options),"title"in e&&(i.title=e.title),"description"in e&&(i.description=e.description),"activity"in e&&(i.activity=e.activity),"image"in e&&(i.image=e.image),"uri"in e&&(i.uri=e.uri),"type"in e&&(i.type=e.type),"edito"in e&&(i.edito=e.edito),"category"in e&&(i.category=e.category.toString()),"commentLevel"in e&&(i.commentLevel=e.commentLevel),"_options"in e&&(null===(t=e._options)||void 0===t?void 0:t.custom_widgets)&&(i.custom_widgets=Array.isArray(e._options.custom_widgets)?{}:e._options.custom_widgets),"displayType"in e&&(i.displayType=e.displayType),"language"in e&&(i.language=e.language),"edit_access"in e&&(i.edit_access=e.edit_access),"lock_mail"in e&&(i.lock_mail=e.lock_mail),"fileSyncEnabled"in e&&(i.fileSyncEnabled=e.fileSyncEnabled),"fileSyncVersioningType"in e&&(i.fileSyncVersioningType=e.fileSyncVersioningType),"fileBankQuota"in e&&(i.fileBankQuota=e.fileBankQuota),"idCommunity"in e&&(i.idCommunity=e.idCommunity),"lastRssExecution"in e&&(i.lastRssExecution=e.lastRssExecution),"mail_comment"in e&&(i.mail_comment=e.mail_comment),"mail_frequency"in e&&(i.mail_frequency=e.mail_frequency),"mail_spotit"in e&&(i.mail_spotit=e.mail_spotit),"mail_subscriber"in e&&(i.mail_subscriber=e.mail_subscriber),"notifyFolder"in e&&(i.notifyFolder=e.notifyFolder),"nounsubscribe"in e&&(i.nounsubscribe=e.nounsubscribe),"privacy"in e&&(i.privacy=e.privacy),"publishFolder"in e&&(i.publishFolder=e.publishFolder),"rss_access"in e&&(i.rss_access=e.rss_access),"rss_feed"in e&&(i.rss_feed=e.rss_feed&&Array.isArray(e.rss_feed)?JSON.stringify(e.rss_feed.map((e=>{var{_user:t}=e,i=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(e,["_user"]);return Object.assign(Object.assign({},i),{idUser:null==t?void 0:t.id})}))):"[]"),"rss_key"in e&&(i.rss_key=e.rss_key),"spot_right_user"in e&&(i.spot_right_user=e.spot_right_user),"spotBanner"in e&&(i.spotBanner=e.spotBanner),"spotDefaultPublishType"in e&&(i.spotDefaultPublishType=e.spotDefaultPublishType),"user_level_signup"in e&&(i.user_level_signup=e.user_level_signup),"useTeaser"in e&&(i.useTeaser=e.useTeaser),"widgets"in e&&(i.widgets=e.widgets);const n=ai(e);if(i=Object.assign(Object.assign({},i),n),ci(e,i))return i;throw new Error},ci=(e,t)=>{const i=["id","mainType","dateCreation","dateModified","_url","o2apLinksSources"],n=["custom_widgets"],r=Object.keys(e),a=Object.keys(t),s=r.filter((e=>!a.includes(e)&&!i.includes(e))),o=a.filter((e=>!r.includes(e)&&!n.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};var ui=function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}))};class di{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 ui(this,void 0,void 0,(function*(){const i=yield this.window.getBackendUrl();let n;try{n=new URL(`/${this.action}/${e}/${t}`,i).href}catch(r){n=`${i}/${this.action}/${e}/${t}`}return n}))}getHostname(){return ui(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:i,f:n}=e,r=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(e,["o","f"]);return ui(this,void 0,void 0,(function*(){void 0===t&&(t=null);const e=yield this.getUrl(i,n);return this.window.fetch(e,Object.assign(Object.assign({},di._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 ui(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 i=e.get("token");return i&&"string"==typeof i?this.window.fetch(t,{method:"POST",credentials:"same-origin",body:e}).then((e=>e.json())).then((e=>({response:e,token:i}))):Promise.reject("Missing token")}))}postCSRF(e,t){return this.tokenCSRF().then((i=>this.post(Object.assign(e,{tokenCSRF:i.result}),t)))}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 pi=Array.isArray,mi=Object.keys,gi=Object.prototype.hasOwnProperty;function hi(e,t,i){const n=null==i?void 0:i.map((e=>e.split(".")));if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const r=pi(e),a=pi(t);let s,o,l;if(r&&a){if(o=e.length,o!==t.length)return!1;for(s=o;0!=s--;)if(!hi(e[s],t[s],i))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=mi(e).filter((e=>!(null==n?void 0:n.some((t=>1===t.length&&t[0]===e)))));if(o=m.length,o!==mi(t).filter((e=>!(null==n?void 0:n.some((t=>1===t.length&&t[0]===e))))).length)return!1;for(s=o;0!=s--;)if(!gi.call(t,m[s]))return!1;for(s=o;0!=s--;)if(l=m[s],!("_owner"===l&&e.$$typeof||hi(e[l],t[l],null==n?void 0:n.filter((e=>e.length>1&&e[0]===l)).map((e=>e.splice(1).join("."))))))return!1;return!0}return e!=e&&t!=t}function fi(e,t){if(Array.isArray(e))return e.map((e=>fi(e,t)));if("object"==typeof e&&null!==e){let i={};return Object.keys(e).forEach((n=>{i=Object.assign(Object.assign({},i),{[n]:n&&t.includes(n)?typeof e[n]:fi(e[n],t)})})),i}return e}const bi=(e,t)=>Array.isArray(t)&&t.length?[e,...t].join(","):e,yi=Lt.object({href:Lt.string(),target:Lt.string()}),vi=Lt.object({name:Lt.string(),sort:Lt.union([Lt.literal("ASC"),Lt.literal("DESC")])}),wi=Lt.union([Lt.boolean(),Lt.string(),Lt.number(),Lt.array(Lt.string()),Lt.object({srcId:Lt.union([Lt.number(),Lt.string()]),srcType:Lt.string()}),Lt.object({targetId:Lt.union([Lt.number(),Lt.string()]),targetType:Lt.string()}),Lt.object({start:Lt.string(),end:Lt.string()})]),ki=Lt.union([Lt.literal("<"),Lt.literal(">"),Lt.literal("<="),Lt.literal(">="),Lt.literal("!="),Lt.literal("<>"),Lt.literal("like"),Lt.literal("between"),Lt.literal("is"),Lt.literal("is not"),Lt.literal("in"),Lt.literal("link"),Lt.literal("match"),Lt.literal("equal")]),_i=Lt.union([Lt.literal("<"),Lt.literal(">"),Lt.literal("<="),Lt.literal(">="),Lt.literal("!="),Lt.literal("<>"),Lt.literal("+"),Lt.literal("-"),Lt.literal("like"),Lt.literal("between"),Lt.literal("is"),Lt.literal("is not"),Lt.literal("in"),Lt.literal("link"),Lt.literal("match"),Lt.literal("equal")]),Si=Lt.object({name:Lt.string(),value:wi,operator:ki.optional(),method:_i.optional(),or:Lt.boolean().optional(),isNull:Lt.boolean().optional(),isNotNull:Lt.boolean().optional()}),ji=vi.array(),xi=Lt.array(Si),Ci=e=>e.and(Lt.object({token:Lt.string().or(Lt.undefined()).optional()}));var Ti;!function(e){e.LITTLE="raw-little",e.LIST="raw-list",e.VIEW="raw-view",e.USER_API="user-api",e.MOBILE="mobile"}(Ti||(Ti={}));const Ai=Lt.nativeEnum(Ti).transform((e=>`${e}`)),Oi=Lt.union([Ai,Lt.undefined()]),Li=Lt.array(Lt.union([Lt.literal("bookmark"),Lt.literal("contact"),Lt.literal("licenses"),Lt.literal("quizFieldDefinitions"),Lt.literal("quizResponseRecord"),Lt.literal("search"),Lt.literal("socialEventRecord"),Lt.literal("surveyDateRecord")])),Ri=Lt.object({additionalFilter:Lt.object({}).optional(),facets:Lt.array(Lt.object({})).optional(),filters:xi.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:ji.optional(),format:Oi.optional()}),Fi=e=>Lt.object(e),Ei=Fi({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),dateCreation:Lt.string().optional(),dateModified:Lt.string().nullable().optional()}),Pi=Ei.extend({title:Lt.string(),_url:Lt.string()}),Ii=e=>Pi.safeParse(e).success,Mi=Lt.object({type:Lt.literal("text")}),Di=Lt.string(),Ni=Lt.object({type:Lt.literal("textarea"),params:Lt.object({class:Lt.literal("mceEditor"),mention:Lt.literal("1")}).optional()}),Zi=Lt.string().nullable(),qi=Lt.object({type:Lt.literal("number")}),Ui=Lt.number(),Wi=Lt.object({type:Lt.literal("color"),options:Lt.object({colors:Lt.string(),defaultColor:Lt.string()})}),Bi=Lt.object({type:Lt.literal("date"),format:Lt.string()}),$i=Lt.string().nullable(),Vi=Lt.object({type:Lt.literal("datetime")}),zi=Lt.string().nullable(),Gi=Lt.object({type:Lt.literal("datePicker")}),Ji=Lt.string().nullable(),Qi=Lt.number(),Ki=Lt.object({type:Lt.literal("audience"),options:Lt.object({disableEveryoneAudience:Lt.boolean().optional()}).optional()}),Hi=Lt.object({type:Lt.literal("link")}),Yi=Lt.object({type:Lt.literal("multiattribute")}),Xi=Lt.object({type:Lt.literal("file")}),en=Lt.object({type:Lt.literal("select"),options:Lt.record(Lt.string()),params:Lt.object({data:Lt.string().optional(),defaultValue:Lt.string().optional(),explain:Lt.literal(1).optional()}).optional()}),tn=Lt.object({type:Lt.literal("embed")}),nn=Lt.object({type:Lt.literal("email")}),rn=Lt.string(),an=Lt.object({type:Lt.literal("url"),params:Lt.object({target:Lt.literal("_blank").optional()})}),sn=Lt.string(),on=Lt.object({type:Lt.literal("place"),options:Lt.record(Lt.string())}),ln=Lt.object({type:Lt.literal("refUser")}),cn=Lt.object({type:Lt.literal("transient")}),un=Lt.object({type:Lt.literal("radio"),options:Lt.record(Lt.string())}),dn=Lt.object({type:Lt.literal("checkbox"),options:Lt.record(Lt.string())}),pn=Lt.object({type:Lt.literal("taxonomy"),params:Lt.object({idTaxonomy:Lt.string(),type:Lt.string().optional(),limit:Lt.number().optional()})}),mn=Lt.object({type:Lt.literal("tel")}),gn=Lt.object({type:Lt.literal("toggle")}),hn=Lt.object({type:Lt.literal("orientedlinks"),params:Lt.object({"jcomplete-multiple":Lt.union([Lt.literal("0"),Lt.literal("1")]),showAdd:Lt.union([Lt.literal("0"),Lt.literal("1")]),supportedTypes:Lt.array(Lt.string())})}),fn=Lt.object({type:Lt.literal("uri"),params:Lt.object({class:Lt.string(),"jcomplete-url":Lt.string(),type:Lt.string()})}),bn=Lt.union([Mi,Ni,qi,Bi,Vi,Gi,en,tn,nn,an,ln,un,dn,hn,pn,fn,cn,Yi,mn,gn,on,Wi,Hi,Xi,Ki]),yn=Lt.union([Qi,Ji,zi,$i,rn,Ui,Zi,Di,sn]),vn={ADMIN:9,USER:5,EXTERNAL:3,GUEST:0},wn=Ei.extend({title:Lt.string(),_url:Lt.string(),level:Lt.nativeEnum(vn),dateCreation:Lt.string(),dateModified:Lt.string()}).catchall(yn),kn=wn.extend({active:Lt.number()}),_n=e=>kn.safeParse(e).success,Sn=kn,jn=e=>Sn.safeParse(e).success,xn=Lt.object({idInType:Lt.number(),lat:Lt.number(),lng:Lt.number()}),Cn=e=>xn.safeParse(e).success,Tn=Lt.object({title:Lt.string(),firstname:Lt.string(),lastname:Lt.string(),mail:Lt.union([Lt.string(),Lt.undefined()]).optional(),description:Lt.string().optional(),dateOfBirth:Lt.string().optional(),phoneNumber:Lt.string().optional(),language:Lt.string().optional(),timeZone:Lt.string().optional(),mobileNumber:Lt.string().optional(),company:Lt.string().optional(),country:Lt.string().optional(),department:Lt.string().optional(),function:Lt.string().optional(),webSite:Lt.string().optional(),image:Lt.union([Lt.string(),Lt.undefined()]).optional(),userBanner:Lt.union([Lt.string(),Lt.undefined()]).optional(),field1:Lt.string().optional(),field2:Lt.string().optional(),field3:Lt.string().optional(),field4:Lt.string().optional(),field5:Lt.string().optional()}),An=Tn.required().extend({level:Lt.string(),image:Lt.string().optional(),businessManagementManager:wn.array().optional(),businessNetworkingUserToCompanySrc:wn.array().optional()}),On=Lt.object({user_field_edit_profil:Lt.record(Tn.keyof(),Lt.number()),user_field_editable:Lt.record(Tn.keyof(),Lt.number()),user_field_my_page:Lt.record(Tn.keyof(),Lt.number()),user_page_mandatory_fields:Lt.object({firstname:Lt.enum(["0","1"]),lastname:Lt.enum(["0","1"]),pseudo:Lt.enum(["0","1"])})}),Ln=Lt.object({name:Lt.string(),value:Lt.union([Lt.string(),Lt.record(Lt.string(),Lt.any())])}),Rn=Lt.enum(["popover"]),Fn=Lt.object({values:An,mobileEditableFields:An.keyof().array()}),En=Lt.object({mail:Lt.union([Lt.string(),Lt.undefined()]),title:Lt.string(),firstname:Lt.string(),lastname:Lt.string(),phoneNumber:Lt.union([Lt.string(),Lt.undefined()]).optional(),company:Lt.union([Lt.string(),Lt.undefined()]).optional(),function:Lt.union([Lt.string(),Lt.undefined()]).optional(),uri:Lt.union([Lt.string(),Lt.undefined()]).optional(),field1:Lt.union([Lt.string(),Lt.undefined()]).optional(),field2:Lt.union([Lt.string(),Lt.undefined()]).optional(),field3:Lt.union([Lt.string(),Lt.undefined()]).optional(),field4:Lt.union([Lt.string(),Lt.undefined()]).optional(),field5:Lt.union([Lt.string(),Lt.undefined()]).optional()}),Pn=Lt.object({userDirectoryShow:Lt.union([Lt.literal(""),Lt.literal("1")]),contactDirectoryShow:Lt.union([Lt.literal("0"),Lt.literal("1")]),businessContactShow:Lt.boolean(),menu:Lt.union([Lt.literal("0"),Lt.literal("1")]),cardFields:Lt.string().array(),tableFields:Lt.string().array(),viewFields:Lt.string().array(),userGeoloc:Lt.boolean().optional(),sort:Lt.string(),cnt:Lt.number().optional(),filters:Lt.object({name:Lt.string(),type:Lt.string()}).array()}),In=e=>Pn.safeParse(e).success,Mn=Fi({create:Lt.boolean(),read:Lt.boolean(),publish:Lt.boolean(),administrate:Lt.boolean(),update:Lt.boolean(),delete:Lt.boolean(),comment:Lt.boolean(),member:Lt.boolean()}),Dn=e=>Mn.safeParse(e).success,Nn=Lt.object({attrName:Lt.string(),token:Lt.string(),file:Lt.instanceof(File).nullable().optional(),url:Lt.string().optional()}),Zn=Lt.object({width:Lt.number(),height:Lt.number()}),qn=Lt.object({x:Lt.number(),y:Lt.number(),w:Lt.number(),h:Lt.number(),rotation:Lt.number(),killSize:Lt.boolean().optional()}),Un=Pi.extend({dateCreation:Lt.string(),dateModified:Lt.string().nullable(),mimetype:Lt.string(),path:Lt.string().optional(),size:Lt.number()}),Wn=e=>Un.parse(e),Bn=Un.extend({_extend:Lt.object({crop:qn})}),$n=Lt.object({name:Lt.string(),filename:Lt.string(),dateModified:Lt.string(),mimetype:Lt.string()}),Vn=Lt.object({idUser:Lt.string(),dateDownload:Lt.string(),Pseudo:Lt.string(),type:Lt.string()});var zn;Lt.object({id:Lt.number(),token:Lt.string().optional(),attrName:Lt.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.ArticleSlider="widget-article-slider",e.CheckList="widget-check-list",e.DatasourceTable="widget-datasource-table",e.ExcelDatasourceTable="widget-excel-datasource-table",e.Presence="widget-presence",e.QuickSurvey="widget-quick-survey"}(zn||(zn={}));const Gn=Lt.nativeEnum(zn),Jn=Lt.object({title:Lt.string(),widget:Lt.object({name:Gn,uniqid:Lt.string(),content:Lt.unknown()})}).catchall(Lt.unknown()),Qn=Lt.enum(["left","right","center","justify"]),Kn=Lt.enum(["top","bottom","center","left","right"]),Hn=Lt.enum(["auto","contain","cover"]),Yn=Lt.enum(["sm","md","lg"]),Xn=Lt.enum(["contained","outlined"]),er=Lt.enum(["link","anchor","popup"]),tr=Lt.object({x:Lt.number(),y:Lt.number()}),ir=Lt.enum(["default","vertical"]),nr=(e,t,i)=>{const n=t.safeParse(e);return!1===n.success&&i&&console.error(n.error.message),n.success},rr=(e,t)=>t.safeParse(e).success,ar=Fi({files:Un.array().optional(),fileDisplay:Lt.enum(["list","gallery"]).optional()}),sr=Fi({name:Lt.literal(zn.ArticleAttachment),uniqid:Lt.string(),content:ar}),or=Lt.object({url:Lt.string(),target:Lt.string()}),lr=Lt.object({uniqid:Lt.string()}),cr=Lt.object({title:Lt.string(),widgets:Jn.array()}),ur=Fi({text:Lt.string().optional(),color:Lt.string().optional(),backgroundColor:Lt.string().optional(),borderRadius:Lt.string().optional(),fontSize:Lt.string().optional(),buttonSize:Yn.optional(),variant:Xn.optional(),url:Lt.string().optional(),target:Lt.string().optional()}),dr=ur.extend({openingType:er.optional(),openingTypeLink:or.optional(),openingTypeAnchor:lr.optional(),openingTypePopup:cr.optional()}),pr=Fi({name:Lt.literal(zn.ArticleButton),uniqid:Lt.string(),content:dr}),mr=Fi({gap:Lt.string().optional(),column:Lt.string().optional(),files:Un.array().optional()}),gr=Fi({name:Lt.literal(zn.ArticleGallery),uniqid:Lt.string(),content:mr}),hr=Fi({file:Un.optional(),useFilter:Lt.boolean().optional()}),fr=Fi({name:Lt.literal(zn.ArticleImage),uniqid:Lt.string(),content:hr}),br=Fi({title:Lt.string(),text:Lt.string(),titleHeading:Lt.enum(["h1","h2","h3","h4","h5","h6","p","span"]).optional(),textColor:Lt.string().optional(),opacityFilter:Lt.number().optional(),opacityColor:Lt.string().optional(),file:Un.optional()}),yr=Fi({slides:br.array().optional(),maxWidth:Lt.number().optional(),loop:Lt.boolean().optional(),useDots:Lt.boolean().optional(),startAt:Lt.number().optional()}),vr=Fi({name:Lt.literal(zn.ArticleSlider),uniqid:Lt.string(),content:yr}),wr=Fi({text:Lt.string().optional(),color:Lt.string().optional(),fontSize:Lt.string().optional(),lineHeight:Lt.string().optional(),linkColor:Lt.string().optional()}),kr=Fi({name:Lt.literal(zn.ArticleText),uniqid:Lt.string(),content:wr}),_r=Fi({text:Lt.string().optional(),textAlign:Qn.optional(),heading:Lt.string().optional(),color:Lt.string().optional(),backgroundColor:Lt.string().optional()}),Sr=Fi({name:Lt.literal(zn.ArticleTitle),uniqid:Lt.string(),content:_r}),jr=Fi({title:Lt.string(),value:Lt.boolean().optional(),links:yi.array().optional(),id:Lt.number().optional(),file:Un.optional(),user:Lt.object({id:Lt.number().or(Lt.string()),type:Lt.literal("user"),mainType:Lt.literal("user")}).optional()}),xr=Lt.object({arr:jr.array().optional(),css:Lt.record(Lt.string(),Lt.string()).optional(),widgets:Jn.array().optional(),edit:Lt.boolean().optional()}),Cr=Fi({name:Lt.literal(zn.CheckList),uniqid:Lt.string(),content:xr}),Tr=Lt.enum(["date","date-time","date-time-sec","time","time-sec"]),Ar=Lt.enum(["fr-FR","en-EN","filesize"]),Or=Lt.object({}),Lr=Lt.object({type:Lt.literal("text")}),Rr=Lt.object({label:Lt.string(),value:Lt.string()}),Fr=Lt.object({type:Lt.literal("select"),options:Rr.array()}),Er=Lt.object({type:Lt.literal("date")}),Pr=Lt.union([Lr,Fr,Er,Or]),Ir=Lt.object({name:Lt.string().optional(),isVisible:Lt.boolean().optional(),textEllipsis:Lt.boolean().optional(),label:Lt.string().optional(),dateFormat:Tr.optional(),numberFormat:Ar.optional()}),Mr=Ir.array(),Dr=Lt.enum(["text","uri","file","select","url","transient","date","datetime","email","number","title"]),Nr=Lt.object({name:Lt.string(),label:Lt.string(),sortable:Lt.boolean().optional(),type:Dr,widget:Pr}),Zr=Lt.object({limit:Lt.number().or(Lt.boolean()).optional(),tableColumnsData:Ir.array().optional(),tableHeadColor:Lt.string().optional(),tableHeadTextColor:Lt.string().optional(),tableHeadIconColor:Lt.string().optional(),tableRowColor:Lt.string().optional(),tableRowTextColor:Lt.string().optional(),tableBorderRadius:Lt.number().optional(),tableSizedColumns:Lt.boolean().optional(),tableSizedColumnsWidth:Lt.number().optional()}),qr=Zr.extend({uri:Lt.string().optional()}),Ur=Fi({name:Lt.literal(zn.DatasourceTable),uniqid:Lt.string(),content:qr}),Wr=qr.extend({uri:Lt.string().optional()}),Br=Fi({name:Lt.literal(zn.ExcelDatasourceTable),uniqid:Lt.string(),content:Wr}),$r=Lt.object({limit:Lt.boolean().or(Lt.number()).optional(),limitValue:Lt.number().optional(),closing:Lt.boolean().optional(),isClosed:Lt.boolean().optional()}),Vr=e=>rr(e,$r),zr=Fi({name:Lt.literal(zn.Presence),uniqid:Lt.string(),content:$r}),Gr=e=>nr(e,zr),Jr=Lt.object({id:Lt.number(),type:Lt.string(),uniqid:Lt.string(),value:Lt.number()}),Qr=e=>nr(e,Jr),Kr=Lt.object({userValue:Lt.number(),userAvailableList:wn.array(),userUnavailableList:wn.array(),userAvailableTotal:Lt.number(),userUnavailableTotal:Lt.number()}),Hr=e=>nr(e,Kr),Yr=Lt.object({data:wn.array(),cnt:Lt.number(),page:Lt.number(),limit:Lt.number()}),Xr=Fi({title:Lt.string(),id:Lt.number().optional(),mimetype:Lt.string().optional(),file:Un.optional()}),ea=Lt.object({arr:Xr.array().optional(),css:Lt.record(Lt.string(),Lt.string()).optional(),widgets:Jn.array().optional(),userTotal:Lt.number().optional(),open:Lt.boolean().optional(),multi:Lt.boolean().optional(),closing:Lt.boolean().optional(),isClosed:Lt.boolean().optional(),showResult:Lt.boolean().optional(),isNotDisabled:Lt.boolean().optional(),seeResponseAfter:Lt.boolean().optional(),anonymize:Lt.boolean().optional()}),ta=Fi({name:Lt.literal(zn.QuickSurvey),uniqid:Lt.string(),content:ea}),ia=Lt.array(Lt.object({userList:wn.array(),counter:Lt.number()})),na=Lt.object({totalRespondent:Lt.number(),totalResponse:Lt.number(),userLoggedResponses:Lt.string().array(),userResponses:ia}),ra=Lt.object({data:wn.array(),cnt:Lt.number(),page:Lt.number(),limit:Lt.number()}),aa=Lt.union([Lt.object({layers:Lt.string().array().optional()}).and(sr),Lt.object({layers:Lt.string().array().optional()}).and(pr),Lt.object({layers:Lt.string().array().optional()}).and(gr),Lt.object({layers:Lt.string().array().optional()}).and(fr),Lt.object({layers:Lt.string().array().optional()}).and(Sr),Lt.object({layers:Lt.string().array().optional()}).and(kr),Lt.object({layers:Lt.string().array().optional()}).and(vr),Lt.object({layers:Lt.string().array().optional()}).and(Cr),Lt.object({layers:Lt.string().array().optional()}).and(Ur),Lt.object({layers:Lt.string().array().optional()}).and(Br),Lt.object({layers:Lt.string().array().optional()}).and(zr),Lt.object({layers:Lt.string().array().optional()}).and(ta)]),sa=Fi({title:Lt.string(),widget:aa}),oa=Lt.object({widgets:sa.array().optional()}).and(Lt.union([ar,dr,mr,hr,wr,_r,yr,xr,qr,Wr,$r,ea])),la=Lt.object({[zn.ArticleButton]:pr,[zn.ArticleGallery]:gr,[zn.ArticleTitle]:Sr,[zn.ArticleText]:kr,[zn.ArticleImage]:fr,[zn.ArticleAttachment]:sr,[zn.ArticleSlider]:vr,[zn.CheckList]:Cr,[zn.DatasourceTable]:Ur,[zn.ExcelDatasourceTable]:Br,[zn.Presence]:zr,[zn.QuickSurvey]:ta}),ca=Lt.object({[zn.ArticleButton]:dr,[zn.ArticleGallery]:mr,[zn.ArticleTitle]:_r,[zn.ArticleText]:wr,[zn.ArticleImage]:hr,[zn.ArticleAttachment]:ar,[zn.ArticleSlider]:yr,[zn.CheckList]:xr,[zn.DatasourceTable]:qr,[zn.ExcelDatasourceTable]:Wr,[zn.Presence]:$r,[zn.QuickSurvey]:ea}),ua=Lt.object({busy:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),loading:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),initialized:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),mounted:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),hover:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),empty:Lt.boolean().optional(),locked:Lt.boolean().optional()}),da=Lt.object({type:Lt.string(),title:Lt.string(),description:Lt.string(),privacy:Lt.union([Lt.string(),Lt.number()]),edito:Lt.string().nullable(),language:Lt.string(),category:Lt.string(),idCommunity:Lt.string().optional()}),pa=Lt.object({id:Lt.string(),name:Lt.string(),size:Lt.string()}),ma=Lt.union([Lt.literal(0),Lt.literal(1),Lt.literal(2),Lt.literal(3)]),ga=Lt.object({level:ma,user:wn}),ha=Lt.object({RF_Constant_levelName:Lt.string(),RF_delete:Lt.boolean(),RF_editing:Lt.boolean(),RF_level:Lt.number(),RF_levelName:Lt.string(),RF_levelName_Trad:Lt.string(),RF_parameters:Lt.boolean(),RF_setAdmin:Lt.boolean(),RF_spotit:Lt.boolean(),RF_spotit_own:Lt.boolean()});var fa;!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"}(fa||(fa={}));const ba=Lt.nativeEnum(fa),ya=Lt.object({userLevelSpot:ha,spotMinLevelToInvit:Lt.number(),userRights:Mn,accessRequestStatus:ba.optional()}),va=Lt.object({value:Lt.union([Lt.string(),Lt.number()]),label:Lt.string()}),wa=Lt.object({id:Lt.string(),title:Lt.string()}),ka=Lt.object({idSpot:Lt.string(),idOrder:Lt.string(),idWidget:Lt.string(),type:Lt.string(),title:Lt.string(),url:Lt.string(),visible:Lt.string()}),_a=Lt.object({edit_access:Lt.array(va.and(Lt.object({description:Lt.string()}))),commentLevel:Lt.array(va.and(Lt.object({selected:Lt.boolean().optional()}))),displayType:Lt.array(va),user_level_signup:Lt.array(va.and(Lt.object({selected:Lt.boolean().optional()}))),spot_right_user:Lt.array(va.and(Lt.object({selected:Lt.boolean().optional()}))),useTeaser:Lt.array(va),spotDefaultPublishType:Lt.array(Lt.string()),mail_frequency:Lt.array(va),widgets:Lt.array(wa),custom_widgets:Lt.record(ka).or(Lt.array(Lt.never())),isArchive:Lt.number(),fileSyncVersioningType:Lt.array(va)}),Sa=Lt.object({url:Lt.string(),idUser:Lt.number(),send:Lt.boolean().optional(),_user:wn.optional(),date:Lt.string().optional(),error:Lt.string().optional()}),ja=Lt.object({edit_access:Lt.union([Lt.literal(""),Lt.literal("author")]),commentLevel:Lt.union([Lt.literal("-1"),Lt.literal("1"),Lt.literal("2"),Lt.literal("3")]),user_level_signup:Lt.union([Lt.literal(""),Lt.literal("1"),Lt.literal("2"),Lt.literal("3")]),nounsubscribe:Lt.union([Lt.literal("0"),Lt.literal("1")]),useTeaser:Lt.union([Lt.literal(""),Lt.literal("0"),Lt.literal("1")]).nullable(),displayType:Lt.string(),spot_right_user:Lt.string(),rss_feed:Lt.array(Sa).nullable(),spotDefaultPublishType:Lt.string(),mail_frequency:Lt.string(),mail_comment:Lt.union([Lt.literal("1"),Lt.literal("")]),mail_spotit:Lt.union([Lt.literal("1"),Lt.literal("")]),mail_subscriber:Lt.union([Lt.literal("1"),Lt.literal("")]),lock_mail:Lt.union([Lt.literal("1"),Lt.literal("")]),activity:Lt.union([Lt.literal("1"),Lt.literal("0")]),publishFolder:Lt.union([Lt.literal("1"),Lt.literal("0")]),notifyFolder:Lt.union([Lt.literal("1"),Lt.literal("0")]),widgets:Lt.array(Lt.string()),rss_access:Lt.union([Lt.literal("1"),Lt.literal("0")]),rss_key:Lt.string(),fileSyncEnabled:Lt.union([Lt.literal("1"),Lt.literal("0")]),fileBankQuota:Lt.string(),fileSyncVersioningType:Lt.union([Lt.literal("overwrite"),Lt.literal("author-change")]),_options:_a,_errors:Lt.tuple([]),lastRssExecution:Lt.record(Lt.string()).optional()}),xa=da.and(ja.omit({rss_feed:!0}).partial()).and(Lt.object({uri:Lt.string(),image:Lt.string().nullable().optional(),spotBanner:Lt.record(pa).or(Lt.array(Lt.never())).optional(),token:Lt.string().optional(),uriCommunity:Lt.string().optional(),custom_widgets:Lt.record(ka).optional(),rss_feed:Lt.string()})),Ca=Lt.object({idWidget:Lt.string(),title:Lt.string(),url:Lt.string(),type:Lt.string(),icon:Lt.string(),description:Lt.string()}),Ta=Lt.object({id:Lt.string(),idorder:Lt.number(),label:Lt.string()}),Aa=Pi.extend({dateCreation:Lt.string(),dateModified:Lt.string(),category:Lt.number(),privacy:Lt.number()}),Oa=Aa.extend({description:Lt.string(),edito:Lt.string().nullable(),language:Lt.string()}),La=Oa.extend({image:Lt.string().nullable().optional(),spotBanner:Lt.record(pa).or(Lt.array(Lt.never())).optional(),idCommunity:Lt.string().optional(),useTeaser:Lt.union([Lt.literal(""),Lt.literal("0"),Lt.literal("1")]).nullable().optional()}),Ra=Lt.object({idSpot:Lt.union([Lt.string(),Lt.number()]),mailFrequency:Lt.union([Lt.string(),Lt.number()]),mailSpotit:Lt.boolean(),mailComment:Lt.boolean(),mailSubscriber:Lt.boolean()}),Fa=Lt.object({type:Lt.string().optional(),format:Oi.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:ji.optional(),filters:xi.or(Lt.undefined()).optional()}),Ea=e=>ha.safeParse(e).success,Pa=Pi.extend({description:Lt.string().optional().nullable(),_user:wn,_right:Mn}),Ia=e=>Pa.safeParse(e).success,Ma=Pi.extend({type:Lt.enum(["folder","rootFolder"]),folderColor:Lt.string().optional()}),Da=Lt.union([wn,Aa,Ma]),Na=Pi.extend({dateCreation:Lt.string(),dateModified:Lt.string()}),Za=Na.extend({description:Lt.string().nullable().optional(),_user:wn,_right:Mn,_audience:Da.array(),image:Zn.optional(),articleWidgets:sa.array().optional()}),qa=Za,Ua=qa.extend({_attachedFiles:Un.array()}),Wa=Ua.extend({processContext:Lt.null(),_transientCtx:Lt.null(),uiObjectLink:Pi.array().optional()}),Ba=e=>Ua.extend({idDraft:Lt.number(),form:e}),$a=Lt.object({type:Lt.string().optional(),format:Oi.optional(),formatExtend:Li.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:ji.optional(),filters:xi.optional(),public:Lt.boolean().optional()}),Va=Lt.object({uri:Lt.string().optional(),idArticle:Lt.number().optional(),format:Oi.optional()}),za=Lt.object({title:Lt.string().optional(),description:Lt.string().optional().nullable(),type:Lt.string().optional(),publishTo:Lt.string().optional(),idSpot:Lt.array(Lt.string()).optional()}),Ga=Lt.object({id:Lt.number(),type:Lt.string(),dateCreation:Lt.string(),dateModified:Lt.string(),title:Lt.string(),uri:Lt.string()}),Ja=Lt.object({attachment:Lt.boolean().optional(),idArticle:Lt.number(),limits:Lt.object({max:Lt.number(),start:Lt.number()}).optional()}),Qa=Lt.object({token:Lt.string(),content:Lt.string(),idArticle:Lt.number(),sendAlert:Lt.boolean(),alertAuthor:Lt.boolean(),widgets:sa.array().optional(),type:Lt.union([Lt.literal("comment"),Lt.literal("commentResponse")]).optional()}),Ka=Lt.object({token:Lt.string().optional(),description:Lt.string().optional(),idComment:Lt.number(),widgets:sa.array().optional()}),Ha=Lt.object({idUser:Lt.string(),dateRead:Lt.string(),Pseudo:Lt.string(),type:Lt.string()}),Ya=Ma.merge(qa).extend({_nbItems:Lt.number(),parentURI:Lt.string().optional()}),Xa=qa.extend({place:Lt.string(),address:Lt.string(),dateStart:Lt.string(),dateEnd:Lt.string(),noGestion:Lt.boolean()}),es=Ua.and(Xa).and(Lt.object({allDay:Lt.null(),useQrcode:Lt.null(),textColor:Lt.string(),bgColor:Lt.string(),socialEventUseCeiling:Lt.null(),socialEventCeiling:Lt.null(),hideFromCalendar:Lt.null(),urlGestion:Lt.string().optional().nullable()})),ts=e=>es.safeParse(e).success,is=Ei.extend({srcId:Lt.number(),srcType:Lt.string(),targetId:Lt.number(),targetType:Lt.string().nullable()}),ns=e=>is.extend({value:Lt.string().nullable(),_src:e.optional(),_target:e.optional().or(Lt.undefined())}),rs=e=>ns(null!=e?e:Pi.or(wn)).extend({bookmarkUrl:Lt.string().optional().nullable(),bookmarkOrder:Lt.number().optional(),bookmarkLabel:Lt.string().optional(),bookmarkMeta:Lt.string().optional().nullable(),url:Lt.string().optional().nullable(),type:Lt.literal("bookmarkLink")}),as=e=>Lt.object({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),_values:Lt.object({dateCreation:Lt.string(),dateModified:Lt.string()}).optional(),srcId:Lt.number(),srcType:Lt.string(),targetId:Lt.number(),targetType:Lt.string().nullable(),value:Lt.string().nullable(),_cssColor:Lt.string(),_cssClass:Lt.string(),_src:(null!=e?e:Pi).optional(),_target:(null!=e?e:Pi).optional(),bookmarkUrl:Lt.string().optional().nullable(),bookmarkOrder:Lt.string().optional(),bookmarkLabel:Lt.string().optional(),bookmarkMeta:Lt.string().optional().nullable(),url:Lt.string().optional().nullable()});var ss;!function(e){e.RAW_LIST="raw-list",e.LIST="list"}(ss||(ss={}));const os=Lt.object({targetId:Lt.number(),targetType:Lt.string(),format:Lt.nativeEnum(ss).transform((e=>`${e}`)).optional()}),ls=Lt.object({[ss.RAW_LIST]:rs(),[ss.LIST]:as()}),cs=Lt.object({bookmarkLabel:rs(Pi).shape.bookmarkLabel,bookmarkMeta:rs(Pi).shape.bookmarkMeta,bookmarkUrl:rs(Pi).shape.bookmarkUrl}),us=Lt.object({countActiveUsersWithoutLicense:Lt.number().optional(),countLicensesAssigned:Lt.number(),countLicensesNotAssigned:Lt.number()}),ds=Lt.object({name:Lt.string(),operator:Lt.string(),value:Lt.number()}),ps=Lt.record(Lt.number()),ms=Lt.object({id:Lt.number(),kind:Lt.string(),dateCreation:Lt.string(),idFeature:Lt.number(),uri:Lt.string(),contentId:Lt.number(),contentType:Lt.string(),status:Lt.number()}),gs=Lt.object({id:Lt.number(),kind:Lt.string(),dateCreation:Lt.string(),idFeature:Lt.number(),uri:Lt.string(),contentId:Lt.number(),contentType:Lt.string(),status:Lt.number()}),hs=kn.extend({_extend:Lt.object({licenses:Lt.array(gs)})}),fs=Ri.extend({data:hs.array()}),bs=Lt.object({uri:Lt.string(),title:Lt.string(),price:Lt.number(),image:Lt.string(),license:Lt.boolean()}),ys=Lt.object({url:Lt.string()}),vs=Lt.object({sref:Lt.string().optional(),href:Lt.string().optional(),idDiv:Lt.string(),label:Lt.string(),icon:Lt.string(),licenseMode:Lt.literal("classic").optional(),hook:Lt.string().optional()}),ws=Lt.object({name:Lt.string(),label:Lt.string(),icon:Lt.string(),color:Lt.tuple([Lt.string(),Lt.string(),Lt.string()]),state:Lt.string().optional(),access:Lt.boolean(),url:Lt.string().optional(),tabs:Lt.array(vs).optional()}),ks=Lt.array(ws),_s=Lt.union([Lt.literal("Halloween"),Lt.literal("Celebration"),Lt.literal("Olympics"),Lt.literal("Maythefourth"),Lt.literal("Spring"),Lt.literal("MusicFestival"),Lt.literal("EasterEggs"),Lt.literal("CustomAnimation")]),Ss=Lt.object({name:_s,activeClickEffect:Lt.number(),activeDecor:Lt.number(),auto:Lt.boolean(),audience:Lt.array(Lt.string())}),js=Lt.object({date:Lt.string(),number:Lt.number()}),xs=Lt.object({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),dateCreation:Lt.string().nullable(),dateModified:Lt.string().nullable(),animationName:Lt.string(),dateStart:Lt.string(),dateEnd:Lt.string().nullable(),auto:Lt.boolean(),stats:Lt.array(js),animAudience:Lt.array(Lt.string())}),Cs=Lt.union([Lt.literal("created"),Lt.literal("validated"),Lt.literal("handled")]),Ts=Ua.extend({aseiClearanceTicketValidator:wn.array(),aseiClearanceTicketHandler:Pi.array(),aseiClearanceTicketApplicationManagers:Pi.array(),aseiClearanceTicketInstitution:Pi.array(),processContext:Lt.null(),_transientCtx:Lt.null(),aseiClearanceTicketNatureOfDemand:Lt.string(),aseiClearanceTicketInternetAccess:Lt.string(),aseiClearanceTicketInternetAccessSpecify:Lt.string(),aseiClearanceTicketMicrosoftTeams:Lt.string().nullable(),aseiClearanceTicketVariousNetworks:Lt.string().nullable(),aseiClearanceTicketFreeText:Lt.string(),aseiClearanceTicketOfficeAccess:Lt.string().nullable(),aseiClearanceTicketSharedDirectoriesSpecify:Lt.string(),aseiClearanceTicketBlueKanGo:Lt.string().nullable(),aseiClearanceTicketAccounting:Lt.string(),aseiClearanceTicketAccountingBudget:Lt.string(),aseiClearanceTicketTransfers:Lt.string().nullable(),aseiClearanceTicketBilling:Lt.string(),aseiClearanceTicketPayroll:Lt.string(),aseiClearanceTicketPayrollBudget:Lt.string(),aseiClearanceTicketAccommodationCosts:Lt.string(),aseiClearanceTicketCommercialManagement:Lt.string(),aseiClearanceTicketInventoryManagement:Lt.string(),aseiClearanceTicketTimeManagement:Lt.string(),aseiClearanceTicketBdes:Lt.string(),aseiClearanceTicketMandateStart:Lt.string().nullable(),aseiClearanceTicketMandateEnd:Lt.string().nullable(),aseiClearanceTicketIndicatorsPlatform:Lt.string().nullable(),aseiClearanceTicketBudgetLetters:Lt.string(),aseiClearanceTicketComputerisedFile:Lt.string().nullable(),aseiClearanceTicketRecruiterAccess:Lt.string().nullable(),aseiClearanceTicketTypeOfWorkContractFrom:Lt.null(),aseiClearanceTicketTypeOfWorkContractTo:Lt.null(),aseiClearanceTicketLastName:Lt.string(),aseiClearanceTicketFirstName:Lt.string(),aseiClearanceTicketUser:wn.array(),aseiClearanceTicketTypeOfWorkContract:Lt.string(),aseiClearanceTicketTypeOfWorkContractSpecify:Lt.string(),aseiClearanceTicketPosition:Lt.string(),aseiClearanceTicketStatus:Cs}),As=Na.extend({_right:Mn,_user:wn,aseiInstitutionValidator:Pi.array(),processContext:Lt.null()}),Os=Lt.object({dsi:Lt.string(),gestionnaireApplicatif:Lt.string(),createurDemande:Lt.string()}),Ls=Lt.object({accessWriter:Lt.boolean(),accessApp:Lt.boolean()}),Rs=Lt.object({description:Lt.string(),right:Lt.object({manage:Lt.boolean()}),daysOff:Lt.array(Lt.string()).optional(),weekEnd:Lt.union([Lt.literal("0"),Lt.literal("1")]),bookingOpeningTime:Lt.string(),bookingClosingTime:Lt.string(),lastBookingSchedule:Lt.string()}),Fs=qa.extend({_isColorDark:Lt.boolean().nullable(),assetPlannerBackgroundColor:Lt.string().nullable()}),Es=Fs.extend({assetBanner:Lt.record(Lt.object({id:Lt.string(),name:Lt.string(),size:Lt.string()}))}),Ps=qa.extend({dateStart:Lt.string(),dateEnd:Lt.string(),reservationCancelled:Lt.boolean(),_asset:Fs}),Is=Lt.object({id:Lt.string(),uri:Lt.string(),shortUri:Lt.string(),title:Lt.string(),name:Lt.string(),mainType:Lt.string(),type:Lt.string(),label:Lt.string(),cssClass:Lt.string(),cssColor:Lt.string(),class:Lt.string()}),Ms=Is.extend({title:Lt.string()}),Ds=Ms.extend({Pseudo:Lt.string()}),Ns=Ms.extend({idspot:Lt.string()}),Zs=Lt.union([Ms,Ds,Ns]),qs=Pi.extend({isTechnical:Lt.number(),status:Lt.number(),image:Lt.string(),isMember:Lt.boolean(),stats:Lt.object({moderators:Lt.number(),members:Lt.string()}),_members:Lt.array(Pi)}),Us=Lt.object({token:Lt.string(),fullname:Lt.string()}),Ws=Lt.object({redirectUrl:Lt.string()}),Bs=Lt.object({token:Lt.string()}),$s=Lt.object({dateStart:Lt.string(),title:Lt.string()}),Vs=Na.extend({type:Lt.literal("businessContactCard")}),zs=qa.and(Vs.and(Lt.object({mail:Lt.string().nullable(),pseudo:Lt.string().nullable(),firstName:Lt.string().nullable(),lastName:Lt.string().nullable(),phoneNumber:Lt.string().nullable(),company:Lt.string().nullable(),function:Lt.string().nullable(),champ1:Lt.string().nullable().optional(),champ2:Lt.string().nullable().optional(),champ3:Lt.string().nullable().optional(),champ4:Lt.string().nullable().optional(),champ5:Lt.string().nullable().optional()}))),Gs=Lt.literal("read"),Js=Lt.object({type:Lt.string(),class:Lt.string(),isActive:Lt.boolean(),label:Lt.string(),cssClass:Lt.string(),cssColor:Lt.string(),struct:Lt.object({action:Lt.string(),do:Lt.string(),type:Lt.string(),targetId:Lt.number(),targetType:Lt.string()}),stats:Lt.object({total:Lt.number()})}),Qs=Ei.omit({dateModified:!0}).extend({dateCreation:Lt.string(),dateModified:Lt.string().nullable(),description:Lt.string().nullable(),_user:wn}),Ks=Qs.extend({_right:Mn,_attachedFiles:Lt.array(Un).optional(),_actions:Lt.record(Js).optional(),_widgets:Lt.array(sa).optional()}),Hs=Pa.extend({dateStart:Lt.string(),animatedMeetingContent:Lt.record(Lt.unknown()),_extend:Lt.object({status:Lt.string(),statusValue:Lt.literal(1).or(Lt.literal(2)).or(Lt.literal(3)),date:Lt.string()}),_audience:Da.array(),_audienceLeft:Lt.number()}),Ys=Lt.union([Lt.literal("groups"),Lt.literal("sites"),Lt.literal("onedrive"),Lt.literal("group"),Lt.literal("documents"),Lt.literal("me")]),Xs=Fi({title:Lt.string(),id:Lt.string(),type:Lt.string()}),eo=Xs.omit({id:!0}).extend({name:Ys.optional()}),to=Xs.and(Lt.object({})),io=Xs.extend({visibility:Lt.union([Lt.literal("public"),Lt.literal("private")]).optional()}),no=Xs.extend({mimetype:Lt.string().optional(),webUrl:Lt.string().optional(),size:Lt.number().optional()}),ro=no,ao=no.extend({_extend:Lt.object({path:Lt.string()})}),so=io.and(no),oo=Lt.object({id:Lt.string(),title:Lt.string(),mail:Lt.string(),default:Lt.boolean().optional()}),lo=Lt.object({title:Lt.string(),id:Lt.string(),type:Lt.string(),mimetype:Lt.string().optional(),webUrl:Lt.string().optional()}),co=Lt.object({msTenant:Lt.union([Ys,Lt.undefined()]),msId:Lt.union([Lt.string(),Lt.undefined()]),idFolder:Lt.union([Lt.string(),Lt.undefined()]),page:Lt.number(),limit:Lt.number(),query:Lt.string().optional().nullable()}),uo=Lt.object({path_lower:Lt.string(),query:Lt.string().optional().nullable()}),po=Lt.object({id:Lt.number(),name:Lt.string(),type:Lt.string(),token:Lt.string(),size:Lt.number(),mediaKey:Lt.string()}),mo=Lt.object({token:Lt.string().optional(),attrName:Lt.string(),file:Lt.object({service:Lt.string(),account:Lt.string(),title:Lt.string(),mimetype:Lt.string().optional(),_document:no})}),go=Lt.object({id:Lt.string(),service:Lt.string()}),ho=Lt.object({service:Lt.string(),id:Lt.string()}),fo=Lt.object({account:oo}),bo=Lt.object({service:Lt.string(),account:Lt.string()}),yo=Lt.object({allow:Lt.union([Lt.literal("groups"),Lt.literal("me")]).array().optional(),id:Lt.string()}),vo=Lt.object({id:Lt.string(),documentParams:co}),wo=Lt.object({id:Lt.string(),documentParams:uo}),ko=Lt.object({query:Lt.string().optional(),filter:Lt.string().optional(),id:Lt.string()}),_o=qa.extend({faqColor:Lt.string().optional(),image:Zn.optional(),type:Lt.literal("faq")}),So=Ua.and(_o).and(Lt.object({_audience:Zs.array(),tags:Ms.array().optional(),isWeb:Lt.boolean(),faqContent:Lt.array(Lt.object({title:Lt.string(),id:Lt.string().optional(),items:Lt.array(Lt.string())})).optional()})),jo=e=>e.and(Lt.object({_extend:Lt.object({itemsCount:Lt.number()})})),xo=qa.extend({type:Lt.literal("faqItem"),hierarchy:Lt.object({category:Lt.string().optional(),theme:Lt.string().optional()})}),Co=xo.omit({hierarchy:!0}).extend({faqResponse:Lt.string(),tags:Ms.array().optional(),uriCategory:Na.array(),themeId:Lt.string(),_nbAttachedFiles:Lt.number().optional(),_attachedFiles:Un.array(),uiObjectLink:Lt.unknown()}),To=Ci(za.omit({idSpot:!0})).and(Lt.object({image:Zn.nullable().optional(),tags:Lt.string().optional(),faqColor:Lt.string().optional(),isWeb:Lt.boolean().optional(),type:Lt.literal("faq")})),Ao=To.and(Lt.object({uri:Lt.string(),format:Oi.optional()})),Oo=Lt.object({title:Lt.string(),id:Lt.string()}),Lo=Lt.object({_web:Lt.union([Lt.literal("0"),Lt.literal("1"),Lt.literal("")]).optional(),appImageText:Lt.string().optional(),appImage:Lt.union([Lt.string(),Lt.object({image:Lt.object({id:Lt.string(),type:Lt.string()})})]).optional(),_displayComment:Lt.union([Lt.literal("0"),Lt.literal("1"),Lt.literal("")]).optional()}),Ro=Lt.object({createCategory:Lt.boolean()}),Fo=Lt.object({idCategory:Lt.number(),title:Lt.string()}),Eo=Lt.object({idCategory:Lt.number(),indexTheme:Lt.number(),deleteEntries:Lt.boolean().optional()}),Po=Lt.object({idCategory:Lt.number(),indexTheme:Lt.number(),title:Lt.string()}),Io=Ci(za).and(Lt.object({tags:Lt.string().optional(),faqResponse:Lt.string().optional(),type:Lt.literal("faqItem")})),Mo=Lt.object({idEntry:Lt.number(),idCategory:Lt.number(),theme:Lt.number()}),Do=Io.and(Lt.object({uri:Lt.string()})),No=Lt.object({entryURI:Lt.string(),sourceURI:Lt.string().optional(),targetURI:Lt.string(),theme:Lt.number()}),Zo=Lt.object({sourceUri:Lt.string(),targetUri:Lt.string(),themeIndex:Lt.number()}),qo=e=>Lt.object({isActive:Lt.boolean()}).and(e),Uo=Lt.enum(["drive_microsoft_graph","drive_dropbox","drive_google"]),Wo=qo(Lt.object({drives:Lt.record(Uo,Lt.boolean())})),Bo=qo(Lt.object({label:Lt.string()})),$o=qo(Lt.object({orderBy:Lt.string(),order:Lt.enum(["ASC","DESC"])})),Vo=Lt.object({label:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),color:Lt.string()}),zo=qo(Lt.object({hasLicense:Lt.boolean(),label:Lt.string(),description:Lt.string(),color:Lt.string(),templates:Vo.array()})),Go=qo(Lt.object({hasLicense:Lt.boolean()})),Jo=qo(Lt.object({sendAlert:Lt.boolean()})),Qo=qo(Lt.object({})),Ko=qo(Lt.object({create:Lt.boolean(),autorize:Lt.array(Lt.enum(["message","comment","board","article"]).optional())})),Ho=qo(Lt.object({label:Lt.string(),hasLicense:Lt.boolean()})),Yo=Lt.object({MagicPadHook:Ho}).partial(),Xo=Lt.object({DriveHook:Wo,calendarHook:Bo,FileBankHook:$o,StudioHook:Go,OnlyOfficeHook:zo,spotRssFeed:Qo,WidgetHook:Ko,AdminAdvancedHook:Jo}).partial().and(Yo),el=Lt.union([Lt.literal("summarize"),Lt.literal("develop"),Lt.literal("reformulate"),Lt.literal("tldr"),Lt.literal("en"),Lt.literal("es"),Lt.literal("formal"),Lt.literal("funny")]),tl=Lt.object({text:Lt.string()}),il=Lt.object({idLog:Lt.number(),slug:Lt.string(),dateCreation:Lt.string(),map:Lt.string(),mail:Lt.string(),action:Lt.string(),mode:Lt.string()}),nl=Lt.object({mail:Lt.string(),cnt:Lt.string()}),rl=Lt.string(),al=Lt.string(),sl=Na.extend({jlandMapFlavor:rl,jlandMapKind:al,waMapUrl:Lt.string().optional(),limit:Lt.number().optional(),_extend:Lt.object({licenses:Lt.array(gs)})}),ol=za.extend({jlandMapAggregated:Lt.string(),type:Lt.literal("jlandmap")}),ll=Lt.object({jlandMapKind:Lt.string(),jlandMapFlavor:Lt.string(),limit:Lt.number().nullable(),waMapUrl:Lt.string().nullable()}),cl=Na.and(ll),ul=qa.and(ll),dl=Ua.and(ll),pl=Lt.object({kind:Lt.string(),page:Lt.number(),limit:Lt.number(),filters:Si.array().optional(),orders:vi.array().optional()}),ml=e=>Lt.object({license:Lt.union([Lt.literal("1"),Lt.literal("0")]),user:e}),gl=Na.extend({attachment:Un,description:Lt.string()}),hl=qa.extend({description:Lt.string(),attachment:Un,_audience:Zs.array()}),fl=Lt.object({format:Oi,page:Lt.number().optional(),limit:Lt.number().optional(),nolimit:Lt.boolean().optional()}),bl=Lt.object({id:Lt.number(),idFolder:Lt.number().optional(),fileName:Lt.string(),nbViews:Lt.number(),nbDistinctViews:Lt.number(),nbDownloads:Lt.number()}),yl=Lt.object({id:Lt.number(),folderName:Lt.string(),nb:Lt.number(),nbDistinct:Lt.number()}),vl=Lt.object({nbFolders:Lt.number(),nbFiles:Lt.number()}),wl=Lt.object({uriFile:Lt.string(),uriFolder:Lt.string()}),kl=Xa.extend({}),_l=Ua.and(kl).and(Lt.object({allDay:Lt.null(),agenda:Lt.string(),useQrcode:Lt.null(),textColor:Lt.string(),bgColor:Lt.string(),report:Lt.string(),reportFile:Lt.array(Lt.never()),urlGestion:Lt.string().nullable().optional()})),Sl=Lt.object({uri:Lt.string(),title:Lt.string(),type:Lt.string(),mainType:Lt.string()}),jl=qa.extend({anonymousResponse:Lt.null(),multipleResponse:Lt.number(),publicResults:Lt.null(),pollProgression:Lt.object({colors:Lt.record(Lt.string()),maxRespondentsValue:Lt.number(),countRespondentsValue:Lt.number()}),pollResponseShowProgression:Lt.number(),dateEnd:Lt.string(),status:Lt.object({name:Lt.string(),value:Lt.number()})}),xl=Ua.and(jl).and(Lt.object({pollContent:Lt.null(),pollLinks:Lt.null(),pollForceClose:Lt.null(),pollResponseUserVisibility:Lt.null(),pollResponseAuthorVisibility:Lt.null(),pollResponseShowRespondent:Lt.null(),pollBanner:Lt.tuple([]),pollMessage:Lt.string()})),Cl=Lt.object({idQuestion:Lt.number(),idResponse:Lt.number()}),Tl=Lt.object({idQuestion:Lt.number()}),Al=qa.extend({quizzDescription:Lt.string().nullable(),quizzClosingDate:Lt.string().nullable(),dateStart:Lt.string().nullable(),dateEnd:Lt.string().nullable()}),Ol=Ua.and(Al).and(Lt.object({quizzInvitation:Lt.null(),quizzFormSpec:Lt.string(),quizzRandom:Lt.null(),quizzHideResponses:Lt.null(),quizzStatus:Lt.null(),quizzPublicationDate:Lt.string().nullable()})),Ll=Lt.object({count:Lt.number(),id:Lt.string()}),Rl=Lt.union([Lt.literal("AND"),Lt.literal("OR")]),Fl=Lt.object({facetType:Lt.string(),facetOptions:Lt.union([Lt.record(Lt.union([Lt.object({}).passthrough(),Lt.number(),Lt.string()])),Lt.array(Lt.never())]),facetMode:Rl.optional(),field:Lt.string(),title:Lt.string(),description:Lt.string().optional(),category:Lt.string().optional()}),El=Lt.object({id:Lt.string(),mainType:Lt.string(),type:Lt.string().optional(),title:Lt.string(),cssclass:Lt.string().optional(),active:Lt.boolean().optional(),count:Lt.number().optional(),typesExcluded:Lt.array(Lt.string()),facets:Fl.array()}),Pl=Lt.object({count:Lt.number(),value:Lt.string(),title:Lt.string()}),Il=Lt.object({name:Lt.string(),count:Lt.number(),values:Pl.array(),title:Lt.string()}),Ml=Lt.object({field:Lt.string(),value:Lt.union([Lt.string(),Lt.array(Lt.string())]),exclude:Lt.boolean().optional(),or:Lt.boolean().optional()}),Dl=Lt.object({field:Lt.string(),order:Lt.union([Lt.literal("desc"),Lt.literal("asc")])}),Nl=Lt.object({facetLimit:Lt.number(),skipEmptyFacets:Lt.boolean()}),Zl=Lt.object({home:Lt.object({mode:Lt.union([Lt.literal("result"),Lt.literal("category")]),facets:Fl.array()}),categories:El.array(),viewcard:Lt.record(Lt.array(Lt.object({name:Lt.string(),title:Lt.string()}))),facetMode:Lt.boolean()}),ql=Lt.object({name:Lt.string(),title:Lt.string(),icon:Lt.string(),_url:Lt.string()}),Ul=Lt.object({id:Lt.number().optional(),title:Lt.string(),picture:Lt.string(),uri:Lt.string(),type:Lt.string().optional(),icon:Lt.string().optional(),_cssColor:Lt.string().optional(),_url:Lt.string().optional(),idArticle:Lt.number().optional(),_user:Lt.object({title:Lt.string()}).optional(),_values:Lt.object({dateModified:Lt.string()}).optional()}),Wl=Lt.object({keywords:Lt.string().optional(),category:Lt.string().optional(),facetCategories:Lt.boolean().optional(),filters:Ml.array().optional(),facets:Fl.array().optional(),page:Lt.number().optional(),limit:Lt.number().optional(),sort:Dl.optional(),options:Nl.optional(),format:Oi.optional()}),Bl=e=>Lt.object({start:Lt.number(),count:Lt.number(),results:Lt.array(null!=e?e:Pi),facets:Il.array(),categories:Ll.array()}),$l=Lt.object({keywords:Lt.string()}),Vl=Lt.union([ql,Ul]),zl=Lt.object({title:Lt.string(),id:Lt.string(),showAll:Lt.boolean().optional(),results:Vl.array()}),Gl=Lt.union([Lt.literal("link"),Lt.literal("invitation")]),Jl=Lt.object({id:Lt.number(),title:Lt.string(),uri:Lt.string(),idUser:Lt.number(),_right:Mn}),Ql=Lt.object({audience:Lt.array(Da),read:Lt.array(Lt.string()),write:Lt.array(Lt.string())}),Kl=Lt.object({id:Lt.number(),type:Lt.string(),uri:Lt.string(),title:Lt.string(),generalAccessRule:Gl,generalAccessHash:Lt.string().nullable(),idUser:Lt.number(),_audience:Lt.array(Da),_right:Mn}),Hl=Lt.object({targetId:Lt.number(),targetType:Lt.string(),type:Lt.string()}),Yl=Lt.object({targetId:Lt.number(),targetType:Lt.string(),type:Lt.string()}),Xl=qa.extend({supportStatus:Lt.union([Lt.number(),Lt.string()]).nullable(),supportType:Lt.union([Lt.number(),Lt.string()]).nullable(),supportOwner:Lt.array(wn)}),ec=Ua.and(Xl).and(Lt.object({})),tc=qa.extend({dates:Lt.array(Lt.string()),dateStart:Lt.string().nullable(),dateEnd:Lt.string()}),ic=Ua.and(tc).and(Lt.object({surveyObjectLink:Lt.array(Na)})),nc=Lt.union([Lt.literal("DYNAMIC"),Lt.literal("SLIDESHOW")]),rc=e=>Pa.extend({tvChannelType:e,tvChannelBackgroundColor:Lt.string().nullable(),tvChannelNumImages:Lt.number(),tvChannelGroupTarget:Aa.optional(),tvChannelConfig:Lt.object({backgroundType:Lt.union([Lt.literal("color"),Lt.literal("image")]).optional(),globalShowComment:Lt.boolean().optional(),scaleImg:Lt.boolean().optional(),key:Lt.string(),contents:Lt.array(Lt.object({uri:Lt.string(),dateEnd:Lt.string().optional(),showComments:Lt.boolean().optional(),order:Lt.number().optional()})).optional()})}),ac=rc(Lt.literal("DYNAMIC")).extend({tvChannelNumImages:Lt.literal(0)}),sc=rc(Lt.literal("SLIDESHOW")),oc=Na.readonly(),lc=qa.and(ac).readonly(),cc=qa.and(sc).readonly(),uc=qa.and(ac).readonly().or(sc),dc=lc.or(cc),pc=za.and(ac.partial().or(sc.partial())).and(Lt.object({tvChannelType:nc})).readonly(),mc=Lt.object({tvChannelGroupTarget:Lt.array(Lt.string()).optional(),tvChannelNumImages:Lt.never().optional()}),gc=Ks.extend({_extend:Lt.object({userImageSecureUrl:Lt.string(),descriptionSecure:Lt.string()})}).readonly(),hc=qa.extend({_extend:Lt.object({imageSecureUrl:Lt.string().optional(),descriptionSecure:Lt.string(),comments:Lt.array(gc)}).optional()}).readonly(),fc=Un.extend({_extend:Lt.object({imageSecureUrl:Lt.string().optional()})}),bc=lc.and(Lt.object({_extend:Lt.object({imageSecureUrl:Lt.string().optional(),articles:Lt.array(hc).optional()})})),yc=e=>bc.safeParse(e).success,vc=cc.and(Lt.object({_extend:Lt.object({attachments:Lt.array(fc).optional()})})),wc=e=>vc.safeParse(e).success,kc=bc.or(vc),_c=Lt.object({interval:Lt.number(),channel:kc}),Sc=Lt.object({cache_suffix:Lt.string(),toolbar:Lt.string(),language:Lt.string(),content_css:Lt.string(),quickbars_selection_toolbar:Lt.string()}),jc=Sc.extend({plugins:Lt.array(Lt.string()),text_patterns:Lt.array(Lt.object({start:Lt.string(),end:Lt.string().optional(),format:Lt.string().optional(),cmd:Lt.string().optional()})),height:Lt.number(),menubar:Lt.boolean(),branding:Lt.boolean(),skin:Lt.string(),convert_urls:Lt.boolean(),invalid_elements:Lt.string(),extended_valid_elements:Lt.string(),custom_elements:Lt.string(),inline_boundaries_selector:Lt.string(),toolbar_mode:Lt.union([Lt.literal("floating"),Lt.literal("sliding"),Lt.literal("scrolling"),Lt.literal("wrap")]),promotion:Lt.boolean(),font_size_formats:Lt.string(),contextmenu:Lt.union([Lt.string(),Lt.literal(!1)]),paste_data_images:Lt.boolean(),browser_spellcheck:Lt.boolean(),quickbars_insert_toolbar:Lt.boolean()}),xc=Lt.object({commentsToolbar:Lt.string()}),Cc="accept",Tc="deny",Ac=Lt.union([Lt.literal(Cc),Lt.literal(Tc)]),Oc=Lt.object({color:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),label:Lt.string()}),Lc=Ei.extend({title:Lt.string(),mimetype:Lt.string(),_extend:Lt.object({generalAccessRule:Lt.string(),generalAccessHash:Lt.union([Lt.string(),Lt.undefined()]),dateModified:Lt.string(),dateCreation:Lt.string(),fileInfo:Oc,parentId:Lt.number(),parentType:Lt.string(),parentFiles:Lt.array(Lt.number()),_url:Lt.string()}),_audience:Lt.array(Pi),_right:Mn,_user:wn}),Rc=Pi,Fc=Lt.object({color:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),label:Lt.string()}),Ec=Lt.object({page:Lt.number(),cnt:Lt.number(),limit:Lt.number(),data:Lt.array(Lc)}),Pc=Lt.object({query:Lt.string(),filters:xi,orders:ji,page:Lt.number(),limit:Lt.number()}),Ic=Lt.object({}),Mc=Lt.object({label:Lt.string(),description:Lt.string(),name:Gn,img:Lt.string(),available:Lt.boolean(),panel:Lt.object({useWrapper:Lt.boolean(),useEditor:Lt.boolean(),useWidgets:Lt.boolean()})}),Dc=e=>Mc.safeParse(e).success,Nc=e=>void 0!==e&&"type"in e&&"uri"in e,Zc=Na.extend({articleWidgets:sa.array(),articleWidgetDisplayMode:ir.nullable().or(Lt.undefined())}),qc=Lt.object({uniqid:Lt.string(),title:Lt.string(),locked:Lt.boolean(),visible:Lt.boolean(),widgets:sa.array(),position:tr.optional()}),Uc=Lt.enum(["edit","view","preview"]),Wc=Lt.object({width:Lt.number().or(Lt.undefined()).optional(),inplace:Lt.boolean(),isComponentVisible:Lt.boolean().optional(),mode:Uc,onClick:Lt.function().returns(Lt.void()).optional(),onChange:Lt.function().args(oa,Lt.boolean()).returns(Lt.void()),onStateChange:Lt.function().args(ua).returns(Lt.void())}),Bc=Lt.object({text:Lt.string(),value:Lt.boolean().optional(),links:yi.array().optional(),uri:Lt.string().optional(),mimetype:Lt.string().optional(),id:Lt.number().optional(),user:wn.optional()}),$c=Lt.object({arr:Bc.array().optional(),edit:Lt.boolean().optional()}),Vc=Lt.object({name:Lt.literal("widget-check-list"),uniqid:Lt.string(),content:$c,title:Lt.string()}),zc=Lt.object({title:Lt.string().optional(),view:Lt.any().optional()}),Gc=Lt.object({uniqid:Lt.string(),fn:Lt.enum(["widget-presence-response","check-list-response","widget-update","widget-quick-survey-response"]),object:Pi}),Jc=Lt.object({token:Lt.string().or(Lt.undefined()).optional(),ids:Lt.record(Lt.string(),sa),layers:Lt.record(Lt.string(),qc),states:Lt.record(Lt.string(),ua),modal:zc.or(Lt.undefined()),editableMap:Lt.record(Lt.string(),Lt.object({index:Lt.number(),uniqid:Lt.string()})),currentEditableIndex:Lt.number(),currentEditableWidgetId:Lt.string().or(Lt.undefined()),widgetObject:Lt.record(Lt.string(),Pi.partial()),widgetObjectRights:Lt.record(Lt.string(),Mn),widgetAuthor:Lt.record(Lt.string(),wn.partial()),flushedWidgets:Lt.string().array(),rtObjectStack:Gc.array()}),Qc=Lt.object({widgets:Jc}),Kc=qa.extend({articleWidgets:sa.array(),articleWidgetDisplayMode:ir.nullable().or(Lt.undefined()),articleWidgetsCover:Lt.number().or(Lt.undefined()),_audience:Zs.array()}),Hc=e=>sa.safeParse(e).success,Yc=e=>nr(e,sr),Xc=e=>nr(e,pr),eu=e=>nr(e,gr),tu=e=>nr(e,fr),iu=e=>nr(e,vr),nu=e=>nr(e,kr),ru=e=>nr(e,Sr),au=(e,t)=>nr(e,Cr,t),su=e=>nr(e,Ur),ou=e=>nr(e,Br),lu=e=>nr(e,ta);class cu extends i{list(e){var t,i;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"jamespotArticleQueryList"},e),{format:bi(null!==(t=e.format)&&void 0!==t?t:"raw-list",null!==(i=e.formatExtend)&&void 0!==i?i:[])}))}get(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"article",f:"get"},e),{format:bi(null!==(i=e.format)&&void 0!==i?i:"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,t){var i;return this.network.post(Object.assign(Object.assign({format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"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,i){return this.network.post({o:"article",f:"getAttachment",idArticle:e,type:t,format:i})}permalink(e){return this.network.post({o:"article",f:"permalink",permalinkId:e})}saveAsDraft(e,t,i){return this.network.post({o:"article",f:"saveAsDraft",form:e,contentType:t,idDraft:i})}getComments(e,t){var i,n;return this.network.post(Object.assign(Object.assign({o:"article",f:"getComments"},e),{attachments:null!==(i=e.attachment)&&void 0!==i&&i,limits:null!==(n=e.limits)&&void 0!==n?n:{start:0,max:1e4},format:null!=t?t:"raw-little"}))}addComment(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"article",f:"addComment"},e),{alertAuthor:Number(e.alertAuthor),sendAlert:Number(e.sendAlert),type:null!==(i=e.type)&&void 0!==i?i:"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 uu=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};class du extends i{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,i=uu(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"getReservations",format:t},i))}cancelReservation(e){return this.network.post({o:"assetReservation",f:"cancelReservation",format:"raw-list",idArticle:e})}bookByDate(e){var{format:t="raw-list"}=e,i=uu(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"BookByDate",format:t},i))}getList(e){var{format:t="raw-list"}=e,i=uu(e,["format"]);return this.network.post(Object.assign({o:"objectList",f:"assetReservationList",format:t},i))}}class pu extends i{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 mu extends i{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 gu extends i{getFormattedList(e,t){return this.network.post(Object.assign({o:"objectList",f:"bookmarksList",format:t},e))}addFormattedLink(e,t,i){const n=null!=i?i:"list";return this.network.post({o:"custom",f:"actionAdd",type:"bookmarkLink",targetId:e,targetType:t,format:n})}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,i){return this.network.postCSRF({o:"bookmarks",f:"rename",bookmarkID:e,bookmarkLabel:t,bookmarkUrl:i})}move(e,t,i){return this.network.postCSRF({o:"bookmarks",f:"move",bookmarkID:e,bookmarkReference:t,bookmarkPosition:i})}}class hu extends i{getInfos(e,t){return this.network.post({o:"BusinessNetworking",f:"MarkerInfo",id:e,format:null!=t?t:"raw-little"})}}class fu extends i{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 bu extends i{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})}cancel(e){return this.network.post({o:"widget",f:"datasourceCancel",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})}getExcelDatasourceHeaders(e,t){return this.network.post({o:"widget",f:"datasourceGetExcelDatasourceHeaders",uri:e,spreadsheet:t})}setExcelDatasource(e,t){return this.network.post({o:"widget",f:"datasourceSetExcelDatasource",uri:e,spreadsheet:t})}create({title:e,datasourceType:t,datasourceIdentifier:i,token:n}){return this.network.postCSRF({o:"widget",f:"datasourceCreate",title:e,datasourceType:t,datasourceIdentifier:i,token:n})}}class yu extends i{create(e,t,i,n,r){return this.network.post({o:"article",f:"create",type:e,token:t,title:i,dateStart:n,publishTo:r})}getList(e="",t=[],i=[],n=1,r="raw-list"){return this.network.post({o:"objectList",f:"diapazoneQueryList",query:e,filters:t,orders:i,page:n,format:r})}}var vu=function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}))};class wu extends i{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 vu(this,void 0,void 0,(function*(){return Promise.all(e.map((e=>this.upload(e))))}))}get(e,t,i){return vu(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"get",idFile:e,format:t},null==i?void 0:i.signal)}))}getParent(e,t,i,n){return vu(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getParent",idFile:e,format:t,hash:i},null==n?void 0:n.signal)}))}getWithHash(e,t,i,n){return vu(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getWithHash",idFile:e,hash:t,format:i},null==n?void 0:n.signal)}))}duplicate(e,t,i){return vu(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"duplicateFile",idFile:e,title:t,publishTo:i})}))}updateFile(e,t){return vu(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"updateFile",idFile:e,title:t})}))}update(e,t,i,n){return vu(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"update",idFile:e,type:t,cropDatas:Object.assign(Object.assign({},i),{rotateBeforeCrop:!0}),killSize:i.killSize,format:"raw-little"},null==n?void 0:n.signal)}))}deleteFile(e,t,i,n){return vu(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"delete",idFile:e,attrName:t,token:i},n)}))}deleteImage(e,t,i){return vu(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"deleteImage",id:e,type:t},null==i?void 0:i.signal)}))}getDownload(e,t){return this.network.post({o:"file",f:"getDownload",id:e},null==t?void 0:t.signal)}generatePreview(e,t){return this.network.post({o:"file",f:"generatePreview",id:e},null==t?void 0:t.signal)}copy(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"file",f:"copy"},e),{format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little"}),null==t?void 0:t.signal)}}class ku extends i{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,i){return this.network.post({o:"faq",f:"checkItem",query:e,page:null!=t?t:1,format:null!=i?i:"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 _u extends i{getBanks(){return this.network.post({o:"fileBank",f:"getBanks",format:"raw-list"}).then((e=>e.result))}getFolders(e){return this.network.post({o:"fileBank",f:"getFolders",parentURI:e,format:"raw-list"})}getDocuments(e){return this.network.post({o:"fileBank",f:"getDocuments",parentURI:e,format:"raw-view"})}getPath(e,t){var i,n;return this.network.post({o:"fileBank",f:"getPath",uri:e.uri,mode:null!==(i=e.mode)&&void 0!==i?i:"browse",format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"},null==t?void 0:t.signal)}searchContent(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"fileBank",f:"searchContent"},e),{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 i;return this.network.post({o:"fileBank",f:"getParents",id:e.id,format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little"},null==t?void 0:t.signal)}}class Su extends i{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 ju extends i{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:i}=e,n=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(e,["spotBanner"]);return this.network.postCSRF(Object.assign(Object.assign({o:"spot",f:"update"},n),{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,i,n=1){return this.network.post({o:"objectListJamespot",f:"SpotMembers",idSpot:e,limit:i,page:n,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})}objectListSpotArticles(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"spotArticles"},e),{format:bi(null!==(i=e.format)&&void 0!==i?i:"raw-little",null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}}class xu extends i{list(e,t,i,n=[{name:"dateCreation",sort:"DESC"}]){return this.jApi.article.list({type:"aseiClearanceTicket",format:"raw-view",limit:t,page:e,orders:n,filters:i})}requestStatus(e,t,i){return this.network.post({o:"asei",f:"setStatus",uri:e,requestedStatus:t,audience:i})}getDedicatedGroups(){return this.network.post({o:"asei",f:"getDedicatedGroups"})}getConfiguration(){return this.network.post({o:"asei",f:"configuration"})}}class Cu extends i{tenants(e,t){return this.network.post(Object.assign({o:"drive",f:"getTenants"},null!=e?e:{}),null==t?void 0:t.signal)}groups(e,t){return this.network.post(Object.assign({o:"drive",f:"getGroups"},e),null==t?void 0:t.signal)}sites(e){return this.network.post({o:"drive",f:"getSites"},null==e?void 0:e.signal)}listAccount(e,t){return this.network.post({o:"drive",f:"listAccount",service:e},null==t?void 0:t.signal)}isAccountLogged(e,t,i){return this.network.post({o:"drive",f:"isAccountLogged",service:e,id:t},null==i?void 0:i.signal)}checkAccountToken(e,t){return this.network.post({o:"drive",f:"checkAccountToken",service:e},null==t?void 0:t.signal)}msDocuments(e,t){return this.network.post(Object.assign({o:"drive",f:"getDocuments",service:"onedrive"},e),null==t?void 0:t.signal)}dropboxDocuments(e,t){return this.network.post(Object.assign({o:"drive",f:"getDocuments",service:"dropbox"},e),null==t?void 0:t.signal)}getDocument(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"drive",f:"getDocument"},e),{format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little"}),null==t?void 0:t.signal)}logout(e,t){return this.network.post(Object.assign({o:"drive",f:"logout"},e),null==t?void 0:t.signal)}getAccount(e,t){return this.network.post(Object.assign({o:"drive",f:"get-user-data"},e),null==t?void 0:t.signal)}setDefaultAccount(e,t){return this.network.post(Object.assign({o:"drive",f:"set-has-default"},e),null==t?void 0:t.signal)}}class Tu extends i{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=[],i=1){return this.network.post({o:"objectListMediaLibrary",f:"FoldersStatsList",filters:e,orders:t,page:i})}getFilesStatsList(e=[],t=[],i=1){return this.network.post({o:"objectListMediaLibrary",f:"FilesStatsList",filters:e,orders:t,page:i})}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 Au extends i{getLogs({dateEnd:e,idLogMax:t}){return this.network.post({o:"jLand",f:"adminLogs",dateEnd:e,idLogMax:t})}getStats({map:e,dateStart:t,dateEnd:i}){return this.network.post({o:"jLand",f:"adminStats",map:e,dateStart:t,dateEnd:i})}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 Ou extends i{sendMessage(e,t){return this.network.post({o:"messenger",f:"newMessage",idDiscussion:t,msg:{description:e}})}getOrCreateDiscussion(e,t){const i=e<t?`${e}.${t}`:`${t}.${e}`;return this.network.post({o:"messenger",f:"getDiscussion",idDiscussion:i,type:"messengerUser",idUserTo:t})}}class Lu extends i{getConfig(){return this.network.post({o:"search",f:"getConfig"})}proposition({query:e,format:t},i){return this.network.post({o:"search",f:"proposition",query:e,format:t||"little"},i)}searchQuery(e,t){const{keywords:i,category:n,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:u}=e;return this.network.post({o:"search",f:"query",keywords:i,category:n,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:bi(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 Ru=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};class Fu extends i{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,i=Ru(e,["format"]);return this.network.post(Object.assign({o:"taxonomy",f:"create",format:t},i))}autocomplete(e,t){return this.network.post({o:"autocomplete",f:"taxonomy",q:t,idTaxonomy:e,idToUri:!1})}autocompleteList(e){var{format:t="autocomplete"}=e,i=Ru(e,["format"]);return this.network.post(Object.assign({o:"objectListTaxonomy",f:"concept",format:t},i))}autocompleteHierarchy(e){return this.network.post(Object.assign({o:"objectListTaxonomyHierarchy",f:"concept"},e))}}class Eu extends i{autocomplete(e){return this.network.post({o:"autocomplete",f:"user",q:e,idToUri:!1}).then((e=>e.result))}get(e,t="little",i){return this.network.post({o:"user",f:"get",uri:e,format:t},i)}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:bi(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:bi(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,t){var i;const n=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}),r=Object.assign(Object.assign({},n),{type:"businessContactCard",publishTo:"networkPublic/1"});return this.jApi.article.create(r,null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little")}userUpdateBusinessContact(e,t){var i;const n=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}),r=Object.assign(Object.assign({},n),{uri:e.uri,publishTo:"networkPublic/1"});return this.jApi.article.update(r,{format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-list"})}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,i){return this.network.post({o:"user",f:"signIn",mail:e,password:t,format:null!=i?i:"raw-view"})}getFields(e,t){return this.network.post({o:"user",f:"getFields",idUser:e,fieldsType:t})}}class Pu extends i{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,i){return this.network.postCSRF({o:"onlyOffice",f:"createFile",title:e,type:t,publishTo:i})}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,i,n){return this.network.postCSRF({o:"onlyOffice",f:"setAccessRequest",uri:e,idUser:t,requestAccessValue:i,requestResponseMessage:n})}getAccessRequest(e,t){return this.network.post({o:"onlyOffice",f:"getAccessRequest",format:"raw-little",uri:e,idUser:t})}askAccess(e,t,i){return this.network.postCSRF({o:"onlyOffice",f:"askAccess",uri:e,askAccess:t,askMessage:i})}}class Iu extends i{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 Mu extends i{contentObjectLinks(e){return this.network.post({o:"shared",f:"contentObjectLinks",format:"raw-little",uri:e})}contentSetObjectAccessRule(e,t,i){return this.network.postCSRF({o:"shared",f:"contentSetObjectAccessRule",format:"raw-little",uri:e,rule:t,hash:i})}}var Du=function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}))};class Nu extends i{SaveAnimationConfiguration(e){return Du(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"saveConfiguration",animation:e})}))}DeleteAnimation(){return Du(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"deleteAnimation"})}))}GetCurrentAnimation(e){return Du(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfiguration"},null==e?void 0:e.signal)}))}GetCurrentAnimationApp(){return Du(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfigurationApp"})}))}ToggleAnimationActive(){return Du(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"toggleAnimationActive"})}))}GetAnimationActive(e){return Du(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getAnimationActive"},null==e?void 0:e.signal)}))}GetAnimationStats(e){return Du(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStats",name:e})}))}GetAnimationStatsCurrent(e){return Du(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStatsCurrent",uri:e})}))}}class Zu extends i{GetStatus(){return e=this,t=void 0,n=function*(){return this.network.post({o:"accessibility",f:"getStatus"})},new((i=void 0)||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}));var e,t,i,n}}class qu extends i{getObject(e){return this.network.post({o:"object",f:"getObject",uri:e})}setAccess(e,t,i,n){return this.network.post({o:"object",f:"setAccess",uri:e,access:t,message:i,generalAccessRule:n})}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 Uu extends i{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 Wu extends i{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 Bu extends i{textEnhancement({text:e,capacity:t}){return this.network.post({o:"jia",f:"textEnhancement",text:e,capacity:t})}}class $u extends i{responseUserList(e,t,i){return this.network.post({o:"widget",f:"responseUserList",uri:e,uniqid:t,page:i})}removeWidget({id:e,type:t,uniqid:i}){return this.network.post({o:"widget",f:"removeWidget",id:e,type:t,uniqid:i})}updateWidget({id:e,uniqid:t,content:i,title:n,type:r,uri:a,v2:s=!1}){return this.network.post({o:"widget",f:"updateWidget",uri:a,id:e,uniqid:t,content:i,title:n,type:r,v2:s})}getWidget({uri:e,uniqid:t},i){return this.network.post({o:"widget",f:"getWidget",uri:e,uniqid:t},i)}checkListRespond({id:e,type:t,uri:i,idUser:n,uniqid:r,index:a}){return this.network.post({o:"widget",f:"checkListRespond",uri:i,id:e,type:t,uniqid:r,idUser:n,index:a})}checkListGetResponse({uri:e,uniqid:t}){return this.network.post({o:"widget",f:"checkListGetResponse",uri:e,uniqid:t})}presenceRespond({id:e,type:t,uri:i,value:n,uniqid:r},a){return this.network.post({o:"widget",f:"presenceRespond",uri:i,id:e,type:t,value:n,uniqid:r},a)}presenceCancel({uri:e,uniqid:t},i){return this.network.postCSRF({o:"widget",f:"presenceCancel",uri:e,uniqid:t},i)}presenceGetResponse({uri:e,uniqid:t},i){return this.network.post({o:"widget",f:"presenceGetResponse",uri:e,uniqid:t},i)}quickSurveyGetResponse({uri:e,uniqid:t},i){return this.network.post({o:"widget",f:"quickSurveyGetResponse",uri:e,uniqid:t},i)}quickSurveyAddEnty({uri:e,uniqid:t,label:i},n){return this.network.postCSRF({o:"widget",f:"quickSurveyAddEntry",uri:e,label:i,uniqid:t},n)}quickSurveyRespond({id:e,type:t,uri:i,index:n,multi:r,uniqid:a},s){return this.network.postCSRF({o:"widget",f:"quickSurveyRespond",id:e,type:t,uri:i,index:n,multi:r,uniqid:a},s)}quickSurveyGetResponseUserList({uri:e,uniqid:t,index:i,page:n,limit:r},a){return this.network.post({o:"widget",f:"quickSurveyGetResponseUserList",uri:e,uniqid:t,index:i,page:n,limit:r},a)}presenceGetResponseUserList({uri:e,uniqid:t,index:i,page:n,limit:r},a){return this.network.post({o:"widget",f:"presenceGetResponseUserList",uri:e,uniqid:t,index:i,page:n,limit:r},a)}}class Vu extends i{getThumbnailUrl(e){return this.network.post({o:"magicPad",f:"getThumbnailUrl",uri:e})}}class zu extends i{selectResponse(e,t){return this.network.post(Object.assign({o:"socialQuestion",f:"selectResponse"},e),null==t?void 0:t.signal)}unselectResponse(e,t){return this.network.post(Object.assign({o:"socialQuestion",f:"unselectResponse"},e),null==t?void 0:t.signal)}}class Gu extends i{recordingDelete(e,t,i){return this.network.post({o:"visioConnect",f:"videoRecordingDelete",id:e,filename:t},null==i?void 0:i.signal)}}class Ju{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 Zu(this),this.application=new o(this),this.article=new cu(this),this.asei=new xu(this),this.assetReservation=new du(this),this.audience=new pu(this),this.bbb=new mu(this),this.bookmark=new gu(this),this.businessNetworking=new hu(this),this.community=new fu(this),this.datasource=new bu(this),this.diapazone=new yu(this),this.drive=new Cu(this),this.faq=new ku(this),this.file=new wu(this),this.filebank=new _u(this),this.fileSync=new Uu(this),this.global=new Su(this),this.group=new ju(this),this.jia=new Bu(this),this.jland=new Au(this),this.magicPad=new Vu(this),this.mediaLibrary=new Tu(this),this.messenger=new Ou(this),this.object=new qu(this),this.questionAnswer=new zu(this),this.search=new Lu(this),this.share=new Mu(this),this.socialAction=new Wu(this),this.taxonomy=new Fu(this),this.tvDisplay=new Iu(this),this.user=new Eu(this),this.visioConnect=new Gu(this),this.wedoc=new Pu(this),this.widget=new $u(this),this.animations=new Nu(this)}}class Qu{getBackendUrl(){return e=this,t=void 0,n=function*(){const e=window.location;return`${e.protocol}//${e.host}`},new((i=void 0)||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}));var e,t,i,n}fetch(e,t){return window.fetch(e,t)}}const Ku=new di(new Qu),Hu=new Ju(Ku);window.JamespotUserApi=Hu;const Yu=Hu,Xu=Ju;module.exports=t})();
1
+ (()=>{"use strict";var e={d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},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:()=>Tc,ACCESS_REQUEST_DENY:()=>Ac,AdminLicenseApi:()=>r,AdminStoreApi:()=>a,AdminUtilsApi:()=>s,BookmarkType:()=>os,DateFormatSchema:()=>Tr,Format:()=>Ti,GroupModerateStatus:()=>ba,JApplicationApi:()=>o,JArticleApi:()=>uu,JAssetReservation:()=>pu,JAudienceApi:()=>mu,JBaseApi:()=>i,JBbbApi:()=>gu,JBookmarkApi:()=>hu,JBusinessNetworkingApi:()=>fu,JCommunityApi:()=>bu,JDatasourceApi:()=>yu,JDiapazoneApi:()=>vu,JFaqApi:()=>_u,JFileApi:()=>ku,JFilebankApi:()=>Su,JGlobalApi:()=>ju,JGroupApi:()=>xu,JIAApi:()=>$u,JLandApi:()=>Ou,JLandMapCreationSchema:()=>ll,JMessengerApi:()=>Lu,JObjectApi:()=>Uu,JSearchApi:()=>Ru,JShareApi:()=>Du,JSocialActionApi:()=>Bu,JTaxonomyApi:()=>Eu,JUserApi:()=>Pu,JWedocApi:()=>Iu,JWidgetApi:()=>Vu,JamespotUserApi:()=>Qu,JamespotUserApiInstance:()=>Yu,Network:()=>di,NumberFormatSchema:()=>Ar,StudioApplicationStatus:()=>n,TVDisplayApi:()=>Mu,UserLevel:()=>vn,WidgetPresenceResponseUserListSchema:()=>Xr,WidgetQuickSurveyContentArrSchema:()=>ea,WidgetQuickSurveyResponseSchema:()=>ra,WidgetQuickSurveyResponseUserListSchema:()=>aa,WidgetsName:()=>zn,WindowBrowser:()=>Ku,accessRequestStatusValuesSchema:()=>Oc,actionVerbSchema:()=>Js,addCommentParamsSchema:()=>Ka,addFaqEntrySchema:()=>Do,addRemoveActionParamsSchema:()=>Xl,adminAppSchema:()=>ks,adminAppTabSchema:()=>ws,adminAppsSchema:()=>_s,adminLicenseStatsSchema:()=>ds,adminLicenseUserSchema:()=>bs,adminLicensesAssignedSchema:()=>gs,adminLicensesNotAssignedSchema:()=>ms,animationConfigurationTypeSchema:()=>js,animationStatsRowSchema:()=>xs,animationStatsSchema:()=>Cs,animationVariantSchema:()=>Ss,api:()=>ed,articleCreationSchema:()=>Ga,articleDisplayModeSchema:()=>ir,articleGetConfigSchema:()=>za,articleListConfigSchema:()=>Va,aseiGroupsSchema:()=>Ls,aseiInstitutionSchema:()=>Os,aseiRightsSchema:()=>Rs,aseiTicketSchema:()=>As,aseiTicketStatusSchema:()=>Ts,assetReservationConfigurationSchema:()=>Fs,audienceAutocompleteSchema:()=>qs,audienceSchema:()=>Na,baseArticleSchema:()=>Ja,baseAutocompleteSchema:()=>Ms,baseEntitySchema:()=>eo,bookableAssetListSchema:()=>Es,bookableAssetViewSchema:()=>Ps,bookmarkCustomSchema:()=>us,bookmarkLinkSchema:()=>ls,bookmarkTypesSchema:()=>cs,businessContactSchema:()=>En,categorySchema:()=>Aa,checkProperties:()=>ci,combineFormat:()=>bi,combinedWidgetContentSchema:()=>la,combinedWidgetTypeSchema:()=>sa,communitySchema:()=>Us,createFaqCategorySchema:()=>Ao,createFaqEntrySchema:()=>Mo,createFaqThemeSchema:()=>Eo,createGroupSchema:()=>pa,cssBackgroundPositionSchema:()=>Kn,cssBackgroundSizeSchema:()=>Hn,cssTextAlignTypeSchema:()=>Qn,deepEqual:()=>hi,default:()=>Xu,deleteFaqThemeSchema:()=>Po,documentEntitySchema:()=>ro,driveAccountSchema:()=>lo,driveGetAccountParamsSchema:()=>fo,driveGetAccountSchema:()=>bo,driveGetDocumentParamsSchema:()=>go,driveGetGroupsParamsSchema:()=>_o,driveGetTenantsParamsSchema:()=>vo,driveItemTypeSchema:()=>co,driveLogoutParamsSchema:()=>ho,driveSetDefaultAccountParamsSchema:()=>yo,driveTmpFileSchema:()=>mo,dropboxDocumentEntitySchema:()=>so,dropboxDocumentParamsSchema:()=>po,dropboxGetDocumentsParamsSchema:()=>ko,editFaqCategorySchema:()=>Oo,editFaqEntrySchema:()=>No,editFaqThemeSchema:()=>Io,ensureIsViewEvent:()=>is,ensureTVGetConfigureDynamicChannelResponse:()=>vc,ensureTVGetConfigureSlideshowChannelResponse:()=>kc,ensureWidgetArticleAttachmentType:()=>Xc,ensureWidgetArticleButtonType:()=>eu,ensureWidgetArticleGalleryType:()=>tu,ensureWidgetArticleImageType:()=>iu,ensureWidgetArticleSliderType:()=>nu,ensureWidgetArticleTextType:()=>ru,ensureWidgetArticleTitleType:()=>au,ensureWidgetCheckListType:()=>su,ensureWidgetContent:()=>rr,ensureWidgetDatasourceTableType:()=>ou,ensureWidgetDefinitionProps:()=>Nc,ensureWidgetExcelDatasourceTableType:()=>lu,ensureWidgetObjectHasMinimumProperties:()=>Zc,ensureWidgetPresenceContent:()=>zr,ensureWidgetPresenceResponse:()=>Yr,ensureWidgetPresenceResponsePayload:()=>Kr,ensureWidgetPresenceType:()=>Jr,ensureWidgetQuickSurveyType:()=>cu,ensureWidgetType:()=>nr,ensureWidgetWrapperProps:()=>Yc,extensions:()=>$t,extractTaxonomiesFromObject:()=>ai,extractTaxonomiesFromObjectAndMapProperty:()=>si,extractTaxonomiesFromObjectAndMapUri:()=>oi,facetModeSchema:()=>Fl,faqAccessSchema:()=>Fo,faqHookPropertiesSchema:()=>Ro,faqItemListSchema:()=>Co,faqItemViewSchema:()=>To,faqListSchema:()=>So,faqTaxonomySchema:()=>Lo,faqViewSchema:()=>jo,fileCropConfigSchema:()=>qn,filterSchema:()=>Si,filterValueSchema:()=>wi,filtersSchema:()=>xi,formatExtensionSchema:()=>Li,formatImgUrl:()=>Wt,formatListSchema:()=>Oi,getActionUsersParamsSchema:()=>Yl,getArgs:()=>Nt,getCommentsParamsSchema:()=>Qa,getExtensionFromName:()=>Jt,getFileExtensionFromMimetype:()=>Gt,getFileFamily:()=>ei,getFileFamilyFromName:()=>Yt,getFormat:()=>qt,getFrom:()=>Mt,getLicenseKindUsersParamsSchema:()=>ml,getMimetypeFromExtension:()=>zt,getMimetypeFromName:()=>Qt,getSize:()=>Zt,getTimestamp:()=>Dt,getUnclassifiedFilesParamsSchema:()=>bl,getUri:()=>It,getUrl:()=>Ut,groupCustomWidgetSchema:()=>_a,groupListConfigSchema:()=>Ea,groupMemberLevelSchema:()=>ha,groupMemberSchema:()=>va,groupModerateStatusSchema:()=>ya,groupPropertiesOptionsSchema:()=>Sa,groupPropertiesSchema:()=>xa,groupUserLevelSchema:()=>ga,groupWidgetLittleSchema:()=>ka,groupWidgetSchema:()=>Ta,hookListTypeSchema:()=>el,imageSizeSchema:()=>Zn,inferBookmarkListSchema:()=>ss,inferBookmarkRawListSchema:()=>as,inferExtendedFaqCategory:()=>xo,inferJInternalDraftView:()=>$a,inferJLinkListSchema:()=>rs,inferMaybeWithToken:()=>Ci,inferSearchQueryResultSchema:()=>$l,inferTVChannelCustomSchema:()=>ac,inferUserLicenseSchema:()=>gl,jAdminLicenseUserListSchema:()=>fs,jArticleExtendViewSchema:()=>Ba,jArticleListSchema:()=>Ua,jArticleListShapeTmp:()=>qa,jArticleLittleSchema:()=>Za,jArticleViewSchema:()=>Wa,jArticleWidgetLittle:()=>qc,jArticleWidgetViewSchema:()=>Hc,jBusinessContactListSchema:()=>Gs,jBusinessContactLittleSchema:()=>zs,jCommentListSchema:()=>Hs,jCommentLittleSchema:()=>Ks,jDiapazoneListSchema:()=>Ys,jEnsure:()=>u,jFileLittleCropSchema:()=>Bn,jFileLittleSchema:()=>Un,jFileRenditionSchema:()=>$n,jFolderListSchema:()=>Xa,jFolderLittleSchema:()=>Da,jGroupListSchema:()=>La,jGroupLittleSchema:()=>Oa,jGroupViewSchema:()=>Ra,jHrefSchema:()=>yi,jIACapabilitiesSchema:()=>tl,jLandAdditionalPropsSchema:()=>cl,jLandLogSchema:()=>nl,jLandMapFlavorSchema:()=>al,jLandMapKindSchema:()=>sl,jLandMapListSchema:()=>dl,jLandMapLittleSchema:()=>ul,jLandMapSchema:()=>ol,jLandMapViewSchema:()=>pl,jLandStatSchema:()=>rl,jLinkLittleSchema:()=>ns,jMeetingListSchema:()=>_l,jMeetingViewSchema:()=>Sl,jObjectAutocompleteSchema:()=>Ds,jObjectBaseSchema:()=>Ei,jObjectListSchema:()=>Ia,jObjectLittleSchema:()=>Pi,jPollSurveyListSchema:()=>xl,jPollSurveyViewSchema:()=>Cl,jQuizzListSchema:()=>Ol,jQuizzViewSchema:()=>Ll,jSocialEventListSchema:()=>es,jSocialEventViewSchema:()=>ts,jSpotAutocompleteSchema:()=>Zs,jSupportListSchema:()=>ec,jSupportViewSchema:()=>tc,jSurveyDateListSchema:()=>ic,jSurveyDateViewSchema:()=>nc,jUserAutocompleteSchema:()=>Ns,jUserListSchema:()=>kn,jUserLittleSchema:()=>wn,jUserValuesSchema:()=>An,jUserViewSchema:()=>Sn,licenseSchema:()=>hs,mediaLibraryFilesStatsSchema:()=>yl,mediaLibraryFolderSchema:()=>hl,mediaLibraryFolderStatsSchema:()=>vl,mediaLibraryListSchema:()=>fl,mediaLibraryStatsSchema:()=>wl,mimetypeToExt:()=>Vt,mimetypes:()=>Bt,moveFaqEntrySchema:()=>Zo,moveFaqThemeSchema:()=>qo,moveMediaLibraryFileParamsSchema:()=>kl,msDocumentEntitySchema:()=>ao,msDocumentParamsSchema:()=>uo,msGetDocumentsParamsSchema:()=>wo,msGroupEntitySchema:()=>no,msSiteEntitySchema:()=>io,msTenantEntitySchema:()=>to,msTenantsSchema:()=>Xs,msUnifiedEntitySchema:()=>oo,network:()=>Hu,networkTypeSchema:()=>jl,objectListPropsSchema:()=>Ri,objectTimestamp:()=>Kt,objectWithoutLicenseFilterSchema:()=>ps,onlyOfficeTemplateSchema:()=>zo,openingTypeAnchorSchema:()=>lr,openingTypeLinkSchema:()=>or,openingTypePopupSchema:()=>cr,openingTypeSchema:()=>er,orderSchema:()=>vi,ordersSchema:()=>ji,padStartTwoDigits:()=>m,prepareGroupForUpdate:()=>li,publicWebinarData:()=>Vs,publicWebinarFullnameRequestSchema:()=>Ws,publicWebinarGetDateRequestSchema:()=>$s,publicWebinarUrlSchema:()=>Bs,questionAnswerSelectResponseParamsSchema:()=>Tl,questionAnswerUnselectResponseParamsSchema:()=>Al,removeIfStartsWith:()=>p,replacePropertiesWithTypes:()=>fi,reservationListSchema:()=>Is,resetNotificationConfigurationSchema:()=>Fa,resolveFileFamily:()=>ni,resolveFileMimetype:()=>ii,resolveFilePath:()=>Ht,resolveFileUrl:()=>ti,rightsSchema:()=>Mn,rssTypeSchema:()=>ja,searchCategoryModelSchema:()=>Pl,searchCategoryValueSchema:()=>Rl,searchConfigSchema:()=>ql,searchFacetModelSchema:()=>El,searchFacetValueModelSchema:()=>Ml,searchFacetValuesSchema:()=>Il,searchLastQuerySchema:()=>Vl,searchQueryFilterModelSchema:()=>Dl,searchQueryOptionSchema:()=>Zl,searchQuerySchema:()=>Bl,searchQuerySortModelSchema:()=>Nl,searchResultCatPropsSchema:()=>Gl,searchResultPropsAppSchema:()=>Ul,searchResultPropsObjectSchema:()=>Wl,searchResultPropsSchema:()=>zl,shareAccessObjectSchema:()=>Hl,shareAccessPropsSchema:()=>Kl,shareGeneralAccessRulesSchema:()=>Jl,shareOptionObjectSchema:()=>Ql,socialActionSchema:()=>Qs,spotBannerImageSchema:()=>ma,storeFinalizeSchema:()=>vs,storeItemSchema:()=>ys,suffixIfDoesNotExist:()=>d,textEnhanceResponseSchema:()=>il,tinyMCECommonOptionsSchema:()=>xc,tinyMCEDynamicOptionsSchema:()=>jc,tinymceExtendedOptionsSchema:()=>Cc,tvChannelCreatePayloadSchema:()=>gc,tvChannelCreationSchema:()=>mc,tvChannelCustomListDynamicSchema:()=>sc,tvChannelCustomListSchema:()=>dc,tvChannelCustomListSlideshowSchema:()=>oc,tvChannelDynamicArticleSchema:()=>fc,tvChannelDynamicCommentSchema:()=>hc,tvChannelDynamicListSchema:()=>cc,tvChannelListSchema:()=>pc,tvChannelLittleSchema:()=>lc,tvChannelSlideshowFileSchema:()=>bc,tvChannelSlideshowListSchema:()=>uc,tvChannelTypeSchema:()=>rc,tvGetChannelResponseSchema:()=>Sc,tvGetConfigureChannelResponseSchema:()=>_c,tvGetConfigureDynamicChannelResponse:()=>yc,tvGetConfigureSlideshowChannelResponse:()=>wc,updateCommentParamsSchema:()=>Ha,updateGroupSchema:()=>Ca,uploadConfigSchema:()=>Nn,userDefaultFieldsTypeSchema:()=>Tn,userDirectoryConfigurationSchema:()=>Pn,userDownloadSchema:()=>Vn,userFieldSchema:()=>Ln,userFieldsConfigurationTypeSchema:()=>On,userFieldsSchema:()=>Rn,userLevelSpotSchema:()=>fa,userMapModelSchema:()=>xn,userReadSchema:()=>Ya,userValuesSchema:()=>Fn,validateIsFormatFileLittle:()=>Wn,validateIsFormatObjectList:()=>Ma,validateIsFormatObjectLittle:()=>Ii,validateIsFormatRights:()=>Dn,validateIsFormatUserDirectoryConfiguration:()=>In,validateIsFormatUserLevelSpot:()=>Pa,validateIsFormatUserList:()=>_n,validateIsFormatUserMapModel:()=>Cn,validateIsFormatUserView:()=>jn,valueLabelSchema:()=>wa,variantSizeTypeSchema:()=>Yn,variantTypeSchema:()=>Xn,wedocEmptyTypeSchema:()=>Mc,wedocFileAudienceTypeSchema:()=>Fc,wedocFileInfoSchema:()=>Lc,wedocFileTypeSchema:()=>Rc,wedocQueryResultsSchema:()=>Pc,wedocQueryTypeSchema:()=>Ic,wedocTemplateSchema:()=>Ec,widgetActiveValueSchema:()=>Qi,widgetArticleAttachmentContentSchema:()=>ar,widgetArticleAttachmentTypeSchema:()=>sr,widgetArticleButtonContentSchema:()=>dr,widgetArticleButtonTypeSchema:()=>pr,widgetArticleCheckListTypeForFrontSchema:()=>zc,widgetArticleGalleryContentSchema:()=>mr,widgetArticleGalleryTypeSchema:()=>gr,widgetArticleImageContentSchema:()=>hr,widgetArticleImageTypeSchema:()=>fr,widgetArticleSliderContentSchema:()=>yr,widgetArticleSliderTypeSchema:()=>vr,widgetArticleTextContentSchema:()=>wr,widgetArticleTextTypeSchema:()=>kr,widgetArticleTitleContentSchema:()=>_r,widgetArticleTitleTypeSchema:()=>Sr,widgetAudienceSchema:()=>Ki,widgetBaseSchema:()=>Jn,widgetButtonPropsSchema:()=>ur,widgetCheckListContentArrForFrontSchema:()=>$c,widgetCheckListContentArrSchema:()=>jr,widgetCheckListContentForFrontSchema:()=>Vc,widgetCheckListContentSchema:()=>xr,widgetCheckListTypeSchema:()=>Cr,widgetCheckboxSchema:()=>dn,widgetColorSchema:()=>Wi,widgetContentKeysSchema:()=>ua,widgetDatasourceTableContentSchema:()=>qr,widgetDatasourceTableTypeSchema:()=>Ur,widgetDatePickerSchema:()=>Gi,widgetDatePickerValueSchema:()=>Ji,widgetDateSchema:()=>Bi,widgetDateValueSchema:()=>$i,widgetDatetimeSchema:()=>Vi,widgetDatetimeValueSchema:()=>zi,widgetDefaultProps:()=>Bc,widgetDefinitionPropsSchema:()=>Dc,widgetDisplayModeSchema:()=>Wc,widgetEmailSchema:()=>nn,widgetEmailValueSchema:()=>rn,widgetEmbedSchema:()=>tn,widgetExcelDatasourceTableContentSchema:()=>Wr,widgetExcelDatasourceTableTypeSchema:()=>Br,widgetFileSchema:()=>Xi,widgetKeysSchema:()=>Gn,widgetLayerSchema:()=>Uc,widgetLegacyMixedBooleanSchema:()=>$r,widgetLinkSchema:()=>Hi,widgetModalPropsSchema:()=>Gc,widgetMultiattributeSchema:()=>Yi,widgetNumberSchema:()=>qi,widgetNumberValueSchema:()=>Ui,widgetOrientedlinksSchema:()=>hn,widgetPlaceSchema:()=>on,widgetPresenceContentSchema:()=>Vr,widgetPresenceRespondPayloadSchema:()=>Qr,widgetPresenceResponseSchema:()=>Hr,widgetPresenceTypeSchema:()=>Gr,widgetQuickSurveyContentSchema:()=>ta,widgetQuickSurveyTypeSchema:()=>ia,widgetRadioSchema:()=>un,widgetRefUserSchema:()=>ln,widgetRtObjectSchema:()=>Jc,widgetSchema:()=>bn,widgetSelectSchema:()=>en,widgetSlideSchema:()=>br,widgetStatePropsSchema:()=>da,widgetTableColumnDataSchema:()=>Ir,widgetTableColumnSchema:()=>Nr,widgetTableColumnTypesSchema:()=>Dr,widgetTableColumnWidgetDateSchema:()=>Er,widgetTableColumnWidgetDefaulSchema:()=>Or,widgetTableColumnWidgetSelectOptionSchema:()=>Rr,widgetTableColumnWidgetSelectSchema:()=>Fr,widgetTableColumnWidgetTextSchema:()=>Lr,widgetTableColumnWidgetsSchema:()=>Pr,widgetTableColumnsData:()=>Mr,widgetTableContentSchema:()=>Zr,widgetTaxonomySchema:()=>pn,widgetTelSchema:()=>mn,widgetTextSchema:()=>Mi,widgetTextValueSchema:()=>Di,widgetTextareaSchema:()=>Ni,widgetTextareaValueSchema:()=>Zi,widgetToggleSchema:()=>gn,widgetTransientSchema:()=>cn,widgetTypeKeysSchema:()=>ca,widgetUriSchema:()=>fn,widgetUrlSchema:()=>an,widgetUrlValueSchema:()=>sn,widgetVectorSchema:()=>tr,widgetWrapperPropsSchema:()=>oa,widgetsRootStateSchema:()=>Kc,widgetsStateSchema:()=>Qc,widgetsValueSchema:()=>yn});class i{constructor(e){this.jApi=e,this.network=e.network}}var n;class r extends i{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,t){return this.network.postCSRF({o:"licenseManager",f:"assignPossiblesLicenses",type:e,kind:t})}unAssignUnusedLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignUnusedLicenses",type:e,kind:t})}optimizeLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"optimizeLicenses",type:e,kind:t})}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})}getLicenseUsersByKind(e,t,i){var n=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(e,[]);return this.network.post(Object.assign(Object.assign({o:"licenseManager",f:"getUsers"},n),{format:t}),i)}}class a extends i{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 i{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"}(n||(n={}));class o extends i{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,i){return this.network.postCSRF({o:"studio",f:"save",idApp:e,value:t,status:i})}delete(e,t){return i=this,n=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 i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r((function(e){e(i)}))).then(s,o)}l((a=a.apply(i,n||[])).next())}));var i,n,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")}var g,h;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const i of e)t[i]=i;return t},e.getValidEnumValues=t=>{const i=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),n={};for(const e of i)n[e]=t[e];return e.objectValues(n)},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 i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t},e.find=(e,t)=>{for(const i of e)if(t(i))return i},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}(g||(g={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(h||(h={}));const f=g.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),b=e=>{switch(typeof e){case"undefined":return f.undefined;case"string":return f.string;case"number":return isNaN(e)?f.nan:f.number;case"boolean":return f.boolean;case"function":return f.function;case"bigint":return f.bigint;case"symbol":return f.symbol;case"object":return Array.isArray(e)?f.array:null===e?f.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?f.promise:"undefined"!=typeof Map&&e instanceof Map?f.map:"undefined"!=typeof Set&&e instanceof Set?f.set:"undefined"!=typeof Date&&e instanceof Date?f.date:f.object;default:return f.unknown}},y=g.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 v 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},i={_errors:[]},n=e=>{for(const r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(n);else if("invalid_return_type"===r.code)n(r.returnTypeError);else if("invalid_arguments"===r.code)n(r.argumentsError);else if(0===r.path.length)i._errors.push(t(r));else{let e=i,n=0;for(;n<r.path.length;){const i=r.path[n];n===r.path.length-1?(e[i]=e[i]||{_errors:[]},e[i]._errors.push(t(r))):e[i]=e[i]||{_errors:[]},e=e[i],n++}}};return n(this),i}static assert(e){if(!(e instanceof v))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,g.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},i=[];for(const n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):i.push(e(n));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}v.create=e=>new v(e);const w=(e,t)=>{let i;switch(e.code){case y.invalid_type:i=e.received===f.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case y.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,g.jsonStringifyReplacer)}`;break;case y.unrecognized_keys:i=`Unrecognized key(s) in object: ${g.joinValues(e.keys,", ")}`;break;case y.invalid_union:i="Invalid input";break;case y.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${g.joinValues(e.options)}`;break;case y.invalid_enum_value:i=`Invalid enum value. Expected ${g.joinValues(e.options)}, received '${e.received}'`;break;case y.invalid_arguments:i="Invalid function arguments";break;case y.invalid_return_type:i="Invalid function return type";break;case y.invalid_date:i="Invalid date";break;case y.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:g.assertNever(e.validation):i="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case y.too_small:i="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 y.too_big:i="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 y.custom:i="Invalid input";break;case y.invalid_intersection_types:i="Intersection results could not be merged";break;case y.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case y.not_finite:i="Number must be finite";break;default:i=t.defaultError,g.assertNever(e)}return{message:i}};let k=w;function _(){return k}const S=e=>{const{data:t,path:i,errorMaps:n,issueData:r}=e,a=[...i,...r.path||[]],s={...r,path:a};if(void 0!==r.message)return{...r,path:a,message:r.message};let o="";const l=n.filter((e=>!!e)).slice().reverse();for(const e of l)o=e(s,{data:t,defaultError:o}).message;return{...r,path:a,message:o}};function j(e,t){const i=_(),n=S({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,i,i===w?void 0:w].filter((e=>!!e))});e.common.issues.push(n)}class x{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const i=[];for(const n of t){if("aborted"===n.status)return C;"dirty"===n.status&&e.dirty(),i.push(n.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){const i=[];for(const e of t){const t=await e.key,n=await e.value;i.push({key:t,value:n})}return x.mergeObjectSync(e,i)}static mergeObjectSync(e,t){const i={};for(const n of t){const{key:t,value:r}=n;if("aborted"===t.status)return C;if("aborted"===r.status)return C;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"===t.value||void 0===r.value&&!n.alwaysSet||(i[t.value]=r.value)}return{status:e.value,value:i}}}const C=Object.freeze({status:"aborted"}),T=e=>({status:"dirty",value:e}),A=e=>({status:"valid",value:e}),O=e=>"aborted"===e.status,L=e=>"dirty"===e.status,R=e=>"valid"===e.status,F=e=>"undefined"!=typeof Promise&&e instanceof Promise;function E(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)}function P(e,t,i,n,r){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(e,i):r?r.value=i:t.set(e,i),i}var I,M,D;"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(I||(I={}));class N{constructor(e,t,i,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=n}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 Z=(e,t)=>{if(R(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 v(e.common.issues);return this._error=t,this._error}}};function q(e){if(!e)return{};const{errorMap:t,invalid_type_error:i,required_error:n,description:r}=e;if(t&&(i||n))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:(t,r)=>{var a,s;const{message:o}=e;return"invalid_enum_value"===t.code?{message:null!=o?o:r.defaultError}:void 0===r.data?{message:null!==(a=null!=o?o:n)&&void 0!==a?a:r.defaultError}:"invalid_type"!==t.code?{message:r.defaultError}:{message:null!==(s=null!=o?o:i)&&void 0!==s?s:r.defaultError}},description:r}}class U{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 b(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:b(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new x,ctx:{common:e.parent.common,data:e.data,parsedType:b(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(F(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 i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){var i;const n={common:{issues:[],async:null!==(i=null==t?void 0:t.async)&&void 0!==i&&i,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:b(e)},r=this._parseSync({data:e,path:n.path,parent:n});return Z(n,r)}async parseAsync(e,t){const i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){const i={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:b(e)},n=this._parse({data:e,path:i.path,parent:i}),r=await(F(n)?n:Promise.resolve(n));return Z(i,r)}refine(e,t){const i=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,n)=>{const r=e(t),a=()=>n.addIssue({code:y.custom,...i(t)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then((e=>!!e||(a(),!1))):!!r||(a(),!1)}))}refinement(e,t){return this._refinement(((i,n)=>!!e(i)||(n.addIssue("function"==typeof t?t(i,n):t),!1)))}_refinement(e){return new Ie({schema:this,typeName:Ge.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Me.create(this,this._def)}nullable(){return De.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return fe.create(this,this._def)}promise(){return Pe.create(this,this._def)}or(e){return ve.create([this,e],this._def)}and(e){return Se.create(this,e,this._def)}transform(e){return new Ie({...q(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Ne({...q(this._def),innerType:this,defaultValue:t,typeName:Ge.ZodDefault})}brand(){return new We({typeName:Ge.ZodBranded,type:this,...q(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Ze({...q(this._def),innerType:this,catchValue:t,typeName:Ge.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Be.create(this,e)}readonly(){return $e.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const W=/^c[^\s-]{8,}$/i,B=/^[0-9a-z]+$/,$=/^[0-9A-HJKMNP-TV-Z]{26}$/,V=/^[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,z=/^[a-z0-9_-]{21}$/i,G=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,J=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Q;const K=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,H=/^(([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})))$/,Y=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,X="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ee=new RegExp(`^${X}$`);function te(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function ie(e){let t=`${X}T${te(e)}`;const i=[];return i.push(e.local?"Z?":"Z"),e.offset&&i.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${i.join("|")})`,new RegExp(`^${t}$`)}class ne extends U{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==f.string){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.string,received:t.parsedType}),C}const t=new x;let i;for(const a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(i=this._getOrReturnCtx(e,i),j(i,{code:y.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("max"===a.kind)e.data.length>a.value&&(i=this._getOrReturnCtx(e,i),j(i,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const n=e.data.length>a.value,r=e.data.length<a.value;(n||r)&&(i=this._getOrReturnCtx(e,i),n?j(i,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):r&&j(i,{code:y.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if("email"===a.kind)J.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"email",code:y.invalid_string,message:a.message}),t.dirty());else if("emoji"===a.kind)Q||(Q=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Q.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"emoji",code:y.invalid_string,message:a.message}),t.dirty());else if("uuid"===a.kind)V.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"uuid",code:y.invalid_string,message:a.message}),t.dirty());else if("nanoid"===a.kind)z.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"nanoid",code:y.invalid_string,message:a.message}),t.dirty());else if("cuid"===a.kind)W.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"cuid",code:y.invalid_string,message:a.message}),t.dirty());else if("cuid2"===a.kind)B.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"cuid2",code:y.invalid_string,message:a.message}),t.dirty());else if("ulid"===a.kind)$.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"ulid",code:y.invalid_string,message:a.message}),t.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(n){i=this._getOrReturnCtx(e,i),j(i,{validation:"url",code:y.invalid_string,message:a.message}),t.dirty()}else"regex"===a.kind?(a.regex.lastIndex=0,a.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"regex",code:y.invalid_string,message:a.message}),t.dirty())):"trim"===a.kind?e.data=e.data.trim():"includes"===a.kind?e.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty()):"toLowerCase"===a.kind?e.data=e.data.toLowerCase():"toUpperCase"===a.kind?e.data=e.data.toUpperCase():"startsWith"===a.kind?e.data.startsWith(a.value)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):"endsWith"===a.kind?e.data.endsWith(a.value)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):"datetime"===a.kind?ie(a).test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:"datetime",message:a.message}),t.dirty()):"date"===a.kind?ee.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:"date",message:a.message}),t.dirty()):"time"===a.kind?new RegExp(`^${te(a)}$`).test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{code:y.invalid_string,validation:"time",message:a.message}),t.dirty()):"duration"===a.kind?G.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"duration",code:y.invalid_string,message:a.message}),t.dirty()):"ip"===a.kind?(n=e.data,("v4"!==(r=a.version)&&r||!K.test(n))&&("v6"!==r&&r||!H.test(n))&&(i=this._getOrReturnCtx(e,i),j(i,{validation:"ip",code:y.invalid_string,message:a.message}),t.dirty())):"base64"===a.kind?Y.test(e.data)||(i=this._getOrReturnCtx(e,i),j(i,{validation:"base64",code:y.invalid_string,message:a.message}),t.dirty()):g.assertNever(a);var n,r;return{status:t.value,value:e.data}}_regex(e,t,i){return this.refinement((t=>e.test(t)),{validation:t,code:y.invalid_string,...I.errToObj(i)})}_addCheck(e){return new ne({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...I.errToObj(e)})}url(e){return this._addCheck({kind:"url",...I.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...I.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...I.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...I.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...I.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...I.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...I.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...I.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...I.errToObj(e)})}datetime(e){var t,i;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!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,local:null!==(i=null==e?void 0:e.local)&&void 0!==i&&i,...I.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...I.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...I.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...I.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...I.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...I.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...I.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...I.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...I.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...I.errToObj(t)})}nonempty(e){return this.min(1,I.errToObj(e))}trim(){return new ne({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ne({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ne({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===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 isNANOID(){return!!this._def.checks.find((e=>"nanoid"===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 isBase64(){return!!this._def.checks.find((e=>"base64"===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 re(e,t){const i=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,r=i>n?i:n;return parseInt(e.toFixed(r).replace(".",""))%parseInt(t.toFixed(r).replace(".",""))/Math.pow(10,r)}ne.create=e=>{var t;return new ne({checks:[],typeName:Ge.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...q(e)})};class ae extends U{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)!==f.number){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.number,received:t.parsedType}),C}let t;const i=new x;for(const n of this._def.checks)"int"===n.kind?g.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),j(t,{code:y.invalid_type,expected:"integer",received:"float",message:n.message}),i.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):"multipleOf"===n.kind?0!==re(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_finite,message:n.message}),i.dirty()):g.assertNever(n);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,I.toString(t))}gt(e,t){return this.setLimit("min",e,!1,I.toString(t))}lte(e,t){return this.setLimit("max",e,!0,I.toString(t))}lt(e,t){return this.setLimit("max",e,!1,I.toString(t))}setLimit(e,t,i,n){return new ae({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:I.toString(n)}]})}_addCheck(e){return new ae({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:I.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:I.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:I.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:I.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:I.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:I.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&&g.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const i of this._def.checks){if("finite"===i.kind||"int"===i.kind||"multipleOf"===i.kind)return!0;"min"===i.kind?(null===t||i.value>t)&&(t=i.value):"max"===i.kind&&(null===e||i.value<e)&&(e=i.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ae.create=e=>new ae({checks:[],typeName:Ge.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...q(e)});class se extends U{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)!==f.bigint){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.bigint,received:t.parsedType}),C}let t;const i=new x;for(const n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):g.assertNever(n);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,I.toString(t))}gt(e,t){return this.setLimit("min",e,!1,I.toString(t))}lte(e,t){return this.setLimit("max",e,!0,I.toString(t))}lt(e,t){return this.setLimit("max",e,!1,I.toString(t))}setLimit(e,t,i,n){return new se({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:I.toString(n)}]})}_addCheck(e){return new se({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:I.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:I.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}}se.create=e=>{var t;return new se({checks:[],typeName:Ge.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...q(e)})};class oe extends U{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==f.boolean){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.boolean,received:t.parsedType}),C}return A(e.data)}}oe.create=e=>new oe({typeName:Ge.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...q(e)});class le extends U{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==f.date){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.date,received:t.parsedType}),C}if(isNaN(e.data.getTime()))return j(this._getOrReturnCtx(e),{code:y.invalid_date}),C;const t=new x;let i;for(const n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(i=this._getOrReturnCtx(e,i),j(i,{code:y.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),t.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(i=this._getOrReturnCtx(e,i),j(i,{code:y.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),t.dirty()):g.assertNever(n);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new le({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:I.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:I.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}}le.create=e=>new le({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...q(e)});class ce extends U{_parse(e){if(this._getType(e)!==f.symbol){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.symbol,received:t.parsedType}),C}return A(e.data)}}ce.create=e=>new ce({typeName:Ge.ZodSymbol,...q(e)});class ue extends U{_parse(e){if(this._getType(e)!==f.undefined){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.undefined,received:t.parsedType}),C}return A(e.data)}}ue.create=e=>new ue({typeName:Ge.ZodUndefined,...q(e)});class de extends U{_parse(e){if(this._getType(e)!==f.null){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.null,received:t.parsedType}),C}return A(e.data)}}de.create=e=>new de({typeName:Ge.ZodNull,...q(e)});class pe extends U{constructor(){super(...arguments),this._any=!0}_parse(e){return A(e.data)}}pe.create=e=>new pe({typeName:Ge.ZodAny,...q(e)});class me extends U{constructor(){super(...arguments),this._unknown=!0}_parse(e){return A(e.data)}}me.create=e=>new me({typeName:Ge.ZodUnknown,...q(e)});class ge extends U{_parse(e){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.never,received:t.parsedType}),C}}ge.create=e=>new ge({typeName:Ge.ZodNever,...q(e)});class he extends U{_parse(e){if(this._getType(e)!==f.undefined){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.void,received:t.parsedType}),C}return A(e.data)}}he.create=e=>new he({typeName:Ge.ZodVoid,...q(e)});class fe extends U{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),n=this._def;if(t.parsedType!==f.array)return j(t,{code:y.invalid_type,expected:f.array,received:t.parsedType}),C;if(null!==n.exactLength){const e=t.data.length>n.exactLength.value,r=t.data.length<n.exactLength.value;(e||r)&&(j(t,{code:e?y.too_big:y.too_small,minimum:r?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(j(t,{code:y.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(j(t,{code:y.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map(((e,i)=>n.type._parseAsync(new N(t,e,t.path,i))))).then((e=>x.mergeArray(i,e)));const r=[...t.data].map(((e,i)=>n.type._parseSync(new N(t,e,t.path,i))));return x.mergeArray(i,r)}get element(){return this._def.type}min(e,t){return new fe({...this._def,minLength:{value:e,message:I.toString(t)}})}max(e,t){return new fe({...this._def,maxLength:{value:e,message:I.toString(t)}})}length(e,t){return new fe({...this._def,exactLength:{value:e,message:I.toString(t)}})}nonempty(e){return this.min(1,e)}}function be(e){if(e instanceof ye){const t={};for(const i in e.shape){const n=e.shape[i];t[i]=Me.create(be(n))}return new ye({...e._def,shape:()=>t})}return e instanceof fe?new fe({...e._def,type:be(e.element)}):e instanceof Me?Me.create(be(e.unwrap())):e instanceof De?De.create(be(e.unwrap())):e instanceof je?je.create(e.items.map((e=>be(e)))):e}fe.create=(e,t)=>new fe({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...q(t)});class ye extends U{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=g.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==f.object){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.object,received:t.parsedType}),C}const{status:t,ctx:i}=this._processInputParams(e),{shape:n,keys:r}=this._getCached(),a=[];if(!(this._def.catchall instanceof ge&&"strip"===this._def.unknownKeys))for(const e in i.data)r.includes(e)||a.push(e);const s=[];for(const e of r){const t=n[e],r=i.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new N(i,r,i.path,e)),alwaysSet:e in i.data})}if(this._def.catchall instanceof ge){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:i.data[e]}});else if("strict"===e)a.length>0&&(j(i,{code:y.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 n=i.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new N(i,n,i.path,t)),alwaysSet:t in i.data})}}return i.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of s){const i=await t.key,n=await t.value;e.push({key:i,value:n,alwaysSet:t.alwaysSet})}return e})).then((e=>x.mergeObjectSync(t,e))):x.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return I.errToObj,new ye({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,i)=>{var n,r,a,s;const o=null!==(a=null===(r=(n=this._def).errorMap)||void 0===r?void 0:r.call(n,t,i).message)&&void 0!==a?a:i.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=I.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new ye({...this._def,unknownKeys:"strip"})}passthrough(){return new ye({...this._def,unknownKeys:"passthrough"})}extend(e){return new ye({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ye({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Ge.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ye({...this._def,catchall:e})}pick(e){const t={};return g.objectKeys(e).forEach((i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])})),new ye({...this._def,shape:()=>t})}omit(e){const t={};return g.objectKeys(this.shape).forEach((i=>{e[i]||(t[i]=this.shape[i])})),new ye({...this._def,shape:()=>t})}deepPartial(){return be(this)}partial(e){const t={};return g.objectKeys(this.shape).forEach((i=>{const n=this.shape[i];e&&!e[i]?t[i]=n:t[i]=n.optional()})),new ye({...this._def,shape:()=>t})}required(e){const t={};return g.objectKeys(this.shape).forEach((i=>{if(e&&!e[i])t[i]=this.shape[i];else{let e=this.shape[i];for(;e instanceof Me;)e=e._def.innerType;t[i]=e}})),new ye({...this._def,shape:()=>t})}keyof(){return Re(g.objectKeys(this.shape))}}ye.create=(e,t)=>new ye({shape:()=>e,unknownKeys:"strip",catchall:ge.create(),typeName:Ge.ZodObject,...q(t)}),ye.strictCreate=(e,t)=>new ye({shape:()=>e,unknownKeys:"strict",catchall:ge.create(),typeName:Ge.ZodObject,...q(t)}),ye.lazycreate=(e,t)=>new ye({shape:e,unknownKeys:"strip",catchall:ge.create(),typeName:Ge.ZodObject,...q(t)});class ve extends U{_parse(e){const{ctx:t}=this._processInputParams(e),i=this._def.options;if(t.common.async)return Promise.all(i.map((async e=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const i of e)if("dirty"===i.result.status)return t.common.issues.push(...i.ctx.common.issues),i.result;const i=e.map((e=>new v(e.ctx.common.issues)));return j(t,{code:y.invalid_union,unionErrors:i}),C}));{let e;const n=[];for(const r of i){const i={...t,common:{...t.common,issues:[]},parent:null},a=r._parseSync({data:t.data,path:t.path,parent:i});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:i}),i.common.issues.length&&n.push(i.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const r=n.map((e=>new v(e)));return j(t,{code:y.invalid_union,unionErrors:r}),C}}get options(){return this._def.options}}ve.create=(e,t)=>new ve({options:e,typeName:Ge.ZodUnion,...q(t)});const we=e=>e instanceof Oe?we(e.schema):e instanceof Ie?we(e.innerType()):e instanceof Le?[e.value]:e instanceof Fe?e.options:e instanceof Ee?g.objectValues(e.enum):e instanceof Ne?we(e._def.innerType):e instanceof ue?[void 0]:e instanceof de?[null]:e instanceof Me?[void 0,...we(e.unwrap())]:e instanceof De?[null,...we(e.unwrap())]:e instanceof We||e instanceof $e?we(e.unwrap()):e instanceof Ze?we(e._def.innerType):[];class ke extends U{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.object)return j(t,{code:y.invalid_type,expected:f.object,received:t.parsedType}),C;const i=this.discriminator,n=t.data[i],r=this.optionsMap.get(n);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}):(j(t,{code:y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),C)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){const n=new Map;for(const i of t){const t=we(i.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const r of t){if(n.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);n.set(r,i)}}return new ke({typeName:Ge.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...q(i)})}}function _e(e,t){const i=b(e),n=b(t);if(e===t)return{valid:!0,data:e};if(i===f.object&&n===f.object){const i=g.objectKeys(t),n=g.objectKeys(e).filter((e=>-1!==i.indexOf(e))),r={...e,...t};for(const i of n){const n=_e(e[i],t[i]);if(!n.valid)return{valid:!1};r[i]=n.data}return{valid:!0,data:r}}if(i===f.array&&n===f.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let n=0;n<e.length;n++){const r=_e(e[n],t[n]);if(!r.valid)return{valid:!1};i.push(r.data)}return{valid:!0,data:i}}return i===f.date&&n===f.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Se extends U{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),n=(e,n)=>{if(O(e)||O(n))return C;const r=_e(e.value,n.value);return r.valid?((L(e)||L(n))&&t.dirty(),{status:t.value,value:r.data}):(j(i,{code:y.invalid_intersection_types}),C)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then((([e,t])=>n(e,t))):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Se.create=(e,t,i)=>new Se({left:e,right:t,typeName:Ge.ZodIntersection,...q(i)});class je extends U{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.array)return j(i,{code:y.invalid_type,expected:f.array,received:i.parsedType}),C;if(i.data.length<this._def.items.length)return j(i,{code:y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),C;!this._def.rest&&i.data.length>this._def.items.length&&(j(i,{code:y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...i.data].map(((e,t)=>{const n=this._def.items[t]||this._def.rest;return n?n._parse(new N(i,e,i.path,t)):null})).filter((e=>!!e));return i.common.async?Promise.all(n).then((e=>x.mergeArray(t,e))):x.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new je({...this._def,rest:e})}}je.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new je({items:e,typeName:Ge.ZodTuple,rest:null,...q(t)})};class xe extends U{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.object)return j(i,{code:y.invalid_type,expected:f.object,received:i.parsedType}),C;const n=[],r=this._def.keyType,a=this._def.valueType;for(const e in i.data)n.push({key:r._parse(new N(i,e,i.path,e)),value:a._parse(new N(i,i.data[e],i.path,e)),alwaysSet:e in i.data});return i.common.async?x.mergeObjectAsync(t,n):x.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,i){return new xe(t instanceof U?{keyType:e,valueType:t,typeName:Ge.ZodRecord,...q(i)}:{keyType:ne.create(),valueType:e,typeName:Ge.ZodRecord,...q(t)})}}class Ce extends U{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.map)return j(i,{code:y.invalid_type,expected:f.map,received:i.parsedType}),C;const n=this._def.keyType,r=this._def.valueType,a=[...i.data.entries()].map((([e,t],a)=>({key:n._parse(new N(i,e,i.path,[a,"key"])),value:r._parse(new N(i,t,i.path,[a,"value"]))})));if(i.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const i of a){const n=await i.key,r=await i.value;if("aborted"===n.status||"aborted"===r.status)return C;"dirty"!==n.status&&"dirty"!==r.status||t.dirty(),e.set(n.value,r.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const i of a){const n=i.key,r=i.value;if("aborted"===n.status||"aborted"===r.status)return C;"dirty"!==n.status&&"dirty"!==r.status||t.dirty(),e.set(n.value,r.value)}return{status:t.value,value:e}}}}Ce.create=(e,t,i)=>new Ce({valueType:t,keyType:e,typeName:Ge.ZodMap,...q(i)});class Te extends U{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.set)return j(i,{code:y.invalid_type,expected:f.set,received:i.parsedType}),C;const n=this._def;null!==n.minSize&&i.data.size<n.minSize.value&&(j(i,{code:y.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&i.data.size>n.maxSize.value&&(j(i,{code:y.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const r=this._def.valueType;function a(e){const i=new Set;for(const n of e){if("aborted"===n.status)return C;"dirty"===n.status&&t.dirty(),i.add(n.value)}return{status:t.value,value:i}}const s=[...i.data.values()].map(((e,t)=>r._parse(new N(i,e,i.path,t))));return i.common.async?Promise.all(s).then((e=>a(e))):a(s)}min(e,t){return new Te({...this._def,minSize:{value:e,message:I.toString(t)}})}max(e,t){return new Te({...this._def,maxSize:{value:e,message:I.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Te.create=(e,t)=>new Te({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...q(t)});class Ae extends U{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.function)return j(t,{code:y.invalid_type,expected:f.function,received:t.parsedType}),C;function i(e,i){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),w].filter((e=>!!e)),issueData:{code:y.invalid_arguments,argumentsError:i}})}function n(e,i){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),w].filter((e=>!!e)),issueData:{code:y.invalid_return_type,returnTypeError:i}})}const r={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Pe){const e=this;return A((async function(...t){const s=new v([]),o=await e._def.args.parseAsync(t,r).catch((e=>{throw s.addIssue(i(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(n(l,e)),s}))}))}{const e=this;return A((function(...t){const s=e._def.args.safeParse(t,r);if(!s.success)throw new v([i(t,s.error)]);const o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,r);if(!l.success)throw new v([n(o,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ae({...this._def,args:je.create(e).rest(me.create())})}returns(e){return new Ae({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new Ae({args:e||je.create([]).rest(me.create()),returns:t||me.create(),typeName:Ge.ZodFunction,...q(i)})}}class Oe extends U{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})}}Oe.create=(e,t)=>new Oe({getter:e,typeName:Ge.ZodLazy,...q(t)});class Le extends U{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return j(t,{received:t.data,code:y.invalid_literal,expected:this._def.value}),C}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Re(e,t){return new Fe({values:e,typeName:Ge.ZodEnum,...q(t)})}Le.create=(e,t)=>new Le({value:e,typeName:Ge.ZodLiteral,...q(t)});class Fe extends U{constructor(){super(...arguments),M.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),i=this._def.values;return j(t,{expected:g.joinValues(i),received:t.parsedType,code:y.invalid_type}),C}if(E(this,M,"f")||P(this,M,new Set(this._def.values),"f"),!E(this,M,"f").has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return j(t,{received:t.data,code:y.invalid_enum_value,options:i}),C}return A(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,t=this._def){return Fe.create(e,{...this._def,...t})}exclude(e,t=this._def){return Fe.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}M=new WeakMap,Fe.create=Re;class Ee extends U{constructor(){super(...arguments),D.set(this,void 0)}_parse(e){const t=g.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==f.string&&i.parsedType!==f.number){const e=g.objectValues(t);return j(i,{expected:g.joinValues(e),received:i.parsedType,code:y.invalid_type}),C}if(E(this,D,"f")||P(this,D,new Set(g.getValidEnumValues(this._def.values)),"f"),!E(this,D,"f").has(e.data)){const e=g.objectValues(t);return j(i,{received:i.data,code:y.invalid_enum_value,options:e}),C}return A(e.data)}get enum(){return this._def.values}}D=new WeakMap,Ee.create=(e,t)=>new Ee({values:e,typeName:Ge.ZodNativeEnum,...q(t)});class Pe extends U{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.promise&&!1===t.common.async)return j(t,{code:y.invalid_type,expected:f.promise,received:t.parsedType}),C;const i=t.parsedType===f.promise?t.data:Promise.resolve(t.data);return A(i.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Pe.create=(e,t)=>new Pe({type:e,typeName:Ge.ZodPromise,...q(t)});class Ie extends U{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:i}=this._processInputParams(e),n=this._def.effect||null,r={addIssue:e=>{j(i,e),e.fatal?t.abort():t.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===n.type){const e=n.transform(i.data,r);if(i.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return C;const n=await this._def.schema._parseAsync({data:e,path:i.path,parent:i});return"aborted"===n.status?C:"dirty"===n.status||"dirty"===t.value?T(n.value):n}));{if("aborted"===t.value)return C;const n=this._def.schema._parseSync({data:e,path:i.path,parent:i});return"aborted"===n.status?C:"dirty"===n.status||"dirty"===t.value?T(n.value):n}}if("refinement"===n.type){const e=e=>{const t=n.refinement(e,r);if(i.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===i.common.async){const n=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===n.status?C:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then((i=>"aborted"===i.status?C:("dirty"===i.status&&t.dirty(),e(i.value).then((()=>({status:t.value,value:i.value}))))))}if("transform"===n.type){if(!1===i.common.async){const e=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!R(e))return e;const a=n.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:i.data,path:i.path,parent:i}).then((e=>R(e)?Promise.resolve(n.transform(e.value,r)).then((e=>({status:t.value,value:e}))):e))}g.assertNever(n)}}Ie.create=(e,t,i)=>new Ie({schema:e,typeName:Ge.ZodEffects,effect:t,...q(i)}),Ie.createWithPreprocess=(e,t,i)=>new Ie({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...q(i)});class Me extends U{_parse(e){return this._getType(e)===f.undefined?A(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Me.create=(e,t)=>new Me({innerType:e,typeName:Ge.ZodOptional,...q(t)});class De extends U{_parse(e){return this._getType(e)===f.null?A(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:Ge.ZodNullable,...q(t)});class Ne extends U{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===f.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Ne.create=(e,t)=>new Ne({innerType:e,typeName:Ge.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...q(t)});class Ze extends U{_parse(e){const{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return F(n)?n.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new v(i.common.issues)},input:i.data})}))):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new v(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Ze.create=(e,t)=>new Ze({innerType:e,typeName:Ge.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...q(t)});class qe extends U{_parse(e){if(this._getType(e)!==f.nan){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.nan,received:t.parsedType}),C}return{status:"valid",value:e.data}}}qe.create=e=>new qe({typeName:Ge.ZodNaN,...q(e)});const Ue=Symbol("zod_brand");class We extends U{_parse(e){const{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class Be extends U{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),T(e.value)):this._def.out._parseAsync({data:e.value,path:i.path,parent:i})})();{const e=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:i.path,parent:i})}}static create(e,t){return new Be({in:e,out:t,typeName:Ge.ZodPipeline})}}class $e extends U{_parse(e){const t=this._def.innerType._parse(e),i=e=>(R(e)&&(e.value=Object.freeze(e.value)),e);return F(t)?t.then((e=>i(e))):i(t)}unwrap(){return this._def.innerType}}function Ve(e,t={},i){return e?pe.create().superRefine(((n,r)=>{var a,s;if(!e(n)){const e="function"==typeof t?t(n):"string"==typeof t?{message:t}:t,o=null===(s=null!==(a=e.fatal)&&void 0!==a?a:i)||void 0===s||s,l="string"==typeof e?{message:e}:e;r.addIssue({code:"custom",...l,fatal:o})}})):pe.create()}$e.create=(e,t)=>new $e({innerType:e,typeName:Ge.ZodReadonly,...q(t)});const ze={object:ye.lazycreate};var Ge;!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"}(Ge||(Ge={}));const Je=ne.create,Qe=ae.create,Ke=qe.create,He=se.create,Ye=oe.create,Xe=le.create,et=ce.create,tt=ue.create,it=de.create,nt=pe.create,rt=me.create,at=ge.create,st=he.create,ot=fe.create,lt=ye.create,ct=ye.strictCreate,ut=ve.create,dt=ke.create,pt=Se.create,mt=je.create,gt=xe.create,ht=Ce.create,ft=Te.create,bt=Ae.create,yt=Oe.create,vt=Le.create,wt=Fe.create,kt=Ee.create,_t=Pe.create,St=Ie.create,jt=Me.create,xt=De.create,Ct=Ie.createWithPreprocess,Tt=Be.create,At={string:e=>ne.create({...e,coerce:!0}),number:e=>ae.create({...e,coerce:!0}),boolean:e=>oe.create({...e,coerce:!0}),bigint:e=>se.create({...e,coerce:!0}),date:e=>le.create({...e,coerce:!0})},Ot=C;var Lt=Object.freeze({__proto__:null,defaultErrorMap:w,setErrorMap:function(e){k=e},getErrorMap:_,makeIssue:S,EMPTY_PATH:[],addIssueToContext:j,ParseStatus:x,INVALID:C,DIRTY:T,OK:A,isAborted:O,isDirty:L,isValid:R,isAsync:F,get util(){return g},get objectUtil(){return h},ZodParsedType:f,getParsedType:b,ZodType:U,datetimeRegex:ie,ZodString:ne,ZodNumber:ae,ZodBigInt:se,ZodBoolean:oe,ZodDate:le,ZodSymbol:ce,ZodUndefined:ue,ZodNull:de,ZodAny:pe,ZodUnknown:me,ZodNever:ge,ZodVoid:he,ZodArray:fe,ZodObject:ye,ZodUnion:ve,ZodDiscriminatedUnion:ke,ZodIntersection:Se,ZodTuple:je,ZodRecord:xe,ZodMap:Ce,ZodSet:Te,ZodFunction:Ae,ZodLazy:Oe,ZodLiteral:Le,ZodEnum:Fe,ZodNativeEnum:Ee,ZodPromise:Pe,ZodEffects:Ie,ZodTransformer:Ie,ZodOptional:Me,ZodNullable:De,ZodDefault:Ne,ZodCatch:Ze,ZodNaN:qe,BRAND:Ue,ZodBranded:We,ZodPipeline:Be,ZodReadonly:$e,custom:Ve,Schema:U,ZodSchema:U,late:ze,get ZodFirstPartyTypeKind(){return Ge},coerce:At,any:nt,array:ot,bigint:He,boolean:Ye,date:Xe,discriminatedUnion:dt,effect:St,enum:wt,function:bt,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Ve((t=>t instanceof e),t),intersection:pt,lazy:yt,literal:vt,map:ht,nan:Ke,nativeEnum:kt,never:at,null:it,nullable:xt,number:Qe,object:lt,oboolean:()=>Ye().optional(),onumber:()=>Qe().optional(),optional:jt,ostring:()=>Je().optional(),pipeline:Tt,preprocess:Ct,promise:_t,record:gt,set:ft,strictObject:ct,string:Je,symbol:et,transformer:St,tuple:mt,undefined:tt,union:ut,unknown:rt,void:st,NEVER:Ot,ZodIssueCode:y,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:v});const Rt=Lt.object({type:Lt.string(),recordId:Lt.union([Lt.string().regex(new RegExp("[0-9]+")),Lt.number()])}),Ft=(e,t)=>(t?Rt.passthrough():Rt).safeParse(e).success,Et=Lt.object({uri:Lt.string().regex(new RegExp("[a-zA-Z]+/[0-9]+"))}),Pt=(e,t)=>(t?Et.passthrough():Et).safeParse(e).success;function It(e){if(Pt(e,!0))return e.uri;if(Ft(e,!0))return`${e.type}/${e.recordId}`;throw new Error("Invalid uri or typeId "+("uri"in e?e.uri:"type"in e&&"recordId"in e?e.type+"/"+e.recordId:"undefined"))}function Mt(e){return p(d(e.from,"/"),"/")||""}function Dt(e){return e.timestamp?`?_=${e.timestamp}`:""}function Nt(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 Zt(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 qt(e){return e.format||"png"}function Ut(e){try{return new URL(e)}catch(e){}try{return new URL(window.location.origin+"/"+p(e,"/"))}catch(e){}}function Wt(e,t=2){var i;if("url"in e&&e.url){const t=Ut(e.url);if(t)return"timestamp"in e&&e.timestamp&&!t.searchParams.has("_")&&t.searchParams.append("_",e.timestamp.toString()),t.toString()}const n=0===(null===(i=e.uri)||void 0===i?void 0:i.indexOf("icons/"))?e.uri:"icons"===e.type?e.type+"/"+e.recordId:It(e);return`/${Mt(e)}${Zt(e,t)}/`+n+`.${qt(e)}${Nt(e)}`}Rt.partial().or(Et.partial());const Bt=["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"],$t=["docx","xlsx","csv","pptx","pdf","zip","ai","mp3","mpeg","ttf","otf","jpg","jpeg","png","gif","psd","svg","txt","mp4","odt","webm"],Vt={"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"},zt=e=>Object.keys(Vt).find((t=>Vt[t]===e)),Gt=e=>{var t;return null!==(t=Vt[e])&&void 0!==t?t:void 0};function Jt(e){const t=String(e).split(".").pop();return $t.find((e=>e===t))}const Qt=e=>{var t;const i=Jt(e);return null!==(t=zt(i))&&void 0!==t?t:"application/octet-stream"},Kt=e=>e?(new Date(e).getTime()/1e3).toFixed(0):void 0,Ht=(e,t="fitx80")=>{const i=ni(e),n=Kt(e.dateModified);switch(i){default:return;case"video":return`/media/${e.id}.mp4?stream=true`+(n?`&_=${n}`:"");case"audio":return`/media/${e.id}.mp3`+(n?`?_=${n}`:"");case"gif":return Wt({timestamp:n,size:t,from:"imagecache",uri:e.uri,format:"gif"});case"image":return Wt({timestamp:n,size:t,from:"imagecache",uri:e.uri})}},Yt=e=>{const t=Jt(e);return void 0!==t?ei(zt(t)):"application"},Xt=e=>-1!==["image/vnd","image/svg","image/heic"].findIndex((t=>e.startsWith(t)));function ei(e){return e&&e.startsWith("folder/")?"folder":null==e||Xt(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 ti=(e,t,i="rr")=>"ng"===i?`/ng/file/${e}/${t}`:`/ng/rr/file/${e}/${t}`,ii=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?Qt(e.title):e.mimetype,ni=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?Yt(e.title):ei(e.mimetype);function ri(e){return e.startsWith("tag_")||"tags"===e}function ai(e){return Object.fromEntries(Object.entries(e).filter((([e])=>ri(e))))}function si(e,t,i){return Object.fromEntries(Object.entries(e).filter((([e])=>ri(e))).map((([e,n])=>{const r=Array.isArray(n)?n.map((e=>"object"==typeof e&&e&&t in e?e[t]:e)):n;return[e,i&&Array.isArray(r)?i(r):r]})))}function oi(e){return si(e,"uri")}const li=e=>{var t;let i={};"_errors"in e&&(i._errors=e._errors),"_options"in e&&(i._options=e._options),"title"in e&&(i.title=e.title),"description"in e&&(i.description=e.description),"activity"in e&&(i.activity=e.activity),"image"in e&&(i.image=e.image),"uri"in e&&(i.uri=e.uri),"type"in e&&(i.type=e.type),"edito"in e&&(i.edito=e.edito),"category"in e&&(i.category=e.category.toString()),"commentLevel"in e&&(i.commentLevel=e.commentLevel),"_options"in e&&(null===(t=e._options)||void 0===t?void 0:t.custom_widgets)&&(i.custom_widgets=Array.isArray(e._options.custom_widgets)?{}:e._options.custom_widgets),"displayType"in e&&(i.displayType=e.displayType),"language"in e&&(i.language=e.language),"edit_access"in e&&(i.edit_access=e.edit_access),"lock_mail"in e&&(i.lock_mail=e.lock_mail),"fileSyncEnabled"in e&&(i.fileSyncEnabled=e.fileSyncEnabled),"fileSyncVersioningType"in e&&(i.fileSyncVersioningType=e.fileSyncVersioningType),"fileBankQuota"in e&&(i.fileBankQuota=e.fileBankQuota),"idCommunity"in e&&(i.idCommunity=e.idCommunity),"lastRssExecution"in e&&(i.lastRssExecution=e.lastRssExecution),"mail_comment"in e&&(i.mail_comment=e.mail_comment),"mail_frequency"in e&&(i.mail_frequency=e.mail_frequency),"mail_spotit"in e&&(i.mail_spotit=e.mail_spotit),"mail_subscriber"in e&&(i.mail_subscriber=e.mail_subscriber),"notifyFolder"in e&&(i.notifyFolder=e.notifyFolder),"nounsubscribe"in e&&(i.nounsubscribe=e.nounsubscribe),"privacy"in e&&(i.privacy=e.privacy),"publishFolder"in e&&(i.publishFolder=e.publishFolder),"rss_access"in e&&(i.rss_access=e.rss_access),"rss_feed"in e&&(i.rss_feed=e.rss_feed&&Array.isArray(e.rss_feed)?JSON.stringify(e.rss_feed.map((e=>{var{_user:t}=e,i=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(e,["_user"]);return Object.assign(Object.assign({},i),{idUser:null==t?void 0:t.id})}))):"[]"),"rss_key"in e&&(i.rss_key=e.rss_key),"spot_right_user"in e&&(i.spot_right_user=e.spot_right_user),"spotBanner"in e&&(i.spotBanner=e.spotBanner),"spotDefaultPublishType"in e&&(i.spotDefaultPublishType=e.spotDefaultPublishType),"user_level_signup"in e&&(i.user_level_signup=e.user_level_signup),"useTeaser"in e&&(i.useTeaser=e.useTeaser),"widgets"in e&&(i.widgets=e.widgets);const n=ai(e);if(i=Object.assign(Object.assign({},i),n),ci(e,i))return i;throw new Error},ci=(e,t)=>{const i=["id","mainType","dateCreation","dateModified","_url","o2apLinksSources"],n=["custom_widgets"],r=Object.keys(e),a=Object.keys(t),s=r.filter((e=>!a.includes(e)&&!i.includes(e))),o=a.filter((e=>!r.includes(e)&&!n.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};var ui=function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}))};class di{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 ui(this,void 0,void 0,(function*(){const i=yield this.window.getBackendUrl();let n;try{n=new URL(`/${this.action}/${e}/${t}`,i).href}catch(r){n=`${i}/${this.action}/${e}/${t}`}return n}))}getHostname(){return ui(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:i,f:n}=e,r=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(e,["o","f"]);return ui(this,void 0,void 0,(function*(){void 0===t&&(t=null);const e=yield this.getUrl(i,n);return this.window.fetch(e,Object.assign(Object.assign({},di._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 ui(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 i=e.get("token");return i&&"string"==typeof i?this.window.fetch(t,{method:"POST",credentials:"same-origin",body:e}).then((e=>e.json())).then((e=>({response:e,token:i}))):Promise.reject("Missing token")}))}postCSRF(e,t){return this.tokenCSRF().then((i=>this.post(Object.assign(e,{tokenCSRF:i.result}),t)))}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 pi=Array.isArray,mi=Object.keys,gi=Object.prototype.hasOwnProperty;function hi(e,t,i){const n=null==i?void 0:i.map((e=>e.split(".")));if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const r=pi(e),a=pi(t);let s,o,l;if(r&&a){if(o=e.length,o!==t.length)return!1;for(s=o;0!=s--;)if(!hi(e[s],t[s],i))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=mi(e).filter((e=>!(null==n?void 0:n.some((t=>1===t.length&&t[0]===e)))));if(o=m.length,o!==mi(t).filter((e=>!(null==n?void 0:n.some((t=>1===t.length&&t[0]===e))))).length)return!1;for(s=o;0!=s--;)if(!gi.call(t,m[s]))return!1;for(s=o;0!=s--;)if(l=m[s],!("_owner"===l&&e.$$typeof||hi(e[l],t[l],null==n?void 0:n.filter((e=>e.length>1&&e[0]===l)).map((e=>e.splice(1).join("."))))))return!1;return!0}return e!=e&&t!=t}function fi(e,t){if(Array.isArray(e))return e.map((e=>fi(e,t)));if("object"==typeof e&&null!==e){let i={};return Object.keys(e).forEach((n=>{i=Object.assign(Object.assign({},i),{[n]:n&&t.includes(n)?typeof e[n]:fi(e[n],t)})})),i}return e}const bi=(e,t)=>Array.isArray(t)&&t.length?[e,...t].join(","):e,yi=Lt.object({href:Lt.string(),target:Lt.string()}),vi=Lt.object({name:Lt.string(),sort:Lt.union([Lt.literal("ASC"),Lt.literal("DESC")])}),wi=Lt.union([Lt.boolean(),Lt.string(),Lt.number(),Lt.array(Lt.string()),Lt.object({srcId:Lt.union([Lt.number(),Lt.string()]),srcType:Lt.string()}),Lt.object({targetId:Lt.union([Lt.number(),Lt.string()]),targetType:Lt.string()}),Lt.object({start:Lt.string(),end:Lt.string()})]),ki=Lt.union([Lt.literal("<"),Lt.literal(">"),Lt.literal("<="),Lt.literal(">="),Lt.literal("!="),Lt.literal("<>"),Lt.literal("like"),Lt.literal("between"),Lt.literal("is"),Lt.literal("is not"),Lt.literal("in"),Lt.literal("link"),Lt.literal("match"),Lt.literal("equal")]),_i=Lt.union([Lt.literal("<"),Lt.literal(">"),Lt.literal("<="),Lt.literal(">="),Lt.literal("!="),Lt.literal("<>"),Lt.literal("+"),Lt.literal("-"),Lt.literal("like"),Lt.literal("between"),Lt.literal("is"),Lt.literal("is not"),Lt.literal("in"),Lt.literal("link"),Lt.literal("match"),Lt.literal("equal")]),Si=Lt.object({name:Lt.string(),value:wi,operator:ki.optional(),method:_i.optional(),or:Lt.boolean().optional(),isNull:Lt.boolean().optional(),isNotNull:Lt.boolean().optional()}),ji=vi.array(),xi=Lt.array(Si),Ci=e=>e.and(Lt.object({token:Lt.string().or(Lt.undefined()).optional()}));var Ti;!function(e){e.LITTLE="raw-little",e.LIST="raw-list",e.VIEW="raw-view",e.USER_API="user-api",e.MOBILE="mobile"}(Ti||(Ti={}));const Ai=Lt.nativeEnum(Ti).transform((e=>`${e}`)),Oi=Lt.union([Ai,Lt.undefined()]),Li=Lt.array(Lt.union([Lt.literal("bookmark"),Lt.literal("contact"),Lt.literal("licenses"),Lt.literal("quizFieldDefinitions"),Lt.literal("quizResponseRecord"),Lt.literal("search"),Lt.literal("socialEventRecord"),Lt.literal("surveyDateRecord")])),Ri=Lt.object({additionalFilter:Lt.object({}).optional(),facets:Lt.array(Lt.object({})).optional(),filters:xi.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:ji.optional(),format:Oi.optional()}),Fi=e=>Lt.object(e),Ei=Fi({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),dateCreation:Lt.string().optional(),dateModified:Lt.string().nullable().optional()}),Pi=Ei.extend({title:Lt.string(),_url:Lt.string()}),Ii=e=>Pi.safeParse(e).success,Mi=Lt.object({type:Lt.literal("text")}),Di=Lt.string(),Ni=Lt.object({type:Lt.literal("textarea"),params:Lt.object({class:Lt.literal("mceEditor"),mention:Lt.literal("1")}).optional()}),Zi=Lt.string().nullable(),qi=Lt.object({type:Lt.literal("number")}),Ui=Lt.number(),Wi=Lt.object({type:Lt.literal("color"),options:Lt.object({colors:Lt.string(),defaultColor:Lt.string()})}),Bi=Lt.object({type:Lt.literal("date"),format:Lt.string()}),$i=Lt.string().nullable(),Vi=Lt.object({type:Lt.literal("datetime")}),zi=Lt.string().nullable(),Gi=Lt.object({type:Lt.literal("datePicker")}),Ji=Lt.string().nullable(),Qi=Lt.number(),Ki=Lt.object({type:Lt.literal("audience"),options:Lt.object({disableEveryoneAudience:Lt.boolean().optional()}).optional()}),Hi=Lt.object({type:Lt.literal("link")}),Yi=Lt.object({type:Lt.literal("multiattribute")}),Xi=Lt.object({type:Lt.literal("file")}),en=Lt.object({type:Lt.literal("select"),options:Lt.record(Lt.string()),params:Lt.object({data:Lt.string().optional(),defaultValue:Lt.string().optional(),explain:Lt.literal(1).optional()}).optional()}),tn=Lt.object({type:Lt.literal("embed")}),nn=Lt.object({type:Lt.literal("email")}),rn=Lt.string(),an=Lt.object({type:Lt.literal("url"),params:Lt.object({target:Lt.literal("_blank").optional()})}),sn=Lt.string(),on=Lt.object({type:Lt.literal("place"),options:Lt.record(Lt.string())}),ln=Lt.object({type:Lt.literal("refUser")}),cn=Lt.object({type:Lt.literal("transient")}),un=Lt.object({type:Lt.literal("radio"),options:Lt.record(Lt.string())}),dn=Lt.object({type:Lt.literal("checkbox"),options:Lt.record(Lt.string())}),pn=Lt.object({type:Lt.literal("taxonomy"),params:Lt.object({idTaxonomy:Lt.string(),type:Lt.string().optional(),limit:Lt.number().optional()})}),mn=Lt.object({type:Lt.literal("tel")}),gn=Lt.object({type:Lt.literal("toggle")}),hn=Lt.object({type:Lt.literal("orientedlinks"),params:Lt.object({"jcomplete-multiple":Lt.union([Lt.literal("0"),Lt.literal("1")]),showAdd:Lt.union([Lt.literal("0"),Lt.literal("1")]),supportedTypes:Lt.array(Lt.string())})}),fn=Lt.object({type:Lt.literal("uri"),params:Lt.object({class:Lt.string(),"jcomplete-url":Lt.string(),type:Lt.string()})}),bn=Lt.union([Mi,Ni,qi,Bi,Vi,Gi,en,tn,nn,an,ln,un,dn,hn,pn,fn,cn,Yi,mn,gn,on,Wi,Hi,Xi,Ki]),yn=Lt.union([Qi,Ji,zi,$i,rn,Ui,Zi,Di,sn]),vn={ADMIN:9,USER:5,EXTERNAL:3,GUEST:0},wn=Ei.extend({title:Lt.string(),_url:Lt.string(),level:Lt.nativeEnum(vn),dateCreation:Lt.string(),dateModified:Lt.string()}).catchall(yn),kn=wn.extend({active:Lt.number()}),_n=e=>kn.safeParse(e).success,Sn=kn,jn=e=>Sn.safeParse(e).success,xn=Lt.object({idInType:Lt.number(),lat:Lt.number(),lng:Lt.number()}),Cn=e=>xn.safeParse(e).success,Tn=Lt.object({title:Lt.string(),firstname:Lt.string(),lastname:Lt.string(),mail:Lt.union([Lt.string(),Lt.undefined()]).optional(),description:Lt.string().optional(),dateOfBirth:Lt.string().optional(),phoneNumber:Lt.string().optional(),language:Lt.string().optional(),timeZone:Lt.string().optional(),mobileNumber:Lt.string().optional(),company:Lt.string().optional(),country:Lt.string().optional(),department:Lt.string().optional(),function:Lt.string().optional(),webSite:Lt.string().optional(),image:Lt.union([Lt.string(),Lt.undefined()]).optional(),userBanner:Lt.union([Lt.string(),Lt.undefined()]).optional(),field1:Lt.string().optional(),field2:Lt.string().optional(),field3:Lt.string().optional(),field4:Lt.string().optional(),field5:Lt.string().optional()}),An=Tn.required().extend({level:Lt.string(),image:Lt.string().optional(),businessManagementManager:wn.array().optional(),businessNetworkingUserToCompanySrc:wn.array().optional()}),On=Lt.object({user_field_edit_profil:Lt.record(Tn.keyof(),Lt.number()),user_field_editable:Lt.record(Tn.keyof(),Lt.number()),user_field_my_page:Lt.record(Tn.keyof(),Lt.number()),user_page_mandatory_fields:Lt.object({firstname:Lt.enum(["0","1"]),lastname:Lt.enum(["0","1"]),pseudo:Lt.enum(["0","1"])})}),Ln=Lt.object({name:Lt.string(),value:Lt.union([Lt.string(),Lt.record(Lt.string(),Lt.any())])}),Rn=Lt.enum(["popover"]),Fn=Lt.object({values:An,mobileEditableFields:An.keyof().array()}),En=Lt.object({mail:Lt.union([Lt.string(),Lt.undefined()]),title:Lt.string(),firstname:Lt.string(),lastname:Lt.string(),phoneNumber:Lt.union([Lt.string(),Lt.undefined()]).optional(),company:Lt.union([Lt.string(),Lt.undefined()]).optional(),function:Lt.union([Lt.string(),Lt.undefined()]).optional(),uri:Lt.union([Lt.string(),Lt.undefined()]).optional(),field1:Lt.union([Lt.string(),Lt.undefined()]).optional(),field2:Lt.union([Lt.string(),Lt.undefined()]).optional(),field3:Lt.union([Lt.string(),Lt.undefined()]).optional(),field4:Lt.union([Lt.string(),Lt.undefined()]).optional(),field5:Lt.union([Lt.string(),Lt.undefined()]).optional()}),Pn=Lt.object({userDirectoryShow:Lt.union([Lt.literal(""),Lt.literal("1")]),contactDirectoryShow:Lt.union([Lt.literal("0"),Lt.literal("1")]),businessContactShow:Lt.boolean(),menu:Lt.union([Lt.literal("0"),Lt.literal("1")]),cardFields:Lt.string().array(),tableFields:Lt.string().array(),viewFields:Lt.string().array(),userGeoloc:Lt.boolean().optional(),sort:Lt.string(),cnt:Lt.number().optional(),filters:Lt.object({name:Lt.string(),type:Lt.string()}).array()}),In=e=>Pn.safeParse(e).success,Mn=Fi({create:Lt.boolean(),read:Lt.boolean(),publish:Lt.boolean(),administrate:Lt.boolean(),update:Lt.boolean(),delete:Lt.boolean(),comment:Lt.boolean(),member:Lt.boolean()}),Dn=e=>Mn.safeParse(e).success,Nn=Lt.object({attrName:Lt.string(),token:Lt.string(),file:Lt.instanceof(File).nullable().optional(),url:Lt.string().optional()}),Zn=Lt.object({width:Lt.number(),height:Lt.number()}),qn=Lt.object({x:Lt.number(),y:Lt.number(),w:Lt.number(),h:Lt.number(),rotation:Lt.number(),killSize:Lt.boolean().optional()}),Un=Pi.extend({dateCreation:Lt.string(),dateModified:Lt.string().nullable(),mimetype:Lt.string(),path:Lt.string().optional(),size:Lt.number()}),Wn=e=>Un.parse(e),Bn=Un.extend({_extend:Lt.object({crop:qn})}),$n=Lt.object({name:Lt.string(),filename:Lt.string(),dateModified:Lt.string(),mimetype:Lt.string()}),Vn=Lt.object({idUser:Lt.string(),dateDownload:Lt.string(),Pseudo:Lt.string(),type:Lt.string()});var zn;Lt.object({id:Lt.number(),token:Lt.string().optional(),attrName:Lt.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.ArticleSlider="widget-article-slider",e.CheckList="widget-check-list",e.DatasourceTable="widget-datasource-table",e.ExcelDatasourceTable="widget-excel-datasource-table",e.Presence="widget-presence",e.QuickSurvey="widget-quick-survey"}(zn||(zn={}));const Gn=Lt.nativeEnum(zn),Jn=Lt.object({title:Lt.string(),widget:Lt.object({name:Gn,uniqid:Lt.string(),content:Lt.unknown()})}).catchall(Lt.unknown()),Qn=Lt.enum(["left","right","center","justify"]),Kn=Lt.enum(["top","bottom","center","left","right"]),Hn=Lt.enum(["auto","contain","cover"]),Yn=Lt.enum(["sm","md","lg"]),Xn=Lt.enum(["contained","outlined"]),er=Lt.enum(["link","anchor","popup"]),tr=Lt.object({x:Lt.number(),y:Lt.number()}),ir=Lt.enum(["default","vertical"]),nr=(e,t,i)=>{const n=t.safeParse(e);return!1===n.success&&i&&console.error(n.error.message),n.success},rr=(e,t)=>t.safeParse(e).success,ar=Fi({files:Un.array().optional(),fileDisplay:Lt.enum(["list","gallery"]).optional()}),sr=Fi({name:Lt.literal(zn.ArticleAttachment),uniqid:Lt.string(),content:ar}),or=Lt.object({url:Lt.string(),target:Lt.string()}),lr=Lt.object({uniqid:Lt.string()}),cr=Lt.object({title:Lt.string(),widgets:Jn.array()}),ur=Fi({text:Lt.string().optional(),color:Lt.string().optional(),backgroundColor:Lt.string().optional(),borderRadius:Lt.string().optional(),fontSize:Lt.string().optional(),buttonSize:Yn.optional(),variant:Xn.optional(),url:Lt.string().optional(),target:Lt.string().optional()}),dr=ur.extend({openingType:er.optional(),openingTypeLink:or.optional(),openingTypeAnchor:lr.optional(),openingTypePopup:cr.optional()}),pr=Fi({name:Lt.literal(zn.ArticleButton),uniqid:Lt.string(),content:dr}),mr=Fi({gap:Lt.string().optional(),column:Lt.string().optional(),files:Un.array().optional()}),gr=Fi({name:Lt.literal(zn.ArticleGallery),uniqid:Lt.string(),content:mr}),hr=Fi({file:Un.optional(),useFilter:Lt.boolean().optional()}),fr=Fi({name:Lt.literal(zn.ArticleImage),uniqid:Lt.string(),content:hr}),br=Fi({title:Lt.string(),text:Lt.string(),titleHeading:Lt.enum(["h1","h2","h3","h4","h5","h6","p","span"]).optional(),textColor:Lt.string().optional(),opacityFilter:Lt.number().optional(),opacityColor:Lt.string().optional(),file:Un.optional()}),yr=Fi({slides:br.array().optional(),maxWidth:Lt.number().optional(),loop:Lt.boolean().optional(),useDots:Lt.boolean().optional(),startAt:Lt.number().optional()}),vr=Fi({name:Lt.literal(zn.ArticleSlider),uniqid:Lt.string(),content:yr}),wr=Fi({text:Lt.string().optional(),color:Lt.string().optional(),fontSize:Lt.string().optional(),lineHeight:Lt.string().optional(),linkColor:Lt.string().optional()}),kr=Fi({name:Lt.literal(zn.ArticleText),uniqid:Lt.string(),content:wr}),_r=Fi({text:Lt.string().optional(),textAlign:Qn.optional(),heading:Lt.string().optional(),color:Lt.string().optional(),backgroundColor:Lt.string().optional()}),Sr=Fi({name:Lt.literal(zn.ArticleTitle),uniqid:Lt.string(),content:_r}),jr=Fi({title:Lt.string(),value:Lt.boolean().optional(),links:yi.array().optional(),id:Lt.number().optional(),file:Un.optional(),user:Lt.object({id:Lt.number().or(Lt.string()),type:Lt.literal("user"),mainType:Lt.literal("user")}).optional()}),xr=Lt.object({arr:jr.array().optional(),css:Lt.record(Lt.string(),Lt.string()).optional(),widgets:Jn.array().optional(),edit:Lt.boolean().optional()}),Cr=Fi({name:Lt.literal(zn.CheckList),uniqid:Lt.string(),content:xr}),Tr=Lt.enum(["date","date-time","date-time-sec","time","time-sec"]),Ar=Lt.enum(["fr-FR","en-EN","filesize"]),Or=Lt.object({}),Lr=Lt.object({type:Lt.literal("text")}),Rr=Lt.object({label:Lt.string(),value:Lt.string()}),Fr=Lt.object({type:Lt.literal("select"),options:Rr.array()}),Er=Lt.object({type:Lt.literal("date")}),Pr=Lt.union([Lr,Fr,Er,Or]),Ir=Lt.object({name:Lt.string().optional(),isVisible:Lt.boolean().optional(),textEllipsis:Lt.boolean().optional(),label:Lt.string().optional(),dateFormat:Tr.optional(),numberFormat:Ar.optional()}),Mr=Ir.array(),Dr=Lt.enum(["text","uri","file","select","url","transient","date","datetime","email","number","title"]),Nr=Lt.object({name:Lt.string(),label:Lt.string(),sortable:Lt.boolean().optional(),type:Dr,widget:Pr}),Zr=Lt.object({limit:Lt.number().or(Lt.boolean()).optional(),tableColumnsData:Ir.array().optional(),tableHeadColor:Lt.string().optional(),tableHeadTextColor:Lt.string().optional(),tableHeadIconColor:Lt.string().optional(),tableRowColor:Lt.string().optional(),tableRowTextColor:Lt.string().optional(),tableBorderRadius:Lt.number().optional(),tableSizedColumns:Lt.boolean().optional(),tableSizedColumnsWidth:Lt.number().optional()}),qr=Zr.extend({uri:Lt.string().optional()}),Ur=Fi({name:Lt.literal(zn.DatasourceTable),uniqid:Lt.string(),content:qr}),Wr=qr.extend({uri:Lt.string().optional()}),Br=Fi({name:Lt.literal(zn.ExcelDatasourceTable),uniqid:Lt.string(),content:Wr}),$r=Lt.boolean().or(Lt.literal(0)).or(Lt.literal(1)),Vr=Lt.object({limit:Lt.boolean().or(Lt.number()).optional(),limitValue:Lt.number().optional(),closing:$r.optional(),isClosed:$r.optional()}),zr=e=>rr(e,Vr),Gr=Fi({name:Lt.literal(zn.Presence),uniqid:Lt.string(),content:Vr}),Jr=e=>nr(e,Gr),Qr=Lt.object({id:Lt.number(),type:Lt.string(),uniqid:Lt.string(),value:Lt.number()}),Kr=e=>nr(e,Qr),Hr=Lt.object({userValue:Lt.number(),userAvailableList:wn.array(),userUnavailableList:wn.array(),userAvailableTotal:Lt.number(),userUnavailableTotal:Lt.number()}),Yr=e=>nr(e,Hr),Xr=Lt.object({data:wn.array(),cnt:Lt.number(),page:Lt.number(),limit:Lt.number()}),ea=Fi({title:Lt.string(),id:Lt.number().optional(),mimetype:Lt.string().optional(),file:Un.optional()}),ta=Lt.object({arr:ea.array().optional(),css:Lt.record(Lt.string(),Lt.string()).optional(),widgets:Jn.array().optional(),open:$r.optional(),multi:$r.optional(),closing:$r.optional(),isClosed:$r.optional(),showResult:$r.optional(),isNotDisabled:$r.optional(),seeResponseAfter:$r.optional(),anonymize:$r.optional()}),ia=Fi({name:Lt.literal(zn.QuickSurvey),uniqid:Lt.string(),content:ta}),na=Lt.array(Lt.object({userList:wn.array(),counter:Lt.number()})),ra=Lt.object({totalRespondent:Lt.number(),totalResponse:Lt.number(),userLoggedResponses:Lt.string().array(),userResponses:na}),aa=Lt.object({data:wn.array(),cnt:Lt.number(),page:Lt.number(),limit:Lt.number()}),sa=Lt.union([Lt.object({layers:Lt.string().array().optional()}).and(sr),Lt.object({layers:Lt.string().array().optional()}).and(pr),Lt.object({layers:Lt.string().array().optional()}).and(gr),Lt.object({layers:Lt.string().array().optional()}).and(fr),Lt.object({layers:Lt.string().array().optional()}).and(Sr),Lt.object({layers:Lt.string().array().optional()}).and(kr),Lt.object({layers:Lt.string().array().optional()}).and(vr),Lt.object({layers:Lt.string().array().optional()}).and(Cr),Lt.object({layers:Lt.string().array().optional()}).and(Ur),Lt.object({layers:Lt.string().array().optional()}).and(Br),Lt.object({layers:Lt.string().array().optional()}).and(Gr),Lt.object({layers:Lt.string().array().optional()}).and(ia)]),oa=Fi({title:Lt.string(),widget:sa}),la=Lt.object({widgets:oa.array().optional()}).and(Lt.union([ar,dr,mr,hr,wr,_r,yr,xr,qr,Wr,Vr,ta])),ca=Lt.object({[zn.ArticleButton]:pr,[zn.ArticleGallery]:gr,[zn.ArticleTitle]:Sr,[zn.ArticleText]:kr,[zn.ArticleImage]:fr,[zn.ArticleAttachment]:sr,[zn.ArticleSlider]:vr,[zn.CheckList]:Cr,[zn.DatasourceTable]:Ur,[zn.ExcelDatasourceTable]:Br,[zn.Presence]:Gr,[zn.QuickSurvey]:ia}),ua=Lt.object({[zn.ArticleButton]:dr,[zn.ArticleGallery]:mr,[zn.ArticleTitle]:_r,[zn.ArticleText]:wr,[zn.ArticleImage]:hr,[zn.ArticleAttachment]:ar,[zn.ArticleSlider]:yr,[zn.CheckList]:xr,[zn.DatasourceTable]:qr,[zn.ExcelDatasourceTable]:Wr,[zn.Presence]:Vr,[zn.QuickSurvey]:ta}),da=Lt.object({busy:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),loading:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),initialized:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),mounted:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),hover:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),empty:Lt.boolean().optional(),locked:Lt.boolean().optional()}),pa=Lt.object({type:Lt.string(),title:Lt.string(),description:Lt.string(),privacy:Lt.union([Lt.string(),Lt.number()]),edito:Lt.string().nullable(),language:Lt.string(),category:Lt.string(),idCommunity:Lt.string().optional()}),ma=Lt.object({id:Lt.string(),name:Lt.string(),size:Lt.string()}),ga=Lt.union([Lt.literal(0),Lt.literal(1),Lt.literal(2),Lt.literal(3)]),ha=Lt.object({level:ga,user:wn}),fa=Lt.object({RF_Constant_levelName:Lt.string(),RF_delete:Lt.boolean(),RF_editing:Lt.boolean(),RF_level:Lt.number(),RF_levelName:Lt.string(),RF_levelName_Trad:Lt.string(),RF_parameters:Lt.boolean(),RF_setAdmin:Lt.boolean(),RF_spotit:Lt.boolean(),RF_spotit_own:Lt.boolean()});var ba;!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"}(ba||(ba={}));const ya=Lt.nativeEnum(ba),va=Lt.object({userLevelSpot:fa,spotMinLevelToInvit:Lt.number(),userRights:Mn,accessRequestStatus:ya.optional()}),wa=Lt.object({value:Lt.union([Lt.string(),Lt.number()]),label:Lt.string()}),ka=Lt.object({id:Lt.string(),title:Lt.string()}),_a=Lt.object({idSpot:Lt.string(),idOrder:Lt.string(),idWidget:Lt.string(),type:Lt.string(),title:Lt.string(),url:Lt.string(),visible:Lt.string()}),Sa=Lt.object({edit_access:Lt.array(wa.and(Lt.object({description:Lt.string()}))),commentLevel:Lt.array(wa.and(Lt.object({selected:Lt.boolean().optional()}))),displayType:Lt.array(wa),user_level_signup:Lt.array(wa.and(Lt.object({selected:Lt.boolean().optional()}))),spot_right_user:Lt.array(wa.and(Lt.object({selected:Lt.boolean().optional()}))),useTeaser:Lt.array(wa),spotDefaultPublishType:Lt.array(Lt.string()),mail_frequency:Lt.array(wa),widgets:Lt.array(ka),custom_widgets:Lt.record(_a).or(Lt.array(Lt.never())),isArchive:Lt.number(),fileSyncVersioningType:Lt.array(wa)}),ja=Lt.object({url:Lt.string(),idUser:Lt.number(),send:Lt.boolean().optional(),_user:wn.optional(),date:Lt.string().optional(),error:Lt.string().optional()}),xa=Lt.object({edit_access:Lt.union([Lt.literal(""),Lt.literal("author")]),commentLevel:Lt.union([Lt.literal("-1"),Lt.literal("1"),Lt.literal("2"),Lt.literal("3")]),user_level_signup:Lt.union([Lt.literal(""),Lt.literal("1"),Lt.literal("2"),Lt.literal("3")]),nounsubscribe:Lt.union([Lt.literal("0"),Lt.literal("1")]),useTeaser:Lt.union([Lt.literal(""),Lt.literal("0"),Lt.literal("1")]).nullable(),displayType:Lt.string(),spot_right_user:Lt.string(),rss_feed:Lt.array(ja).nullable(),spotDefaultPublishType:Lt.string(),mail_frequency:Lt.string(),mail_comment:Lt.union([Lt.literal("1"),Lt.literal("")]),mail_spotit:Lt.union([Lt.literal("1"),Lt.literal("")]),mail_subscriber:Lt.union([Lt.literal("1"),Lt.literal("")]),lock_mail:Lt.union([Lt.literal("1"),Lt.literal("")]),activity:Lt.union([Lt.literal("1"),Lt.literal("0")]),publishFolder:Lt.union([Lt.literal("1"),Lt.literal("0")]),notifyFolder:Lt.union([Lt.literal("1"),Lt.literal("0")]),widgets:Lt.array(Lt.string()),rss_access:Lt.union([Lt.literal("1"),Lt.literal("0")]),rss_key:Lt.string(),fileSyncEnabled:Lt.union([Lt.literal("1"),Lt.literal("0")]),fileBankQuota:Lt.string(),fileSyncVersioningType:Lt.union([Lt.literal("overwrite"),Lt.literal("author-change")]),_options:Sa,_errors:Lt.tuple([]),lastRssExecution:Lt.record(Lt.string()).optional()}),Ca=pa.and(xa.omit({rss_feed:!0}).partial()).and(Lt.object({uri:Lt.string(),image:Lt.string().nullable().optional(),spotBanner:Lt.record(ma).or(Lt.array(Lt.never())).optional(),token:Lt.string().optional(),uriCommunity:Lt.string().optional(),custom_widgets:Lt.record(_a).optional(),rss_feed:Lt.string()})),Ta=Lt.object({idWidget:Lt.string(),title:Lt.string(),url:Lt.string(),type:Lt.string(),icon:Lt.string(),description:Lt.string()}),Aa=Lt.object({id:Lt.string(),idorder:Lt.number(),label:Lt.string()}),Oa=Pi.extend({dateCreation:Lt.string(),dateModified:Lt.string(),category:Lt.number(),privacy:Lt.number()}),La=Oa.extend({description:Lt.string(),edito:Lt.string().nullable(),language:Lt.string()}),Ra=La.extend({image:Lt.string().nullable().optional(),spotBanner:Lt.record(ma).or(Lt.array(Lt.never())).optional(),idCommunity:Lt.string().optional(),useTeaser:Lt.union([Lt.literal(""),Lt.literal("0"),Lt.literal("1")]).nullable().optional()}),Fa=Lt.object({idSpot:Lt.union([Lt.string(),Lt.number()]),mailFrequency:Lt.union([Lt.string(),Lt.number()]),mailSpotit:Lt.boolean(),mailComment:Lt.boolean(),mailSubscriber:Lt.boolean()}),Ea=Lt.object({type:Lt.string().optional(),format:Oi.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:ji.optional(),filters:xi.or(Lt.undefined()).optional()}),Pa=e=>fa.safeParse(e).success,Ia=Pi.extend({description:Lt.string().optional().nullable(),_user:wn,_right:Mn}),Ma=e=>Ia.safeParse(e).success,Da=Pi.extend({type:Lt.enum(["folder","rootFolder"]),folderColor:Lt.string().optional()}),Na=Lt.union([wn,Oa,Da]),Za=Pi.extend({dateCreation:Lt.string(),dateModified:Lt.string()}),qa=Za.extend({description:Lt.string().nullable().optional(),_user:wn,_right:Mn,_audience:Na.array(),image:Zn.optional(),articleWidgets:oa.array().optional()}),Ua=qa,Wa=Ua.extend({_attachedFiles:Un.array()}),Ba=Wa.extend({processContext:Lt.null(),_transientCtx:Lt.null(),uiObjectLink:Pi.array().optional()}),$a=e=>Wa.extend({idDraft:Lt.number(),form:e}),Va=Lt.object({type:Lt.string().optional(),format:Oi.optional(),formatExtend:Li.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:ji.optional(),filters:xi.optional(),public:Lt.boolean().optional()}),za=Lt.object({uri:Lt.string().optional(),idArticle:Lt.number().optional(),format:Oi.optional()}),Ga=Lt.object({title:Lt.string().optional(),description:Lt.string().optional().nullable(),type:Lt.string().optional(),publishTo:Lt.string().optional(),idSpot:Lt.array(Lt.string()).optional()}),Ja=Lt.object({id:Lt.number(),type:Lt.string(),dateCreation:Lt.string(),dateModified:Lt.string(),title:Lt.string(),uri:Lt.string()}),Qa=Lt.object({attachment:Lt.boolean().optional(),idArticle:Lt.number(),limits:Lt.object({max:Lt.number(),start:Lt.number()}).optional()}),Ka=Lt.object({token:Lt.string(),content:Lt.string(),idArticle:Lt.number(),sendAlert:Lt.boolean(),alertAuthor:Lt.boolean(),widgets:oa.array().optional(),type:Lt.union([Lt.literal("comment"),Lt.literal("commentResponse")]).optional()}),Ha=Lt.object({token:Lt.string().optional(),description:Lt.string().optional(),idComment:Lt.number(),widgets:oa.array().optional()}),Ya=Lt.object({idUser:Lt.string(),dateRead:Lt.string(),Pseudo:Lt.string(),type:Lt.string()}),Xa=Da.merge(Ua).extend({_nbItems:Lt.number(),parentURI:Lt.string().optional()}),es=Ua.extend({place:Lt.string(),address:Lt.string(),dateStart:Lt.string(),dateEnd:Lt.string(),noGestion:Lt.boolean()}),ts=Wa.and(es).and(Lt.object({allDay:Lt.null(),useQrcode:Lt.null(),textColor:Lt.string(),bgColor:Lt.string(),socialEventUseCeiling:Lt.null(),socialEventCeiling:Lt.null(),hideFromCalendar:Lt.null(),urlGestion:Lt.string().optional().nullable()})),is=e=>ts.safeParse(e).success,ns=Ei.extend({srcId:Lt.number(),srcType:Lt.string(),targetId:Lt.number(),targetType:Lt.string().nullable()}),rs=e=>ns.extend({value:Lt.string().nullable(),_src:e.optional(),_target:e.optional().or(Lt.undefined())}),as=e=>rs(null!=e?e:Pi.or(wn)).extend({bookmarkUrl:Lt.string().optional().nullable(),bookmarkOrder:Lt.number().optional(),bookmarkLabel:Lt.string().optional(),bookmarkMeta:Lt.string().optional().nullable(),url:Lt.string().optional().nullable(),type:Lt.literal("bookmarkLink")}),ss=e=>Lt.object({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),_values:Lt.object({dateCreation:Lt.string(),dateModified:Lt.string()}).optional(),srcId:Lt.number(),srcType:Lt.string(),targetId:Lt.number(),targetType:Lt.string().nullable(),value:Lt.string().nullable(),_cssColor:Lt.string(),_cssClass:Lt.string(),_src:(null!=e?e:Pi).optional(),_target:(null!=e?e:Pi).optional(),bookmarkUrl:Lt.string().optional().nullable(),bookmarkOrder:Lt.string().optional(),bookmarkLabel:Lt.string().optional(),bookmarkMeta:Lt.string().optional().nullable(),url:Lt.string().optional().nullable()});var os;!function(e){e.RAW_LIST="raw-list",e.LIST="list"}(os||(os={}));const ls=Lt.object({targetId:Lt.number(),targetType:Lt.string(),format:Lt.nativeEnum(os).transform((e=>`${e}`)).optional()}),cs=Lt.object({[os.RAW_LIST]:as(),[os.LIST]:ss()}),us=Lt.object({bookmarkLabel:as(Pi).shape.bookmarkLabel,bookmarkMeta:as(Pi).shape.bookmarkMeta,bookmarkUrl:as(Pi).shape.bookmarkUrl}),ds=Lt.object({countActiveUsersWithoutLicense:Lt.number().optional(),countLicensesAssigned:Lt.number(),countLicensesNotAssigned:Lt.number()}),ps=Lt.object({name:Lt.string(),operator:Lt.string(),value:Lt.number()}),ms=Lt.record(Lt.number()),gs=Lt.object({id:Lt.number(),kind:Lt.string(),dateCreation:Lt.string(),idFeature:Lt.number(),uri:Lt.string(),contentId:Lt.number(),contentType:Lt.string(),status:Lt.number()}),hs=Lt.object({id:Lt.number(),kind:Lt.string(),dateCreation:Lt.string(),idFeature:Lt.number(),uri:Lt.string(),contentId:Lt.number(),contentType:Lt.string(),status:Lt.number()}),fs=kn.extend({_extend:Lt.object({licenses:Lt.array(hs)})}),bs=Ri.extend({data:fs.array()}),ys=Lt.object({uri:Lt.string(),title:Lt.string(),price:Lt.number(),image:Lt.string(),license:Lt.boolean()}),vs=Lt.object({url:Lt.string()}),ws=Lt.object({sref:Lt.string().optional(),href:Lt.string().optional(),idDiv:Lt.string(),label:Lt.string(),icon:Lt.string(),licenseMode:Lt.literal("classic").optional(),hook:Lt.string().optional()}),ks=Lt.object({name:Lt.string(),label:Lt.string(),icon:Lt.string(),color:Lt.tuple([Lt.string(),Lt.string(),Lt.string()]),state:Lt.string().optional(),access:Lt.boolean(),url:Lt.string().optional(),tabs:Lt.array(ws).optional()}),_s=Lt.array(ks),Ss=Lt.union([Lt.literal("Halloween"),Lt.literal("Celebration"),Lt.literal("Olympics"),Lt.literal("Maythefourth"),Lt.literal("Spring"),Lt.literal("MusicFestival"),Lt.literal("EasterEggs"),Lt.literal("CustomAnimation")]),js=Lt.object({name:Ss,activeClickEffect:Lt.number(),activeDecor:Lt.number(),auto:Lt.boolean(),audience:Lt.array(Lt.string())}),xs=Lt.object({date:Lt.string(),number:Lt.number()}),Cs=Lt.object({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),dateCreation:Lt.string().nullable(),dateModified:Lt.string().nullable(),animationName:Lt.string(),dateStart:Lt.string(),dateEnd:Lt.string().nullable(),auto:Lt.boolean(),stats:Lt.array(xs),animAudience:Lt.array(Lt.string())}),Ts=Lt.union([Lt.literal("created"),Lt.literal("validated"),Lt.literal("handled")]),As=Wa.extend({aseiClearanceTicketValidator:wn.array(),aseiClearanceTicketHandler:Pi.array(),aseiClearanceTicketApplicationManagers:Pi.array(),aseiClearanceTicketInstitution:Pi.array(),processContext:Lt.null(),_transientCtx:Lt.null(),aseiClearanceTicketNatureOfDemand:Lt.string(),aseiClearanceTicketInternetAccess:Lt.string(),aseiClearanceTicketInternetAccessSpecify:Lt.string(),aseiClearanceTicketMicrosoftTeams:Lt.string().nullable(),aseiClearanceTicketVariousNetworks:Lt.string().nullable(),aseiClearanceTicketFreeText:Lt.string(),aseiClearanceTicketOfficeAccess:Lt.string().nullable(),aseiClearanceTicketSharedDirectoriesSpecify:Lt.string(),aseiClearanceTicketBlueKanGo:Lt.string().nullable(),aseiClearanceTicketAccounting:Lt.string(),aseiClearanceTicketAccountingBudget:Lt.string(),aseiClearanceTicketTransfers:Lt.string().nullable(),aseiClearanceTicketBilling:Lt.string(),aseiClearanceTicketPayroll:Lt.string(),aseiClearanceTicketPayrollBudget:Lt.string(),aseiClearanceTicketAccommodationCosts:Lt.string(),aseiClearanceTicketCommercialManagement:Lt.string(),aseiClearanceTicketInventoryManagement:Lt.string(),aseiClearanceTicketTimeManagement:Lt.string(),aseiClearanceTicketBdes:Lt.string(),aseiClearanceTicketMandateStart:Lt.string().nullable(),aseiClearanceTicketMandateEnd:Lt.string().nullable(),aseiClearanceTicketIndicatorsPlatform:Lt.string().nullable(),aseiClearanceTicketBudgetLetters:Lt.string(),aseiClearanceTicketComputerisedFile:Lt.string().nullable(),aseiClearanceTicketRecruiterAccess:Lt.string().nullable(),aseiClearanceTicketTypeOfWorkContractFrom:Lt.null(),aseiClearanceTicketTypeOfWorkContractTo:Lt.null(),aseiClearanceTicketLastName:Lt.string(),aseiClearanceTicketFirstName:Lt.string(),aseiClearanceTicketUser:wn.array(),aseiClearanceTicketTypeOfWorkContract:Lt.string(),aseiClearanceTicketTypeOfWorkContractSpecify:Lt.string(),aseiClearanceTicketPosition:Lt.string(),aseiClearanceTicketStatus:Ts}),Os=Za.extend({_right:Mn,_user:wn,aseiInstitutionValidator:Pi.array(),processContext:Lt.null()}),Ls=Lt.object({dsi:Lt.string(),gestionnaireApplicatif:Lt.string(),createurDemande:Lt.string()}),Rs=Lt.object({accessWriter:Lt.boolean(),accessApp:Lt.boolean()}),Fs=Lt.object({description:Lt.string(),right:Lt.object({manage:Lt.boolean()}),daysOff:Lt.array(Lt.string()).optional(),weekEnd:Lt.union([Lt.literal("0"),Lt.literal("1")]),bookingOpeningTime:Lt.string(),bookingClosingTime:Lt.string(),lastBookingSchedule:Lt.string()}),Es=Ua.extend({_isColorDark:Lt.boolean().nullable(),assetPlannerBackgroundColor:Lt.string().nullable()}),Ps=Es.extend({assetBanner:Lt.record(Lt.object({id:Lt.string(),name:Lt.string(),size:Lt.string()}))}),Is=Ua.extend({dateStart:Lt.string(),dateEnd:Lt.string(),reservationCancelled:Lt.boolean(),_asset:Es}),Ms=Lt.object({id:Lt.string(),uri:Lt.string(),shortUri:Lt.string(),title:Lt.string(),name:Lt.string(),mainType:Lt.string(),type:Lt.string(),label:Lt.string(),cssClass:Lt.string(),cssColor:Lt.string(),class:Lt.string()}),Ds=Ms.extend({title:Lt.string()}),Ns=Ds.extend({Pseudo:Lt.string()}),Zs=Ds.extend({idspot:Lt.string()}),qs=Lt.union([Ds,Ns,Zs]),Us=Pi.extend({isTechnical:Lt.number(),status:Lt.number(),image:Lt.string(),isMember:Lt.boolean(),stats:Lt.object({moderators:Lt.number(),members:Lt.string()}),_members:Lt.array(Pi)}),Ws=Lt.object({token:Lt.string(),fullname:Lt.string()}),Bs=Lt.object({redirectUrl:Lt.string()}),$s=Lt.object({token:Lt.string()}),Vs=Lt.object({dateStart:Lt.string(),title:Lt.string()}),zs=Za.extend({type:Lt.literal("businessContactCard")}),Gs=Ua.and(zs.and(Lt.object({mail:Lt.string().nullable(),pseudo:Lt.string().nullable(),firstName:Lt.string().nullable(),lastName:Lt.string().nullable(),phoneNumber:Lt.string().nullable(),company:Lt.string().nullable(),function:Lt.string().nullable(),champ1:Lt.string().nullable().optional(),champ2:Lt.string().nullable().optional(),champ3:Lt.string().nullable().optional(),champ4:Lt.string().nullable().optional(),champ5:Lt.string().nullable().optional()}))),Js=Lt.literal("read"),Qs=Lt.object({type:Lt.string(),class:Lt.string(),isActive:Lt.boolean(),label:Lt.string(),cssClass:Lt.string(),cssColor:Lt.string(),struct:Lt.object({action:Lt.string(),do:Lt.string(),type:Lt.string(),targetId:Lt.number(),targetType:Lt.string()}),stats:Lt.object({total:Lt.number()})}),Ks=Ei.omit({dateModified:!0}).extend({dateCreation:Lt.string(),dateModified:Lt.string().nullable(),description:Lt.string().nullable(),_user:wn}),Hs=Ks.extend({_right:Mn,_attachedFiles:Lt.array(Un).optional(),_actions:Lt.record(Qs).optional(),_widgets:Lt.array(oa).optional()}),Ys=Ia.extend({dateStart:Lt.string(),animatedMeetingContent:Lt.record(Lt.unknown()),_extend:Lt.object({status:Lt.string(),statusValue:Lt.literal(1).or(Lt.literal(2)).or(Lt.literal(3)),date:Lt.string()}),_audience:Na.array(),_audienceLeft:Lt.number()}),Xs=Lt.union([Lt.literal("groups"),Lt.literal("sites"),Lt.literal("onedrive"),Lt.literal("group"),Lt.literal("documents"),Lt.literal("me")]),eo=Fi({title:Lt.string(),id:Lt.string(),type:Lt.string()}),to=eo.omit({id:!0}).extend({name:Xs.optional()}),io=eo.and(Lt.object({})),no=eo.extend({visibility:Lt.union([Lt.literal("public"),Lt.literal("private")]).optional()}),ro=eo.extend({mimetype:Lt.string().optional(),webUrl:Lt.string().optional(),size:Lt.number().optional()}),ao=ro,so=ro.extend({_extend:Lt.object({path:Lt.string()})}),oo=no.and(ro),lo=Lt.object({id:Lt.string(),title:Lt.string(),mail:Lt.string(),default:Lt.boolean().optional()}),co=Lt.object({title:Lt.string(),id:Lt.string(),type:Lt.string(),mimetype:Lt.string().optional(),webUrl:Lt.string().optional()}),uo=Lt.object({msTenant:Lt.union([Xs,Lt.undefined()]),msId:Lt.union([Lt.string(),Lt.undefined()]),idFolder:Lt.union([Lt.string(),Lt.undefined()]),page:Lt.number(),limit:Lt.number(),query:Lt.string().optional().nullable()}),po=Lt.object({path_lower:Lt.string(),query:Lt.string().optional().nullable()}),mo=Lt.object({id:Lt.number(),name:Lt.string(),type:Lt.string(),token:Lt.string(),size:Lt.number(),mediaKey:Lt.string()}),go=Lt.object({token:Lt.string().optional(),attrName:Lt.string(),file:Lt.object({service:Lt.string(),account:Lt.string(),title:Lt.string(),mimetype:Lt.string().optional(),_document:ro})}),ho=Lt.object({id:Lt.string(),service:Lt.string()}),fo=Lt.object({service:Lt.string(),id:Lt.string()}),bo=Lt.object({account:lo}),yo=Lt.object({service:Lt.string(),account:Lt.string()}),vo=Lt.object({allow:Lt.union([Lt.literal("groups"),Lt.literal("me")]).array().optional(),id:Lt.string()}),wo=Lt.object({id:Lt.string(),documentParams:uo}),ko=Lt.object({id:Lt.string(),documentParams:po}),_o=Lt.object({query:Lt.string().optional(),filter:Lt.string().optional(),id:Lt.string()}),So=Ua.extend({faqColor:Lt.string().optional(),image:Zn.optional(),type:Lt.literal("faq")}),jo=Wa.and(So).and(Lt.object({_audience:qs.array(),tags:Ds.array().optional(),isWeb:Lt.boolean(),faqContent:Lt.array(Lt.object({title:Lt.string(),id:Lt.string().optional(),items:Lt.array(Lt.string())})).optional()})),xo=e=>e.and(Lt.object({_extend:Lt.object({itemsCount:Lt.number()})})),Co=Ua.extend({type:Lt.literal("faqItem"),hierarchy:Lt.object({category:Lt.string().optional(),theme:Lt.string().optional()})}),To=Co.omit({hierarchy:!0}).extend({faqResponse:Lt.string(),tags:Ds.array().optional(),uriCategory:Za.array(),themeId:Lt.string(),_nbAttachedFiles:Lt.number().optional(),_attachedFiles:Un.array(),uiObjectLink:Lt.unknown()}),Ao=Ci(Ga.omit({idSpot:!0})).and(Lt.object({image:Zn.nullable().optional(),tags:Lt.string().optional(),faqColor:Lt.string().optional(),isWeb:Lt.boolean().optional(),type:Lt.literal("faq")})),Oo=Ao.and(Lt.object({uri:Lt.string(),format:Oi.optional()})),Lo=Lt.object({title:Lt.string(),id:Lt.string()}),Ro=Lt.object({_web:Lt.union([Lt.literal("0"),Lt.literal("1"),Lt.literal("")]).optional(),appImageText:Lt.string().optional(),appImage:Lt.union([Lt.string(),Lt.object({image:Lt.object({id:Lt.string(),type:Lt.string()})})]).optional(),_displayComment:Lt.union([Lt.literal("0"),Lt.literal("1"),Lt.literal("")]).optional()}),Fo=Lt.object({createCategory:Lt.boolean()}),Eo=Lt.object({idCategory:Lt.number(),title:Lt.string()}),Po=Lt.object({idCategory:Lt.number(),indexTheme:Lt.number(),deleteEntries:Lt.boolean().optional()}),Io=Lt.object({idCategory:Lt.number(),indexTheme:Lt.number(),title:Lt.string()}),Mo=Ci(Ga).and(Lt.object({tags:Lt.string().optional(),faqResponse:Lt.string().optional(),type:Lt.literal("faqItem")})),Do=Lt.object({idEntry:Lt.number(),idCategory:Lt.number(),theme:Lt.number()}),No=Mo.and(Lt.object({uri:Lt.string()})),Zo=Lt.object({entryURI:Lt.string(),sourceURI:Lt.string().optional(),targetURI:Lt.string(),theme:Lt.number()}),qo=Lt.object({sourceUri:Lt.string(),targetUri:Lt.string(),themeIndex:Lt.number()}),Uo=e=>Lt.object({isActive:Lt.boolean()}).and(e),Wo=Lt.enum(["drive_microsoft_graph","drive_dropbox","drive_google"]),Bo=Uo(Lt.object({drives:Lt.record(Wo,Lt.boolean())})),$o=Uo(Lt.object({label:Lt.string()})),Vo=Uo(Lt.object({orderBy:Lt.string(),order:Lt.enum(["ASC","DESC"])})),zo=Lt.object({label:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),color:Lt.string()}),Go=Uo(Lt.object({hasLicense:Lt.boolean(),label:Lt.string(),description:Lt.string(),color:Lt.string(),templates:zo.array()})),Jo=Uo(Lt.object({hasLicense:Lt.boolean()})),Qo=Uo(Lt.object({sendAlert:Lt.boolean()})),Ko=Uo(Lt.object({})),Ho=Uo(Lt.object({create:Lt.boolean(),autorize:Lt.array(Lt.enum(["message","comment","board","article"]).optional())})),Yo=Uo(Lt.object({label:Lt.string(),hasLicense:Lt.boolean()})),Xo=Lt.object({MagicPadHook:Yo}).partial(),el=Lt.object({DriveHook:Bo,calendarHook:$o,FileBankHook:Vo,StudioHook:Jo,OnlyOfficeHook:Go,spotRssFeed:Ko,WidgetHook:Ho,AdminAdvancedHook:Qo}).partial().and(Xo),tl=Lt.union([Lt.literal("summarize"),Lt.literal("develop"),Lt.literal("reformulate"),Lt.literal("tldr"),Lt.literal("en"),Lt.literal("es"),Lt.literal("formal"),Lt.literal("funny")]),il=Lt.object({text:Lt.string()}),nl=Lt.object({idLog:Lt.number(),slug:Lt.string(),dateCreation:Lt.string(),map:Lt.string(),mail:Lt.string(),action:Lt.string(),mode:Lt.string()}),rl=Lt.object({mail:Lt.string(),cnt:Lt.string()}),al=Lt.string(),sl=Lt.string(),ol=Za.extend({jlandMapFlavor:al,jlandMapKind:sl,waMapUrl:Lt.string().optional(),limit:Lt.number().optional(),_extend:Lt.object({licenses:Lt.array(hs)})}),ll=Ga.extend({jlandMapAggregated:Lt.string(),type:Lt.literal("jlandmap")}),cl=Lt.object({jlandMapKind:Lt.string(),jlandMapFlavor:Lt.string(),limit:Lt.number().nullable(),waMapUrl:Lt.string().nullable()}),ul=Za.and(cl),dl=Ua.and(cl),pl=Wa.and(cl),ml=Lt.object({kind:Lt.string(),page:Lt.number(),limit:Lt.number(),filters:Si.array().optional(),orders:vi.array().optional()}),gl=e=>Lt.object({license:Lt.union([Lt.literal("1"),Lt.literal("0")]),user:e}),hl=Za.extend({attachment:Un,description:Lt.string()}),fl=Ua.extend({description:Lt.string(),attachment:Un,_audience:qs.array()}),bl=Lt.object({format:Oi,page:Lt.number().optional(),limit:Lt.number().optional(),nolimit:Lt.boolean().optional()}),yl=Lt.object({id:Lt.number(),idFolder:Lt.number().optional(),fileName:Lt.string(),nbViews:Lt.number(),nbDistinctViews:Lt.number(),nbDownloads:Lt.number()}),vl=Lt.object({id:Lt.number(),folderName:Lt.string(),nb:Lt.number(),nbDistinct:Lt.number()}),wl=Lt.object({nbFolders:Lt.number(),nbFiles:Lt.number()}),kl=Lt.object({uriFile:Lt.string(),uriFolder:Lt.string()}),_l=es.extend({}),Sl=Wa.and(_l).and(Lt.object({allDay:Lt.null(),agenda:Lt.string(),useQrcode:Lt.null(),textColor:Lt.string(),bgColor:Lt.string(),report:Lt.string(),reportFile:Lt.array(Lt.never()),urlGestion:Lt.string().nullable().optional()})),jl=Lt.object({uri:Lt.string(),title:Lt.string(),type:Lt.string(),mainType:Lt.string()}),xl=Ua.extend({anonymousResponse:Lt.null(),multipleResponse:Lt.number(),publicResults:Lt.null(),pollProgression:Lt.object({colors:Lt.record(Lt.string()),maxRespondentsValue:Lt.number(),countRespondentsValue:Lt.number()}),pollResponseShowProgression:Lt.number(),dateEnd:Lt.string(),status:Lt.object({name:Lt.string(),value:Lt.number()})}),Cl=Wa.and(xl).and(Lt.object({pollContent:Lt.null(),pollLinks:Lt.null(),pollForceClose:Lt.null(),pollResponseUserVisibility:Lt.null(),pollResponseAuthorVisibility:Lt.null(),pollResponseShowRespondent:Lt.null(),pollBanner:Lt.tuple([]),pollMessage:Lt.string()})),Tl=Lt.object({idQuestion:Lt.number(),idResponse:Lt.number()}),Al=Lt.object({idQuestion:Lt.number()}),Ol=Ua.extend({quizzDescription:Lt.string().nullable(),quizzClosingDate:Lt.string().nullable(),dateStart:Lt.string().nullable(),dateEnd:Lt.string().nullable()}),Ll=Wa.and(Ol).and(Lt.object({quizzInvitation:Lt.null(),quizzFormSpec:Lt.string(),quizzRandom:Lt.null(),quizzHideResponses:Lt.null(),quizzStatus:Lt.null(),quizzPublicationDate:Lt.string().nullable()})),Rl=Lt.object({count:Lt.number(),id:Lt.string()}),Fl=Lt.union([Lt.literal("AND"),Lt.literal("OR")]),El=Lt.object({facetType:Lt.string(),facetOptions:Lt.union([Lt.record(Lt.union([Lt.object({}).passthrough(),Lt.number(),Lt.string()])),Lt.array(Lt.never())]),facetMode:Fl.optional(),field:Lt.string(),title:Lt.string(),description:Lt.string().optional(),category:Lt.string().optional()}),Pl=Lt.object({id:Lt.string(),mainType:Lt.string(),type:Lt.string().optional(),title:Lt.string(),cssclass:Lt.string().optional(),active:Lt.boolean().optional(),count:Lt.number().optional(),typesExcluded:Lt.array(Lt.string()),facets:El.array()}),Il=Lt.object({count:Lt.number(),value:Lt.string(),title:Lt.string()}),Ml=Lt.object({name:Lt.string(),count:Lt.number(),values:Il.array(),title:Lt.string()}),Dl=Lt.object({field:Lt.string(),value:Lt.union([Lt.string(),Lt.array(Lt.string())]),exclude:Lt.boolean().optional(),or:Lt.boolean().optional()}),Nl=Lt.object({field:Lt.string(),order:Lt.union([Lt.literal("desc"),Lt.literal("asc")])}),Zl=Lt.object({facetLimit:Lt.number(),skipEmptyFacets:Lt.boolean()}),ql=Lt.object({home:Lt.object({mode:Lt.union([Lt.literal("result"),Lt.literal("category")]),facets:El.array()}),categories:Pl.array(),viewcard:Lt.record(Lt.array(Lt.object({name:Lt.string(),title:Lt.string()}))),facetMode:Lt.boolean()}),Ul=Lt.object({name:Lt.string(),title:Lt.string(),icon:Lt.string(),_url:Lt.string()}),Wl=Lt.object({id:Lt.number().optional(),title:Lt.string(),picture:Lt.string(),uri:Lt.string(),type:Lt.string().optional(),icon:Lt.string().optional(),_cssColor:Lt.string().optional(),_url:Lt.string().optional(),idArticle:Lt.number().optional(),_user:Lt.object({title:Lt.string()}).optional(),_values:Lt.object({dateModified:Lt.string()}).optional()}),Bl=Lt.object({keywords:Lt.string().optional(),category:Lt.string().optional(),facetCategories:Lt.boolean().optional(),filters:Dl.array().optional(),facets:El.array().optional(),page:Lt.number().optional(),limit:Lt.number().optional(),sort:Nl.optional(),options:Zl.optional(),format:Oi.optional()}),$l=e=>Lt.object({start:Lt.number(),count:Lt.number(),results:Lt.array(null!=e?e:Pi),facets:Ml.array(),categories:Rl.array()}),Vl=Lt.object({keywords:Lt.string()}),zl=Lt.union([Ul,Wl]),Gl=Lt.object({title:Lt.string(),id:Lt.string(),showAll:Lt.boolean().optional(),results:zl.array()}),Jl=Lt.union([Lt.literal("link"),Lt.literal("invitation")]),Ql=Lt.object({id:Lt.number(),title:Lt.string(),uri:Lt.string(),idUser:Lt.number(),_right:Mn}),Kl=Lt.object({audience:Lt.array(Na),read:Lt.array(Lt.string()),write:Lt.array(Lt.string())}),Hl=Lt.object({id:Lt.number(),type:Lt.string(),uri:Lt.string(),title:Lt.string(),generalAccessRule:Jl,generalAccessHash:Lt.string().nullable(),idUser:Lt.number(),_audience:Lt.array(Na),_right:Mn}),Yl=Lt.object({targetId:Lt.number(),targetType:Lt.string(),type:Lt.string()}),Xl=Lt.object({targetId:Lt.number(),targetType:Lt.string(),type:Lt.string()}),ec=Ua.extend({supportStatus:Lt.union([Lt.number(),Lt.string()]).nullable(),supportType:Lt.union([Lt.number(),Lt.string()]).nullable(),supportOwner:Lt.array(wn)}),tc=Wa.and(ec).and(Lt.object({})),ic=Ua.extend({dates:Lt.array(Lt.string()),dateStart:Lt.string().nullable(),dateEnd:Lt.string()}),nc=Wa.and(ic).and(Lt.object({surveyObjectLink:Lt.array(Za)})),rc=Lt.union([Lt.literal("DYNAMIC"),Lt.literal("SLIDESHOW")]),ac=e=>Ia.extend({tvChannelType:e,tvChannelBackgroundColor:Lt.string().nullable(),tvChannelNumImages:Lt.number(),tvChannelGroupTarget:Oa.optional(),tvChannelConfig:Lt.object({backgroundType:Lt.union([Lt.literal("color"),Lt.literal("image")]).optional(),globalShowComment:Lt.boolean().optional(),scaleImg:Lt.boolean().optional(),key:Lt.string(),contents:Lt.array(Lt.object({uri:Lt.string(),dateEnd:Lt.string().optional(),showComments:Lt.boolean().optional(),order:Lt.number().optional()})).optional()})}),sc=ac(Lt.literal("DYNAMIC")).extend({tvChannelNumImages:Lt.literal(0)}),oc=ac(Lt.literal("SLIDESHOW")),lc=Za.readonly(),cc=Ua.and(sc).readonly(),uc=Ua.and(oc).readonly(),dc=Ua.and(sc).readonly().or(oc),pc=cc.or(uc),mc=Ga.and(sc.partial().or(oc.partial())).and(Lt.object({tvChannelType:rc})).readonly(),gc=Lt.object({tvChannelGroupTarget:Lt.array(Lt.string()).optional(),tvChannelNumImages:Lt.never().optional()}),hc=Hs.extend({_extend:Lt.object({userImageSecureUrl:Lt.string(),descriptionSecure:Lt.string()})}).readonly(),fc=Ua.extend({_extend:Lt.object({imageSecureUrl:Lt.string().optional(),descriptionSecure:Lt.string(),comments:Lt.array(hc)}).optional()}).readonly(),bc=Un.extend({_extend:Lt.object({imageSecureUrl:Lt.string().optional()})}),yc=cc.and(Lt.object({_extend:Lt.object({imageSecureUrl:Lt.string().optional(),articles:Lt.array(fc).optional()})})),vc=e=>yc.safeParse(e).success,wc=uc.and(Lt.object({_extend:Lt.object({attachments:Lt.array(bc).optional()})})),kc=e=>wc.safeParse(e).success,_c=yc.or(wc),Sc=Lt.object({interval:Lt.number(),channel:_c}),jc=Lt.object({cache_suffix:Lt.string(),toolbar:Lt.string(),language:Lt.string(),content_css:Lt.string(),quickbars_selection_toolbar:Lt.string()}),xc=jc.extend({plugins:Lt.array(Lt.string()),text_patterns:Lt.array(Lt.object({start:Lt.string(),end:Lt.string().optional(),format:Lt.string().optional(),cmd:Lt.string().optional()})),height:Lt.number(),menubar:Lt.boolean(),branding:Lt.boolean(),skin:Lt.string(),convert_urls:Lt.boolean(),invalid_elements:Lt.string(),extended_valid_elements:Lt.string(),custom_elements:Lt.string(),inline_boundaries_selector:Lt.string(),toolbar_mode:Lt.union([Lt.literal("floating"),Lt.literal("sliding"),Lt.literal("scrolling"),Lt.literal("wrap")]),promotion:Lt.boolean(),font_size_formats:Lt.string(),contextmenu:Lt.union([Lt.string(),Lt.literal(!1)]),paste_data_images:Lt.boolean(),browser_spellcheck:Lt.boolean(),quickbars_insert_toolbar:Lt.boolean()}),Cc=Lt.object({commentsToolbar:Lt.string()}),Tc="accept",Ac="deny",Oc=Lt.union([Lt.literal(Tc),Lt.literal(Ac)]),Lc=Lt.object({color:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),label:Lt.string()}),Rc=Ei.extend({title:Lt.string(),mimetype:Lt.string(),_extend:Lt.object({generalAccessRule:Lt.string(),generalAccessHash:Lt.union([Lt.string(),Lt.undefined()]),dateModified:Lt.string(),dateCreation:Lt.string(),fileInfo:Lc,parentId:Lt.number(),parentType:Lt.string(),parentFiles:Lt.array(Lt.number()),_url:Lt.string()}),_audience:Lt.array(Pi),_right:Mn,_user:wn}),Fc=Pi,Ec=Lt.object({color:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),label:Lt.string()}),Pc=Lt.object({page:Lt.number(),cnt:Lt.number(),limit:Lt.number(),data:Lt.array(Rc)}),Ic=Lt.object({query:Lt.string(),filters:xi,orders:ji,page:Lt.number(),limit:Lt.number()}),Mc=Lt.object({}),Dc=Lt.object({label:Lt.string(),description:Lt.string(),name:Gn,img:Lt.string(),available:Lt.boolean(),panel:Lt.object({useWrapper:Lt.boolean(),useEditor:Lt.boolean(),useWidgets:Lt.boolean()})}),Nc=e=>Dc.safeParse(e).success,Zc=e=>void 0!==e&&"type"in e&&"uri"in e,qc=Za.extend({articleWidgets:oa.array(),articleWidgetDisplayMode:ir.nullable().or(Lt.undefined())}),Uc=Lt.object({uniqid:Lt.string(),title:Lt.string(),locked:Lt.boolean(),visible:Lt.boolean(),widgets:oa.array(),position:tr.optional()}),Wc=Lt.enum(["edit","view","preview"]),Bc=Lt.object({width:Lt.number().or(Lt.undefined()).optional(),inplace:Lt.boolean(),isComponentVisible:Lt.boolean().optional(),mode:Wc,onClick:Lt.function().returns(Lt.void()).optional(),onChange:Lt.function().args(la,Lt.boolean()).returns(Lt.void()),onStateChange:Lt.function().args(da).returns(Lt.void())}),$c=Lt.object({text:Lt.string(),value:Lt.boolean().optional(),links:yi.array().optional(),uri:Lt.string().optional(),mimetype:Lt.string().optional(),id:Lt.number().optional(),user:wn.optional()}),Vc=Lt.object({arr:$c.array().optional(),edit:Lt.boolean().optional()}),zc=Lt.object({name:Lt.literal("widget-check-list"),uniqid:Lt.string(),content:Vc,title:Lt.string()}),Gc=Lt.object({title:Lt.string().optional(),view:Lt.any().optional()}),Jc=Lt.object({uniqid:Lt.string(),fn:Lt.enum(["widget-presence-response","check-list-response","widget-update","widget-quick-survey-response"]),object:Pi}),Qc=Lt.object({token:Lt.string().or(Lt.undefined()).optional(),ids:Lt.record(Lt.string(),oa),layers:Lt.record(Lt.string(),Uc),states:Lt.record(Lt.string(),da),modal:Gc.or(Lt.undefined()),editableMap:Lt.record(Lt.string(),Lt.object({index:Lt.number(),uniqid:Lt.string()})),currentEditableIndex:Lt.number(),currentEditableWidgetId:Lt.string().or(Lt.undefined()),widgetObject:Lt.record(Lt.string(),Pi.partial()),widgetObjectRights:Lt.record(Lt.string(),Mn),widgetAuthor:Lt.record(Lt.string(),wn.partial()),flushedWidgets:Lt.string().array(),rtObjectStack:Jc.array()}),Kc=Lt.object({widgets:Qc}),Hc=Ua.extend({articleWidgets:oa.array(),articleWidgetDisplayMode:ir.nullable().or(Lt.undefined()),articleWidgetsCover:Lt.number().or(Lt.undefined()),_audience:qs.array()}),Yc=e=>oa.safeParse(e).success,Xc=e=>nr(e,sr),eu=e=>nr(e,pr),tu=e=>nr(e,gr),iu=e=>nr(e,fr),nu=e=>nr(e,vr),ru=e=>nr(e,kr),au=e=>nr(e,Sr),su=(e,t)=>nr(e,Cr,t),ou=e=>nr(e,Ur),lu=e=>nr(e,Br),cu=e=>nr(e,ia);class uu extends i{list(e){var t,i;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"jamespotArticleQueryList"},e),{format:bi(null!==(t=e.format)&&void 0!==t?t:"raw-list",null!==(i=e.formatExtend)&&void 0!==i?i:[])}))}get(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"article",f:"get"},e),{format:bi(null!==(i=e.format)&&void 0!==i?i:"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,t){var i;return this.network.post(Object.assign(Object.assign({format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"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,i){return this.network.post({o:"article",f:"getAttachment",idArticle:e,type:t,format:i})}permalink(e){return this.network.post({o:"article",f:"permalink",permalinkId:e})}saveAsDraft(e,t,i){return this.network.post({o:"article",f:"saveAsDraft",form:e,contentType:t,idDraft:i})}getComments(e,t){var i,n;return this.network.post(Object.assign(Object.assign({o:"article",f:"getComments"},e),{attachments:null!==(i=e.attachment)&&void 0!==i&&i,limits:null!==(n=e.limits)&&void 0!==n?n:{start:0,max:1e4},format:null!=t?t:"raw-little"}))}addComment(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"article",f:"addComment"},e),{alertAuthor:Number(e.alertAuthor),sendAlert:Number(e.sendAlert),type:null!==(i=e.type)&&void 0!==i?i:"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 du=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};class pu extends i{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,i=du(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"getReservations",format:t},i))}cancelReservation(e){return this.network.post({o:"assetReservation",f:"cancelReservation",format:"raw-list",idArticle:e})}bookByDate(e){var{format:t="raw-list"}=e,i=du(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"BookByDate",format:t},i))}getList(e){var{format:t="raw-list"}=e,i=du(e,["format"]);return this.network.post(Object.assign({o:"objectList",f:"assetReservationList",format:t},i))}}class mu extends i{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 gu extends i{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 hu extends i{getFormattedList(e,t){return this.network.post(Object.assign({o:"objectList",f:"bookmarksList",format:t},e))}addFormattedLink(e,t,i){const n=null!=i?i:"list";return this.network.post({o:"custom",f:"actionAdd",type:"bookmarkLink",targetId:e,targetType:t,format:n})}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,i){return this.network.postCSRF({o:"bookmarks",f:"rename",bookmarkID:e,bookmarkLabel:t,bookmarkUrl:i})}move(e,t,i){return this.network.postCSRF({o:"bookmarks",f:"move",bookmarkID:e,bookmarkReference:t,bookmarkPosition:i})}}class fu extends i{getInfos(e,t){return this.network.post({o:"BusinessNetworking",f:"MarkerInfo",id:e,format:null!=t?t:"raw-little"})}}class bu extends i{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 yu extends i{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})}cancel(e){return this.network.post({o:"widget",f:"datasourceCancel",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})}getExcelDatasourceHeaders(e,t){return this.network.post({o:"widget",f:"datasourceGetExcelDatasourceHeaders",uri:e,spreadsheet:t})}setExcelDatasource(e,t){return this.network.post({o:"widget",f:"datasourceSetExcelDatasource",uri:e,spreadsheet:t})}create({title:e,datasourceType:t,datasourceIdentifier:i,token:n}){return this.network.postCSRF({o:"widget",f:"datasourceCreate",title:e,datasourceType:t,datasourceIdentifier:i,token:n})}}class vu extends i{create(e,t,i,n,r){return this.network.post({o:"article",f:"create",type:e,token:t,title:i,dateStart:n,publishTo:r})}getList(e="",t=[],i=[],n=1,r="raw-list"){return this.network.post({o:"objectList",f:"diapazoneQueryList",query:e,filters:t,orders:i,page:n,format:r})}}var wu=function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}))};class ku extends i{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 wu(this,void 0,void 0,(function*(){return Promise.all(e.map((e=>this.upload(e))))}))}get(e,t,i){return wu(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"get",idFile:e,format:t},null==i?void 0:i.signal)}))}getParent(e,t,i,n){return wu(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getParent",idFile:e,format:t,hash:i},null==n?void 0:n.signal)}))}getWithHash(e,t,i,n){return wu(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getWithHash",idFile:e,hash:t,format:i},null==n?void 0:n.signal)}))}duplicate(e,t,i){return wu(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"duplicateFile",idFile:e,title:t,publishTo:i})}))}updateFile(e,t){return wu(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"updateFile",idFile:e,title:t})}))}update(e,t,i,n){return wu(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"update",idFile:e,type:t,cropDatas:Object.assign(Object.assign({},i),{rotateBeforeCrop:!0}),killSize:i.killSize,format:"raw-little"},null==n?void 0:n.signal)}))}deleteFile(e,t,i,n){return wu(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"delete",idFile:e,attrName:t,token:i},n)}))}deleteImage(e,t,i){return wu(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"deleteImage",id:e,type:t},null==i?void 0:i.signal)}))}getDownload(e,t){return this.network.post({o:"file",f:"getDownload",id:e},null==t?void 0:t.signal)}generatePreview(e,t){return this.network.post({o:"file",f:"generatePreview",id:e},null==t?void 0:t.signal)}copy(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"file",f:"copy"},e),{format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little"}),null==t?void 0:t.signal)}}class _u extends i{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,i){return this.network.post({o:"faq",f:"checkItem",query:e,page:null!=t?t:1,format:null!=i?i:"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 Su extends i{getBanks(){return this.network.post({o:"fileBank",f:"getBanks",format:"raw-list"}).then((e=>e.result))}getFolders(e){return this.network.post({o:"fileBank",f:"getFolders",parentURI:e,format:"raw-list"})}getDocuments(e){return this.network.post({o:"fileBank",f:"getDocuments",parentURI:e,format:"raw-view"})}getPath(e,t){var i,n;return this.network.post({o:"fileBank",f:"getPath",uri:e.uri,mode:null!==(i=e.mode)&&void 0!==i?i:"browse",format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"},null==t?void 0:t.signal)}searchContent(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"fileBank",f:"searchContent"},e),{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 i;return this.network.post({o:"fileBank",f:"getParents",id:e.id,format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little"},null==t?void 0:t.signal)}}class ju extends i{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 xu extends i{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:i}=e,n=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(e,["spotBanner"]);return this.network.postCSRF(Object.assign(Object.assign({o:"spot",f:"update"},n),{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,i,n=1){return this.network.post({o:"objectListJamespot",f:"SpotMembers",idSpot:e,limit:i,page:n,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})}objectListSpotArticles(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"spotArticles"},e),{format:bi(null!==(i=e.format)&&void 0!==i?i:"raw-little",null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}}class Cu extends i{list(e,t,i,n=[{name:"dateCreation",sort:"DESC"}]){return this.jApi.article.list({type:"aseiClearanceTicket",format:"raw-view",limit:t,page:e,orders:n,filters:i})}requestStatus(e,t,i){return this.network.post({o:"asei",f:"setStatus",uri:e,requestedStatus:t,audience:i})}getDedicatedGroups(){return this.network.post({o:"asei",f:"getDedicatedGroups"})}getConfiguration(){return this.network.post({o:"asei",f:"configuration"})}}class Tu extends i{tenants(e,t){return this.network.post(Object.assign({o:"drive",f:"getTenants"},null!=e?e:{}),null==t?void 0:t.signal)}groups(e,t){return this.network.post(Object.assign({o:"drive",f:"getGroups"},e),null==t?void 0:t.signal)}sites(e){return this.network.post({o:"drive",f:"getSites"},null==e?void 0:e.signal)}listAccount(e,t){return this.network.post({o:"drive",f:"listAccount",service:e},null==t?void 0:t.signal)}isAccountLogged(e,t,i){return this.network.post({o:"drive",f:"isAccountLogged",service:e,id:t},null==i?void 0:i.signal)}checkAccountToken(e,t){return this.network.post({o:"drive",f:"checkAccountToken",service:e},null==t?void 0:t.signal)}msDocuments(e,t){return this.network.post(Object.assign({o:"drive",f:"getDocuments",service:"onedrive"},e),null==t?void 0:t.signal)}dropboxDocuments(e,t){return this.network.post(Object.assign({o:"drive",f:"getDocuments",service:"dropbox"},e),null==t?void 0:t.signal)}getDocument(e,t){var i;return this.network.post(Object.assign(Object.assign({o:"drive",f:"getDocument"},e),{format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little"}),null==t?void 0:t.signal)}logout(e,t){return this.network.post(Object.assign({o:"drive",f:"logout"},e),null==t?void 0:t.signal)}getAccount(e,t){return this.network.post(Object.assign({o:"drive",f:"get-user-data"},e),null==t?void 0:t.signal)}setDefaultAccount(e,t){return this.network.post(Object.assign({o:"drive",f:"set-has-default"},e),null==t?void 0:t.signal)}}class Au extends i{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=[],i=1){return this.network.post({o:"objectListMediaLibrary",f:"FoldersStatsList",filters:e,orders:t,page:i})}getFilesStatsList(e=[],t=[],i=1){return this.network.post({o:"objectListMediaLibrary",f:"FilesStatsList",filters:e,orders:t,page:i})}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 Ou extends i{getLogs({dateEnd:e,idLogMax:t}){return this.network.post({o:"jLand",f:"adminLogs",dateEnd:e,idLogMax:t})}getStats({map:e,dateStart:t,dateEnd:i}){return this.network.post({o:"jLand",f:"adminStats",map:e,dateStart:t,dateEnd:i})}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 Lu extends i{sendMessage(e,t){return this.network.post({o:"messenger",f:"newMessage",idDiscussion:t,msg:{description:e}})}getOrCreateDiscussion(e,t){const i=e<t?`${e}.${t}`:`${t}.${e}`;return this.network.post({o:"messenger",f:"getDiscussion",idDiscussion:i,type:"messengerUser",idUserTo:t})}}class Ru extends i{getConfig(){return this.network.post({o:"search",f:"getConfig"})}proposition({query:e,format:t},i){return this.network.post({o:"search",f:"proposition",query:e,format:t||"little"},i)}searchQuery(e,t){const{keywords:i,category:n,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:u}=e;return this.network.post({o:"search",f:"query",keywords:i,category:n,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:bi(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 Fu=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};class Eu extends i{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,i=Fu(e,["format"]);return this.network.post(Object.assign({o:"taxonomy",f:"create",format:t},i))}autocomplete(e,t){return this.network.post({o:"autocomplete",f:"taxonomy",q:t,idTaxonomy:e,idToUri:!1})}autocompleteList(e){var{format:t="autocomplete"}=e,i=Fu(e,["format"]);return this.network.post(Object.assign({o:"objectListTaxonomy",f:"concept",format:t},i))}autocompleteHierarchy(e){return this.network.post(Object.assign({o:"objectListTaxonomyHierarchy",f:"concept"},e))}}class Pu extends i{autocomplete(e){return this.network.post({o:"autocomplete",f:"user",q:e,idToUri:!1}).then((e=>e.result))}get(e,t="little",i){return this.network.post({o:"user",f:"get",uri:e,format:t},i)}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:bi(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:bi(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,t){var i;const n=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}),r=Object.assign(Object.assign({},n),{type:"businessContactCard",publishTo:"networkPublic/1"});return this.jApi.article.create(r,null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little")}userUpdateBusinessContact(e,t){var i;const n=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}),r=Object.assign(Object.assign({},n),{uri:e.uri,publishTo:"networkPublic/1"});return this.jApi.article.update(r,{format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-list"})}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,i){return this.network.post({o:"user",f:"signIn",mail:e,password:t,format:null!=i?i:"raw-view"})}getFields(e,t){return this.network.post({o:"user",f:"getFields",idUser:e,fieldsType:t})}}class Iu extends i{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,i){return this.network.postCSRF({o:"onlyOffice",f:"createFile",title:e,type:t,publishTo:i})}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,i,n){return this.network.postCSRF({o:"onlyOffice",f:"setAccessRequest",uri:e,idUser:t,requestAccessValue:i,requestResponseMessage:n})}getAccessRequest(e,t){return this.network.post({o:"onlyOffice",f:"getAccessRequest",format:"raw-little",uri:e,idUser:t})}askAccess(e,t,i){return this.network.postCSRF({o:"onlyOffice",f:"askAccess",uri:e,askAccess:t,askMessage:i})}}class Mu extends i{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 Du extends i{contentObjectLinks(e){return this.network.post({o:"shared",f:"contentObjectLinks",format:"raw-little",uri:e})}contentSetObjectAccessRule(e,t,i){return this.network.postCSRF({o:"shared",f:"contentSetObjectAccessRule",format:"raw-little",uri:e,rule:t,hash:i})}}var Nu=function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}))};class Zu extends i{SaveAnimationConfiguration(e){return Nu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"saveConfiguration",animation:e})}))}DeleteAnimation(){return Nu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"deleteAnimation"})}))}GetCurrentAnimation(e){return Nu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfiguration"},null==e?void 0:e.signal)}))}GetCurrentAnimationApp(){return Nu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfigurationApp"})}))}ToggleAnimationActive(){return Nu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"toggleAnimationActive"})}))}GetAnimationActive(e){return Nu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getAnimationActive"},null==e?void 0:e.signal)}))}GetAnimationStats(e){return Nu(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStats",name:e})}))}GetAnimationStatsCurrent(e){return Nu(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStatsCurrent",uri:e})}))}}class qu extends i{GetStatus(){return e=this,t=void 0,n=function*(){return this.network.post({o:"accessibility",f:"getStatus"})},new((i=void 0)||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}));var e,t,i,n}}class Uu extends i{getObject(e){return this.network.post({o:"object",f:"getObject",uri:e})}setAccess(e,t,i,n){return this.network.post({o:"object",f:"setAccess",uri:e,access:t,message:i,generalAccessRule:n})}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 Wu extends i{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 Bu extends i{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 $u extends i{textEnhancement({text:e,capacity:t}){return this.network.post({o:"jia",f:"textEnhancement",text:e,capacity:t})}}class Vu extends i{responseUserList(e,t,i){return this.network.post({o:"widget",f:"responseUserList",uri:e,uniqid:t,page:i})}removeWidget({id:e,type:t,uniqid:i}){return this.network.post({o:"widget",f:"removeWidget",id:e,type:t,uniqid:i})}updateWidget({id:e,uniqid:t,content:i,title:n,type:r,uri:a,v2:s=!1}){return this.network.post({o:"widget",f:"updateWidget",uri:a,id:e,uniqid:t,content:i,title:n,type:r,v2:s})}getWidget({uri:e,uniqid:t},i){return this.network.post({o:"widget",f:"getWidget",uri:e,uniqid:t},i)}checkListRespond({id:e,type:t,uri:i,idUser:n,uniqid:r,index:a}){return this.network.post({o:"widget",f:"checkListRespond",uri:i,id:e,type:t,uniqid:r,idUser:n,index:a})}checkListGetResponse({uri:e,uniqid:t}){return this.network.post({o:"widget",f:"checkListGetResponse",uri:e,uniqid:t})}presenceRespond({id:e,type:t,uri:i,value:n,uniqid:r},a){return this.network.post({o:"widget",f:"presenceRespond",uri:i,id:e,type:t,value:n,uniqid:r},a)}presenceCancel({uri:e,uniqid:t},i){return this.network.postCSRF({o:"widget",f:"presenceCancel",uri:e,uniqid:t},i)}presenceGetResponse({uri:e,uniqid:t},i){return this.network.post({o:"widget",f:"presenceGetResponse",uri:e,uniqid:t},i)}quickSurveyGetResponse({uri:e,uniqid:t},i){return this.network.post({o:"widget",f:"quickSurveyGetResponse",uri:e,uniqid:t},i)}quickSurveyAddEnty({uri:e,uniqid:t,label:i},n){return this.network.postCSRF({o:"widget",f:"quickSurveyAddEntry",uri:e,label:i,uniqid:t},n)}quickSurveyRespond({id:e,type:t,uri:i,index:n,multi:r,uniqid:a},s){return this.network.postCSRF({o:"widget",f:"quickSurveyRespond",id:e,type:t,uri:i,index:n,multi:r,uniqid:a},s)}quickSurveyGetResponseUserList({uri:e,uniqid:t,index:i,page:n,limit:r},a){return this.network.post({o:"widget",f:"quickSurveyGetResponseUserList",uri:e,uniqid:t,index:i,page:n,limit:r},a)}presenceGetResponseUserList({uri:e,uniqid:t,index:i,page:n,limit:r},a){return this.network.post({o:"widget",f:"presenceGetResponseUserList",uri:e,uniqid:t,index:i,page:n,limit:r},a)}}class zu extends i{getThumbnailUrl(e){return this.network.post({o:"magicPad",f:"getThumbnailUrl",uri:e})}}class Gu extends i{selectResponse(e,t){return this.network.post(Object.assign({o:"socialQuestion",f:"selectResponse"},e),null==t?void 0:t.signal)}unselectResponse(e,t){return this.network.post(Object.assign({o:"socialQuestion",f:"unselectResponse"},e),null==t?void 0:t.signal)}}class Ju extends i{recordingDelete(e,t,i){return this.network.post({o:"visioConnect",f:"videoRecordingDelete",id:e,filename:t},null==i?void 0:i.signal)}}class Qu{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 qu(this),this.application=new o(this),this.article=new uu(this),this.asei=new Cu(this),this.assetReservation=new pu(this),this.audience=new mu(this),this.bbb=new gu(this),this.bookmark=new hu(this),this.businessNetworking=new fu(this),this.community=new bu(this),this.datasource=new yu(this),this.diapazone=new vu(this),this.drive=new Tu(this),this.faq=new _u(this),this.file=new ku(this),this.filebank=new Su(this),this.fileSync=new Wu(this),this.global=new ju(this),this.group=new xu(this),this.jia=new $u(this),this.jland=new Ou(this),this.magicPad=new zu(this),this.mediaLibrary=new Au(this),this.messenger=new Lu(this),this.object=new Uu(this),this.questionAnswer=new Gu(this),this.search=new Ru(this),this.share=new Du(this),this.socialAction=new Bu(this),this.taxonomy=new Eu(this),this.tvDisplay=new Mu(this),this.user=new Pu(this),this.visioConnect=new Ju(this),this.wedoc=new Iu(this),this.widget=new Vu(this),this.animations=new Zu(this)}}class Ku{getBackendUrl(){return e=this,t=void 0,n=function*(){const e=window.location;return`${e.protocol}//${e.host}`},new((i=void 0)||(i=Promise))((function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}));var e,t,i,n}fetch(e,t){return window.fetch(e,t)}}const Hu=new di(new Ku),Yu=new Qu(Hu);window.JamespotUserApi=Yu;const Xu=Yu,ed=Qu;module.exports=t})();
2
2
  //# sourceMappingURL=jamespot-user-api.js.map