jamespot-user-api 1.0.205 → 1.0.207

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 (83) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +14 -14
  3. package/documentation/classes/AdminLogApi.html +1 -0
  4. package/documentation/classes/AdminStoreApi.html +1 -1
  5. package/documentation/classes/AdminUtilsApi.html +1 -1
  6. package/documentation/classes/JApplicationApi.html +8 -8
  7. package/documentation/classes/JArticleApi.html +1 -1
  8. package/documentation/classes/JAssetReservation.html +1 -1
  9. package/documentation/classes/JAudienceApi.html +1 -1
  10. package/documentation/classes/JBaseApi.html +1 -1
  11. package/documentation/classes/JBbbApi.html +1 -1
  12. package/documentation/classes/JBookmarkApi.html +1 -1
  13. package/documentation/classes/JBusinessNetworkingApi.html +1 -1
  14. package/documentation/classes/JCalendarApi.html +1 -1
  15. package/documentation/classes/JCommunityApi.html +1 -1
  16. package/documentation/classes/JDatasourceApi.html +1 -1
  17. package/documentation/classes/JDiapazoneApi.html +1 -1
  18. package/documentation/classes/JExternalAppApi.html +1 -1
  19. package/documentation/classes/JFaqApi.html +1 -1
  20. package/documentation/classes/JFileApi.html +5 -5
  21. package/documentation/classes/JFilebankApi.html +1 -1
  22. package/documentation/classes/JGlobalApi.html +1 -1
  23. package/documentation/classes/JGroupApi.html +12 -12
  24. package/documentation/classes/JIAApi.html +1 -1
  25. package/documentation/classes/JLandApi.html +1 -1
  26. package/documentation/classes/JMessengerApi.html +1 -1
  27. package/documentation/classes/JModuleApi.html +1 -1
  28. package/documentation/classes/JObjectApi.html +1 -1
  29. package/documentation/classes/JSearchApi.html +6 -6
  30. package/documentation/classes/JShareApi.html +1 -1
  31. package/documentation/classes/JSocialActionApi.html +1 -1
  32. package/documentation/classes/JTaxonomyApi.html +2 -2
  33. package/documentation/classes/JUserApi.html +7 -7
  34. package/documentation/classes/JWedocApi.html +1 -1
  35. package/documentation/classes/JWidgetApi.html +1 -1
  36. package/documentation/classes/JamespotUserApi.html +1 -1
  37. package/documentation/classes/JitsiApi.html +1 -1
  38. package/documentation/classes/Network.html +1 -1
  39. package/documentation/classes/TVDisplayApi.html +1 -1
  40. package/documentation/classes/WindowBrowser.html +1 -1
  41. package/documentation/enums/BookmarkType.html +1 -1
  42. package/documentation/enums/Format.html +1 -1
  43. package/documentation/enums/GroupModerateStatus.html +1 -1
  44. package/documentation/enums/StudioApplicationStatus.html +1 -1
  45. package/documentation/enums/WidgetsName.html +1 -1
  46. package/documentation/index.html +1 -1
  47. package/documentation/interfaces/AccessRightObject.html +1 -1
  48. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  49. package/documentation/interfaces/ApiWrapper.html +1 -1
  50. package/documentation/interfaces/BaseMessage.html +1 -1
  51. package/documentation/interfaces/FileBankProps.html +1 -1
  52. package/documentation/interfaces/FolderProps.html +1 -1
  53. package/documentation/interfaces/ListFilterSpec.html +1 -1
  54. package/documentation/interfaces/OF.html +1 -1
  55. package/documentation/interfaces/PagingResults.html +1 -1
  56. package/documentation/interfaces/RootFolderProps.html +1 -1
  57. package/documentation/interfaces/SpotProps.html +1 -1
  58. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  59. package/documentation/interfaces/WidgetType.html +1 -1
  60. package/documentation/interfaces/WindowInterface.html +1 -1
  61. package/documentation/modules.html +11 -11
  62. package/lib/jamespot-user-api.js +1 -1
  63. package/lib/jamespot-user-api.js.map +1 -1
  64. package/lib/src/apis/admin/index.d.ts +1 -0
  65. package/lib/src/apis/admin/logs.d.ts +29 -0
  66. package/lib/src/apis/admin/logs.mock.d.ts +4 -0
  67. package/lib/src/apis/admin/logs.test.d.ts +1 -0
  68. package/lib/src/apis/jamespotUserApi.d.ts +2 -1
  69. package/lib/src/apis/visioConnect/visioConnect.d.ts +14 -0
  70. package/lib/src/apis/visioConnect/visioConnect.mock.d.ts +3 -1
  71. package/lib/src/types/adminLog.d.ts +73 -0
  72. package/lib/src/types/index.d.ts +2 -0
  73. package/lib/src/types/utils.d.ts +10 -0
  74. package/lib/src/types/visioConnect.d.ts +325 -0
  75. package/package.json +1 -1
  76. package/phpunitMock/articleGet-pollSurvey-list.json +1 -1
  77. package/phpunitMock/articleGet-pollSurvey-view.json +1 -1
  78. package/phpunitMock/objectListAdminAdvancedLogsNavigation-default.json +7 -0
  79. package/phpunitMock/objectListAdminAdvancedLogsObjects-default.json +294 -0
  80. package/phpunitMock/objectListAdminAdvancedLogsSearch-default.json +150 -0
  81. package/phpunitMock/userSignIn-success.json +0 -2
  82. package/phpunitMock/visioConnectStatistics-default.json +24 -0
  83. package/phpunitMock/visioConnectStatisticsRoomSessions-default.json +27 -0
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ACCESS_REQUEST_ACCEPT:()=>Fc,ACCESS_REQUEST_DENY:()=>Pc,AdminLicenseApi:()=>r,AdminStoreApi:()=>a,AdminUtilsApi:()=>s,BookmarkType:()=>ls,DateFormatSchema:()=>Tr,Format:()=>An,GroupModerateStatus:()=>ba,JApplicationApi:()=>o,JArticleApi:()=>fu,JAssetReservation:()=>yu,JAudienceApi:()=>vu,JBaseApi:()=>n,JBbbApi:()=>wu,JBookmarkApi:()=>ku,JBusinessNetworkingApi:()=>_u,JCalendarApi:()=>ju,JCommunityApi:()=>Su,JDatasourceApi:()=>xu,JDiapazoneApi:()=>Cu,JExternalAppApi:()=>Tu,JFaqApi:()=>Lu,JFileApi:()=>Ou,JFilebankApi:()=>Ru,JGlobalApi:()=>Eu,JGroupApi:()=>Fu,JIAApi:()=>Yu,JLandApi:()=>Du,JLandMapCreationSchema:()=>pl,JMessengerApi:()=>Nu,JModuleApi:()=>rd,JObjectApi:()=>Qu,JSearchApi:()=>Zu,JShareApi:()=>Vu,JSocialActionApi:()=>Hu,JTaxonomyApi:()=>Uu,JUserApi:()=>Wu,JWedocApi:()=>Bu,JWidgetApi:()=>Xu,JamespotUserApi:()=>sd,JamespotUserApiInstance:()=>cd,JitsiApi:()=>ad,Network:()=>pn,NumberFormatSchema:()=>Ar,StudioApplicationStatus:()=>i,TVDisplayApi:()=>$u,UserLevel:()=>vi,WidgetPresenceResponseUserListSchema:()=>Xr,WidgetQuickSurveyContentArrSchema:()=>ea,WidgetQuickSurveyResponseSchema:()=>ra,WidgetQuickSurveyResponseUserListSchema:()=>aa,WidgetsName:()=>zi,WindowBrowser:()=>od,accessRequestStatusValuesSchema:()=>Ic,actionVerbSchema:()=>Ys,addCommentParamsSchema:()=>Ka,addFaqEntrySchema:()=>Uo,addRemoveActionParamsSchema:()=>ac,adminAppSchema:()=>_s,adminAppTabSchema:()=>ks,adminAppsSchema:()=>Ss,adminLicenseStatsSchema:()=>ps,adminLicenseUserSchema:()=>ys,adminLicensesAssignedSchema:()=>hs,adminLicensesNotAssignedSchema:()=>gs,animationConfigurationTypeSchema:()=>xs,animationStatsRowSchema:()=>Cs,animationStatsSchema:()=>Ts,animationVariantSchema:()=>js,api:()=>dd,articleCreationSchema:()=>Ga,articleDisplayModeSchema:()=>nr,articleGetConfigSchema:()=>za,articleListConfigSchema:()=>Va,aseiGroupsSchema:()=>Rs,aseiInstitutionSchema:()=>Ls,aseiRightsSchema:()=>Es,aseiTicketSchema:()=>Os,aseiTicketStatusSchema:()=>As,assetReservationConfigurationSchema:()=>Fs,audienceAutocompleteSchema:()=>Us,audienceSchema:()=>Na,baseArticleSchema:()=>Ja,baseAutocompleteSchema:()=>Ds,baseEntitySchema:()=>ro,bookableAssetListSchema:()=>Ps,bookableAssetViewSchema:()=>Is,bookmarkCustomSchema:()=>ds,bookmarkLinkSchema:()=>cs,bookmarkTypesSchema:()=>us,businessContactSchema:()=>Fi,calendarEventsExtension:()=>Hs,calendarOldEventSchema:()=>Qs,categorySchema:()=>Aa,checkProperties:()=>un,combineFormat:()=>yn,combinedWidgetContentSchema:()=>la,combinedWidgetTypeSchema:()=>sa,communitySchema:()=>Ws,createFaqCategorySchema:()=>Eo,createFaqEntrySchema:()=>qo,createFaqThemeSchema:()=>Do,createGroupSchema:()=>pa,cssBackgroundPositionSchema:()=>Ki,cssBackgroundSizeSchema:()=>Hi,cssTextAlignTypeSchema:()=>Qi,deepEqual:()=>fn,default:()=>ud,deleteFaqThemeSchema:()=>No,documentEntitySchema:()=>lo,driveAccountSchema:()=>mo,driveGetAccountParamsSchema:()=>wo,driveGetAccountSchema:()=>ko,driveGetDocumentParamsSchema:()=>yo,driveGetGroupsParamsSchema:()=>Co,driveGetTenantsParamsSchema:()=>So,driveItemTypeSchema:()=>go,driveLogoutParamsSchema:()=>vo,driveSetDefaultAccountParamsSchema:()=>_o,driveTmpFileSchema:()=>bo,dropboxDocumentEntitySchema:()=>uo,dropboxDocumentParamsSchema:()=>fo,dropboxGetDocumentsParamsSchema:()=>xo,editFaqCategorySchema:()=>Fo,editFaqEntrySchema:()=>Wo,editFaqThemeSchema:()=>Zo,ensureIsCalendarOldEvent:()=>Ks,ensureIsMeetingList:()=>Tl,ensureIsSocialEventList:()=>ts,ensureIsViewEvent:()=>is,ensureTVGetConfigureDynamicChannelResponse:()=>xc,ensureTVGetConfigureSlideshowChannelResponse:()=>Tc,ensureWidgetArticleAttachmentType:()=>au,ensureWidgetArticleButtonType:()=>su,ensureWidgetArticleGalleryType:()=>ou,ensureWidgetArticleImageType:()=>lu,ensureWidgetArticleSliderType:()=>cu,ensureWidgetArticleTextType:()=>uu,ensureWidgetArticleTitleType:()=>du,ensureWidgetCheckListType:()=>pu,ensureWidgetContent:()=>rr,ensureWidgetDatasourceTableType:()=>mu,ensureWidgetDefinitionProps:()=>$c,ensureWidgetExcelDatasourceTableType:()=>gu,ensureWidgetObjectHasMinimumProperties:()=>Vc,ensureWidgetPresenceContent:()=>zr,ensureWidgetPresenceResponse:()=>Yr,ensureWidgetPresenceResponsePayload:()=>Kr,ensureWidgetPresenceType:()=>Jr,ensureWidgetQuickSurveyType:()=>hu,ensureWidgetType:()=>ir,ensureWidgetWrapperProps:()=>ru,extensions:()=>$t,extractTaxonomiesFromObject:()=>sn,extractTaxonomiesFromObjectAndMapProperty:()=>on,extractTaxonomiesFromObjectAndMapUri:()=>ln,facetModeSchema:()=>Nl,faqAccessSchema:()=>Mo,faqHookPropertiesSchema:()=>Io,faqItemListSchema:()=>Lo,faqItemViewSchema:()=>Ro,faqListSchema:()=>To,faqTaxonomySchema:()=>Po,faqViewSchema:()=>Ao,fileCropConfigSchema:()=>qi,filterSchema:()=>jn,filterValueSchema:()=>kn,filtersSchema:()=>Cn,formatExtensionSchema:()=>Rn,formatImgUrl:()=>Wt,formatListSchema:()=>Ln,getActionUsersParamsSchema:()=>rc,getArgs:()=>Nt,getCommentsParamsSchema:()=>Qa,getExtensionFromName:()=>Jt,getFileExtensionFromMimetype:()=>Gt,getFileFamily:()=>en,getFileFamilyFromName:()=>Yt,getFormat:()=>qt,getFrom:()=>Mt,getLicenseKindUsersParamsSchema:()=>bl,getMimetypeFromExtension:()=>zt,getMimetypeFromName:()=>Qt,getSize:()=>Zt,getTimestamp:()=>Dt,getUnclassifiedFilesParamsSchema:()=>kl,getUri:()=>It,getUrl:()=>Ut,groupCustomWidgetSchema:()=>_a,groupListConfigSchema:()=>Fa,groupMemberLevelSchema:()=>ha,groupMemberSchema:()=>va,groupModerateStatusSchema:()=>ya,groupPropertiesOptionsSchema:()=>Sa,groupPropertiesSchema:()=>xa,groupUserLevelSchema:()=>ga,groupWidgetLittleSchema:()=>ka,groupWidgetSchema:()=>Ta,hookListTypeSchema:()=>rl,imageSizeSchema:()=>Zi,inferBookmarkListSchema:()=>os,inferBookmarkRawListSchema:()=>ss,inferExtendedFaqCategory:()=>Oo,inferJInternalDraftView:()=>$a,inferJLinkListSchema:()=>as,inferMaybeWithToken:()=>Tn,inferSearchQueryResultSchema:()=>Kl,inferTVChannelCustomSchema:()=>dc,inferUserLicenseSchema:()=>yl,jAdminLicenseUserListSchema:()=>bs,jArticleExtendViewSchema:()=>Ba,jArticleListSchema:()=>Ua,jArticleListShapeTmp:()=>qa,jArticleLittleSchema:()=>Za,jArticleViewSchema:()=>Wa,jArticleWidgetLittle:()=>zc,jArticleWidgetViewSchema:()=>iu,jBusinessContactListSchema:()=>Js,jBusinessContactLittleSchema:()=>Gs,jCommentListSchema:()=>to,jCommentLittleSchema:()=>eo,jDiapazoneListSchema:()=>no,jEnsure:()=>u,jFileLittleCropSchema:()=>Bi,jFileLittleSchema:()=>Ui,jFileRenditionSchema:()=>$i,jFolderListSchema:()=>Xa,jFolderLittleSchema:()=>Da,jGroupListSchema:()=>La,jGroupLittleSchema:()=>Oa,jGroupViewSchema:()=>Ra,jHrefSchema:()=>vn,jIACapabilitiesSchema:()=>al,jLandAdditionalPropsSchema:()=>ml,jLandLogSchema:()=>ol,jLandMapFlavorSchema:()=>cl,jLandMapKindSchema:()=>ul,jLandMapListSchema:()=>hl,jLandMapLittleSchema:()=>gl,jLandMapSchema:()=>dl,jLandMapViewSchema:()=>fl,jLandStatSchema:()=>ll,jLinkLittleSchema:()=>rs,jMeetingListSchema:()=>Cl,jMeetingViewSchema:()=>Al,jObjectAutocompleteSchema:()=>Ns,jObjectBaseSchema:()=>Pn,jObjectListSchema:()=>Ia,jObjectLittleSchema:()=>In,jPollSurveyListSchema:()=>Rl,jPollSurveyViewSchema:()=>El,jQuizzListSchema:()=>Il,jQuizzViewSchema:()=>Ml,jSocialEventListSchema:()=>es,jSocialEventViewSchema:()=>ns,jSpotAutocompleteSchema:()=>qs,jSupportListSchema:()=>sc,jSupportViewSchema:()=>oc,jSurveyDateListSchema:()=>lc,jSurveyDateViewSchema:()=>cc,jUserAutocompleteSchema:()=>Zs,jUserListSchema:()=>ki,jUserLittleSchema:()=>wi,jUserValuesSchema:()=>Ai,jUserViewSchema:()=>Si,licenseSchema:()=>fs,mediaLibraryFilesStatsSchema:()=>_l,mediaLibraryFolderSchema:()=>vl,mediaLibraryFolderStatsSchema:()=>Sl,mediaLibraryListSchema:()=>wl,mediaLibraryStatsSchema:()=>jl,mimetypeToExt:()=>Vt,mimetypes:()=>Bt,moduleRestrictionMode:()=>Ol,moveFaqEntrySchema:()=>Bo,moveFaqThemeSchema:()=>$o,moveMediaLibraryFileParamsSchema:()=>xl,msDocumentEntitySchema:()=>co,msDocumentParamsSchema:()=>ho,msGetDocumentsParamsSchema:()=>jo,msGroupEntitySchema:()=>oo,msSiteEntitySchema:()=>so,msTenantEntitySchema:()=>ao,msTenantsSchema:()=>io,msUnifiedEntitySchema:()=>po,network:()=>ld,networkTypeSchema:()=>Ll,objectListPropsSchema:()=>En,objectTimestamp:()=>Kt,objectWithoutLicenseFilterSchema:()=>ms,onlyOfficeTemplateSchema:()=>Ko,openingTypeAnchorSchema:()=>lr,openingTypeLinkSchema:()=>or,openingTypePopupSchema:()=>cr,openingTypeSchema:()=>er,orderSchema:()=>wn,ordersSchema:()=>xn,padStartTwoDigits:()=>m,prepareGroupForUpdate:()=>cn,publicWebinarData:()=>zs,publicWebinarFullnameRequestSchema:()=>Bs,publicWebinarGetDateRequestSchema:()=>Vs,publicWebinarUrlSchema:()=>$s,questionAnswerSelectResponseParamsSchema:()=>Fl,questionAnswerUnselectResponseParamsSchema:()=>Pl,removeIfStartsWith:()=>p,replacePropertiesWithTypes:()=>bn,reservationListSchema:()=>Ms,resetNotificationConfigurationSchema:()=>Ea,resolveFileFamily:()=>rn,resolveFileMimetype:()=>nn,resolveFilePath:()=>Ht,resolveFileUrl:()=>tn,rightsSchema:()=>Mi,rssTypeSchema:()=>ja,searchCategoryModelSchema:()=>ql,searchCategoryValueSchema:()=>Dl,searchConfigSchema:()=>zl,searchFacetModelSchema:()=>Zl,searchFacetValueModelSchema:()=>Wl,searchFacetValuesSchema:()=>Ul,searchLastQuerySchema:()=>Hl,searchQueryFilterModelSchema:()=>Bl,searchQueryOptionSchema:()=>Vl,searchQuerySchema:()=>Ql,searchQuerySortModelSchema:()=>$l,searchResultCatPropsSchema:()=>Xl,searchResultPropsAppSchema:()=>Gl,searchResultPropsObjectSchema:()=>Jl,searchResultPropsSchema:()=>Yl,shareAccessObjectSchema:()=>ic,shareAccessPropsSchema:()=>nc,shareGeneralAccessRulesSchema:()=>ec,shareOptionObjectSchema:()=>tc,socialActionSchema:()=>Xs,spotBannerImageSchema:()=>ma,storeFinalizeSchema:()=>ws,storeItemSchema:()=>vs,suffixIfDoesNotExist:()=>d,textEnhanceResponseSchema:()=>sl,tinyMCECommonOptionsSchema:()=>Rc,tinyMCEDynamicOptionsSchema:()=>Lc,tinymceExtendedOptionsSchema:()=>Ec,tvChannelCreatePayloadSchema:()=>wc,tvChannelCreationSchema:()=>vc,tvChannelCustomListDynamicSchema:()=>pc,tvChannelCustomListSchema:()=>bc,tvChannelCustomListSlideshowSchema:()=>mc,tvChannelDynamicArticleSchema:()=>_c,tvChannelDynamicCommentSchema:()=>kc,tvChannelDynamicListSchema:()=>hc,tvChannelListSchema:()=>yc,tvChannelLittleSchema:()=>gc,tvChannelSlideshowFileSchema:()=>Sc,tvChannelSlideshowListSchema:()=>fc,tvChannelTypeSchema:()=>uc,tvGetChannelResponseSchema:()=>Oc,tvGetConfigureChannelResponseSchema:()=>Ac,tvGetConfigureDynamicChannelResponse:()=>jc,tvGetConfigureSlideshowChannelResponse:()=>Cc,updateCommentParamsSchema:()=>Ha,updateGroupSchema:()=>Ca,uploadConfigSchema:()=>Ni,userDefaultFieldsTypeSchema:()=>Ti,userDirectoryConfigurationSchema:()=>Pi,userDownloadSchema:()=>Vi,userFieldSchema:()=>Li,userFieldsConfigurationTypeSchema:()=>Oi,userFieldsSchema:()=>Ri,userLevelSpotSchema:()=>fa,userMapModelSchema:()=>xi,userReadSchema:()=>Ya,userValuesSchema:()=>Ei,validateIsFormatFileLittle:()=>Wi,validateIsFormatObjectList:()=>Ma,validateIsFormatObjectLittle:()=>Mn,validateIsFormatRights:()=>Di,validateIsFormatUserDirectoryConfiguration:()=>Ii,validateIsFormatUserLevelSpot:()=>Pa,validateIsFormatUserList:()=>_i,validateIsFormatUserMapModel:()=>Ci,validateIsFormatUserView:()=>ji,valueLabelSchema:()=>wa,variantSizeTypeSchema:()=>Yi,variantTypeSchema:()=>Xi,wedocEmptyTypeSchema:()=>Wc,wedocFileAudienceTypeSchema:()=>Nc,wedocFileInfoSchema:()=>Mc,wedocFileTypeSchema:()=>Dc,wedocQueryResultsSchema:()=>qc,wedocQueryTypeSchema:()=>Uc,wedocTemplateSchema:()=>Zc,widgetActiveValueSchema:()=>Kn,widgetArticleAttachmentContentSchema:()=>ar,widgetArticleAttachmentTypeSchema:()=>sr,widgetArticleButtonContentSchema:()=>dr,widgetArticleButtonTypeSchema:()=>pr,widgetArticleCheckListTypeForFrontSchema:()=>Yc,widgetArticleGalleryContentSchema:()=>mr,widgetArticleGalleryTypeSchema:()=>gr,widgetArticleImageContentSchema:()=>hr,widgetArticleImageTypeSchema:()=>fr,widgetArticleSliderContentSchema:()=>yr,widgetArticleSliderTypeSchema:()=>vr,widgetArticleTextContentSchema:()=>wr,widgetArticleTextTypeSchema:()=>kr,widgetArticleTitleContentSchema:()=>_r,widgetArticleTitleTypeSchema:()=>Sr,widgetAudienceSchema:()=>Hn,widgetBaseSchema:()=>Ji,widgetButtonPropsSchema:()=>ur,widgetCheckListContentArrForFrontSchema:()=>Kc,widgetCheckListContentArrSchema:()=>jr,widgetCheckListContentForFrontSchema:()=>Hc,widgetCheckListContentSchema:()=>xr,widgetCheckListTypeSchema:()=>Cr,widgetCheckboxSchema:()=>di,widgetColorSchema:()=>Bn,widgetContentKeysSchema:()=>ua,widgetDatasourceTableContentSchema:()=>qr,widgetDatasourceTableTypeSchema:()=>Ur,widgetDatePickerSchema:()=>Jn,widgetDatePickerValueSchema:()=>Qn,widgetDateSchema:()=>$n,widgetDateValueSchema:()=>Vn,widgetDatetimeSchema:()=>zn,widgetDatetimeValueSchema:()=>Gn,widgetDefaultProps:()=>Qc,widgetDefinitionPropsSchema:()=>Bc,widgetDisplayModeSchema:()=>Jc,widgetEmailSchema:()=>ii,widgetEmailValueSchema:()=>ri,widgetEmbedSchema:()=>ni,widgetExcelDatasourceTableContentSchema:()=>Wr,widgetExcelDatasourceTableTypeSchema:()=>Br,widgetFileSchema:()=>ei,widgetKeysSchema:()=>Gi,widgetLayerSchema:()=>Gc,widgetLegacyMixedBooleanSchema:()=>$r,widgetLinkSchema:()=>Yn,widgetModalPropsSchema:()=>Xc,widgetMultiattributeSchema:()=>Xn,widgetNumberSchema:()=>Un,widgetNumberValueSchema:()=>Wn,widgetOrientedlinksSchema:()=>hi,widgetPlaceSchema:()=>oi,widgetPresenceContentSchema:()=>Vr,widgetPresenceRespondPayloadSchema:()=>Qr,widgetPresenceResponseSchema:()=>Hr,widgetPresenceTypeSchema:()=>Gr,widgetQuickSurveyContentSchema:()=>ta,widgetQuickSurveyTypeSchema:()=>na,widgetRadioSchema:()=>ui,widgetRefUserSchema:()=>li,widgetRtObjectSchema:()=>eu,widgetSchema:()=>bi,widgetSelectSchema:()=>ti,widgetSlideSchema:()=>br,widgetStatePropsSchema:()=>da,widgetTableColumnDataSchema:()=>Ir,widgetTableColumnSchema:()=>Nr,widgetTableColumnTypesSchema:()=>Dr,widgetTableColumnWidgetDateSchema:()=>Fr,widgetTableColumnWidgetDefaulSchema:()=>Or,widgetTableColumnWidgetSelectOptionSchema:()=>Rr,widgetTableColumnWidgetSelectSchema:()=>Er,widgetTableColumnWidgetTextSchema:()=>Lr,widgetTableColumnWidgetsSchema:()=>Pr,widgetTableColumnsData:()=>Mr,widgetTableContentSchema:()=>Zr,widgetTaxonomySchema:()=>pi,widgetTelSchema:()=>mi,widgetTextSchema:()=>Dn,widgetTextValueSchema:()=>Nn,widgetTextareaSchema:()=>Zn,widgetTextareaValueSchema:()=>qn,widgetToggleSchema:()=>gi,widgetTransientSchema:()=>ci,widgetTypeKeysSchema:()=>ca,widgetUriSchema:()=>fi,widgetUrlSchema:()=>ai,widgetUrlValueSchema:()=>si,widgetVectorSchema:()=>tr,widgetWrapperPropsSchema:()=>oa,widgetsRootStateSchema:()=>nu,widgetsStateSchema:()=>tu,widgetsValueSchema:()=>yi});class n{constructor(e){this.jApi=e,this.network=e.network}}var i;class r extends n{getLicenseUserStatistics(e){return this.network.post({o:"licenseManager",f:"userStatistics"},e)}getLicenseStatistics(e,t){return this.network.post({o:"licenseManager",f:"statistics",kind:e},t)}assignLicense(e){return this.network.postCSRF({o:"licenseManager",f:"assignLicense",uri:e})}assignKindLicense(e,t){return this.network.postCSRF({o:"licenseManager",f:"assignLicenseKind",uri:e,kind:t})}unAssignLicense(e){return this.network.postCSRF({o:"licenseManager",f:"unassignLicense",uri:e})}unAssignKindLicense(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignLicenseKind",uri:e,kind:t})}getAssignmentMode(e,t){return this.network.post({o:"licenseManager",f:"getAssignmentMode",type:e},t)}setAssignmentMode(e,t){return this.network.postCSRF({o:"licenseManager",f:"setAssignmentMode",value:t,type:e})}assignPossiblesLicenses(e,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,n){var i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,[]);return this.network.post(Object.assign(Object.assign({o:"licenseManager",f:"getUsers"},i),{format:t}),n)}}class a extends n{getItem(e){return this.network.post({o:"adminStore",f:"getItem",uri:e})}checkoutBilling(e){return this.network.postCSRF({o:"adminStore",f:"checkoutBilling",uri:e})}checkoutFinalize(e){return this.network.postCSRF({o:"adminStore",f:"checkoutFinalize",uri:e})}}class s extends n{getApps(e){return this.network.post({o:"admin",f:"apps"},e)}}!function(e){e.local="local",e.installed="installed",e.autosaved="autosaved",e.saved="saved"}(i||(i={}));class o extends n{list(){return this.network.post({o:"studio",f:"list"})}get(e,t){return this.network.post({o:"studio",f:"get",idApp:e,status:t})}install(e){return this.network.postCSRF({o:"studio",f:"install",value:e})}suspend(e){return this.network.postCSRF({o:"studio",f:"suspend",idApp:e})}restart(e){return this.network.postCSRF({o:"studio",f:"restart",idApp:e})}save(e,t,n){return this.network.postCSRF({o:"studio",f:"save",idApp:e,value:t,status:n})}delete(e,t){return n=this,i=void 0,a=function*(){return this.network.postCSRF({o:"studio",f:"delete",idApp:e,status:t}).then((e=>{if(0===e.error)return e.messages;throw e.messages}))},new((r=void 0)||(r=Promise))((function(e,t){function s(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,o)}l((a=a.apply(n,i||[])).next())}));var n,i,r,a}cssClassList(){return this.network.post({o:"studio",f:"icons"})}}function l(e){const t=e;return t&&"number"==typeof t.id&&"number"==typeof t.targetId}const c={bookmarkLink:l},u={isBookmarkLink:function(e){return"targetId"in e&&!!e.targetId},isBookmarkCustom:function(e){const t=e;return void 0!==t.bookmarkLabel||void 0!==t.bookmarkMeta||void 0!==t.bookmarkUrl},isBookmarkRawList:l,isTVChannelType:function(e,t){return"tvChannelType"in e&&e.tvChannelType===t},objectIsType:function(e,t){return null!=t&&c[e](t)},isStandardApiError:e=>"object"==typeof e&&null!==e&&"error"in e&&"errorMsg"in e&&"messages"in e&&"number"==typeof e.error&&"string"==typeof e.errorMsg&&Array.isArray(e.messages),isAbortApiError:e=>null!==e&&"object"==typeof e&&"error"in e&&"aborted"in e&&-1===e.error&&!0===e.aborted};function d(e,t){return e&&!e.endsWith(t)?`${e}${t}`:e}function p(e,t){return e&&e.startsWith(t)?e.split("").slice(t.length).join(""):e}function m(e){return e.toString().padStart(2,"0")}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 n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),i={};for(const e of n)i[e]=t[e];return e.objectValues(i)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(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},n={_errors:[]},i=e=>{for(const r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(i);else if("invalid_return_type"===r.code)i(r.returnTypeError);else if("invalid_arguments"===r.code)i(r.argumentsError);else if(0===r.path.length)n._errors.push(t(r));else{let e=n,i=0;for(;i<r.path.length;){const n=r.path[i];i===r.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(r))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(this),n}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={},n=[];for(const i of this.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}v.create=e=>new v(e);const w=(e,t)=>{let n;switch(e.code){case y.invalid_type:n=e.received===f.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case y.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,g.jsonStringifyReplacer)}`;break;case y.unrecognized_keys:n=`Unrecognized key(s) in object: ${g.joinValues(e.keys,", ")}`;break;case y.invalid_union:n="Invalid input";break;case y.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${g.joinValues(e.options)}`;break;case y.invalid_enum_value:n=`Invalid enum value. Expected ${g.joinValues(e.options)}, received '${e.received}'`;break;case y.invalid_arguments:n="Invalid function arguments";break;case y.invalid_return_type:n="Invalid function return type";break;case y.invalid_date:n="Invalid date";break;case y.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:g.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case y.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case y.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case y.custom:n="Invalid input";break;case y.invalid_intersection_types:n="Intersection results could not be merged";break;case y.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case y.not_finite:n="Number must be finite";break;default:n=t.defaultError,g.assertNever(e)}return{message:n}};let k=w;function _(){return k}const S=e=>{const{data:t,path:n,errorMaps:i,issueData:r}=e,a=[...n,...r.path||[]],s={...r,path:a};if(void 0!==r.message)return{...r,path:a,message:r.message};let o="";const l=i.filter((e=>!!e)).slice().reverse();for(const e of l)o=e(s,{data:t,defaultError:o}).message;return{...r,path:a,message:o}};function j(e,t){const n=_(),i=S({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===w?void 0:w].filter((e=>!!e))});e.common.issues.push(i)}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 n=[];for(const i of t){if("aborted"===i.status)return C;"dirty"===i.status&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,i=await e.value;n.push({key:t,value:i})}return x.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const i of t){const{key:t,value:r}=i;if("aborted"===t.status)return C;if("aborted"===r.status)return C;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"===t.value||void 0===r.value&&!i.alwaysSet||(n[t.value]=r.value)}return{status:e.value,value:n}}}const 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,E=e=>"undefined"!=typeof Promise&&e instanceof Promise;function F(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function P(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!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"===i?r.call(e,n):r?r.value=n:t.set(e,n),n}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,n,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const 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:n,required_error:i,description:r}=e;if(t&&(n||i))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(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:i)&&void 0!==a?a:r.defaultError}:"invalid_type"!==t.code?{message:r.defaultError}:{message:null!==(s=null!=o?o:n)&&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(E(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const i={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:b(e)},r=this._parseSync({data:e,path:i.path,parent:i});return Z(i,r)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:b(e)},i=this._parse({data:e,path:n.path,parent:n}),r=await(E(i)?i:Promise.resolve(i));return Z(n,r)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,i)=>{const r=e(t),a=()=>i.addIssue({code:y.custom,...n(t)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then((e=>!!e||(a(),!1))):!!r||(a(),!1)}))}refinement(e,t){return this._refinement(((n,i)=>!!e(n)||(i.addIssue("function"==typeof t?t(n,i):t),!1)))}_refinement(e){return new 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 ne(e){let t=`${X}T${te(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}class ie 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 n;for(const a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(n=this._getOrReturnCtx(e,n),j(n,{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&&(n=this._getOrReturnCtx(e,n),j(n,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const i=e.data.length>a.value,r=e.data.length<a.value;(i||r)&&(n=this._getOrReturnCtx(e,n),i?j(n,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):r&&j(n,{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)||(n=this._getOrReturnCtx(e,n),j(n,{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)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"emoji",code:y.invalid_string,message:a.message}),t.dirty());else if("uuid"===a.kind)V.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"uuid",code:y.invalid_string,message:a.message}),t.dirty());else if("nanoid"===a.kind)z.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"nanoid",code:y.invalid_string,message:a.message}),t.dirty());else if("cuid"===a.kind)W.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"cuid",code:y.invalid_string,message:a.message}),t.dirty());else if("cuid2"===a.kind)B.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"cuid2",code:y.invalid_string,message:a.message}),t.dirty());else if("ulid"===a.kind)$.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"ulid",code:y.invalid_string,message:a.message}),t.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(i){n=this._getOrReturnCtx(e,n),j(n,{validation:"url",code:y.invalid_string,message:a.message}),t.dirty()}else"regex"===a.kind?(a.regex.lastIndex=0,a.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{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)||(n=this._getOrReturnCtx(e,n),j(n,{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)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):"endsWith"===a.kind?e.data.endsWith(a.value)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):"datetime"===a.kind?ne(a).test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:"datetime",message:a.message}),t.dirty()):"date"===a.kind?ee.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:"date",message:a.message}),t.dirty()):"time"===a.kind?new RegExp(`^${te(a)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:"time",message:a.message}),t.dirty()):"duration"===a.kind?G.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"duration",code:y.invalid_string,message:a.message}),t.dirty()):"ip"===a.kind?(i=e.data,("v4"!==(r=a.version)&&r||!K.test(i))&&("v6"!==r&&r||!H.test(i))&&(n=this._getOrReturnCtx(e,n),j(n,{validation:"ip",code:y.invalid_string,message:a.message}),t.dirty())):"base64"===a.kind?Y.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"base64",code:y.invalid_string,message:a.message}),t.dirty()):g.assertNever(a);var i,r;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:y.invalid_string,...I.errToObj(n)})}_addCheck(e){return new ie({...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,n;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!==(n=null==e?void 0:e.local)&&void 0!==n&&n,...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 ie({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ie({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ie({...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 n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i;return parseInt(e.toFixed(r).replace(".",""))%parseInt(t.toFixed(r).replace(".",""))/Math.pow(10,r)}ie.create=e=>{var t;return new ie({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 n=new x;for(const i of this._def.checks)"int"===i.kind?g.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),j(t,{code:y.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"multipleOf"===i.kind?0!==re(e.data,i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_finite,message:i.message}),n.dirty()):g.assertNever(i);return{status:n.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,n,i){return new ae({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:I.toString(i)}]})}_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 n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}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 n=new x;for(const i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):g.assertNever(i);return{status:n.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,n,i){return new se({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:I.toString(i)}]})}_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 n;for(const i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(n=this._getOrReturnCtx(e,n),j(n,{code:y.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),t.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(n=this._getOrReturnCtx(e,n),j(n,{code:y.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),t.dirty()):g.assertNever(i);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:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==f.array)return j(t,{code:y.invalid_type,expected:f.array,received:t.parsedType}),C;if(null!==i.exactLength){const e=t.data.length>i.exactLength.value,r=t.data.length<i.exactLength.value;(e||r)&&(j(t,{code:e?y.too_big:y.too_small,minimum:r?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(j(t,{code:y.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(j(t,{code:y.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>i.type._parseAsync(new N(t,e,t.path,n))))).then((e=>x.mergeArray(n,e)));const r=[...t.data].map(((e,n)=>i.type._parseSync(new N(t,e,t.path,n))));return x.mergeArray(n,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 n in e.shape){const i=e.shape[n];t[n]=Me.create(be(i))}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:n}=this._processInputParams(e),{shape:i,keys:r}=this._getCached(),a=[];if(!(this._def.catchall instanceof ge&&"strip"===this._def.unknownKeys))for(const e in n.data)r.includes(e)||a.push(e);const s=[];for(const e of r){const t=i[e],r=n.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new N(n,r,n.path,e)),alwaysSet:e in n.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:n.data[e]}});else if("strict"===e)a.length>0&&(j(n,{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 i=n.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new N(n,i,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of s){const n=await t.key,i=await t.value;e.push({key:n,value:i,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,n)=>{var i,r,a,s;const o=null!==(a=null===(r=(i=this._def).errorMap)||void 0===r?void 0:r.call(i,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=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((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new ye({...this._def,shape:()=>t})}omit(e){const t={};return g.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new ye({...this._def,shape:()=>t})}deepPartial(){return be(this)}partial(e){const t={};return g.objectKeys(this.shape).forEach((n=>{const i=this.shape[n];e&&!e[n]?t[n]=i:t[n]=i.optional()})),new ye({...this._def,shape:()=>t})}required(e){const t={};return g.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Me;)e=e._def.innerType;t[n]=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),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map((e=>new v(e.ctx.common.issues)));return j(t,{code:y.invalid_union,unionErrors:n}),C}));{let e;const i=[];for(const r of n){const n={...t,common:{...t.common,issues:[]},parent:null},a=r._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&i.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const r=i.map((e=>new 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 Ee?e.options:e instanceof Fe?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 n=this.discriminator,i=t.data[n],r=this.optionsMap.get(i);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):(j(t,{code:y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),C)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const i=new Map;for(const n of t){const t=we(n.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(i.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);i.set(r,n)}}return new ke({typeName:Ge.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...q(n)})}}function _e(e,t){const n=b(e),i=b(t);if(e===t)return{valid:!0,data:e};if(n===f.object&&i===f.object){const n=g.objectKeys(t),i=g.objectKeys(e).filter((e=>-1!==n.indexOf(e))),r={...e,...t};for(const n of i){const i=_e(e[n],t[n]);if(!i.valid)return{valid:!1};r[n]=i.data}return{valid:!0,data:r}}if(n===f.array&&i===f.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let i=0;i<e.length;i++){const r=_e(e[i],t[i]);if(!r.valid)return{valid:!1};n.push(r.data)}return{valid:!0,data:n}}return n===f.date&&i===f.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Se extends U{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=(e,i)=>{if(O(e)||O(i))return C;const r=_e(e.value,i.value);return r.valid?((L(e)||L(i))&&t.dirty(),{status:t.value,value:r.data}):(j(n,{code:y.invalid_intersection_types}),C)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>i(e,t))):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Se.create=(e,t,n)=>new Se({left:e,right:t,typeName:Ge.ZodIntersection,...q(n)});class je extends U{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.array)return j(n,{code:y.invalid_type,expected:f.array,received:n.parsedType}),C;if(n.data.length<this._def.items.length)return j(n,{code:y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),C;!this._def.rest&&n.data.length>this._def.items.length&&(j(n,{code:y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const i=[...n.data].map(((e,t)=>{const i=this._def.items[t]||this._def.rest;return i?i._parse(new N(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(i).then((e=>x.mergeArray(t,e))):x.mergeArray(t,i)}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:n}=this._processInputParams(e);if(n.parsedType!==f.object)return j(n,{code:y.invalid_type,expected:f.object,received:n.parsedType}),C;const i=[],r=this._def.keyType,a=this._def.valueType;for(const e in n.data)i.push({key:r._parse(new N(n,e,n.path,e)),value:a._parse(new N(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?x.mergeObjectAsync(t,i):x.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return new xe(t instanceof U?{keyType:e,valueType:t,typeName:Ge.ZodRecord,...q(n)}:{keyType:ie.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:n}=this._processInputParams(e);if(n.parsedType!==f.map)return j(n,{code:y.invalid_type,expected:f.map,received:n.parsedType}),C;const i=this._def.keyType,r=this._def.valueType,a=[...n.data.entries()].map((([e,t],a)=>({key:i._parse(new N(n,e,n.path,[a,"key"])),value:r._parse(new N(n,t,n.path,[a,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const i=await n.key,r=await n.value;if("aborted"===i.status||"aborted"===r.status)return C;"dirty"!==i.status&&"dirty"!==r.status||t.dirty(),e.set(i.value,r.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const i=n.key,r=n.value;if("aborted"===i.status||"aborted"===r.status)return C;"dirty"!==i.status&&"dirty"!==r.status||t.dirty(),e.set(i.value,r.value)}return{status:t.value,value:e}}}}Ce.create=(e,t,n)=>new Ce({valueType:t,keyType:e,typeName:Ge.ZodMap,...q(n)});class Te extends U{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.set)return j(n,{code:y.invalid_type,expected:f.set,received:n.parsedType}),C;const i=this._def;null!==i.minSize&&n.data.size<i.minSize.value&&(j(n,{code:y.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&n.data.size>i.maxSize.value&&(j(n,{code:y.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());const r=this._def.valueType;function a(e){const n=new Set;for(const i of e){if("aborted"===i.status)return C;"dirty"===i.status&&t.dirty(),n.add(i.value)}return{status:t.value,value:n}}const s=[...n.data.values()].map(((e,t)=>r._parse(new N(n,e,n.path,t))));return n.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 n(e,n){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),w].filter((e=>!!e)),issueData:{code:y.invalid_arguments,argumentsError:n}})}function i(e,n){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),w].filter((e=>!!e)),issueData:{code:y.invalid_return_type,returnTypeError:n}})}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(n(t,e)),s})),l=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(l,r).catch((e=>{throw s.addIssue(i(l,e)),s}))}))}{const e=this;return A((function(...t){const s=e._def.args.safeParse(t,r);if(!s.success)throw new v([n(t,s.error)]);const o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,r);if(!l.success)throw new v([i(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,n){return new Ae({args:e||je.create([]).rest(me.create()),returns:t||me.create(),typeName:Ge.ZodFunction,...q(n)})}}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 Ee({values:e,typeName:Ge.ZodEnum,...q(t)})}Le.create=(e,t)=>new Le({value:e,typeName:Ge.ZodLiteral,...q(t)});class Ee extends U{constructor(){super(...arguments),M.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return j(t,{expected:g.joinValues(n),received:t.parsedType,code:y.invalid_type}),C}if(F(this,M,"f")||P(this,M,new Set(this._def.values),"f"),!F(this,M,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return j(t,{received:t.data,code:y.invalid_enum_value,options:n}),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 Ee.create(e,{...this._def,...t})}exclude(e,t=this._def){return Ee.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}M=new WeakMap,Ee.create=Re;class Fe extends U{constructor(){super(...arguments),D.set(this,void 0)}_parse(e){const t=g.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==f.string&&n.parsedType!==f.number){const e=g.objectValues(t);return j(n,{expected:g.joinValues(e),received:n.parsedType,code:y.invalid_type}),C}if(F(this,D,"f")||P(this,D,new Set(g.getValidEnumValues(this._def.values)),"f"),!F(this,D,"f").has(e.data)){const e=g.objectValues(t);return j(n,{received:n.data,code:y.invalid_enum_value,options:e}),C}return A(e.data)}get enum(){return this._def.values}}D=new WeakMap,Fe.create=(e,t)=>new Fe({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 n=t.parsedType===f.promise?t.data:Promise.resolve(t.data);return A(n.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:n}=this._processInputParams(e),i=this._def.effect||null,r={addIssue:e=>{j(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===i.type){const e=i.transform(n.data,r);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return C;const i=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===i.status?C:"dirty"===i.status||"dirty"===t.value?T(i.value):i}));{if("aborted"===t.value)return C;const i=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===i.status?C:"dirty"===i.status||"dirty"===t.value?T(i.value):i}}if("refinement"===i.type){const e=e=>{const t=i.refinement(e,r);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===i.status?C:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?C:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===i.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!R(e))return e;const a=i.transform(e.value,r);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>R(e)?Promise.resolve(i.transform(e.value,r)).then((e=>({status:t.value,value:e}))):e))}g.assertNever(i)}}Ie.create=(e,t,n)=>new Ie({schema:e,typeName:Ge.ZodEffects,effect:t,...q(n)}),Ie.createWithPreprocess=(e,t,n)=>new Ie({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...q(n)});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 n=t.data;return t.parsedType===f.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,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),n={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return E(i)?i.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new v(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new v(n.common.issues)},input:n.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),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Be extends U{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),T(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new Be({in:e,out:t,typeName:Ge.ZodPipeline})}}class $e extends U{_parse(e){const t=this._def.innerType._parse(e),n=e=>(R(e)&&(e.value=Object.freeze(e.value)),e);return E(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function Ve(e,t={},n){return e?pe.create().superRefine(((i,r)=>{var a,s;if(!e(i)){const e="function"==typeof t?t(i):"string"==typeof t?{message:t}:t,o=null===(s=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===s||s,l="string"==typeof e?{message:e}:e;r.addIssue({code:"custom",...l,fatal:o})}})):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=ie.create,Qe=ae.create,Ke=qe.create,He=se.create,Ye=oe.create,Xe=le.create,et=ce.create,tt=ue.create,nt=de.create,it=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=Ee.create,kt=Fe.create,_t=Pe.create,St=Ie.create,jt=Me.create,xt=De.create,Ct=Ie.createWithPreprocess,Tt=Be.create,At={string:e=>ie.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:E,get util(){return g},get objectUtil(){return h},ZodParsedType:f,getParsedType:b,ZodType:U,datetimeRegex:ne,ZodString:ie,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:Ee,ZodNativeEnum:Fe,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:it,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:nt,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()])}),Et=(e,t)=>(t?Rt.passthrough():Rt).safeParse(e).success,Ft=Lt.object({uri:Lt.string().regex(new RegExp("[a-zA-Z]+/[0-9]+"))}),Pt=(e,t)=>(t?Ft.passthrough():Ft).safeParse(e).success;function It(e){if(Pt(e,!0))return e.uri;if(Et(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 n;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 i=0===(null===(n=e.uri)||void 0===n?void 0:n.indexOf("icons/"))?e.uri:"icons"===e.type?e.type+"/"+e.recordId:It(e);return`/${Mt(e)}${Zt(e,t)}/`+i+`.${qt(e)}${Nt(e)}`}Rt.partial().or(Ft.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 n=Jt(e);return null!==(t=zt(n))&&void 0!==t?t:"application/octet-stream"},Kt=e=>e?(new Date(e).getTime()/1e3).toFixed(0):void 0,Ht=(e,t="fitx80")=>{const n=rn(e),i=Kt(e.dateModified);switch(n){default:return;case"video":return`/media/${e.id}.mp4?stream=true`+(i?`&_=${i}`:"");case"audio":return`/media/${e.id}.mp3`+(i?`?_=${i}`:"");case"gif":return Wt({timestamp:i,size:t,from:"imagecache",uri:e.uri,format:"gif"});case"image":return Wt({timestamp:i,size:t,from:"imagecache",uri:e.uri})}},Yt=e=>{const t=Jt(e);return void 0!==t?en(zt(t)):"application"},Xt=e=>-1!==["image/vnd","image/svg","image/heic"].findIndex((t=>e.startsWith(t)));function en(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 tn=(e,t,n="rr")=>"ng"===n?`/ng/file/${e}/${t}`:`/ng/rr/file/${e}/${t}`,nn=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?Qt(e.title):e.mimetype,rn=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?Yt(e.title):en(e.mimetype);function an(e){return e.startsWith("tag_")||"tags"===e}function sn(e){return Object.fromEntries(Object.entries(e).filter((([e])=>an(e))))}function on(e,t,n){return Object.fromEntries(Object.entries(e).filter((([e])=>an(e))).map((([e,i])=>{const r=Array.isArray(i)?i.map((e=>"object"==typeof e&&e&&t in e?e[t]:e)):i;return[e,n&&Array.isArray(r)?n(r):r]})))}function ln(e){return on(e,"uri")}const cn=e=>{var t;let n={};"_errors"in e&&(n._errors=e._errors),"_options"in e&&(n._options=e._options),"title"in e&&(n.title=e.title),"description"in e&&(n.description=e.description),"activity"in e&&(n.activity=e.activity),"image"in e&&(n.image=e.image),"uri"in e&&(n.uri=e.uri),"type"in e&&(n.type=e.type),"edito"in e&&(n.edito=e.edito),"category"in e&&(n.category=e.category.toString()),"commentLevel"in e&&(n.commentLevel=e.commentLevel),"_options"in e&&(null===(t=e._options)||void 0===t?void 0:t.custom_widgets)&&(n.custom_widgets=Array.isArray(e._options.custom_widgets)?{}:e._options.custom_widgets),"displayType"in e&&(n.displayType=e.displayType),"language"in e&&(n.language=e.language),"edit_access"in e&&(n.edit_access=e.edit_access),"lock_mail"in e&&(n.lock_mail=e.lock_mail),"fileSyncEnabled"in e&&(n.fileSyncEnabled=e.fileSyncEnabled),"fileSyncVersioningType"in e&&(n.fileSyncVersioningType=e.fileSyncVersioningType),"fileBankQuota"in e&&(n.fileBankQuota=e.fileBankQuota),"idCommunity"in e&&(n.idCommunity=e.idCommunity),"lastRssExecution"in e&&(n.lastRssExecution=e.lastRssExecution),"mail_comment"in e&&(n.mail_comment=e.mail_comment),"mail_frequency"in e&&(n.mail_frequency=e.mail_frequency),"mail_spotit"in e&&(n.mail_spotit=e.mail_spotit),"mail_subscriber"in e&&(n.mail_subscriber=e.mail_subscriber),"notifyFolder"in e&&(n.notifyFolder=e.notifyFolder),"nounsubscribe"in e&&(n.nounsubscribe=e.nounsubscribe),"privacy"in e&&(n.privacy=e.privacy),"publishFolder"in e&&(n.publishFolder=e.publishFolder),"rss_access"in e&&(n.rss_access=e.rss_access),"rss_feed"in e&&(n.rss_feed=e.rss_feed&&Array.isArray(e.rss_feed)?JSON.stringify(e.rss_feed.map((e=>{var{_user:t}=e,n=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["_user"]);return Object.assign(Object.assign({},n),{idUser:null==t?void 0:t.id})}))):"[]"),"rss_key"in e&&(n.rss_key=e.rss_key),"spot_right_user"in e&&(n.spot_right_user=e.spot_right_user),"spotBanner"in e&&(n.spotBanner=e.spotBanner),"spotDefaultPublishType"in e&&(n.spotDefaultPublishType=e.spotDefaultPublishType),"user_level_signup"in e&&(n.user_level_signup=e.user_level_signup),"useTeaser"in e&&(n.useTeaser=e.useTeaser),"widgets"in e&&(n.widgets=e.widgets);const i=sn(e);if(n=Object.assign(Object.assign({},n),i),un(e,n))return n;throw new Error},un=(e,t)=>{const n=["id","mainType","dateCreation","dateModified","_url","o2apLinksSources"],i=["custom_widgets"],r=Object.keys(e),a=Object.keys(t),s=r.filter((e=>!a.includes(e)&&!n.includes(e))),o=a.filter((e=>!r.includes(e)&&!i.includes(e))),l=[...s.map((e=>"- "+e)),...o.map((e=>"+ "+e))];if(s.length>0||o.length>0)throw new Error(`prepareGroupForUpdate :: Wrong group mapping | Diff : ${JSON.stringify(l)}`);return!0};var dn=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class pn{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 dn(this,void 0,void 0,(function*(){const n=yield this.window.getBackendUrl();let i;try{i=new URL(`/${this.action}/${e}/${t}`,n).href}catch(r){i=`${n}/${this.action}/${e}/${t}`}return i}))}getHostname(){return dn(this,void 0,void 0,(function*(){const e=(yield this.window.getBackendUrl()).split("//");return e.length>1?e[1]:e[0]}))}fetch(e,t){var{o:n,f:i}=e,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["o","f"]);return dn(this,void 0,void 0,(function*(){void 0===t&&(t=null);const e=yield this.getUrl(n,i);return this.window.fetch(e,Object.assign(Object.assign({},pn._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 dn(this,void 0,void 0,(function*(){const t=yield this.getUrl("file","create");if(e.append("format","raw-little"),!e.has("token")){const{result:t}=yield this.token();e.append("token",t)}const n=e.get("token");return n&&"string"==typeof n?this.window.fetch(t,{method:"POST",credentials:"same-origin",body:e}).then((e=>e.json())).then((e=>({response:e,token:n}))):Promise.reject("Missing token")}))}postCSRF(e,t){return this.tokenCSRF().then((n=>this.post(Object.assign(e,{tokenCSRF:n.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 mn=Array.isArray,gn=Object.keys,hn=Object.prototype.hasOwnProperty;function fn(e,t,n){const i=null==n?void 0:n.map((e=>e.split(".")));if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const r=mn(e),a=mn(t);let s,o,l;if(r&&a){if(o=e.length,o!==t.length)return!1;for(s=o;0!=s--;)if(!fn(e[s],t[s],n))return!1;return!0}if(r!==a)return!1;const c=e instanceof Date,u=t instanceof Date;if(c!==u)return!1;if(c&&u)return e.getTime()===t.getTime();const d=e instanceof RegExp,p=t instanceof RegExp;if(d!==p)return!1;if(d&&p)return e.toString()===t.toString();const m=gn(e).filter((e=>!(null==i?void 0:i.some((t=>1===t.length&&t[0]===e)))));if(o=m.length,o!==gn(t).filter((e=>!(null==i?void 0:i.some((t=>1===t.length&&t[0]===e))))).length)return!1;for(s=o;0!=s--;)if(!hn.call(t,m[s]))return!1;for(s=o;0!=s--;)if(l=m[s],!("_owner"===l&&e.$$typeof||fn(e[l],t[l],null==i?void 0:i.filter((e=>e.length>1&&e[0]===l)).map((e=>e.splice(1).join("."))))))return!1;return!0}return e!=e&&t!=t}function bn(e,t){if(Array.isArray(e))return e.map((e=>bn(e,t)));if("object"==typeof e&&null!==e){let n={};return Object.keys(e).forEach((i=>{n=Object.assign(Object.assign({},n),{[i]:i&&t.includes(i)?typeof e[i]:bn(e[i],t)})})),n}return e}const yn=(e,t)=>Array.isArray(t)&&t.length?[e,...t].join(","):e,vn=Lt.object({href:Lt.string(),target:Lt.string()}),wn=Lt.object({name:Lt.string(),sort:Lt.union([Lt.literal("ASC"),Lt.literal("DESC")])}),kn=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()})]),_n=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")]),Sn=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")]),jn=Lt.object({name:Lt.string(),value:kn,operator:_n.optional(),method:Sn.optional(),or:Lt.boolean().optional(),isNull:Lt.boolean().optional(),isNotNull:Lt.boolean().optional()}),xn=wn.array(),Cn=Lt.array(jn),Tn=e=>e.and(Lt.object({token:Lt.string().or(Lt.undefined()).optional()}));var An;!function(e){e.LITTLE="raw-little",e.LIST="raw-list",e.VIEW="raw-view",e.USER_API="user-api",e.MOBILE="mobile"}(An||(An={}));const On=Lt.nativeEnum(An).transform((e=>`${e}`)),Ln=Lt.union([On,Lt.undefined()]),Rn=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")])),En=Lt.object({additionalFilter:Lt.object({}).optional(),facets:Lt.array(Lt.object({})).optional(),filters:Cn.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:xn.optional(),format:Ln.optional()}),Fn=e=>Lt.object(e),Pn=Fn({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),dateCreation:Lt.string().optional(),dateModified:Lt.string().nullable().optional()}),In=Pn.extend({title:Lt.string(),_url:Lt.string()}),Mn=e=>In.safeParse(e).success,Dn=Lt.object({type:Lt.literal("text")}),Nn=Lt.string(),Zn=Lt.object({type:Lt.literal("textarea"),params:Lt.object({class:Lt.literal("mceEditor"),mention:Lt.literal("1")}).optional()}),qn=Lt.string().nullable(),Un=Lt.object({type:Lt.literal("number")}),Wn=Lt.number(),Bn=Lt.object({type:Lt.literal("color"),options:Lt.object({colors:Lt.string(),defaultColor:Lt.string()})}),$n=Lt.object({type:Lt.literal("date"),format:Lt.string()}),Vn=Lt.string().nullable(),zn=Lt.object({type:Lt.literal("datetime")}),Gn=Lt.string().nullable(),Jn=Lt.object({type:Lt.literal("datePicker")}),Qn=Lt.string().nullable(),Kn=Lt.number(),Hn=Lt.object({type:Lt.literal("audience"),options:Lt.object({disableEveryoneAudience:Lt.boolean().optional()}).optional()}),Yn=Lt.object({type:Lt.literal("link")}),Xn=Lt.object({type:Lt.literal("multiattribute")}),ei=Lt.object({type:Lt.literal("file")}),ti=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()}),ni=Lt.object({type:Lt.literal("embed")}),ii=Lt.object({type:Lt.literal("email")}),ri=Lt.string(),ai=Lt.object({type:Lt.literal("url"),params:Lt.object({target:Lt.literal("_blank").optional()})}),si=Lt.string(),oi=Lt.object({type:Lt.literal("place"),options:Lt.record(Lt.string())}),li=Lt.object({type:Lt.literal("refUser")}),ci=Lt.object({type:Lt.literal("transient")}),ui=Lt.object({type:Lt.literal("radio"),options:Lt.record(Lt.string())}),di=Lt.object({type:Lt.literal("checkbox"),options:Lt.record(Lt.string())}),pi=Lt.object({type:Lt.literal("taxonomy"),params:Lt.object({idTaxonomy:Lt.string(),type:Lt.string().optional(),limit:Lt.number().optional()})}),mi=Lt.object({type:Lt.literal("tel")}),gi=Lt.object({type:Lt.literal("toggle")}),hi=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())})}),fi=Lt.object({type:Lt.literal("uri"),params:Lt.object({class:Lt.string(),"jcomplete-url":Lt.string(),type:Lt.string()})}),bi=Lt.union([Dn,Zn,Un,$n,zn,Jn,ti,ni,ii,ai,li,ui,di,hi,pi,fi,ci,Xn,mi,gi,oi,Bn,Yn,ei,Hn]),yi=Lt.union([Kn,Qn,Gn,Vn,ri,Wn,qn,Nn,si]),vi={ADMIN:9,USER:5,EXTERNAL:3,GUEST:0},wi=Pn.extend({title:Lt.string(),_url:Lt.string(),level:Lt.nativeEnum(vi),dateCreation:Lt.string(),dateModified:Lt.string()}).catchall(yi),ki=wi.extend({active:Lt.number()}),_i=e=>ki.safeParse(e).success,Si=ki,ji=e=>Si.safeParse(e).success,xi=Lt.object({idInType:Lt.number(),lat:Lt.number(),lng:Lt.number()}),Ci=e=>xi.safeParse(e).success,Ti=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()}),Ai=Ti.required().extend({level:Lt.string(),image:Lt.string().optional(),businessManagementManager:wi.array().optional(),businessNetworkingUserToCompanySrc:wi.array().optional()}),Oi=Lt.object({user_field_edit_profil:Lt.record(Ti.keyof(),Lt.number()),user_field_editable:Lt.record(Ti.keyof(),Lt.number()),user_field_my_page:Lt.record(Ti.keyof(),Lt.number()),user_page_mandatory_fields:Lt.object({firstname:Lt.enum(["0","1"]),lastname:Lt.enum(["0","1"]),pseudo:Lt.enum(["0","1"])})}),Li=Lt.object({name:Lt.string(),value:Lt.union([Lt.string(),Lt.record(Lt.string(),Lt.any())])}),Ri=Lt.enum(["popover"]),Ei=Lt.object({values:Ai,mobileEditableFields:Ai.keyof().array()}),Fi=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()}),Pi=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()}),Ii=e=>Pi.safeParse(e).success,Mi=Fn({create:Lt.boolean(),read:Lt.boolean(),publish:Lt.boolean(),administrate:Lt.boolean(),update:Lt.boolean(),delete:Lt.boolean(),comment:Lt.boolean(),member:Lt.boolean()}),Di=e=>Mi.safeParse(e).success,Ni=Lt.object({attrName:Lt.string(),token:Lt.string(),file:Lt.instanceof(File).nullable().optional(),url:Lt.string().optional()}),Zi=Lt.object({width:Lt.number(),height:Lt.number()}),qi=Lt.object({x:Lt.number(),y:Lt.number(),w:Lt.number(),h:Lt.number(),rotation:Lt.number(),killSize:Lt.boolean().optional()}),Ui=In.extend({dateCreation:Lt.string(),dateModified:Lt.string().nullable(),mimetype:Lt.string(),path:Lt.string().optional(),size:Lt.number()}),Wi=e=>Ui.parse(e),Bi=Ui.extend({_extend:Lt.object({crop:qi})}),$i=Lt.object({name:Lt.string(),filename:Lt.string(),dateModified:Lt.string(),mimetype:Lt.string()}),Vi=Lt.object({idUser:Lt.string(),dateDownload:Lt.string(),Pseudo:Lt.string(),type:Lt.string()});var zi;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"}(zi||(zi={}));const Gi=Lt.nativeEnum(zi),Ji=Lt.object({title:Lt.string(),widget:Lt.object({name:Gi,uniqid:Lt.string(),content:Lt.unknown()})}).catchall(Lt.unknown()),Qi=Lt.enum(["left","right","center","justify"]),Ki=Lt.enum(["top","bottom","center","left","right"]),Hi=Lt.enum(["auto","contain","cover"]),Yi=Lt.enum(["sm","md","lg"]),Xi=Lt.enum(["contained","outlined"]),er=Lt.enum(["link","anchor","popup"]),tr=Lt.object({x:Lt.number(),y:Lt.number()}),nr=Lt.enum(["default","vertical"]),ir=(e,t,n)=>{const i=t.safeParse(e);return!1===i.success&&n&&console.error(i.error.message),i.success},rr=(e,t)=>t.safeParse(e).success,ar=Fn({files:Ui.array().optional(),fileDisplay:Lt.enum(["list","gallery"]).optional()}),sr=Fn({name:Lt.literal(zi.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:Ji.array()}),ur=Fn({text:Lt.string().optional(),color:Lt.string().optional(),backgroundColor:Lt.string().optional(),borderRadius:Lt.string().optional(),fontSize:Lt.string().optional(),buttonSize:Yi.optional(),variant:Xi.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=Fn({name:Lt.literal(zi.ArticleButton),uniqid:Lt.string(),content:dr}),mr=Fn({gap:Lt.string().optional(),column:Lt.string().optional(),files:Ui.array().optional()}),gr=Fn({name:Lt.literal(zi.ArticleGallery),uniqid:Lt.string(),content:mr}),hr=Fn({file:Ui.optional(),useFilter:Lt.boolean().optional()}),fr=Fn({name:Lt.literal(zi.ArticleImage),uniqid:Lt.string(),content:hr}),br=Fn({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:Ui.optional()}),yr=Fn({slides:br.array().optional(),maxWidth:Lt.number().optional(),loop:Lt.boolean().optional(),useDots:Lt.boolean().optional(),startAt:Lt.number().optional()}),vr=Fn({name:Lt.literal(zi.ArticleSlider),uniqid:Lt.string(),content:yr}),wr=Fn({text:Lt.string().optional(),color:Lt.string().optional(),fontSize:Lt.string().optional(),lineHeight:Lt.string().optional(),linkColor:Lt.string().optional()}),kr=Fn({name:Lt.literal(zi.ArticleText),uniqid:Lt.string(),content:wr}),_r=Fn({text:Lt.string().optional(),textAlign:Qi.optional(),heading:Lt.string().optional(),color:Lt.string().optional(),backgroundColor:Lt.string().optional()}),Sr=Fn({name:Lt.literal(zi.ArticleTitle),uniqid:Lt.string(),content:_r}),jr=Fn({title:Lt.string(),value:Lt.boolean().optional(),links:vn.array().optional(),id:Lt.number().optional(),file:Ui.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:Ji.array().optional(),edit:Lt.boolean().optional()}),Cr=Fn({name:Lt.literal(zi.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()}),Er=Lt.object({type:Lt.literal("select"),options:Rr.array()}),Fr=Lt.object({type:Lt.literal("date")}),Pr=Lt.union([Lr,Er,Fr,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=Fn({name:Lt.literal(zi.DatasourceTable),uniqid:Lt.string(),content:qr}),Wr=qr.extend({uri:Lt.string().optional()}),Br=Fn({name:Lt.literal(zi.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=Fn({name:Lt.literal(zi.Presence),uniqid:Lt.string(),content:Vr}),Jr=e=>ir(e,Gr),Qr=Lt.object({id:Lt.number(),type:Lt.string(),uniqid:Lt.string(),value:Lt.number()}),Kr=e=>ir(e,Qr),Hr=Lt.object({userValue:Lt.number(),userAvailableList:wi.array(),userUnavailableList:wi.array(),userAvailableTotal:Lt.number(),userUnavailableTotal:Lt.number()}),Yr=e=>ir(e,Hr),Xr=Lt.object({data:wi.array(),cnt:Lt.number(),page:Lt.number(),limit:Lt.number()}),ea=Fn({title:Lt.string(),id:Lt.number().optional(),mimetype:Lt.string().optional(),file:Ui.optional()}),ta=Lt.object({arr:ea.array().optional(),css:Lt.record(Lt.string(),Lt.string()).optional(),widgets:Ji.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()}),na=Fn({name:Lt.literal(zi.QuickSurvey),uniqid:Lt.string(),content:ta}),ia=Lt.array(Lt.object({userList:wi.array(),counter:Lt.number()})),ra=Lt.object({totalRespondent:Lt.number(),totalResponse:Lt.number(),userLoggedResponses:Lt.string().array(),userResponses:ia}),aa=Lt.object({data:wi.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(na)]),oa=Fn({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({[zi.ArticleButton]:pr,[zi.ArticleGallery]:gr,[zi.ArticleTitle]:Sr,[zi.ArticleText]:kr,[zi.ArticleImage]:fr,[zi.ArticleAttachment]:sr,[zi.ArticleSlider]:vr,[zi.CheckList]:Cr,[zi.DatasourceTable]:Ur,[zi.ExcelDatasourceTable]:Br,[zi.Presence]:Gr,[zi.QuickSurvey]:na}),ua=Lt.object({[zi.ArticleButton]:dr,[zi.ArticleGallery]:mr,[zi.ArticleTitle]:_r,[zi.ArticleText]:wr,[zi.ArticleImage]:hr,[zi.ArticleAttachment]:ar,[zi.ArticleSlider]:yr,[zi.CheckList]:xr,[zi.DatasourceTable]:qr,[zi.ExcelDatasourceTable]:Wr,[zi.Presence]:Vr,[zi.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:wi}),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:Mi,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:wi.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=In.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()}),Ea=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:Ln.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:xn.optional(),filters:Cn.or(Lt.undefined()).optional()}),Pa=e=>fa.safeParse(e).success,Ia=In.extend({description:Lt.string().optional().nullable(),_user:wi,_right:Mi}),Ma=e=>Ia.safeParse(e).success,Da=In.extend({type:Lt.enum(["folder","rootFolder"]),folderColor:Lt.string().optional()}),Na=Lt.union([wi,Oa,Da]),Za=In.extend({dateCreation:Lt.string(),dateModified:Lt.string()}),qa=Za.extend({description:Lt.string().nullable().optional(),_user:wi,_right:Mi,_audience:Na.array(),image:Zi.optional(),articleWidgets:oa.array().optional()}),Ua=qa,Wa=Ua.extend({_attachedFiles:Ui.array()}),Ba=Wa.extend({processContext:Lt.null(),_transientCtx:Lt.null(),uiObjectLink:In.array().optional()}),$a=e=>Wa.extend({idDraft:Lt.number(),form:e}),Va=Lt.object({type:Lt.string().optional(),format:Ln.optional(),formatExtend:Rn.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:xn.optional(),filters:Cn.optional(),public:Lt.boolean().optional()}),za=Lt.object({uri:Lt.string().optional(),idArticle:Lt.number().optional(),format:Ln.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=e=>es.safeParse(e).success,ns=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=>ns.safeParse(e).success,rs=Pn.extend({srcId:Lt.number(),srcType:Lt.string(),targetId:Lt.number(),targetType:Lt.string().nullable()}),as=e=>rs.extend({value:Lt.string().nullable(),_src:e.optional(),_target:e.optional().or(Lt.undefined())}),ss=e=>as(null!=e?e:In.or(wi)).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")}),os=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:In).optional(),_target:(null!=e?e:In).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 ls;!function(e){e.RAW_LIST="raw-list",e.LIST="list"}(ls||(ls={}));const cs=Lt.object({targetId:Lt.number(),targetType:Lt.string(),format:Lt.nativeEnum(ls).transform((e=>`${e}`)).optional()}),us=Lt.object({[ls.RAW_LIST]:ss(),[ls.LIST]:os()}),ds=Lt.object({bookmarkLabel:ss(In).shape.bookmarkLabel,bookmarkMeta:ss(In).shape.bookmarkMeta,bookmarkUrl:ss(In).shape.bookmarkUrl}),ps=Lt.object({countActiveUsersWithoutLicense:Lt.number().optional(),countLicensesAssigned:Lt.number(),countLicensesNotAssigned:Lt.number()}),ms=Lt.object({name:Lt.string(),operator:Lt.string(),value:Lt.number()}),gs=Lt.record(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=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()}),bs=ki.extend({_extend:Lt.object({licenses:Lt.array(fs)})}),ys=En.extend({data:bs.array()}),vs=Lt.object({uri:Lt.string(),title:Lt.string(),price:Lt.number(),image:Lt.string(),license:Lt.boolean()}),ws=Lt.object({url:Lt.string()}),ks=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()}),_s=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(ks).optional()}),Ss=Lt.array(_s),js=Lt.union([Lt.literal("Christmas"),Lt.literal("Halloween"),Lt.literal("Celebration"),Lt.literal("Olympics"),Lt.literal("Maythefourth"),Lt.literal("Spring"),Lt.literal("MusicFestival"),Lt.literal("EasterEggs"),Lt.literal("CustomAnimation")]),xs=Lt.object({name:js,activeClickEffect:Lt.number(),activeDecor:Lt.number(),auto:Lt.boolean(),audience:Lt.array(Lt.string())}),Cs=Lt.object({date:Lt.string(),number:Lt.number()}),Ts=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(Cs),animAudience:Lt.array(Lt.string())}),As=Lt.union([Lt.literal("created"),Lt.literal("validated"),Lt.literal("handled")]),Os=Wa.extend({aseiClearanceTicketValidator:wi.array(),aseiClearanceTicketHandler:In.array(),aseiClearanceTicketApplicationManagers:In.array(),aseiClearanceTicketInstitution:In.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:wi.array(),aseiClearanceTicketTypeOfWorkContract:Lt.string(),aseiClearanceTicketTypeOfWorkContractSpecify:Lt.string(),aseiClearanceTicketPosition:Lt.string(),aseiClearanceTicketStatus:As}),Ls=Za.extend({_right:Mi,_user:wi,aseiInstitutionValidator:In.array(),processContext:Lt.null()}),Rs=Lt.object({dsi:Lt.string(),gestionnaireApplicatif:Lt.string(),createurDemande:Lt.string()}),Es=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()}),Ps=Ua.extend({_isColorDark:Lt.boolean().nullable(),assetPlannerBackgroundColor:Lt.string().nullable()}),Is=Ps.extend({assetBanner:Lt.record(Lt.object({id:Lt.string(),name:Lt.string(),size:Lt.string()}))}),Ms=Ua.extend({dateStart:Lt.string(),dateEnd:Lt.string(),reservationCancelled:Lt.boolean(),_asset:Ps}),Ds=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()}),Ns=Ds.extend({title:Lt.string()}),Zs=Ns.extend({Pseudo:Lt.string(),_url:Lt.string()}),qs=Ns.extend({idspot:Lt.string()}),Us=Lt.union([Ns,Zs,qs]),Ws=In.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(In)}),Bs=Lt.object({token:Lt.string(),fullname:Lt.string()}),$s=Lt.object({redirectUrl:Lt.string()}),Vs=Lt.object({token:Lt.string()}),zs=Lt.object({dateStart:Lt.string(),title:Lt.string()}),Gs=Za.extend({type:Lt.literal("businessContactCard")}),Js=Ua.and(Gs.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()}))),Qs=Lt.object({idArticle:Lt.number(),title:Lt.string(),start:Lt.string(),end:Lt.string(),url:Lt.string(),textColor:Lt.string().optional(),color:Lt.string().optional(),bgColor:Lt.string().optional(),backgroundColor:Lt.string().optional(),subscribe:Lt.boolean()}),Ks=e=>Qs.safeParse(e).success,Hs=Lt.object({maxdate:Lt.string().optional(),subscribers:wi.array(),subscribersTotal:Lt.number()}),Ys=Lt.literal("read"),Xs=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()})}),eo=Pn.omit({dateModified:!0}).extend({dateCreation:Lt.string(),dateModified:Lt.string().nullable(),description:Lt.string().nullable(),_user:wi}),to=eo.extend({_right:Mi,_attachedFiles:Lt.array(Ui).optional(),_actions:Lt.record(Xs).optional(),_widgets:Lt.array(oa).optional()}),no=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()}),io=Lt.union([Lt.literal("groups"),Lt.literal("sites"),Lt.literal("onedrive"),Lt.literal("group"),Lt.literal("documents"),Lt.literal("me")]),ro=Fn({title:Lt.string(),id:Lt.string(),type:Lt.string()}),ao=ro.omit({id:!0}).extend({name:io.optional()}),so=ro.and(Lt.object({})),oo=ro.extend({visibility:Lt.union([Lt.literal("public"),Lt.literal("private")]).optional()}),lo=ro.extend({mimetype:Lt.string().optional(),webUrl:Lt.string().optional(),size:Lt.number().optional()}),co=lo,uo=lo.extend({_extend:Lt.object({path:Lt.string()})}),po=oo.and(lo),mo=Lt.object({id:Lt.string(),title:Lt.string(),mail:Lt.string(),default:Lt.boolean().optional()}),go=Lt.object({title:Lt.string(),id:Lt.string(),type:Lt.string(),mimetype:Lt.string().optional(),webUrl:Lt.string().optional()}),ho=Lt.object({msTenant:Lt.union([io,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()}),fo=Lt.object({path_lower:Lt.string(),query:Lt.string().optional().nullable()}),bo=Lt.object({id:Lt.number(),name:Lt.string(),type:Lt.string(),token:Lt.string(),size:Lt.number(),mediaKey:Lt.string()}),yo=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:lo})}),vo=Lt.object({id:Lt.string(),service:Lt.string()}),wo=Lt.object({service:Lt.string(),id:Lt.string()}),ko=Lt.object({account:mo}),_o=Lt.object({service:Lt.string(),account:Lt.string()}),So=Lt.object({allow:Lt.union([Lt.literal("groups"),Lt.literal("me")]).array().optional(),id:Lt.string()}),jo=Lt.object({id:Lt.string(),documentParams:ho}),xo=Lt.object({id:Lt.string(),documentParams:fo}),Co=Lt.object({query:Lt.string().optional(),filter:Lt.string().optional(),id:Lt.string()}),To=Ua.extend({faqColor:Lt.string().optional(),image:Zi.optional(),type:Lt.literal("faq")}),Ao=Wa.and(To).and(Lt.object({_audience:Us.array(),tags:Ns.array().optional(),isWeb:Lt.boolean(),faqContent:Lt.array(Lt.object({title:Lt.string(),id:Lt.string().optional(),items:Lt.array(Lt.string())})).optional()})),Oo=e=>e.and(Lt.object({_extend:Lt.object({itemsCount:Lt.number()})})),Lo=Ua.extend({type:Lt.literal("faqItem"),hierarchy:Lt.object({category:Lt.string().optional(),theme:Lt.string().optional()})}),Ro=Lo.omit({hierarchy:!0}).extend({faqResponse:Lt.string(),tags:Ns.array().optional(),uriCategory:Za.array(),themeId:Lt.string(),_nbAttachedFiles:Lt.number().optional(),_attachedFiles:Ui.array(),uiObjectLink:Lt.unknown()}),Eo=Tn(Ga.omit({idSpot:!0})).and(Lt.object({image:Zi.nullable().optional(),tags:Lt.string().optional(),faqColor:Lt.string().optional(),isWeb:Lt.boolean().optional(),type:Lt.literal("faq")})),Fo=Eo.and(Lt.object({uri:Lt.string(),format:Ln.optional()})),Po=Lt.object({title:Lt.string(),id:Lt.string()}),Io=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()}),Mo=Lt.object({createCategory:Lt.boolean()}),Do=Lt.object({idCategory:Lt.number(),title:Lt.string()}),No=Lt.object({idCategory:Lt.number(),indexTheme:Lt.number(),deleteEntries:Lt.boolean().optional()}),Zo=Lt.object({idCategory:Lt.number(),indexTheme:Lt.number(),title:Lt.string()}),qo=Tn(Ga).and(Lt.object({tags:Lt.string().optional(),faqResponse:Lt.string().optional(),type:Lt.literal("faqItem")})),Uo=Lt.object({idEntry:Lt.number(),idCategory:Lt.number(),theme:Lt.number()}),Wo=qo.and(Lt.object({uri:Lt.string()})),Bo=Lt.object({entryURI:Lt.string(),sourceURI:Lt.string().optional(),targetURI:Lt.string(),theme:Lt.number()}),$o=Lt.object({sourceUri:Lt.string(),targetUri:Lt.string(),themeIndex:Lt.number()}),Vo=e=>Lt.object({isActive:Lt.boolean()}).and(e),zo=Lt.enum(["drive_microsoft_graph","drive_dropbox","drive_google"]),Go=Vo(Lt.object({drives:Lt.record(zo,Lt.boolean())})),Jo=Vo(Lt.object({label:Lt.string()})),Qo=Vo(Lt.object({orderBy:Lt.string(),order:Lt.enum(["ASC","DESC"])})),Ko=Lt.object({label:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),color:Lt.string()}),Ho=Vo(Lt.object({hasLicense:Lt.boolean(),label:Lt.string(),description:Lt.string(),color:Lt.string(),templates:Ko.array()})),Yo=Vo(Lt.object({hasLicense:Lt.boolean()})),Xo=Vo(Lt.object({sendAlert:Lt.boolean()})),el=Vo(Lt.object({})),tl=Vo(Lt.object({create:Lt.boolean(),autorize:Lt.array(Lt.enum(["message","comment","board","article"]).optional())})),nl=Vo(Lt.object({label:Lt.string(),hasLicense:Lt.boolean()})),il=Lt.object({MagicPadHook:nl}).partial(),rl=Lt.object({DriveHook:Go,calendarHook:Jo,FileBankHook:Qo,StudioHook:Yo,OnlyOfficeHook:Ho,spotRssFeed:el,WidgetHook:tl,AdminAdvancedHook:Xo}).partial().and(il),al=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")]),sl=Lt.object({text:Lt.string()}),ol=Lt.object({idLog:Lt.number(),slug:Lt.string(),dateCreation:Lt.string(),map:Lt.string(),mail:Lt.string(),action:Lt.string(),mode:Lt.string()}),ll=Lt.object({mail:Lt.string(),cnt:Lt.string()}),cl=Lt.string(),ul=Lt.string(),dl=Za.extend({jlandMapFlavor:cl,jlandMapKind:ul,waMapUrl:Lt.string().optional(),limit:Lt.number().optional(),_extend:Lt.object({licenses:Lt.array(fs)})}),pl=Ga.extend({jlandMapAggregated:Lt.string(),type:Lt.literal("jlandmap")}),ml=Lt.object({jlandMapKind:Lt.string(),jlandMapFlavor:Lt.string(),limit:Lt.number().nullable(),waMapUrl:Lt.string().nullable()}),gl=Za.and(ml),hl=Ua.and(ml),fl=Wa.and(ml),bl=Lt.object({kind:Lt.string(),page:Lt.number(),limit:Lt.number(),filters:jn.array().optional(),orders:wn.array().optional()}),yl=e=>Lt.object({license:Lt.union([Lt.literal("1"),Lt.literal("0")]),user:e}),vl=Za.extend({attachment:Ui,description:Lt.string()}),wl=Ua.extend({description:Lt.string(),attachment:Ui,_audience:Us.array()}),kl=Lt.object({format:Ln,page:Lt.number().optional(),limit:Lt.number().optional(),nolimit:Lt.boolean().optional()}),_l=Lt.object({id:Lt.number(),idFolder:Lt.number().optional(),fileName:Lt.string(),nbViews:Lt.number(),nbDistinctViews:Lt.number(),nbDownloads:Lt.number()}),Sl=Lt.object({id:Lt.number(),folderName:Lt.string(),nb:Lt.number(),nbDistinct:Lt.number()}),jl=Lt.object({nbFolders:Lt.number(),nbFiles:Lt.number()}),xl=Lt.object({uriFile:Lt.string(),uriFolder:Lt.string()}),Cl=es.extend({}),Tl=e=>Cl.safeParse(e).success,Al=Wa.and(Cl).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()})),Ol={all:0,admin:1,custom:2},Ll=Lt.object({uri:Lt.string(),title:Lt.string(),type:Lt.string(),mainType:Lt.string()}),Rl=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()})}),El=Wa.and(Rl).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()})),Fl=Lt.object({idQuestion:Lt.number(),idResponse:Lt.number()}),Pl=Lt.object({idQuestion:Lt.number()}),Il=Ua.extend({quizzDescription:Lt.string().nullable(),quizzClosingDate:Lt.string().nullable(),dateStart:Lt.string().nullable(),dateEnd:Lt.string().nullable()}),Ml=Wa.and(Il).and(Lt.object({quizzInvitation:Lt.null(),quizzFormSpec:Lt.string(),quizzRandom:Lt.null(),quizzHideResponses:Lt.null(),quizzStatus:Lt.null(),quizzPublicationDate:Lt.string().nullable()})),Dl=Lt.object({count:Lt.number(),id:Lt.string()}),Nl=Lt.union([Lt.literal("AND"),Lt.literal("OR")]),Zl=Lt.object({facetType:Lt.string(),facetOptions:Lt.union([Lt.record(Lt.union([Lt.object({}).passthrough(),Lt.number(),Lt.string()])),Lt.array(Lt.never())]),facetMode:Nl.optional(),field:Lt.string(),title:Lt.string(),description:Lt.string().optional(),category:Lt.string().optional()}),ql=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:Zl.array()}),Ul=Lt.object({count:Lt.number(),value:Lt.string(),title:Lt.string()}),Wl=Lt.object({name:Lt.string(),count:Lt.number(),values:Ul.array(),title:Lt.string()}),Bl=Lt.object({field:Lt.string(),value:Lt.union([Lt.string(),Lt.array(Lt.string())]),exclude:Lt.boolean().optional(),or:Lt.boolean().optional()}),$l=Lt.object({field:Lt.string(),order:Lt.union([Lt.literal("desc"),Lt.literal("asc")])}),Vl=Lt.object({facetLimit:Lt.number(),skipEmptyFacets:Lt.boolean()}),zl=Lt.object({home:Lt.object({mode:Lt.union([Lt.literal("result"),Lt.literal("category")]),facets:Zl.array()}),categories:ql.array(),viewcard:Lt.record(Lt.array(Lt.object({name:Lt.string(),title:Lt.string()}))),facetMode:Lt.boolean()}),Gl=Lt.object({name:Lt.string(),title:Lt.string(),img:Lt.string(),icon:Lt.string().optional(),color:Lt.string().optional(),urlTarget:Lt.enum(["_blank"]).optional(),urlNoReferrer:Lt.boolean().optional(),_url:Lt.string()}),Jl=Lt.object({id:Lt.number().optional(),title:Lt.string(),picture:Lt.string().optional(),uri:Lt.string(),mainType:Lt.string(),type:Lt.string().optional(),icon:Lt.string().optional(),_cssColor:Lt.string().optional(),_cssClass:Lt.string().optional(),_url:Lt.string().optional(),idArticle:Lt.number().optional(),_user:Lt.object({title:Lt.string()}).optional(),_values:Lt.object({privacy:Lt.number().optional(),category:Lt.string().optional(),dateCreation:Lt.string(),dateModified:Lt.string()}).optional()}),Ql=Lt.object({keywords:Lt.string().optional(),category:Lt.string().optional(),facetCategories:Lt.boolean().optional(),filters:Bl.array().optional(),facets:Zl.array().optional(),page:Lt.number().optional(),limit:Lt.number().optional(),sort:$l.optional(),options:Vl.optional(),format:Ln.optional()}),Kl=e=>Lt.object({start:Lt.number(),count:Lt.number(),results:Lt.array(null!=e?e:In),facets:Wl.array(),categories:Dl.array()}),Hl=Lt.object({keywords:Lt.string()}),Yl=Lt.union([Gl,Jl]),Xl=Lt.object({title:Lt.string(),id:Lt.string(),showAll:Lt.boolean().optional(),results:Yl.array()}),ec=Lt.union([Lt.literal("link"),Lt.literal("invitation")]),tc=Lt.object({id:Lt.number(),title:Lt.string(),uri:Lt.string(),idUser:Lt.number(),_right:Mi}),nc=Lt.object({audience:Lt.array(Na),read:Lt.array(Lt.string()),write:Lt.array(Lt.string())}),ic=Lt.object({id:Lt.number(),type:Lt.string(),uri:Lt.string(),title:Lt.string(),generalAccessRule:ec,generalAccessHash:Lt.string().nullable(),idUser:Lt.number(),_audience:Lt.array(Na),_right:Mi}),rc=Lt.object({targetId:Lt.number(),targetType:Lt.string(),type:Lt.string()}),ac=Lt.object({targetId:Lt.number(),targetType:Lt.string(),type:Lt.string()}),sc=Ua.extend({supportStatus:Lt.union([Lt.number(),Lt.string()]).nullable(),supportType:Lt.union([Lt.number(),Lt.string()]).nullable(),supportOwner:Lt.array(wi)}),oc=Wa.and(sc).and(Lt.object({})),lc=Ua.extend({dates:Lt.array(Lt.string()),dateStart:Lt.string().nullable(),dateEnd:Lt.string()}),cc=Wa.and(lc).and(Lt.object({surveyObjectLink:Lt.array(Za)})),uc=Lt.union([Lt.literal("DYNAMIC"),Lt.literal("SLIDESHOW")]),dc=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()})}),pc=dc(Lt.literal("DYNAMIC")).extend({tvChannelNumImages:Lt.literal(0)}),mc=dc(Lt.literal("SLIDESHOW")),gc=Za.readonly(),hc=Ua.and(pc).readonly(),fc=Ua.and(mc).readonly(),bc=Ua.and(pc).readonly().or(mc),yc=hc.or(fc),vc=Ga.and(pc.partial().or(mc.partial())).and(Lt.object({tvChannelType:uc})).readonly(),wc=Lt.object({tvChannelGroupTarget:Lt.array(Lt.string()).optional(),tvChannelNumImages:Lt.never().optional()}),kc=to.extend({_extend:Lt.object({userImageSecureUrl:Lt.string(),descriptionSecure:Lt.string()})}).readonly(),_c=Ua.extend({_extend:Lt.object({imageSecureUrl:Lt.string().optional(),descriptionSecure:Lt.string(),comments:Lt.array(kc)}).optional()}).readonly(),Sc=Ui.extend({_extend:Lt.object({imageSecureUrl:Lt.string().optional()})}),jc=hc.and(Lt.object({_extend:Lt.object({imageSecureUrl:Lt.string().optional(),articles:Lt.array(_c).optional()})})),xc=e=>jc.safeParse(e).success,Cc=fc.and(Lt.object({_extend:Lt.object({attachments:Lt.array(Sc).optional()})})),Tc=e=>Cc.safeParse(e).success,Ac=jc.or(Cc),Oc=Lt.object({interval:Lt.number(),channel:Ac}),Lc=Lt.object({cache_suffix:Lt.string(),toolbar:Lt.string(),language:Lt.string(),content_css:Lt.string(),quickbars_selection_toolbar:Lt.string()}),Rc=Lc.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(),license_key:Lt.literal("gpl")}),Ec=Lt.object({commentsToolbar:Lt.string()}),Fc="accept",Pc="deny",Ic=Lt.union([Lt.literal(Fc),Lt.literal(Pc)]),Mc=Lt.object({color:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),label:Lt.string()}),Dc=Pn.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:Mc,parentId:Lt.number(),parentType:Lt.string(),parentFiles:Lt.array(Lt.number()),_url:Lt.string()}),_audience:Lt.array(In),_right:Mi,_user:wi}),Nc=In,Zc=Lt.object({color:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),label:Lt.string()}),qc=Lt.object({page:Lt.number(),cnt:Lt.number(),limit:Lt.number(),data:Lt.array(Dc)}),Uc=Lt.object({query:Lt.string(),filters:Cn,orders:xn,page:Lt.number(),limit:Lt.number()}),Wc=Lt.object({}),Bc=Lt.object({label:Lt.string(),description:Lt.string(),name:Gi,img:Lt.string(),available:Lt.boolean(),panel:Lt.object({useWrapper:Lt.boolean(),useEditor:Lt.boolean(),useWidgets:Lt.boolean()})}),$c=e=>Bc.safeParse(e).success,Vc=e=>void 0!==e&&"type"in e&&"uri"in e,zc=Za.extend({articleWidgets:oa.array(),articleWidgetDisplayMode:nr.nullable().or(Lt.undefined())}),Gc=Lt.object({uniqid:Lt.string(),title:Lt.string(),locked:Lt.boolean(),visible:Lt.boolean(),widgets:oa.array(),position:tr.optional()}),Jc=Lt.enum(["edit","view","preview"]),Qc=Lt.object({width:Lt.number().or(Lt.undefined()).optional(),inplace:Lt.boolean(),isComponentVisible:Lt.boolean().optional(),mode:Jc,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())}),Kc=Lt.object({text:Lt.string(),value:Lt.boolean().optional(),links:vn.array().optional(),uri:Lt.string().optional(),mimetype:Lt.string().optional(),id:Lt.number().optional(),user:wi.optional()}),Hc=Lt.object({arr:Kc.array().optional(),edit:Lt.boolean().optional()}),Yc=Lt.object({name:Lt.literal("widget-check-list"),uniqid:Lt.string(),content:Hc,title:Lt.string()}),Xc=Lt.object({title:Lt.string().optional(),view:Lt.any().optional()}),eu=Lt.object({uniqid:Lt.string(),fn:Lt.enum(["widget-presence-response","check-list-response","widget-update","widget-quick-survey-response"]),object:In}),tu=Lt.object({token:Lt.string().or(Lt.undefined()).optional(),ids:Lt.record(Lt.string(),oa),layers:Lt.record(Lt.string(),Gc),states:Lt.record(Lt.string(),da),modal:Xc.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(),In.partial()),widgetObjectRights:Lt.record(Lt.string(),Mi),widgetAuthor:Lt.record(Lt.string(),wi.partial()),flushedWidgets:Lt.string().array(),rtObjectStack:eu.array()}),nu=Lt.object({widgets:tu}),iu=Ua.extend({articleWidgets:oa.array(),articleWidgetDisplayMode:nr.nullable().or(Lt.undefined()),articleWidgetsCover:Lt.number().or(Lt.undefined()),_audience:Us.array()}),ru=e=>oa.safeParse(e).success,au=e=>ir(e,sr),su=e=>ir(e,pr),ou=e=>ir(e,gr),lu=e=>ir(e,fr),cu=e=>ir(e,vr),uu=e=>ir(e,kr),du=e=>ir(e,Sr),pu=(e,t)=>ir(e,Cr,t),mu=e=>ir(e,Ur),gu=e=>ir(e,Br),hu=e=>ir(e,na);class fu extends n{list(e){var t,n;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"jamespotArticleQueryList"},e),{format:yn(null!==(t=e.format)&&void 0!==t?t:"raw-list",null!==(n=e.formatExtend)&&void 0!==n?n:[])}))}get(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"article",f:"get"},e),{format:yn(null!==(n=e.format)&&void 0!==n?n:"raw-view",null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}create(e,t){return this.network.maybePostToken(Object.assign({o:"article",f:"create",format:null!=t?t:"raw-list"},e))}update(e,t){var n;return this.network.post(Object.assign(Object.assign({format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-list"},e),{o:"article",f:"update"}))}delete(e){return this.network.postCSRF({o:"article",f:"delete",idArticle:e})}count(e){return this.network.post({o:"article",f:"count",type:e})}getAttachments(e,t,n){return this.network.post({o:"article",f:"getAttachment",idArticle:e,type:t,format:n})}permalink(e){return this.network.post({o:"article",f:"permalink",permalinkId:e})}saveAsDraft(e,t,n){return this.network.post({o:"article",f:"saveAsDraft",form:e,contentType:t,idDraft:n})}getComments(e,t){var n,i;return this.network.post(Object.assign(Object.assign({o:"article",f:"getComments"},e),{attachments:null!==(n=e.attachment)&&void 0!==n&&n,limits:null!==(i=e.limits)&&void 0!==i?i:{start:0,max:1e4},format:null!=t?t:"raw-little"}))}addComment(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"article",f:"addComment"},e),{alertAuthor:Number(e.alertAuthor),sendAlert:Number(e.sendAlert),type:null!==(n=e.type)&&void 0!==n?n:"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 bu=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class yu extends n{configuration(){return this.network.post({o:"assetReservation",f:"configuration"})}createReservation(e){return this.network.postCSRF(Object.assign({o:"assetReservation",f:"createReservation",format:"raw-list"},e))}getReservations(e){var{format:t="raw-list"}=e,n=bu(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"getReservations",format:t},n))}cancelReservation(e){return this.network.post({o:"assetReservation",f:"cancelReservation",format:"raw-list",idArticle:e})}bookByDate(e){var{format:t="raw-list"}=e,n=bu(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"BookByDate",format:t},n))}getList(e){var{format:t="raw-list"}=e,n=bu(e,["format"]);return this.network.post(Object.assign({o:"objectList",f:"assetReservationList",format:t},n))}}class vu extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"audience",q:e}).then((e=>{if(Array.isArray(e.result))return e.result;throw"Bad response from backend"}))}}class wu extends n{publicWebinarFullname(e){return this.network.post(Object.assign({o:"bigBlueButton",f:"publicWebinarFullname"},e))}getPublicWebinarData(e){return this.network.post(Object.assign({o:"bigBlueButton",f:"getPublicWebinarData"},e))}recordingDelete(e,t,n){return this.network.post({o:"bigBlueButton",f:"videoRecordingDelete",id:e,filename:t},null==n?void 0:n.signal)}}class ku extends n{getFormattedList(e,t){return this.network.post(Object.assign({o:"objectList",f:"bookmarksList",format:t},e))}addFormattedLink(e,t,n){const i=null!=n?n:"list";return this.network.post({o:"custom",f:"actionAdd",type:"bookmarkLink",targetId:e,targetType:t,format:i})}addBookmark(e,t){return this.network.postCSRF(Object.assign({o:"bookmarks",f:"add"},e))}delete(e){return this.network.postCSRF({o:"bookmarks",f:"delete",bookmarkID:e})}rename(e,t,n){return this.network.postCSRF({o:"bookmarks",f:"rename",bookmarkID:e,bookmarkLabel:t,bookmarkUrl:n})}move(e,t,n){return this.network.postCSRF({o:"bookmarks",f:"move",bookmarkID:e,bookmarkReference:t,bookmarkPosition:n})}}class _u extends n{getInfos(e,t){return this.network.post({o:"BusinessNetworking",f:"MarkerInfo",id:e,format:null!=t?t:"raw-little"})}}class Su extends n{get(e,t){return this.network.post({o:"community",f:"getCommunity",idCommunity:e,format:t||"raw-little"})}sendRequest(e,t){return this.network.post({o:"community",f:"sendRequest",message:e,idUserTo:t})}autocomplete(e){return this.network.post({o:"autocomplete",f:"community",q:e}).then((e=>e.result))}}class ju extends n{getEvents(e){return this.network.post(Object.assign({o:"calendar",f:"getEvents"},e))}getLastEvents(e){return this.network.post(Object.assign({o:"calendar",f:"getLastEvents"},e))}}class xu extends n{get(e,t){return this.network.post({o:"widget",f:"datasourceGet",uri:e,format:t})}getModel(e){return this.network.post({o:"widget",f:"datasourceGetModel",uri:e})}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:n,token:i}){return this.network.postCSRF({o:"widget",f:"datasourceCreate",title:e,datasourceType:t,datasourceIdentifier:n,token:i})}}class Cu extends n{create(e,t,n,i,r){return this.network.post({o:"article",f:"create",type:e,token:t,title:n,dateStart:i,publishTo:r})}getList(e="",t=[],n=[],i=1,r="raw-list"){return this.network.post({o:"objectList",f:"diapazoneQueryList",query:e,filters:t,orders:n,page:i,format:r})}}class Tu extends n{save(e,t){return this.network.postCSRF(Object.assign({o:"externalApp",f:"save"},e),null==t?void 0:t.signal)}list(e){return this.network.post({o:"externalApp",f:"list"},null==e?void 0:e.signal)}delete(e,t){return this.network.postCSRF(Object.assign({o:"externalApp",f:"delete"},e),null==t?void 0:t.signal)}}var Au=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class Ou extends n{upload(e){const t=new FormData;return t.append("attrName",e.attrName),e.file?t.append(e.attrName,e.file):e.url&&t.append("url",e.url),t.append("token",e.token),this.network.postFile(t)}uploadMany(e){return Au(this,void 0,void 0,(function*(){return Promise.all(e.map((e=>this.upload(e))))}))}get(e,t,n){return Au(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"get",idFile:e,format:t},null==n?void 0:n.signal)}))}getParent(e,t,n,i){return Au(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getParent",idFile:e,format:t,hash:n},null==i?void 0:i.signal)}))}getWithHash(e,t,n,i){return Au(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getWithHash",idFile:e,hash:t,format:n},null==i?void 0:i.signal)}))}duplicate(e,t,n){return Au(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"duplicateFile",idFile:e,title:t,publishTo:n})}))}updateFile(e,t){return Au(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"updateFile",idFile:e,title:t})}))}update(e,t,n,i){return Au(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"update",idFile:e,type:t,cropDatas:Object.assign(Object.assign({},n),{rotateBeforeCrop:!0}),killSize:n.killSize,format:"raw-little"},null==i?void 0:i.signal)}))}deleteFile(e,t,n,i){return Au(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"delete",idFile:e,attrName:t,token:n},i)}))}deleteImage(e,t,n){return Au(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"deleteImage",id:e,type:t},null==n?void 0:n.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 n;return this.network.post(Object.assign(Object.assign({o:"file",f:"copy"},e),{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"}),null==t?void 0:t.signal)}}class Lu extends n{getCategoriesList(e,t){return this.network.post({o:"objectList",f:"faqQueryList",format:null!=e?e:"raw-list",orders:null!=t?t:[{name:"dateCreation",sort:"ASC"}]})}createCategory(e,t){return this.jApi.article.create(Object.assign(Object.assign({},e),{type:"faq"}),null!=t?t:"raw-view")}updateCategory(e,t){return this.jApi.article.update(Object.assign(Object.assign({},e),{type:"faq",format:null!=t?t:"raw-view"}))}getCategory(e,t){return this.jApi.article.get({idArticle:e,format:null!=t?t:"raw-view"})}deleteCategory(e){return this.jApi.article.delete(e)}checkItem(e,t,n){return this.network.post({o:"faq",f:"checkItem",query:e,page:null!=t?t:1,format:null!=n?n:"raw-list"})}getTaxonomy(){return this.network.post({o:"faq",f:"getFaqTaxonomy"})}getHookProperties(e){return this.network.post({o:"faq",f:"getHookProperties",properties:null!=e?e:["_web"]})}getAccess(){return this.network.post({o:"faq",f:"access"})}createTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-theme"},e),{format:null!=t?t:"raw-view"}))}deleteTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"delete-theme"},e),{format:null!=t?t:"raw-view"}))}updateTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"set-theme"},e),{format:null!=t?t:"raw-view"}))}getEntry(e,t){return this.network.post({o:"faq",f:"get-entry",uri:e,format:null!=t?t:"raw-view"})}deleteEntry(e){return this.jApi.article.delete(e)}createEntry(e,t){return this.jApi.article.create(Object.assign(Object.assign({},e),{idSpot:["content"],type:"faqItem"}),null!=t?t:"raw-view")}addEntry(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-entry"},e),{format:null!=t?t:"raw-view"}))}updateEntry(e,t){return this.jApi.article.update(Object.assign(Object.assign({},e),{type:"faqItem",format:null!=t?t:"raw-view"}))}moveEntry(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-entry"},e),{format:null!=t?t:"raw-view"}))}moveTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-theme"},e),{format:null!=t?t:"raw-view"}))}}class Ru extends n{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 n,i;return this.network.post({o:"fileBank",f:"getPath",uri:e.uri,mode:null!==(n=e.mode)&&void 0!==n?n:"browse",format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little"},null==t?void 0:t.signal)}searchContent(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"fileBank",f:"searchContent"},e),{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"}),null==t?void 0:t.signal)}getParents(e,t){var n;return this.network.post({o:"fileBank",f:"getParents",id:e.id,format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"},null==t?void 0:t.signal)}}class Eu extends n{countAction(e,t){return this.network.post({o:"activityLog",f:"log",count:!0,verb:e,uri:t})}useWebVersion(){return this.network.post({o:"global",f:"useWebVersion"})}}class Fu extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"spot",q:e,idToUri:!1}).then((e=>e.result))}create(e,t){return this.network.post(Object.assign(Object.assign({o:"spot",f:"create"},e),{format:t}))}update(e,t){const{spotBanner:n}=e,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["spotBanner"]);return this.network.postCSRF(Object.assign(Object.assign({o:"spot",f:"update"},i),{format:t}))}getSpot(e,t){return this.network.post({o:"spot",f:"getSpot",idSpot:e,format:t})}getProperties(e){return this.network.post({o:"spot",f:"getProperties",idSpot:e})}getApplications(){return this.network.post({o:"spot",f:"get-available-widget"})}getCategories(){return this.network.post({o:"spot",f:"get-categories"})}getObjectListJamespotSpotMembers(e,t,n,i=1){return this.network.post({o:"objectListJamespot",f:"SpotMembers",idSpot:e,limit:n,page:i,format:"raw-little",query:t})}list(e){return this.network.post(Object.assign({o:"objectList",f:"jamespotSpotQueryList"},e))}resetNotifications(e){return this.network.post(Object.assign({o:"spot",f:"resetNotifications"},e))}getUserLevelAndRight(e){return this.network.post({o:"spot",f:"getUserLevelAndRight",idSpot:e})}groupRequest(e){return this.network.postCSRF({o:"spot",f:"request",idSpot:e})}groupAddToFavorite(e){return this.network.postCSRF({o:"spot",f:"addToFavorite",idSpot:e})}objectListSpotArticles(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"spotArticles"},e),{format:yn(null!==(n=e.format)&&void 0!==n?n:"raw-little",null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}}class Pu extends n{list(e,t,n,i=[{name:"dateCreation",sort:"DESC"}]){return this.jApi.article.list({type:"aseiClearanceTicket",format:"raw-view",limit:t,page:e,orders:i,filters:n})}requestStatus(e,t,n){return this.network.post({o:"asei",f:"setStatus",uri:e,requestedStatus:t,audience:n})}getDedicatedGroups(){return this.network.post({o:"asei",f:"getDedicatedGroups"})}getConfiguration(){return this.network.post({o:"asei",f:"configuration"})}}class Iu extends n{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,n){return this.network.post({o:"drive",f:"isAccountLogged",service:e,id:t},null==n?void 0:n.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 n;return this.network.post(Object.assign(Object.assign({o:"drive",f:"getDocument"},e),{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"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 Mu extends n{GetUnclassifiedFiles(e){var t;return this.network.post({o:"objectListMediaLibrary",f:"GetUnclassifiedFiles",format:e.format,page:null!==(t=e.page)&&void 0!==t?t:1,limit:e.limit,nolimit:e.nolimit})}getAccess(){return this.network.post({o:"mediaLibrary",f:"access"})}getFoldersStatsList(e=[],t=[],n=1){return this.network.post({o:"objectListMediaLibrary",f:"FoldersStatsList",filters:e,orders:t,page:n})}getFilesStatsList(e=[],t=[],n=1){return this.network.post({o:"objectListMediaLibrary",f:"FilesStatsList",filters:e,orders:t,page:n})}getStats(){return this.network.post({o:"mediaLibrary",f:"moderatorStats"})}readFolder(e){return this.network.post({o:"mediaLibrary",f:"readFolder",uri:e})}readFile(e){return this.network.post({o:"mediaLibrary",f:"readFile",uri:e})}moveFile(e){return this.network.post({format:"raw-list",uri:e.uriFile,mediaLibraryFolderOrientedLinks:e.uriFolder,o:"article",f:"update"})}}class Du extends n{getLogs({dateEnd:e,idLogMax:t}){return this.network.post({o:"jLand",f:"adminLogs",dateEnd:e,idLogMax:t})}getStats({map:e,dateStart:t,dateEnd:n}){return this.network.post({o:"jLand",f:"adminStats",map:e,dateStart:t,dateEnd:n})}getAllMapsAsAdmin(e="raw-list,licenses"){return this.network.post({o:"objectListJLand",f:"jLandList",format:e})}createMap(e,t="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},e),{o:"article",f:"create",format:t,type:"jlandmap"}))}}class Nu extends n{sendMessage(e,t){return this.network.post({o:"messenger",f:"newMessage",idDiscussion:t,msg:{description:e}})}getOrCreateDiscussion(e,t){const n=e<t?`${e}.${t}`:`${t}.${e}`;return this.network.post({o:"messenger",f:"getDiscussion",idDiscussion:n,type:"messengerUser",idUserTo:t})}}class Zu extends n{getConfig(){return this.network.post({o:"search",f:"getConfig"})}proposition({query:e,format:t},n){return this.network.post({o:"search",f:"proposition",query:e,format:t||"little"},n)}searchQuery(e,t){const{keywords:n,category:i,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:u}=e;return this.network.post({o:"search",f:"query",keywords:n,category:i,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:yn(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 qu=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class Uu extends n{list(){return this.network.post({o:"taxonomy",f:"list",format:"raw-little"}).then((e=>{if(Array.isArray(e.result))return e.result;throw"Bad response from backend"}))}create(e){var{format:t="raw-little"}=e,n=qu(e,["format"]);return this.network.post(Object.assign({o:"taxonomy",f:"create",format:t},n))}autocomplete(e,t){return this.network.post({o:"autocomplete",f:"taxonomy",q:t,idTaxonomy:e,idToUri:!1})}autocompleteList(e){var{format:t="autocomplete"}=e,n=qu(e,["format"]);return this.network.post(Object.assign({o:"objectListTaxonomy",f:"concept",format:t},n))}autocompleteHierarchy(e){return this.network.post(Object.assign({o:"objectListTaxonomyHierarchy",f:"concept"},e))}}class Wu extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"user",q:e,idToUri:!1}).then((e=>e.result))}get(e,t="little",n){return this.network.post({o:"user",f:"get",uri:e,format:t},n)}updateImage(e,t="raw-little"){return this.network.postCSRF({o:"user",f:"updateImage",idFile:e,format:t})}updateBanner(e,t="raw-little"){return this.network.postCSRF({o:"user",f:"updateBanner",idFile:e,format:t})}updateMail(e,t){return this.network.postCSRF({o:"user",f:"editMail",mail:e,password:t})}userUpdateProfile(e){return this.network.postCSRF(Object.assign({o:"user",f:"updateProfile"},e))}configuration(){return this.network.post({o:"userDirectory",f:"configuration"})}fieldsConfiguration(){return this.network.post({o:"user",f:"fieldsConfiguration"})}userList(e,t){return this.network.post(Object.assign(Object.assign({o:"objectList",f:"JamespotUserList"},e),{format:yn(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:yn(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 n;const i=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({},i),{type:"businessContactCard",publishTo:"networkPublic/1"});return this.jApi.article.create(r,null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little")}userUpdateBusinessContact(e,t){var n;const i=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({},i),{uri:e.uri,publishTo:"networkPublic/1"});return this.jApi.article.update(r,{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"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,n){return this.network.post({o:"user",f:"signIn",mail:e,password:t,format:null!=n?n:"raw-view"})}getFields(e,t){return this.network.post({o:"user",f:"getFields",idUser:e,fieldsType:t})}getSpots(e={},t){var{format:n="raw-little"}=e,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["format"]),r=(void 0===t?{}:t).signal;return this.network.post(Object.assign(Object.assign({o:"user",f:"getSpots"},i),{format:n}),r)}}class Bu extends n{getFiles(e){return this.network.post(Object.assign({o:"onlyOffice",f:"getFiles"},e))}getFile(e,t){return this.network.post({o:"onlyOffice",f:"getFile",idFile:e,hash:t})}getTemplates(e){return this.network.post({o:"onlyOffice",f:"getTemplates"},e)}deleteFile(e,t){return this.network.postCSRF({o:"onlyOffice",f:"deleteFile",idFile:e,withParent:t})}createFile(e,t,n){return this.network.postCSRF({o:"onlyOffice",f:"createFile",title:e,type:t,publishTo:n})}updateFile(e,t){return this.network.postCSRF({o:"onlyOffice",f:"updateFile",idFile:e,title:t})}createVersion(e){return this.network.post({o:"onlyOffice",f:"createVersion",idFile:e})}setAccessRequest(e,t,n,i){return this.network.postCSRF({o:"onlyOffice",f:"setAccessRequest",uri:e,idUser:t,requestAccessValue:n,requestResponseMessage:i})}getAccessRequest(e,t){return this.network.post({o:"onlyOffice",f:"getAccessRequest",format:"raw-little",uri:e,idUser:t})}askAccess(e,t,n){return this.network.postCSRF({o:"onlyOffice",f:"askAccess",uri:e,askAccess:t,askMessage:n})}}class $u extends n{createChannel(e,t="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},e),{o:"article",f:"create",format:t,type:"tvDisplayChannel"}))}getChannel(e){return this.network.post(Object.assign(Object.assign({},e),{o:"tvDisplay",f:"getChannel"}))}getConfigureChannel(e){return this.network.post(Object.assign(Object.assign({},e),{o:"tvDisplay",f:"getConfigureChannel"}))}}class Vu extends n{contentObjectLinks(e){return this.network.post({o:"shared",f:"contentObjectLinks",format:"raw-little",uri:e})}contentSetObjectAccessRule(e,t,n){return this.network.postCSRF({o:"shared",f:"contentSetObjectAccessRule",format:"raw-little",uri:e,rule:t,hash:n})}}var zu=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class Gu extends n{SaveAnimationConfiguration(e){return zu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"saveConfiguration",animation:e})}))}DeleteAnimation(){return zu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"deleteAnimation"})}))}GetCurrentAnimation(e){return zu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfiguration"},null==e?void 0:e.signal)}))}GetCurrentAnimationApp(){return zu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfigurationApp"})}))}ToggleAnimationActive(){return zu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"toggleAnimationActive"})}))}GetAnimationActive(e){return zu(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getAnimationActive"},null==e?void 0:e.signal)}))}GetAnimationStats(e){return zu(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStats",name:e})}))}GetAnimationStatsCurrent(e){return zu(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStatsCurrent",uri:e})}))}}class Ju extends n{GetStatus(){return e=this,t=void 0,i=function*(){return this.network.post({o:"accessibility",f:"getStatus"})},new((n=void 0)||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}));var e,t,n,i}}class Qu extends n{getObject(e){return this.network.post({o:"object",f:"getObject",uri:e})}setAccess(e,t,n,i){return this.network.post({o:"object",f:"setAccess",uri:e,access:t,message:n,generalAccessRule:i})}getAccess(e){return this.network.post({o:"object",f:"getAccess",uri:e})}getAccessHash(e){return this.network.post({o:"object",f:"getAccessHash",uri:e})}}class Ku extends n{getFileBanks(e){return this.network.post({o:"file-sync",f:"getFileBanks"},e)}saveFileBanks(e){return this.network.post({o:"file-sync",f:"saveFileBanks",fileBanks:e})}getUserQuota(e){return this.network.post({o:"file-sync",f:"getUserQuota"},e)}getAdminSpots(e,t){return this.network.post(Object.assign({o:"objectList",f:"fileSyncAdminSpots"},e),t)}}class Hu extends n{getUsers(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"getUsers"},e),{format:null!=t?t:"raw-list"}))}add(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"add"},e),{format:null!=t?t:"raw-little"}))}remove(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"remove"},e),{format:null!=t?t:"raw-little"}))}}class Yu extends n{textEnhancement({text:e,capacity:t}){return this.network.post({o:"jia",f:"textEnhancement",text:e,capacity:t})}}class Xu extends n{responseUserList(e,t,n){return this.network.post({o:"widget",f:"responseUserList",uri:e,uniqid:t,page:n})}removeWidget({id:e,type:t,uniqid:n}){return this.network.post({o:"widget",f:"removeWidget",id:e,type:t,uniqid:n})}updateWidget({id:e,uniqid:t,content:n,title:i,type:r,uri:a,v2:s=!1}){return this.network.post({o:"widget",f:"updateWidget",uri:a,id:e,uniqid:t,content:n,title:i,type:r,v2:s})}getWidget({uri:e,uniqid:t},n){return this.network.post({o:"widget",f:"getWidget",uri:e,uniqid:t},n)}checkListRespond({id:e,type:t,uri:n,idUser:i,uniqid:r,index:a}){return this.network.post({o:"widget",f:"checkListRespond",uri:n,id:e,type:t,uniqid:r,idUser:i,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:n,value:i,uniqid:r},a){return this.network.post({o:"widget",f:"presenceRespond",uri:n,id:e,type:t,value:i,uniqid:r},a)}presenceCancel({uri:e,uniqid:t},n){return this.network.postCSRF({o:"widget",f:"presenceCancel",uri:e,uniqid:t},n)}presenceGetResponse({uri:e,uniqid:t},n){return this.network.post({o:"widget",f:"presenceGetResponse",uri:e,uniqid:t},n)}quickSurveyGetResponse({uri:e,uniqid:t},n){return this.network.post({o:"widget",f:"quickSurveyGetResponse",uri:e,uniqid:t},n)}quickSurveyAddEnty({uri:e,uniqid:t,label:n},i){return this.network.postCSRF({o:"widget",f:"quickSurveyAddEntry",uri:e,label:n,uniqid:t},i)}quickSurveyRespond({id:e,type:t,uri:n,index:i,multi:r,uniqid:a},s){return this.network.postCSRF({o:"widget",f:"quickSurveyRespond",id:e,type:t,uri:n,index:i,multi:r,uniqid:a},s)}quickSurveyGetResponseUserList({uri:e,uniqid:t,index:n,page:i,limit:r},a){return this.network.post({o:"widget",f:"quickSurveyGetResponseUserList",uri:e,uniqid:t,index:n,page:i,limit:r},a)}presenceGetResponseUserList({uri:e,uniqid:t,index:n,page:i,limit:r},a){return this.network.post({o:"widget",f:"presenceGetResponseUserList",uri:e,uniqid:t,index:n,page:i,limit:r},a)}}class ed extends n{getThumbnailUrl(e){return this.network.post({o:"magicPad",f:"getThumbnailUrl",uri:e})}}class td extends n{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 nd extends n{recordingDelete(e,t,n){return this.network.post({o:"visioConnect",f:"videoRecordingDelete",id:e,filename:t},null==n?void 0:n.signal)}resolveUrl({uri:e},t){return this.network.post({o:"visioConnect",f:"resolveUrl",uri:e},t)}}var id=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class rd extends n{getConfiguration(e,t){return id(this,void 0,void 0,(function*(){return this.network.post(Object.assign({o:"module",f:"getConfiguration"},e),null==t?void 0:t.signal)}))}setConfiguration(e,t){return id(this,void 0,void 0,(function*(){return this.network.postCSRF(Object.assign({o:"module",f:"setConfiguration"},e),null==t?void 0:t.signal)}))}}class ad extends n{resolveUrl({id:e},t){return this.network.post({o:"jitsi",f:"resolveUrl",id:e},t)}}class sd{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 Ju(this),this.application=new o(this),this.article=new fu(this),this.asei=new Pu(this),this.assetReservation=new yu(this),this.audience=new vu(this),this.bbb=new wu(this),this.bookmark=new ku(this),this.businessNetworking=new _u(this),this.calendar=new ju(this),this.community=new Su(this),this.datasource=new xu(this),this.diapazone=new Cu(this),this.drive=new Iu(this),this.externalApp=new Tu(this),this.faq=new Lu(this),this.file=new Ou(this),this.filebank=new Ru(this),this.fileSync=new Ku(this),this.global=new Eu(this),this.group=new Fu(this),this.jia=new Yu(this),this.jitsi=new ad(this),this.jland=new Du(this),this.magicPad=new ed(this),this.mediaLibrary=new Mu(this),this.messenger=new Nu(this),this.module=new rd(this),this.object=new Qu(this),this.questionAnswer=new td(this),this.search=new Zu(this),this.share=new Vu(this),this.socialAction=new Hu(this),this.taxonomy=new Uu(this),this.tvDisplay=new $u(this),this.user=new Wu(this),this.visioConnect=new nd(this),this.wedoc=new Bu(this),this.widget=new Xu(this),this.animations=new Gu(this)}}class od{getBackendUrl(){return e=this,t=void 0,i=function*(){const e=window.location;return`${e.protocol}//${e.host}`},new((n=void 0)||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}));var e,t,n,i}fetch(e,t){return window.fetch(e,t)}}const ld=new pn(new od),cd=new sd(ld);window.JamespotUserApi=cd;const ud=cd,dd=sd;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:()=>Wc,ACCESS_REQUEST_DENY:()=>Bc,AdminLicenseApi:()=>r,AdminLogApi:()=>o,AdminStoreApi:()=>a,AdminUtilsApi:()=>s,BookmarkType:()=>cs,DateFormatSchema:()=>Ar,Format:()=>Ai,GroupModerateStatus:()=>ya,JApplicationApi:()=>l,JArticleApi:()=>xu,JAssetReservation:()=>Tu,JAudienceApi:()=>Au,JBaseApi:()=>i,JBbbApi:()=>Ou,JBookmarkApi:()=>Lu,JBusinessNetworkingApi:()=>Ru,JCalendarApi:()=>Fu,JCommunityApi:()=>Eu,JDatasourceApi:()=>Pu,JDiapazoneApi:()=>Iu,JExternalAppApi:()=>Mu,JFaqApi:()=>Zu,JFileApi:()=>Nu,JFilebankApi:()=>qu,JGlobalApi:()=>Uu,JGroupApi:()=>Wu,JIAApi:()=>od,JLandApi:()=>zu,JLandMapCreationSchema:()=>fl,JMessengerApi:()=>Gu,JModuleApi:()=>md,JObjectApi:()=>rd,JSearchApi:()=>Ju,JShareApi:()=>ed,JSocialActionApi:()=>sd,JTaxonomyApi:()=>Ku,JUserApi:()=>Hu,JWedocApi:()=>Yu,JWidgetApi:()=>ld,JamespotUserApi:()=>hd,JamespotUserApiInstance:()=>yd,JitsiApi:()=>gd,Network:()=>pi,NumberFormatSchema:()=>Or,StudioApplicationStatus:()=>n,TVDisplayApi:()=>Xu,UserLevel:()=>wn,WidgetPresenceResponseUserListSchema:()=>ea,WidgetQuickSurveyContentArrSchema:()=>ta,WidgetQuickSurveyResponseSchema:()=>aa,WidgetQuickSurveyResponseUserListSchema:()=>sa,WidgetsName:()=>Gn,WindowBrowser:()=>fd,accessRequestStatusValuesSchema:()=>$c,actionVerbSchema:()=>io,addCommentParamsSchema:()=>Ha,addFaqEntrySchema:()=>Vo,addRemoveActionParamsSchema:()=>cc,adminAppSchema:()=>Cs,adminAppTabSchema:()=>xs,adminAppsSchema:()=>Ts,adminLicenseStatsSchema:()=>ms,adminLicenseUserSchema:()=>vs,adminLicensesAssignedSchema:()=>fs,adminLicensesNotAssignedSchema:()=>hs,adminLogNavigationSchema:()=>ws,adminLogObjectSchema:()=>ks,adminLogSearchSchema:()=>_s,animationConfigurationTypeSchema:()=>Os,animationStatsRowSchema:()=>Ls,animationStatsSchema:()=>Rs,animationVariantSchema:()=>As,api:()=>wd,articleCreationSchema:()=>Ja,articleDisplayModeSchema:()=>nr,articleGetConfigSchema:()=>Ga,articleListConfigSchema:()=>za,aseiGroupsSchema:()=>Is,aseiInstitutionSchema:()=>Ps,aseiRightsSchema:()=>Ms,aseiTicketSchema:()=>Fs,aseiTicketStatusSchema:()=>Es,assetReservationConfigurationSchema:()=>Ds,audienceAutocompleteSchema:()=>Vs,audienceSchema:()=>Za,baseArticleSchema:()=>Qa,baseAutocompleteSchema:()=>Us,baseEntitySchema:()=>lo,bookableAssetListSchema:()=>Ns,bookableAssetViewSchema:()=>Zs,bookmarkCustomSchema:()=>ps,bookmarkLinkSchema:()=>us,bookmarkTypesSchema:()=>ds,businessContactSchema:()=>Pn,calendarEventsExtension:()=>to,calendarOldEventSchema:()=>Xs,categorySchema:()=>Oa,checkProperties:()=>ui,combineFormat:()=>yi,combinedWidgetContentSchema:()=>ca,combinedWidgetTypeSchema:()=>oa,communitySchema:()=>zs,createFaqCategorySchema:()=>Mo,createFaqEntrySchema:()=>$o,createFaqThemeSchema:()=>Uo,createGroupSchema:()=>ma,cssBackgroundPositionSchema:()=>Hn,cssBackgroundSizeSchema:()=>Yn,cssTextAlignTypeSchema:()=>Kn,deepEqual:()=>fi,default:()=>vd,deleteFaqThemeSchema:()=>Wo,documentEntitySchema:()=>mo,driveAccountSchema:()=>bo,driveGetAccountParamsSchema:()=>jo,driveGetAccountSchema:()=>xo,driveGetDocumentParamsSchema:()=>_o,driveGetGroupsParamsSchema:()=>Lo,driveGetTenantsParamsSchema:()=>To,driveItemTypeSchema:()=>yo,driveLogoutParamsSchema:()=>So,driveSetDefaultAccountParamsSchema:()=>Co,driveTmpFileSchema:()=>ko,dropboxDocumentEntitySchema:()=>ho,dropboxDocumentParamsSchema:()=>wo,dropboxGetDocumentsParamsSchema:()=>Oo,editFaqCategorySchema:()=>Do,editFaqEntrySchema:()=>zo,editFaqThemeSchema:()=>Bo,ensureIsCalendarOldEvent:()=>eo,ensureIsMeetingList:()=>Rl,ensureIsSocialEventList:()=>is,ensureIsViewEvent:()=>rs,ensureTVGetConfigureDynamicChannelResponse:()=>Oc,ensureTVGetConfigureSlideshowChannelResponse:()=>Rc,ensureWidgetArticleAttachmentType:()=>gu,ensureWidgetArticleButtonType:()=>hu,ensureWidgetArticleGalleryType:()=>fu,ensureWidgetArticleImageType:()=>bu,ensureWidgetArticleSliderType:()=>yu,ensureWidgetArticleTextType:()=>vu,ensureWidgetArticleTitleType:()=>wu,ensureWidgetCheckListType:()=>ku,ensureWidgetContent:()=>ar,ensureWidgetDatasourceTableType:()=>_u,ensureWidgetDefinitionProps:()=>Xc,ensureWidgetExcelDatasourceTableType:()=>Su,ensureWidgetObjectHasMinimumProperties:()=>eu,ensureWidgetPresenceContent:()=>Gr,ensureWidgetPresenceResponse:()=>Xr,ensureWidgetPresenceResponsePayload:()=>Hr,ensureWidgetPresenceType:()=>Qr,ensureWidgetQuickSurveyType:()=>ju,ensureWidgetType:()=>rr,ensureWidgetWrapperProps:()=>mu,extensions:()=>Vt,extractTaxonomiesFromObject:()=>si,extractTaxonomiesFromObjectAndMapProperty:()=>oi,extractTaxonomiesFromObjectAndMapUri:()=>li,facetModeSchema:()=>Wl,faqAccessSchema:()=>qo,faqHookPropertiesSchema:()=>Zo,faqItemListSchema:()=>Po,faqItemViewSchema:()=>Io,faqListSchema:()=>Ro,faqTaxonomySchema:()=>No,faqViewSchema:()=>Eo,fileCropConfigSchema:()=>Un,filterSchema:()=>ji,filterValueSchema:()=>ki,filtersSchema:()=>Ci,formatExtensionSchema:()=>Ri,formatImgUrl:()=>Bt,formatListSchema:()=>Li,getActionUsersParamsSchema:()=>lc,getArgs:()=>Zt,getCommentsParamsSchema:()=>Ka,getExtensionFromName:()=>Qt,getFileExtensionFromMimetype:()=>Jt,getFileFamily:()=>ti,getFileFamilyFromName:()=>Xt,getFormat:()=>Ut,getFrom:()=>Dt,getLicenseKindUsersParamsSchema:()=>kl,getMimetypeFromExtension:()=>Gt,getMimetypeFromName:()=>Kt,getSize:()=>qt,getTimestamp:()=>Nt,getUnclassifiedFilesParamsSchema:()=>xl,getUri:()=>Mt,getUrl:()=>Wt,groupCustomWidgetSchema:()=>Sa,groupListConfigSchema:()=>Pa,groupMemberLevelSchema:()=>fa,groupMemberSchema:()=>wa,groupModerateStatusSchema:()=>va,groupPropertiesOptionsSchema:()=>ja,groupPropertiesSchema:()=>Ca,groupUserLevelSchema:()=>ha,groupWidgetLittleSchema:()=>_a,groupWidgetSchema:()=>Aa,hookListTypeSchema:()=>ll,imageSizeSchema:()=>qn,inferBookmarkListSchema:()=>ls,inferBookmarkRawListSchema:()=>os,inferExtendedFaqCategory:()=>Fo,inferJInternalDraftView:()=>Va,inferJLinkListSchema:()=>ss,inferMaybeWithToken:()=>Ti,inferSearchQueryResultSchema:()=>ec,inferTVChannelCustomSchema:()=>hc,inferUserLicenseSchema:()=>_l,jAdminLicenseUserListSchema:()=>ys,jArticleExtendViewSchema:()=>$a,jArticleListSchema:()=>Wa,jArticleListShapeTmp:()=>Ua,jArticleLittleSchema:()=>qa,jArticleViewSchema:()=>Ba,jArticleWidgetLittle:()=>tu,jArticleWidgetViewSchema:()=>pu,jBusinessContactListSchema:()=>Ys,jBusinessContactLittleSchema:()=>Hs,jCommentListSchema:()=>ao,jCommentLittleSchema:()=>ro,jDiapazoneListSchema:()=>so,jEnsure:()=>d,jFileLittleCropSchema:()=>$n,jFileLittleSchema:()=>Wn,jFileRenditionSchema:()=>Vn,jFolderListSchema:()=>es,jFolderLittleSchema:()=>Na,jGroupListSchema:()=>Ra,jGroupLittleSchema:()=>La,jGroupViewSchema:()=>Ea,jHrefSchema:()=>vi,jIACapabilitiesSchema:()=>cl,jLandAdditionalPropsSchema:()=>bl,jLandLogSchema:()=>dl,jLandMapFlavorSchema:()=>ml,jLandMapKindSchema:()=>gl,jLandMapListSchema:()=>vl,jLandMapLittleSchema:()=>yl,jLandMapSchema:()=>hl,jLandMapViewSchema:()=>wl,jLandStatSchema:()=>pl,jLinkLittleSchema:()=>as,jMeetingListSchema:()=>Ll,jMeetingViewSchema:()=>El,jObjectAutocompleteSchema:()=>Ws,jObjectBaseSchema:()=>Pi,jObjectListSchema:()=>Ma,jObjectLittleSchema:()=>Ii,jPollSurveyListSchema:()=>Il,jPollSurveyViewSchema:()=>Ml,jQuizzListSchema:()=>Zl,jQuizzViewSchema:()=>ql,jSocialEventListSchema:()=>ts,jSocialEventViewSchema:()=>ns,jSpotAutocompleteSchema:()=>$s,jSupportListSchema:()=>uc,jSupportViewSchema:()=>dc,jSurveyDateListSchema:()=>pc,jSurveyDateViewSchema:()=>mc,jUserAutocompleteSchema:()=>Bs,jUserListSchema:()=>_n,jUserLittleSchema:()=>kn,jUserValuesSchema:()=>On,jUserViewSchema:()=>jn,licenseSchema:()=>bs,mediaLibraryFilesStatsSchema:()=>Cl,mediaLibraryFolderSchema:()=>Sl,mediaLibraryFolderStatsSchema:()=>Tl,mediaLibraryListSchema:()=>jl,mediaLibraryStatsSchema:()=>Al,mimetypeToExt:()=>zt,mimetypes:()=>$t,moduleRestrictionMode:()=>Fl,moveFaqEntrySchema:()=>Go,moveFaqThemeSchema:()=>Jo,moveMediaLibraryFileParamsSchema:()=>Ol,msDocumentEntitySchema:()=>go,msDocumentParamsSchema:()=>vo,msGetDocumentsParamsSchema:()=>Ao,msGroupEntitySchema:()=>po,msSiteEntitySchema:()=>uo,msTenantEntitySchema:()=>co,msTenantsSchema:()=>oo,msUnifiedEntitySchema:()=>fo,network:()=>bd,networkTypeSchema:()=>Pl,objectListPropsSchema:()=>Ei,objectTimestamp:()=>Ht,objectWithoutLicenseFilterSchema:()=>gs,onlyOfficeTemplateSchema:()=>el,openingTypeAnchorSchema:()=>cr,openingTypeLinkSchema:()=>lr,openingTypePopupSchema:()=>ur,openingTypeSchema:()=>tr,orderSchema:()=>wi,ordersSchema:()=>xi,padStartTwoDigits:()=>g,prepareGroupForUpdate:()=>ci,publicWebinarData:()=>Ks,publicWebinarFullnameRequestSchema:()=>Gs,publicWebinarGetDateRequestSchema:()=>Qs,publicWebinarUrlSchema:()=>Js,questionAnswerSelectResponseParamsSchema:()=>Dl,questionAnswerUnselectResponseParamsSchema:()=>Nl,removeIfStartsWith:()=>m,replacePropertiesWithTypes:()=>bi,reservationListSchema:()=>qs,resetNotificationConfigurationSchema:()=>Fa,resolveFileFamily:()=>ri,resolveFileMimetype:()=>ni,resolveFilePath:()=>Yt,resolveFileUrl:()=>ii,rightsSchema:()=>Dn,rssTypeSchema:()=>xa,searchCategoryModelSchema:()=>$l,searchCategoryValueSchema:()=>Ul,searchConfigSchema:()=>Kl,searchFacetModelSchema:()=>Bl,searchFacetValueModelSchema:()=>zl,searchFacetValuesSchema:()=>Vl,searchLastQuerySchema:()=>tc,searchQueryFilterModelSchema:()=>Gl,searchQueryOptionSchema:()=>Ql,searchQuerySchema:()=>Xl,searchQuerySortModelSchema:()=>Jl,searchResultCatPropsSchema:()=>nc,searchResultPropsAppSchema:()=>Hl,searchResultPropsObjectSchema:()=>Yl,searchResultPropsSchema:()=>ic,shareAccessObjectSchema:()=>oc,shareAccessPropsSchema:()=>sc,shareGeneralAccessRulesSchema:()=>rc,shareOptionObjectSchema:()=>ac,socialActionSchema:()=>no,spotBannerImageSchema:()=>ga,storeFinalizeSchema:()=>js,storeItemSchema:()=>Ss,suffixIfDoesNotExist:()=>p,textEnhanceResponseSchema:()=>ul,tinyMCECommonOptionsSchema:()=>Ic,tinyMCEDynamicOptionsSchema:()=>Pc,tinymceExtendedOptionsSchema:()=>Mc,tvChannelCreatePayloadSchema:()=>jc,tvChannelCreationSchema:()=>Sc,tvChannelCustomListDynamicSchema:()=>fc,tvChannelCustomListSchema:()=>kc,tvChannelCustomListSlideshowSchema:()=>bc,tvChannelDynamicArticleSchema:()=>Cc,tvChannelDynamicCommentSchema:()=>xc,tvChannelDynamicListSchema:()=>vc,tvChannelListSchema:()=>_c,tvChannelLittleSchema:()=>yc,tvChannelSlideshowFileSchema:()=>Tc,tvChannelSlideshowListSchema:()=>wc,tvChannelTypeSchema:()=>gc,tvGetChannelResponseSchema:()=>Fc,tvGetConfigureChannelResponseSchema:()=>Ec,tvGetConfigureDynamicChannelResponse:()=>Ac,tvGetConfigureSlideshowChannelResponse:()=>Lc,updateCommentParamsSchema:()=>Ya,updateGroupSchema:()=>Ta,uploadConfigSchema:()=>Zn,userDefaultFieldsTypeSchema:()=>An,userDirectoryConfigurationSchema:()=>In,userDownloadSchema:()=>zn,userFieldSchema:()=>Rn,userFieldsConfigurationTypeSchema:()=>Ln,userFieldsSchema:()=>En,userLevelSpotSchema:()=>ba,userMapModelSchema:()=>Cn,userReadSchema:()=>Xa,userValuesSchema:()=>Fn,validateIsFormatFileLittle:()=>Bn,validateIsFormatObjectList:()=>Da,validateIsFormatObjectLittle:()=>Mi,validateIsFormatRights:()=>Nn,validateIsFormatUserDirectoryConfiguration:()=>Mn,validateIsFormatUserLevelSpot:()=>Ia,validateIsFormatUserList:()=>Sn,validateIsFormatUserMapModel:()=>Tn,validateIsFormatUserView:()=>xn,valueLabelSchema:()=>ka,variantSizeTypeSchema:()=>Xn,variantTypeSchema:()=>er,videoRecordingSchema:()=>Dc,visioConnectStatisticsRoomSchema:()=>Nc,visioConnectStatisticsRoomSessionsSchema:()=>Uc,visioConnectStatisticsSchema:()=>Zc,wedocEmptyTypeSchema:()=>Hc,wedocFileAudienceTypeSchema:()=>Gc,wedocFileInfoSchema:()=>Vc,wedocFileTypeSchema:()=>zc,wedocQueryResultsSchema:()=>Qc,wedocQueryTypeSchema:()=>Kc,wedocTemplateSchema:()=>Jc,widgetActiveValueSchema:()=>Ki,widgetArticleAttachmentContentSchema:()=>sr,widgetArticleAttachmentTypeSchema:()=>or,widgetArticleButtonContentSchema:()=>pr,widgetArticleButtonTypeSchema:()=>mr,widgetArticleCheckListTypeForFrontSchema:()=>ou,widgetArticleGalleryContentSchema:()=>gr,widgetArticleGalleryTypeSchema:()=>hr,widgetArticleImageContentSchema:()=>fr,widgetArticleImageTypeSchema:()=>br,widgetArticleSliderContentSchema:()=>vr,widgetArticleSliderTypeSchema:()=>wr,widgetArticleTextContentSchema:()=>kr,widgetArticleTextTypeSchema:()=>_r,widgetArticleTitleContentSchema:()=>Sr,widgetArticleTitleTypeSchema:()=>jr,widgetAudienceSchema:()=>Hi,widgetBaseSchema:()=>Qn,widgetButtonPropsSchema:()=>dr,widgetCheckListContentArrForFrontSchema:()=>au,widgetCheckListContentArrSchema:()=>xr,widgetCheckListContentForFrontSchema:()=>su,widgetCheckListContentSchema:()=>Cr,widgetCheckListTypeSchema:()=>Tr,widgetCheckboxSchema:()=>pn,widgetColorSchema:()=>Bi,widgetContentKeysSchema:()=>da,widgetDatasourceTableContentSchema:()=>Ur,widgetDatasourceTableTypeSchema:()=>Wr,widgetDatePickerSchema:()=>Ji,widgetDatePickerValueSchema:()=>Qi,widgetDateSchema:()=>$i,widgetDateValueSchema:()=>Vi,widgetDatetimeSchema:()=>zi,widgetDatetimeValueSchema:()=>Gi,widgetDefaultProps:()=>ru,widgetDefinitionPropsSchema:()=>Yc,widgetDisplayModeSchema:()=>nu,widgetEmailSchema:()=>rn,widgetEmailValueSchema:()=>an,widgetEmbedSchema:()=>nn,widgetExcelDatasourceTableContentSchema:()=>Br,widgetExcelDatasourceTableTypeSchema:()=>$r,widgetFileSchema:()=>en,widgetKeysSchema:()=>Jn,widgetLayerSchema:()=>iu,widgetLegacyMixedBooleanSchema:()=>Vr,widgetLinkSchema:()=>Yi,widgetModalPropsSchema:()=>lu,widgetMultiattributeSchema:()=>Xi,widgetNumberSchema:()=>Ui,widgetNumberValueSchema:()=>Wi,widgetOrientedlinksSchema:()=>fn,widgetPlaceSchema:()=>ln,widgetPresenceContentSchema:()=>zr,widgetPresenceRespondPayloadSchema:()=>Kr,widgetPresenceResponseSchema:()=>Yr,widgetPresenceTypeSchema:()=>Jr,widgetQuickSurveyContentSchema:()=>ia,widgetQuickSurveyTypeSchema:()=>na,widgetRadioSchema:()=>dn,widgetRefUserSchema:()=>cn,widgetRtObjectSchema:()=>cu,widgetSchema:()=>yn,widgetSelectSchema:()=>tn,widgetSlideSchema:()=>yr,widgetStatePropsSchema:()=>pa,widgetTableColumnDataSchema:()=>Mr,widgetTableColumnSchema:()=>Zr,widgetTableColumnTypesSchema:()=>Nr,widgetTableColumnWidgetDateSchema:()=>Pr,widgetTableColumnWidgetDefaulSchema:()=>Lr,widgetTableColumnWidgetSelectOptionSchema:()=>Er,widgetTableColumnWidgetSelectSchema:()=>Fr,widgetTableColumnWidgetTextSchema:()=>Rr,widgetTableColumnWidgetsSchema:()=>Ir,widgetTableColumnsData:()=>Dr,widgetTableContentSchema:()=>qr,widgetTaxonomySchema:()=>mn,widgetTelSchema:()=>gn,widgetTextSchema:()=>Di,widgetTextValueSchema:()=>Ni,widgetTextareaSchema:()=>Zi,widgetTextareaValueSchema:()=>qi,widgetToggleSchema:()=>hn,widgetTransientSchema:()=>un,widgetTypeKeysSchema:()=>ua,widgetUriSchema:()=>bn,widgetUrlSchema:()=>sn,widgetUrlValueSchema:()=>on,widgetVectorSchema:()=>ir,widgetWrapperPropsSchema:()=>la,widgetsRootStateSchema:()=>du,widgetsStateSchema:()=>uu,widgetsValueSchema:()=>vn});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)}}class o extends i{getLogsNavigation(e,t){return this.network.post(Object.assign({o:"objectList",f:"adminAdvancedLogsNavigation"},e),t)}getLogsObjects(e,t){return this.network.post(Object.assign({o:"objectList",f:"adminAdvancedLogsObjects"},e),t)}getLogsSearch(e,t){return this.network.post(Object.assign({o:"objectList",f:"adminAdvancedLogsSearch"},e),t)}}!function(e){e.local="local",e.installed="installed",e.autosaved="autosaved",e.saved="saved"}(n||(n={}));class l 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 c(e){const t=e;return t&&"number"==typeof t.id&&"number"==typeof t.targetId}const u={bookmarkLink:c},d={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:c,isTVChannelType:function(e,t){return"tvChannelType"in e&&e.tvChannelType===t},objectIsType:function(e,t){return null!=t&&u[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 p(e,t){return e&&!e.endsWith(t)?`${e}${t}`:e}function m(e,t){return e&&e.startsWith(t)?e.split("").slice(t.length).join(""):e}function g(e){return e.toString().padStart(2,"0")}var h,f;!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}(h||(h={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(f||(f={}));const b=h.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),y=e=>{switch(typeof e){case"undefined":return b.undefined;case"string":return b.string;case"number":return isNaN(e)?b.nan:b.number;case"boolean":return b.boolean;case"function":return b.function;case"bigint":return b.bigint;case"symbol":return b.symbol;case"object":return Array.isArray(e)?b.array:null===e?b.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?b.promise:"undefined"!=typeof Map&&e instanceof Map?b.map:"undefined"!=typeof Set&&e instanceof Set?b.set:"undefined"!=typeof Date&&e instanceof Date?b.date:b.object;default:return b.unknown}},v=h.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 w 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 w))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,h.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()}}w.create=e=>new w(e);const k=(e,t)=>{let i;switch(e.code){case v.invalid_type:i=e.received===b.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case v.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,h.jsonStringifyReplacer)}`;break;case v.unrecognized_keys:i=`Unrecognized key(s) in object: ${h.joinValues(e.keys,", ")}`;break;case v.invalid_union:i="Invalid input";break;case v.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${h.joinValues(e.options)}`;break;case v.invalid_enum_value:i=`Invalid enum value. Expected ${h.joinValues(e.options)}, received '${e.received}'`;break;case v.invalid_arguments:i="Invalid function arguments";break;case v.invalid_return_type:i="Invalid function return type";break;case v.invalid_date:i="Invalid date";break;case v.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}"`:h.assertNever(e.validation):i="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case v.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 v.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 v.custom:i="Invalid input";break;case v.invalid_intersection_types:i="Intersection results could not be merged";break;case v.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case v.not_finite:i="Number must be finite";break;default:i=t.defaultError,h.assertNever(e)}return{message:i}};let _=k;function S(){return _}const j=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 x(e,t){const i=S(),n=j({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,i,i===k?void 0:k].filter((e=>!!e))});e.common.issues.push(n)}class C{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 T;"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 C.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 T;if("aborted"===r.status)return T;"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 T=Object.freeze({status:"aborted"}),A=e=>({status:"dirty",value:e}),O=e=>({status:"valid",value:e}),L=e=>"aborted"===e.status,R=e=>"dirty"===e.status,E=e=>"valid"===e.status,F=e=>"undefined"!=typeof Promise&&e instanceof Promise;function P(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 I(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 M,D,N;"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}(M||(M={}));class Z{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 q=(e,t)=>{if(E(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 w(e.common.issues);return this._error=t,this._error}}};function U(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 W{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 y(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:y(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new C,ctx:{common:e.parent.common,data:e.data,parsedType:y(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:y(e)},r=this._parseSync({data:e,path:n.path,parent:n});return q(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:y(e)},n=this._parse({data:e,path:i.path,parent:i}),r=await(F(n)?n:Promise.resolve(n));return q(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:v.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 Me({schema:this,typeName:Je.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return De.create(this,this._def)}nullable(){return Ne.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return be.create(this,this._def)}promise(){return Ie.create(this,this._def)}or(e){return we.create([this,e],this._def)}and(e){return je.create(this,e,this._def)}transform(e){return new Me({...U(this._def),schema:this,typeName:Je.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Ze({...U(this._def),innerType:this,defaultValue:t,typeName:Je.ZodDefault})}brand(){return new Be({typeName:Je.ZodBranded,type:this,...U(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new qe({...U(this._def),innerType:this,catchValue:t,typeName:Je.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return $e.create(this,e)}readonly(){return Ve.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const B=/^c[^\s-]{8,}$/i,$=/^[0-9a-z]+$/,V=/^[0-9A-HJKMNP-TV-Z]{26}$/,z=/^[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,G=/^[a-z0-9_-]{21}$/i,J=/^[-+]?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)?)??$/,Q=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let K;const H=/^(?:(?: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])$/,Y=/^(([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})))$/,X=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ee="((\\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])))",te=new RegExp(`^${ee}$`);function ie(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 ne(e){let t=`${ee}T${ie(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 re extends W{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==b.string){const t=this._getOrReturnCtx(e);return x(t,{code:v.invalid_type,expected:b.string,received:t.parsedType}),T}const t=new C;let i;for(const a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(i=this._getOrReturnCtx(e,i),x(i,{code:v.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),x(i,{code:v.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?x(i,{code:v.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):r&&x(i,{code:v.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if("email"===a.kind)Q.test(e.data)||(i=this._getOrReturnCtx(e,i),x(i,{validation:"email",code:v.invalid_string,message:a.message}),t.dirty());else if("emoji"===a.kind)K||(K=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),K.test(e.data)||(i=this._getOrReturnCtx(e,i),x(i,{validation:"emoji",code:v.invalid_string,message:a.message}),t.dirty());else if("uuid"===a.kind)z.test(e.data)||(i=this._getOrReturnCtx(e,i),x(i,{validation:"uuid",code:v.invalid_string,message:a.message}),t.dirty());else if("nanoid"===a.kind)G.test(e.data)||(i=this._getOrReturnCtx(e,i),x(i,{validation:"nanoid",code:v.invalid_string,message:a.message}),t.dirty());else if("cuid"===a.kind)B.test(e.data)||(i=this._getOrReturnCtx(e,i),x(i,{validation:"cuid",code:v.invalid_string,message:a.message}),t.dirty());else if("cuid2"===a.kind)$.test(e.data)||(i=this._getOrReturnCtx(e,i),x(i,{validation:"cuid2",code:v.invalid_string,message:a.message}),t.dirty());else if("ulid"===a.kind)V.test(e.data)||(i=this._getOrReturnCtx(e,i),x(i,{validation:"ulid",code:v.invalid_string,message:a.message}),t.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(n){i=this._getOrReturnCtx(e,i),x(i,{validation:"url",code:v.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),x(i,{validation:"regex",code:v.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),x(i,{code:v.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),x(i,{code:v.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):"endsWith"===a.kind?e.data.endsWith(a.value)||(i=this._getOrReturnCtx(e,i),x(i,{code:v.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):"datetime"===a.kind?ne(a).test(e.data)||(i=this._getOrReturnCtx(e,i),x(i,{code:v.invalid_string,validation:"datetime",message:a.message}),t.dirty()):"date"===a.kind?te.test(e.data)||(i=this._getOrReturnCtx(e,i),x(i,{code:v.invalid_string,validation:"date",message:a.message}),t.dirty()):"time"===a.kind?new RegExp(`^${ie(a)}$`).test(e.data)||(i=this._getOrReturnCtx(e,i),x(i,{code:v.invalid_string,validation:"time",message:a.message}),t.dirty()):"duration"===a.kind?J.test(e.data)||(i=this._getOrReturnCtx(e,i),x(i,{validation:"duration",code:v.invalid_string,message:a.message}),t.dirty()):"ip"===a.kind?(n=e.data,("v4"!==(r=a.version)&&r||!H.test(n))&&("v6"!==r&&r||!Y.test(n))&&(i=this._getOrReturnCtx(e,i),x(i,{validation:"ip",code:v.invalid_string,message:a.message}),t.dirty())):"base64"===a.kind?X.test(e.data)||(i=this._getOrReturnCtx(e,i),x(i,{validation:"base64",code:v.invalid_string,message:a.message}),t.dirty()):h.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:v.invalid_string,...M.errToObj(i)})}_addCheck(e){return new re({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...M.errToObj(e)})}url(e){return this._addCheck({kind:"url",...M.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...M.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...M.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...M.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...M.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...M.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...M.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...M.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...M.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,...M.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,...M.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...M.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...M.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...M.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...M.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...M.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...M.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...M.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...M.errToObj(t)})}nonempty(e){return this.min(1,M.errToObj(e))}trim(){return new re({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new re({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new re({...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 ae(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)}re.create=e=>{var t;return new re({checks:[],typeName:Je.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...U(e)})};class se extends W{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)!==b.number){const t=this._getOrReturnCtx(e);return x(t,{code:v.invalid_type,expected:b.number,received:t.parsedType}),T}let t;const i=new C;for(const n of this._def.checks)"int"===n.kind?h.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),x(t,{code:v.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),x(t,{code:v.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),x(t,{code:v.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty()):"multipleOf"===n.kind?0!==ae(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),x(t,{code:v.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),x(t,{code:v.not_finite,message:n.message}),i.dirty()):h.assertNever(n);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,M.toString(t))}gt(e,t){return this.setLimit("min",e,!1,M.toString(t))}lte(e,t){return this.setLimit("max",e,!0,M.toString(t))}lt(e,t){return this.setLimit("max",e,!1,M.toString(t))}setLimit(e,t,i,n){return new se({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:M.toString(n)}]})}_addCheck(e){return new se({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:M.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:M.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:M.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:M.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:M.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:M.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:M.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:M.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:M.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&&h.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)}}se.create=e=>new se({checks:[],typeName:Je.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...U(e)});class oe extends W{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)!==b.bigint){const t=this._getOrReturnCtx(e);return x(t,{code:v.invalid_type,expected:b.bigint,received:t.parsedType}),T}let t;const i=new C;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),x(t,{code:v.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),x(t,{code:v.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),x(t,{code:v.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):h.assertNever(n);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,M.toString(t))}gt(e,t){return this.setLimit("min",e,!1,M.toString(t))}lte(e,t){return this.setLimit("max",e,!0,M.toString(t))}lt(e,t){return this.setLimit("max",e,!1,M.toString(t))}setLimit(e,t,i,n){return new oe({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:M.toString(n)}]})}_addCheck(e){return new oe({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:M.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:M.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:M.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:M.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:M.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}}oe.create=e=>{var t;return new oe({checks:[],typeName:Je.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...U(e)})};class le extends W{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==b.boolean){const t=this._getOrReturnCtx(e);return x(t,{code:v.invalid_type,expected:b.boolean,received:t.parsedType}),T}return O(e.data)}}le.create=e=>new le({typeName:Je.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...U(e)});class ce extends W{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==b.date){const t=this._getOrReturnCtx(e);return x(t,{code:v.invalid_type,expected:b.date,received:t.parsedType}),T}if(isNaN(e.data.getTime()))return x(this._getOrReturnCtx(e),{code:v.invalid_date}),T;const t=new C;let i;for(const n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(i=this._getOrReturnCtx(e,i),x(i,{code:v.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),x(i,{code:v.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),t.dirty()):h.assertNever(n);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ce({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:M.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:M.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}}ce.create=e=>new ce({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:Je.ZodDate,...U(e)});class ue extends W{_parse(e){if(this._getType(e)!==b.symbol){const t=this._getOrReturnCtx(e);return x(t,{code:v.invalid_type,expected:b.symbol,received:t.parsedType}),T}return O(e.data)}}ue.create=e=>new ue({typeName:Je.ZodSymbol,...U(e)});class de extends W{_parse(e){if(this._getType(e)!==b.undefined){const t=this._getOrReturnCtx(e);return x(t,{code:v.invalid_type,expected:b.undefined,received:t.parsedType}),T}return O(e.data)}}de.create=e=>new de({typeName:Je.ZodUndefined,...U(e)});class pe extends W{_parse(e){if(this._getType(e)!==b.null){const t=this._getOrReturnCtx(e);return x(t,{code:v.invalid_type,expected:b.null,received:t.parsedType}),T}return O(e.data)}}pe.create=e=>new pe({typeName:Je.ZodNull,...U(e)});class me extends W{constructor(){super(...arguments),this._any=!0}_parse(e){return O(e.data)}}me.create=e=>new me({typeName:Je.ZodAny,...U(e)});class ge extends W{constructor(){super(...arguments),this._unknown=!0}_parse(e){return O(e.data)}}ge.create=e=>new ge({typeName:Je.ZodUnknown,...U(e)});class he extends W{_parse(e){const t=this._getOrReturnCtx(e);return x(t,{code:v.invalid_type,expected:b.never,received:t.parsedType}),T}}he.create=e=>new he({typeName:Je.ZodNever,...U(e)});class fe extends W{_parse(e){if(this._getType(e)!==b.undefined){const t=this._getOrReturnCtx(e);return x(t,{code:v.invalid_type,expected:b.void,received:t.parsedType}),T}return O(e.data)}}fe.create=e=>new fe({typeName:Je.ZodVoid,...U(e)});class be extends W{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),n=this._def;if(t.parsedType!==b.array)return x(t,{code:v.invalid_type,expected:b.array,received:t.parsedType}),T;if(null!==n.exactLength){const e=t.data.length>n.exactLength.value,r=t.data.length<n.exactLength.value;(e||r)&&(x(t,{code:e?v.too_big:v.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&&(x(t,{code:v.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&&(x(t,{code:v.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 Z(t,e,t.path,i))))).then((e=>C.mergeArray(i,e)));const r=[...t.data].map(((e,i)=>n.type._parseSync(new Z(t,e,t.path,i))));return C.mergeArray(i,r)}get element(){return this._def.type}min(e,t){return new be({...this._def,minLength:{value:e,message:M.toString(t)}})}max(e,t){return new be({...this._def,maxLength:{value:e,message:M.toString(t)}})}length(e,t){return new be({...this._def,exactLength:{value:e,message:M.toString(t)}})}nonempty(e){return this.min(1,e)}}function ye(e){if(e instanceof ve){const t={};for(const i in e.shape){const n=e.shape[i];t[i]=De.create(ye(n))}return new ve({...e._def,shape:()=>t})}return e instanceof be?new be({...e._def,type:ye(e.element)}):e instanceof De?De.create(ye(e.unwrap())):e instanceof Ne?Ne.create(ye(e.unwrap())):e instanceof xe?xe.create(e.items.map((e=>ye(e)))):e}be.create=(e,t)=>new be({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Je.ZodArray,...U(t)});class ve extends W{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=h.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==b.object){const t=this._getOrReturnCtx(e);return x(t,{code:v.invalid_type,expected:b.object,received:t.parsedType}),T}const{status:t,ctx:i}=this._processInputParams(e),{shape:n,keys:r}=this._getCached(),a=[];if(!(this._def.catchall instanceof he&&"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 Z(i,r,i.path,e)),alwaysSet:e in i.data})}if(this._def.catchall instanceof he){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&&(x(i,{code:v.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 Z(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=>C.mergeObjectSync(t,e))):C.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return M.errToObj,new ve({...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=M.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new ve({...this._def,unknownKeys:"strip"})}passthrough(){return new ve({...this._def,unknownKeys:"passthrough"})}extend(e){return new ve({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ve({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Je.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ve({...this._def,catchall:e})}pick(e){const t={};return h.objectKeys(e).forEach((i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])})),new ve({...this._def,shape:()=>t})}omit(e){const t={};return h.objectKeys(this.shape).forEach((i=>{e[i]||(t[i]=this.shape[i])})),new ve({...this._def,shape:()=>t})}deepPartial(){return ye(this)}partial(e){const t={};return h.objectKeys(this.shape).forEach((i=>{const n=this.shape[i];e&&!e[i]?t[i]=n:t[i]=n.optional()})),new ve({...this._def,shape:()=>t})}required(e){const t={};return h.objectKeys(this.shape).forEach((i=>{if(e&&!e[i])t[i]=this.shape[i];else{let e=this.shape[i];for(;e instanceof De;)e=e._def.innerType;t[i]=e}})),new ve({...this._def,shape:()=>t})}keyof(){return Ee(h.objectKeys(this.shape))}}ve.create=(e,t)=>new ve({shape:()=>e,unknownKeys:"strip",catchall:he.create(),typeName:Je.ZodObject,...U(t)}),ve.strictCreate=(e,t)=>new ve({shape:()=>e,unknownKeys:"strict",catchall:he.create(),typeName:Je.ZodObject,...U(t)}),ve.lazycreate=(e,t)=>new ve({shape:e,unknownKeys:"strip",catchall:he.create(),typeName:Je.ZodObject,...U(t)});class we extends W{_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 w(e.ctx.common.issues)));return x(t,{code:v.invalid_union,unionErrors:i}),T}));{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 w(e)));return x(t,{code:v.invalid_union,unionErrors:r}),T}}get options(){return this._def.options}}we.create=(e,t)=>new we({options:e,typeName:Je.ZodUnion,...U(t)});const ke=e=>e instanceof Le?ke(e.schema):e instanceof Me?ke(e.innerType()):e instanceof Re?[e.value]:e instanceof Fe?e.options:e instanceof Pe?h.objectValues(e.enum):e instanceof Ze?ke(e._def.innerType):e instanceof de?[void 0]:e instanceof pe?[null]:e instanceof De?[void 0,...ke(e.unwrap())]:e instanceof Ne?[null,...ke(e.unwrap())]:e instanceof Be||e instanceof Ve?ke(e.unwrap()):e instanceof qe?ke(e._def.innerType):[];class _e extends W{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==b.object)return x(t,{code:v.invalid_type,expected:b.object,received:t.parsedType}),T;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}):(x(t,{code:v.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),T)}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=ke(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 _e({typeName:Je.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...U(i)})}}function Se(e,t){const i=y(e),n=y(t);if(e===t)return{valid:!0,data:e};if(i===b.object&&n===b.object){const i=h.objectKeys(t),n=h.objectKeys(e).filter((e=>-1!==i.indexOf(e))),r={...e,...t};for(const i of n){const n=Se(e[i],t[i]);if(!n.valid)return{valid:!1};r[i]=n.data}return{valid:!0,data:r}}if(i===b.array&&n===b.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let n=0;n<e.length;n++){const r=Se(e[n],t[n]);if(!r.valid)return{valid:!1};i.push(r.data)}return{valid:!0,data:i}}return i===b.date&&n===b.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class je extends W{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),n=(e,n)=>{if(L(e)||L(n))return T;const r=Se(e.value,n.value);return r.valid?((R(e)||R(n))&&t.dirty(),{status:t.value,value:r.data}):(x(i,{code:v.invalid_intersection_types}),T)};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}))}}je.create=(e,t,i)=>new je({left:e,right:t,typeName:Je.ZodIntersection,...U(i)});class xe extends W{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==b.array)return x(i,{code:v.invalid_type,expected:b.array,received:i.parsedType}),T;if(i.data.length<this._def.items.length)return x(i,{code:v.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),T;!this._def.rest&&i.data.length>this._def.items.length&&(x(i,{code:v.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 Z(i,e,i.path,t)):null})).filter((e=>!!e));return i.common.async?Promise.all(n).then((e=>C.mergeArray(t,e))):C.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new xe({...this._def,rest:e})}}xe.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new xe({items:e,typeName:Je.ZodTuple,rest:null,...U(t)})};class Ce extends W{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!==b.object)return x(i,{code:v.invalid_type,expected:b.object,received:i.parsedType}),T;const n=[],r=this._def.keyType,a=this._def.valueType;for(const e in i.data)n.push({key:r._parse(new Z(i,e,i.path,e)),value:a._parse(new Z(i,i.data[e],i.path,e)),alwaysSet:e in i.data});return i.common.async?C.mergeObjectAsync(t,n):C.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,i){return new Ce(t instanceof W?{keyType:e,valueType:t,typeName:Je.ZodRecord,...U(i)}:{keyType:re.create(),valueType:e,typeName:Je.ZodRecord,...U(t)})}}class Te extends W{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!==b.map)return x(i,{code:v.invalid_type,expected:b.map,received:i.parsedType}),T;const n=this._def.keyType,r=this._def.valueType,a=[...i.data.entries()].map((([e,t],a)=>({key:n._parse(new Z(i,e,i.path,[a,"key"])),value:r._parse(new Z(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 T;"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 T;"dirty"!==n.status&&"dirty"!==r.status||t.dirty(),e.set(n.value,r.value)}return{status:t.value,value:e}}}}Te.create=(e,t,i)=>new Te({valueType:t,keyType:e,typeName:Je.ZodMap,...U(i)});class Ae extends W{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==b.set)return x(i,{code:v.invalid_type,expected:b.set,received:i.parsedType}),T;const n=this._def;null!==n.minSize&&i.data.size<n.minSize.value&&(x(i,{code:v.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&&(x(i,{code:v.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 T;"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 Z(i,e,i.path,t))));return i.common.async?Promise.all(s).then((e=>a(e))):a(s)}min(e,t){return new Ae({...this._def,minSize:{value:e,message:M.toString(t)}})}max(e,t){return new Ae({...this._def,maxSize:{value:e,message:M.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Ae.create=(e,t)=>new Ae({valueType:e,minSize:null,maxSize:null,typeName:Je.ZodSet,...U(t)});class Oe extends W{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==b.function)return x(t,{code:v.invalid_type,expected:b.function,received:t.parsedType}),T;function i(e,i){return j({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,S(),k].filter((e=>!!e)),issueData:{code:v.invalid_arguments,argumentsError:i}})}function n(e,i){return j({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,S(),k].filter((e=>!!e)),issueData:{code:v.invalid_return_type,returnTypeError:i}})}const r={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Ie){const e=this;return O((async function(...t){const s=new w([]),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 O((function(...t){const s=e._def.args.safeParse(t,r);if(!s.success)throw new w([i(t,s.error)]);const o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,r);if(!l.success)throw new w([n(o,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Oe({...this._def,args:xe.create(e).rest(ge.create())})}returns(e){return new Oe({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new Oe({args:e||xe.create([]).rest(ge.create()),returns:t||ge.create(),typeName:Je.ZodFunction,...U(i)})}}class Le extends W{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})}}Le.create=(e,t)=>new Le({getter:e,typeName:Je.ZodLazy,...U(t)});class Re extends W{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return x(t,{received:t.data,code:v.invalid_literal,expected:this._def.value}),T}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Ee(e,t){return new Fe({values:e,typeName:Je.ZodEnum,...U(t)})}Re.create=(e,t)=>new Re({value:e,typeName:Je.ZodLiteral,...U(t)});class Fe extends W{constructor(){super(...arguments),D.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),i=this._def.values;return x(t,{expected:h.joinValues(i),received:t.parsedType,code:v.invalid_type}),T}if(P(this,D,"f")||I(this,D,new Set(this._def.values),"f"),!P(this,D,"f").has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return x(t,{received:t.data,code:v.invalid_enum_value,options:i}),T}return O(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})}}D=new WeakMap,Fe.create=Ee;class Pe extends W{constructor(){super(...arguments),N.set(this,void 0)}_parse(e){const t=h.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==b.string&&i.parsedType!==b.number){const e=h.objectValues(t);return x(i,{expected:h.joinValues(e),received:i.parsedType,code:v.invalid_type}),T}if(P(this,N,"f")||I(this,N,new Set(h.getValidEnumValues(this._def.values)),"f"),!P(this,N,"f").has(e.data)){const e=h.objectValues(t);return x(i,{received:i.data,code:v.invalid_enum_value,options:e}),T}return O(e.data)}get enum(){return this._def.values}}N=new WeakMap,Pe.create=(e,t)=>new Pe({values:e,typeName:Je.ZodNativeEnum,...U(t)});class Ie extends W{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==b.promise&&!1===t.common.async)return x(t,{code:v.invalid_type,expected:b.promise,received:t.parsedType}),T;const i=t.parsedType===b.promise?t.data:Promise.resolve(t.data);return O(i.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Ie.create=(e,t)=>new Ie({type:e,typeName:Je.ZodPromise,...U(t)});class Me extends W{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Je.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=>{x(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 T;const n=await this._def.schema._parseAsync({data:e,path:i.path,parent:i});return"aborted"===n.status?T:"dirty"===n.status||"dirty"===t.value?A(n.value):n}));{if("aborted"===t.value)return T;const n=this._def.schema._parseSync({data:e,path:i.path,parent:i});return"aborted"===n.status?T:"dirty"===n.status||"dirty"===t.value?A(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?T:("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?T:("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(!E(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=>E(e)?Promise.resolve(n.transform(e.value,r)).then((e=>({status:t.value,value:e}))):e))}h.assertNever(n)}}Me.create=(e,t,i)=>new Me({schema:e,typeName:Je.ZodEffects,effect:t,...U(i)}),Me.createWithPreprocess=(e,t,i)=>new Me({schema:t,effect:{type:"preprocess",transform:e},typeName:Je.ZodEffects,...U(i)});class De extends W{_parse(e){return this._getType(e)===b.undefined?O(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:Je.ZodOptional,...U(t)});class Ne extends W{_parse(e){return this._getType(e)===b.null?O(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ne.create=(e,t)=>new Ne({innerType:e,typeName:Je.ZodNullable,...U(t)});class Ze extends W{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===b.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Ze.create=(e,t)=>new Ze({innerType:e,typeName:Je.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...U(t)});class qe extends W{_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 w(i.common.issues)},input:i.data})}))):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new w(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}qe.create=(e,t)=>new qe({innerType:e,typeName:Je.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...U(t)});class Ue extends W{_parse(e){if(this._getType(e)!==b.nan){const t=this._getOrReturnCtx(e);return x(t,{code:v.invalid_type,expected:b.nan,received:t.parsedType}),T}return{status:"valid",value:e.data}}}Ue.create=e=>new Ue({typeName:Je.ZodNaN,...U(e)});const We=Symbol("zod_brand");class Be extends W{_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 $e extends W{_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?T:"dirty"===e.status?(t.dirty(),A(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?T:"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 $e({in:e,out:t,typeName:Je.ZodPipeline})}}class Ve extends W{_parse(e){const t=this._def.innerType._parse(e),i=e=>(E(e)&&(e.value=Object.freeze(e.value)),e);return F(t)?t.then((e=>i(e))):i(t)}unwrap(){return this._def.innerType}}function ze(e,t={},i){return e?me.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})}})):me.create()}Ve.create=(e,t)=>new Ve({innerType:e,typeName:Je.ZodReadonly,...U(t)});const Ge={object:ve.lazycreate};var Je;!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"}(Je||(Je={}));const Qe=re.create,Ke=se.create,He=Ue.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=be.create,ct=ve.create,ut=ve.strictCreate,dt=we.create,pt=_e.create,mt=je.create,gt=xe.create,ht=Ce.create,ft=Te.create,bt=Ae.create,yt=Oe.create,vt=Le.create,wt=Re.create,kt=Fe.create,_t=Pe.create,St=Ie.create,jt=Me.create,xt=De.create,Ct=Ne.create,Tt=Me.createWithPreprocess,At=$e.create,Ot={string:e=>re.create({...e,coerce:!0}),number:e=>se.create({...e,coerce:!0}),boolean:e=>le.create({...e,coerce:!0}),bigint:e=>oe.create({...e,coerce:!0}),date:e=>ce.create({...e,coerce:!0})},Lt=T;var Rt=Object.freeze({__proto__:null,defaultErrorMap:k,setErrorMap:function(e){_=e},getErrorMap:S,makeIssue:j,EMPTY_PATH:[],addIssueToContext:x,ParseStatus:C,INVALID:T,DIRTY:A,OK:O,isAborted:L,isDirty:R,isValid:E,isAsync:F,get util(){return h},get objectUtil(){return f},ZodParsedType:b,getParsedType:y,ZodType:W,datetimeRegex:ne,ZodString:re,ZodNumber:se,ZodBigInt:oe,ZodBoolean:le,ZodDate:ce,ZodSymbol:ue,ZodUndefined:de,ZodNull:pe,ZodAny:me,ZodUnknown:ge,ZodNever:he,ZodVoid:fe,ZodArray:be,ZodObject:ve,ZodUnion:we,ZodDiscriminatedUnion:_e,ZodIntersection:je,ZodTuple:xe,ZodRecord:Ce,ZodMap:Te,ZodSet:Ae,ZodFunction:Oe,ZodLazy:Le,ZodLiteral:Re,ZodEnum:Fe,ZodNativeEnum:Pe,ZodPromise:Ie,ZodEffects:Me,ZodTransformer:Me,ZodOptional:De,ZodNullable:Ne,ZodDefault:Ze,ZodCatch:qe,ZodNaN:Ue,BRAND:We,ZodBranded:Be,ZodPipeline:$e,ZodReadonly:Ve,custom:ze,Schema:W,ZodSchema:W,late:Ge,get ZodFirstPartyTypeKind(){return Je},coerce:Ot,any:rt,array:lt,bigint:Ye,boolean:Xe,date:et,discriminatedUnion:pt,effect:jt,enum:kt,function:yt,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>ze((t=>t instanceof e),t),intersection:mt,lazy:vt,literal:wt,map:ft,nan:He,nativeEnum:_t,never:st,null:nt,nullable:Ct,number:Ke,object:ct,oboolean:()=>Xe().optional(),onumber:()=>Ke().optional(),optional:xt,ostring:()=>Qe().optional(),pipeline:At,preprocess:Tt,promise:St,record:ht,set:bt,strictObject:ut,string:Qe,symbol:tt,transformer:jt,tuple:gt,undefined:it,union:dt,unknown:at,void:ot,NEVER:Lt,ZodIssueCode:v,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:w});const Et=Rt.object({type:Rt.string(),recordId:Rt.union([Rt.string().regex(new RegExp("[0-9]+")),Rt.number()])}),Ft=(e,t)=>(t?Et.passthrough():Et).safeParse(e).success,Pt=Rt.object({uri:Rt.string().regex(new RegExp("[a-zA-Z]+/[0-9]+"))}),It=(e,t)=>(t?Pt.passthrough():Pt).safeParse(e).success;function Mt(e){if(It(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 Dt(e){return m(p(e.from,"/"),"/")||""}function Nt(e){return e.timestamp?`?_=${e.timestamp}`:""}function Zt(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 qt(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 Ut(e){return e.format||"png"}function Wt(e){try{return new URL(e)}catch(e){}try{return new URL(window.location.origin+"/"+m(e,"/"))}catch(e){}}function Bt(e,t=2){var i;if("url"in e&&e.url){const t=Wt(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:Mt(e);return`/${Dt(e)}${qt(e,t)}/`+n+`.${Ut(e)}${Zt(e)}`}Et.partial().or(Pt.partial());const $t=["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"],Vt=["docx","xlsx","csv","pptx","pdf","zip","ai","mp3","mpeg","ttf","otf","jpg","jpeg","png","gif","psd","svg","txt","mp4","odt","webm"],zt={"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"},Gt=e=>Object.keys(zt).find((t=>zt[t]===e)),Jt=e=>{var t;return null!==(t=zt[e])&&void 0!==t?t:void 0};function Qt(e){const t=String(e).split(".").pop();return Vt.find((e=>e===t))}const Kt=e=>{var t;const i=Qt(e);return null!==(t=Gt(i))&&void 0!==t?t:"application/octet-stream"},Ht=e=>e?(new Date(e).getTime()/1e3).toFixed(0):void 0,Yt=(e,t="fitx80")=>{const i=ri(e),n=Ht(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 Bt({timestamp:n,size:t,from:"imagecache",uri:e.uri,format:"gif"});case"image":return Bt({timestamp:n,size:t,from:"imagecache",uri:e.uri})}},Xt=e=>{const t=Qt(e);return void 0!==t?ti(Gt(t)):"application"},ei=e=>-1!==["image/vnd","image/svg","image/heic"].findIndex((t=>e.startsWith(t)));function ti(e){return e&&e.startsWith("folder/")?"folder":null==e||ei(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 ii=(e,t,i="rr")=>"ng"===i?`/ng/file/${e}/${t}`:`/ng/rr/file/${e}/${t}`,ni=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?Kt(e.title):e.mimetype,ri=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?Xt(e.title):ti(e.mimetype);function ai(e){return e.startsWith("tag_")||"tags"===e}function si(e){return Object.fromEntries(Object.entries(e).filter((([e])=>ai(e))))}function oi(e,t,i){return Object.fromEntries(Object.entries(e).filter((([e])=>ai(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 li(e){return oi(e,"uri")}const ci=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=si(e);if(i=Object.assign(Object.assign({},i),n),ui(e,i))return i;throw new Error},ui=(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 di=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 pi{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 di(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 di(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 di(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({},pi._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 di(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 mi=Array.isArray,gi=Object.keys,hi=Object.prototype.hasOwnProperty;function fi(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=mi(e),a=mi(t);let s,o,l;if(r&&a){if(o=e.length,o!==t.length)return!1;for(s=o;0!=s--;)if(!fi(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=gi(e).filter((e=>!(null==n?void 0:n.some((t=>1===t.length&&t[0]===e)))));if(o=m.length,o!==gi(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(!hi.call(t,m[s]))return!1;for(s=o;0!=s--;)if(l=m[s],!("_owner"===l&&e.$$typeof||fi(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 bi(e,t){if(Array.isArray(e))return e.map((e=>bi(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]:bi(e[n],t)})})),i}return e}const yi=(e,t)=>Array.isArray(t)&&t.length?[e,...t].join(","):e,vi=Rt.object({href:Rt.string(),target:Rt.string()}),wi=Rt.object({name:Rt.string(),sort:Rt.union([Rt.literal("ASC"),Rt.literal("DESC")])}),ki=Rt.union([Rt.boolean(),Rt.string(),Rt.number(),Rt.array(Rt.string()),Rt.object({srcId:Rt.union([Rt.number(),Rt.string()]),srcType:Rt.string()}),Rt.object({targetId:Rt.union([Rt.number(),Rt.string()]),targetType:Rt.string()}),Rt.object({start:Rt.string(),end:Rt.string()})]),_i=Rt.union([Rt.literal("<"),Rt.literal(">"),Rt.literal("<="),Rt.literal(">="),Rt.literal("!="),Rt.literal("<>"),Rt.literal("like"),Rt.literal("between"),Rt.literal("is"),Rt.literal("is not"),Rt.literal("in"),Rt.literal("link"),Rt.literal("match"),Rt.literal("equal")]),Si=Rt.union([Rt.literal("<"),Rt.literal(">"),Rt.literal("<="),Rt.literal(">="),Rt.literal("!="),Rt.literal("<>"),Rt.literal("+"),Rt.literal("-"),Rt.literal("like"),Rt.literal("between"),Rt.literal("is"),Rt.literal("is not"),Rt.literal("in"),Rt.literal("link"),Rt.literal("match"),Rt.literal("equal")]),ji=Rt.object({name:Rt.string(),value:ki,operator:_i.optional(),method:Si.optional(),or:Rt.boolean().optional(),isNull:Rt.boolean().optional(),isNotNull:Rt.boolean().optional()}),xi=wi.array(),Ci=Rt.array(ji),Ti=e=>e.and(Rt.object({token:Rt.string().or(Rt.undefined()).optional()}));var Ai;!function(e){e.LITTLE="raw-little",e.LIST="raw-list",e.VIEW="raw-view",e.USER_API="user-api",e.MOBILE="mobile"}(Ai||(Ai={}));const Oi=Rt.nativeEnum(Ai).transform((e=>`${e}`)),Li=Rt.union([Oi,Rt.undefined()]),Ri=Rt.array(Rt.union([Rt.literal("bookmark"),Rt.literal("contact"),Rt.literal("licenses"),Rt.literal("quizFieldDefinitions"),Rt.literal("quizResponseRecord"),Rt.literal("search"),Rt.literal("socialEventRecord"),Rt.literal("surveyDateRecord")])),Ei=Rt.object({additionalFilter:Rt.object({}).optional(),facets:Rt.array(Rt.object({})).optional(),filters:Ci.optional(),query:Rt.string().optional(),limit:Rt.number().optional(),page:Rt.number().optional(),orders:xi.optional(),format:Li.optional()}),Fi=e=>Rt.object(e),Pi=Fi({id:Rt.number(),mainType:Rt.string(),type:Rt.string(),uri:Rt.string(),dateCreation:Rt.string().optional(),dateModified:Rt.string().nullable().optional()}),Ii=Pi.extend({title:Rt.string(),_url:Rt.string()}),Mi=e=>Ii.safeParse(e).success,Di=Rt.object({type:Rt.literal("text")}),Ni=Rt.string(),Zi=Rt.object({type:Rt.literal("textarea"),params:Rt.object({class:Rt.literal("mceEditor"),mention:Rt.literal("1")}).optional()}),qi=Rt.string().nullable(),Ui=Rt.object({type:Rt.literal("number")}),Wi=Rt.number(),Bi=Rt.object({type:Rt.literal("color"),options:Rt.object({colors:Rt.string(),defaultColor:Rt.string()})}),$i=Rt.object({type:Rt.literal("date"),format:Rt.string()}),Vi=Rt.string().nullable(),zi=Rt.object({type:Rt.literal("datetime")}),Gi=Rt.string().nullable(),Ji=Rt.object({type:Rt.literal("datePicker")}),Qi=Rt.string().nullable(),Ki=Rt.number(),Hi=Rt.object({type:Rt.literal("audience"),options:Rt.object({disableEveryoneAudience:Rt.boolean().optional()}).optional()}),Yi=Rt.object({type:Rt.literal("link")}),Xi=Rt.object({type:Rt.literal("multiattribute")}),en=Rt.object({type:Rt.literal("file")}),tn=Rt.object({type:Rt.literal("select"),options:Rt.record(Rt.string()),params:Rt.object({data:Rt.string().optional(),defaultValue:Rt.string().optional(),explain:Rt.literal(1).optional()}).optional()}),nn=Rt.object({type:Rt.literal("embed")}),rn=Rt.object({type:Rt.literal("email")}),an=Rt.string(),sn=Rt.object({type:Rt.literal("url"),params:Rt.object({target:Rt.literal("_blank").optional()})}),on=Rt.string(),ln=Rt.object({type:Rt.literal("place"),options:Rt.record(Rt.string())}),cn=Rt.object({type:Rt.literal("refUser")}),un=Rt.object({type:Rt.literal("transient")}),dn=Rt.object({type:Rt.literal("radio"),options:Rt.record(Rt.string())}),pn=Rt.object({type:Rt.literal("checkbox"),options:Rt.record(Rt.string())}),mn=Rt.object({type:Rt.literal("taxonomy"),params:Rt.object({idTaxonomy:Rt.string(),type:Rt.string().optional(),limit:Rt.number().optional()})}),gn=Rt.object({type:Rt.literal("tel")}),hn=Rt.object({type:Rt.literal("toggle")}),fn=Rt.object({type:Rt.literal("orientedlinks"),params:Rt.object({"jcomplete-multiple":Rt.union([Rt.literal("0"),Rt.literal("1")]),showAdd:Rt.union([Rt.literal("0"),Rt.literal("1")]),supportedTypes:Rt.array(Rt.string())})}),bn=Rt.object({type:Rt.literal("uri"),params:Rt.object({class:Rt.string(),"jcomplete-url":Rt.string(),type:Rt.string()})}),yn=Rt.union([Di,Zi,Ui,$i,zi,Ji,tn,nn,rn,sn,cn,dn,pn,fn,mn,bn,un,Xi,gn,hn,ln,Bi,Yi,en,Hi]),vn=Rt.union([Ki,Qi,Gi,Vi,an,Wi,qi,Ni,on]),wn={ADMIN:9,USER:5,EXTERNAL:3,GUEST:0},kn=Pi.extend({title:Rt.string(),_url:Rt.string(),level:Rt.nativeEnum(wn),dateCreation:Rt.string(),dateModified:Rt.string()}).catchall(vn),_n=kn.extend({active:Rt.number()}),Sn=e=>_n.safeParse(e).success,jn=_n,xn=e=>jn.safeParse(e).success,Cn=Rt.object({idInType:Rt.number(),lat:Rt.number(),lng:Rt.number()}),Tn=e=>Cn.safeParse(e).success,An=Rt.object({title:Rt.string(),firstname:Rt.string(),lastname:Rt.string(),mail:Rt.union([Rt.string(),Rt.undefined()]).optional(),description:Rt.string().optional(),dateOfBirth:Rt.string().optional(),phoneNumber:Rt.string().optional(),language:Rt.string().optional(),timeZone:Rt.string().optional(),mobileNumber:Rt.string().optional(),company:Rt.string().optional(),country:Rt.string().optional(),department:Rt.string().optional(),function:Rt.string().optional(),webSite:Rt.string().optional(),image:Rt.union([Rt.string(),Rt.undefined()]).optional(),userBanner:Rt.union([Rt.string(),Rt.undefined()]).optional(),field1:Rt.string().optional(),field2:Rt.string().optional(),field3:Rt.string().optional(),field4:Rt.string().optional(),field5:Rt.string().optional()}),On=An.required().extend({level:Rt.string(),image:Rt.string().optional(),businessManagementManager:kn.array().optional(),businessNetworkingUserToCompanySrc:kn.array().optional()}),Ln=Rt.object({user_field_edit_profil:Rt.record(An.keyof(),Rt.number()),user_field_editable:Rt.record(An.keyof(),Rt.number()),user_field_my_page:Rt.record(An.keyof(),Rt.number()),user_page_mandatory_fields:Rt.object({firstname:Rt.enum(["0","1"]),lastname:Rt.enum(["0","1"]),pseudo:Rt.enum(["0","1"])})}),Rn=Rt.object({name:Rt.string(),value:Rt.union([Rt.string(),Rt.record(Rt.string(),Rt.any())])}),En=Rt.enum(["popover"]),Fn=Rt.object({values:On,mobileEditableFields:On.keyof().array()}),Pn=Rt.object({mail:Rt.union([Rt.string(),Rt.undefined()]),title:Rt.string(),firstname:Rt.string(),lastname:Rt.string(),phoneNumber:Rt.union([Rt.string(),Rt.undefined()]).optional(),company:Rt.union([Rt.string(),Rt.undefined()]).optional(),function:Rt.union([Rt.string(),Rt.undefined()]).optional(),uri:Rt.union([Rt.string(),Rt.undefined()]).optional(),field1:Rt.union([Rt.string(),Rt.undefined()]).optional(),field2:Rt.union([Rt.string(),Rt.undefined()]).optional(),field3:Rt.union([Rt.string(),Rt.undefined()]).optional(),field4:Rt.union([Rt.string(),Rt.undefined()]).optional(),field5:Rt.union([Rt.string(),Rt.undefined()]).optional()}),In=Rt.object({userDirectoryShow:Rt.union([Rt.literal(""),Rt.literal("1")]),contactDirectoryShow:Rt.union([Rt.literal("0"),Rt.literal("1")]),businessContactShow:Rt.boolean(),menu:Rt.union([Rt.literal("0"),Rt.literal("1")]),cardFields:Rt.string().array(),tableFields:Rt.string().array(),viewFields:Rt.string().array(),userGeoloc:Rt.boolean().optional(),sort:Rt.string(),cnt:Rt.number().optional(),filters:Rt.object({name:Rt.string(),type:Rt.string()}).array()}),Mn=e=>In.safeParse(e).success,Dn=Fi({create:Rt.boolean(),read:Rt.boolean(),publish:Rt.boolean(),administrate:Rt.boolean(),update:Rt.boolean(),delete:Rt.boolean(),comment:Rt.boolean(),member:Rt.boolean()}),Nn=e=>Dn.safeParse(e).success,Zn=Rt.object({attrName:Rt.string(),token:Rt.string(),file:Rt.instanceof(File).nullable().optional(),url:Rt.string().optional()}),qn=Rt.object({width:Rt.number(),height:Rt.number()}),Un=Rt.object({x:Rt.number(),y:Rt.number(),w:Rt.number(),h:Rt.number(),rotation:Rt.number(),killSize:Rt.boolean().optional()}),Wn=Ii.extend({dateCreation:Rt.string(),dateModified:Rt.string().nullable(),mimetype:Rt.string(),path:Rt.string().optional(),size:Rt.number()}),Bn=e=>Wn.parse(e),$n=Wn.extend({_extend:Rt.object({crop:Un})}),Vn=Rt.object({name:Rt.string(),filename:Rt.string(),dateModified:Rt.string(),mimetype:Rt.string()}),zn=Rt.object({idUser:Rt.string(),dateDownload:Rt.string(),Pseudo:Rt.string(),type:Rt.string()});var Gn;Rt.object({id:Rt.number(),token:Rt.string().optional(),attrName:Rt.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"}(Gn||(Gn={}));const Jn=Rt.nativeEnum(Gn),Qn=Rt.object({title:Rt.string(),widget:Rt.object({name:Jn,uniqid:Rt.string(),content:Rt.unknown()})}).catchall(Rt.unknown()),Kn=Rt.enum(["left","right","center","justify"]),Hn=Rt.enum(["top","bottom","center","left","right"]),Yn=Rt.enum(["auto","contain","cover"]),Xn=Rt.enum(["sm","md","lg"]),er=Rt.enum(["contained","outlined"]),tr=Rt.enum(["link","anchor","popup"]),ir=Rt.object({x:Rt.number(),y:Rt.number()}),nr=Rt.enum(["default","vertical"]),rr=(e,t,i)=>{const n=t.safeParse(e);return!1===n.success&&i&&console.error(n.error.message),n.success},ar=(e,t)=>t.safeParse(e).success,sr=Fi({files:Wn.array().optional(),fileDisplay:Rt.enum(["list","gallery"]).optional()}),or=Fi({name:Rt.literal(Gn.ArticleAttachment),uniqid:Rt.string(),content:sr}),lr=Rt.object({url:Rt.string(),target:Rt.string()}),cr=Rt.object({uniqid:Rt.string()}),ur=Rt.object({title:Rt.string(),widgets:Qn.array()}),dr=Fi({text:Rt.string().optional(),color:Rt.string().optional(),backgroundColor:Rt.string().optional(),borderRadius:Rt.string().optional(),fontSize:Rt.string().optional(),buttonSize:Xn.optional(),variant:er.optional(),url:Rt.string().optional(),target:Rt.string().optional()}),pr=dr.extend({openingType:tr.optional(),openingTypeLink:lr.optional(),openingTypeAnchor:cr.optional(),openingTypePopup:ur.optional()}),mr=Fi({name:Rt.literal(Gn.ArticleButton),uniqid:Rt.string(),content:pr}),gr=Fi({gap:Rt.string().optional(),column:Rt.string().optional(),files:Wn.array().optional()}),hr=Fi({name:Rt.literal(Gn.ArticleGallery),uniqid:Rt.string(),content:gr}),fr=Fi({file:Wn.optional(),useFilter:Rt.boolean().optional()}),br=Fi({name:Rt.literal(Gn.ArticleImage),uniqid:Rt.string(),content:fr}),yr=Fi({title:Rt.string(),text:Rt.string(),titleHeading:Rt.enum(["h1","h2","h3","h4","h5","h6","p","span"]).optional(),textColor:Rt.string().optional(),opacityFilter:Rt.number().optional(),opacityColor:Rt.string().optional(),file:Wn.optional()}),vr=Fi({slides:yr.array().optional(),maxWidth:Rt.number().optional(),loop:Rt.boolean().optional(),useDots:Rt.boolean().optional(),startAt:Rt.number().optional()}),wr=Fi({name:Rt.literal(Gn.ArticleSlider),uniqid:Rt.string(),content:vr}),kr=Fi({text:Rt.string().optional(),color:Rt.string().optional(),fontSize:Rt.string().optional(),lineHeight:Rt.string().optional(),linkColor:Rt.string().optional()}),_r=Fi({name:Rt.literal(Gn.ArticleText),uniqid:Rt.string(),content:kr}),Sr=Fi({text:Rt.string().optional(),textAlign:Kn.optional(),heading:Rt.string().optional(),color:Rt.string().optional(),backgroundColor:Rt.string().optional()}),jr=Fi({name:Rt.literal(Gn.ArticleTitle),uniqid:Rt.string(),content:Sr}),xr=Fi({title:Rt.string(),value:Rt.boolean().optional(),links:vi.array().optional(),id:Rt.number().optional(),file:Wn.optional(),user:Rt.object({id:Rt.number().or(Rt.string()),type:Rt.literal("user"),mainType:Rt.literal("user")}).optional()}),Cr=Rt.object({arr:xr.array().optional(),css:Rt.record(Rt.string(),Rt.string()).optional(),widgets:Qn.array().optional(),edit:Rt.boolean().optional()}),Tr=Fi({name:Rt.literal(Gn.CheckList),uniqid:Rt.string(),content:Cr}),Ar=Rt.enum(["date","date-time","date-time-sec","time","time-sec"]),Or=Rt.enum(["fr-FR","en-EN","filesize"]),Lr=Rt.object({}),Rr=Rt.object({type:Rt.literal("text")}),Er=Rt.object({label:Rt.string(),value:Rt.string()}),Fr=Rt.object({type:Rt.literal("select"),options:Er.array()}),Pr=Rt.object({type:Rt.literal("date")}),Ir=Rt.union([Rr,Fr,Pr,Lr]),Mr=Rt.object({name:Rt.string().optional(),isVisible:Rt.boolean().optional(),textEllipsis:Rt.boolean().optional(),label:Rt.string().optional(),dateFormat:Ar.optional(),numberFormat:Or.optional()}),Dr=Mr.array(),Nr=Rt.enum(["text","uri","file","select","url","transient","date","datetime","email","number","title"]),Zr=Rt.object({name:Rt.string(),label:Rt.string(),sortable:Rt.boolean().optional(),type:Nr,widget:Ir}),qr=Rt.object({limit:Rt.number().or(Rt.boolean()).optional(),tableColumnsData:Mr.array().optional(),tableHeadColor:Rt.string().optional(),tableHeadTextColor:Rt.string().optional(),tableHeadIconColor:Rt.string().optional(),tableRowColor:Rt.string().optional(),tableRowTextColor:Rt.string().optional(),tableBorderRadius:Rt.number().optional(),tableSizedColumns:Rt.boolean().optional(),tableSizedColumnsWidth:Rt.number().optional()}),Ur=qr.extend({uri:Rt.string().optional()}),Wr=Fi({name:Rt.literal(Gn.DatasourceTable),uniqid:Rt.string(),content:Ur}),Br=Ur.extend({uri:Rt.string().optional()}),$r=Fi({name:Rt.literal(Gn.ExcelDatasourceTable),uniqid:Rt.string(),content:Br}),Vr=Rt.boolean().or(Rt.literal(0)).or(Rt.literal(1)),zr=Rt.object({limit:Rt.boolean().or(Rt.number()).optional(),limitValue:Rt.number().optional(),closing:Vr.optional(),isClosed:Vr.optional()}),Gr=e=>ar(e,zr),Jr=Fi({name:Rt.literal(Gn.Presence),uniqid:Rt.string(),content:zr}),Qr=e=>rr(e,Jr),Kr=Rt.object({id:Rt.number(),type:Rt.string(),uniqid:Rt.string(),value:Rt.number()}),Hr=e=>rr(e,Kr),Yr=Rt.object({userValue:Rt.number(),userAvailableList:kn.array(),userUnavailableList:kn.array(),userAvailableTotal:Rt.number(),userUnavailableTotal:Rt.number()}),Xr=e=>rr(e,Yr),ea=Rt.object({data:kn.array(),cnt:Rt.number(),page:Rt.number(),limit:Rt.number()}),ta=Fi({title:Rt.string(),id:Rt.number().optional(),mimetype:Rt.string().optional(),file:Wn.optional()}),ia=Rt.object({arr:ta.array().optional(),css:Rt.record(Rt.string(),Rt.string()).optional(),widgets:Qn.array().optional(),open:Vr.optional(),multi:Vr.optional(),closing:Vr.optional(),isClosed:Vr.optional(),showResult:Vr.optional(),isNotDisabled:Vr.optional(),seeResponseAfter:Vr.optional(),anonymize:Vr.optional()}),na=Fi({name:Rt.literal(Gn.QuickSurvey),uniqid:Rt.string(),content:ia}),ra=Rt.array(Rt.object({userList:kn.array(),counter:Rt.number()})),aa=Rt.object({totalRespondent:Rt.number(),totalResponse:Rt.number(),userLoggedResponses:Rt.string().array(),userResponses:ra}),sa=Rt.object({data:kn.array(),cnt:Rt.number(),page:Rt.number(),limit:Rt.number()}),oa=Rt.union([Rt.object({layers:Rt.string().array().optional()}).and(or),Rt.object({layers:Rt.string().array().optional()}).and(mr),Rt.object({layers:Rt.string().array().optional()}).and(hr),Rt.object({layers:Rt.string().array().optional()}).and(br),Rt.object({layers:Rt.string().array().optional()}).and(jr),Rt.object({layers:Rt.string().array().optional()}).and(_r),Rt.object({layers:Rt.string().array().optional()}).and(wr),Rt.object({layers:Rt.string().array().optional()}).and(Tr),Rt.object({layers:Rt.string().array().optional()}).and(Wr),Rt.object({layers:Rt.string().array().optional()}).and($r),Rt.object({layers:Rt.string().array().optional()}).and(Jr),Rt.object({layers:Rt.string().array().optional()}).and(na)]),la=Fi({title:Rt.string(),widget:oa}),ca=Rt.object({widgets:la.array().optional()}).and(Rt.union([sr,pr,gr,fr,kr,Sr,vr,Cr,Ur,Br,zr,ia])),ua=Rt.object({[Gn.ArticleButton]:mr,[Gn.ArticleGallery]:hr,[Gn.ArticleTitle]:jr,[Gn.ArticleText]:_r,[Gn.ArticleImage]:br,[Gn.ArticleAttachment]:or,[Gn.ArticleSlider]:wr,[Gn.CheckList]:Tr,[Gn.DatasourceTable]:Wr,[Gn.ExcelDatasourceTable]:$r,[Gn.Presence]:Jr,[Gn.QuickSurvey]:na}),da=Rt.object({[Gn.ArticleButton]:pr,[Gn.ArticleGallery]:gr,[Gn.ArticleTitle]:Sr,[Gn.ArticleText]:kr,[Gn.ArticleImage]:fr,[Gn.ArticleAttachment]:sr,[Gn.ArticleSlider]:vr,[Gn.CheckList]:Cr,[Gn.DatasourceTable]:Ur,[Gn.ExcelDatasourceTable]:Br,[Gn.Presence]:zr,[Gn.QuickSurvey]:ia}),pa=Rt.object({busy:Rt.union([Rt.boolean(),Rt.undefined()]).optional(),loading:Rt.union([Rt.boolean(),Rt.undefined()]).optional(),initialized:Rt.union([Rt.boolean(),Rt.undefined()]).optional(),mounted:Rt.union([Rt.boolean(),Rt.undefined()]).optional(),hover:Rt.union([Rt.boolean(),Rt.undefined()]).optional(),empty:Rt.boolean().optional(),locked:Rt.boolean().optional()}),ma=Rt.object({type:Rt.string(),title:Rt.string(),description:Rt.string(),privacy:Rt.union([Rt.string(),Rt.number()]),edito:Rt.string().nullable(),language:Rt.string(),category:Rt.string(),idCommunity:Rt.string().optional()}),ga=Rt.object({id:Rt.string(),name:Rt.string(),size:Rt.string()}),ha=Rt.union([Rt.literal(0),Rt.literal(1),Rt.literal(2),Rt.literal(3)]),fa=Rt.object({level:ha,user:kn}),ba=Rt.object({RF_Constant_levelName:Rt.string(),RF_delete:Rt.boolean(),RF_editing:Rt.boolean(),RF_level:Rt.number(),RF_levelName:Rt.string(),RF_levelName_Trad:Rt.string(),RF_parameters:Rt.boolean(),RF_setAdmin:Rt.boolean(),RF_spotit:Rt.boolean(),RF_spotit_own:Rt.boolean()});var ya;!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"}(ya||(ya={}));const va=Rt.nativeEnum(ya),wa=Rt.object({userLevelSpot:ba,spotMinLevelToInvit:Rt.number(),userRights:Dn,accessRequestStatus:va.optional()}),ka=Rt.object({value:Rt.union([Rt.string(),Rt.number()]),label:Rt.string()}),_a=Rt.object({id:Rt.string(),title:Rt.string()}),Sa=Rt.object({idSpot:Rt.string(),idOrder:Rt.string(),idWidget:Rt.string(),type:Rt.string(),title:Rt.string(),url:Rt.string(),visible:Rt.string()}),ja=Rt.object({edit_access:Rt.array(ka.and(Rt.object({description:Rt.string()}))),commentLevel:Rt.array(ka.and(Rt.object({selected:Rt.boolean().optional()}))),displayType:Rt.array(ka),user_level_signup:Rt.array(ka.and(Rt.object({selected:Rt.boolean().optional()}))),spot_right_user:Rt.array(ka.and(Rt.object({selected:Rt.boolean().optional()}))),useTeaser:Rt.array(ka),spotDefaultPublishType:Rt.array(Rt.string()),mail_frequency:Rt.array(ka),widgets:Rt.array(_a),custom_widgets:Rt.record(Sa).or(Rt.array(Rt.never())),isArchive:Rt.number(),fileSyncVersioningType:Rt.array(ka)}),xa=Rt.object({url:Rt.string(),idUser:Rt.number(),send:Rt.boolean().optional(),_user:kn.optional(),date:Rt.string().optional(),error:Rt.string().optional()}),Ca=Rt.object({edit_access:Rt.union([Rt.literal(""),Rt.literal("author")]),commentLevel:Rt.union([Rt.literal("-1"),Rt.literal("1"),Rt.literal("2"),Rt.literal("3")]),user_level_signup:Rt.union([Rt.literal(""),Rt.literal("1"),Rt.literal("2"),Rt.literal("3")]),nounsubscribe:Rt.union([Rt.literal("0"),Rt.literal("1")]),useTeaser:Rt.union([Rt.literal(""),Rt.literal("0"),Rt.literal("1")]).nullable(),displayType:Rt.string(),spot_right_user:Rt.string(),rss_feed:Rt.array(xa).nullable(),spotDefaultPublishType:Rt.string(),mail_frequency:Rt.string(),mail_comment:Rt.union([Rt.literal("1"),Rt.literal("")]),mail_spotit:Rt.union([Rt.literal("1"),Rt.literal("")]),mail_subscriber:Rt.union([Rt.literal("1"),Rt.literal("")]),lock_mail:Rt.union([Rt.literal("1"),Rt.literal("")]),activity:Rt.union([Rt.literal("1"),Rt.literal("0")]),publishFolder:Rt.union([Rt.literal("1"),Rt.literal("0")]),notifyFolder:Rt.union([Rt.literal("1"),Rt.literal("0")]),widgets:Rt.array(Rt.string()),rss_access:Rt.union([Rt.literal("1"),Rt.literal("0")]),rss_key:Rt.string(),fileSyncEnabled:Rt.union([Rt.literal("1"),Rt.literal("0")]),fileBankQuota:Rt.string(),fileSyncVersioningType:Rt.union([Rt.literal("overwrite"),Rt.literal("author-change")]),_options:ja,_errors:Rt.tuple([]),lastRssExecution:Rt.record(Rt.string()).optional()}),Ta=ma.and(Ca.omit({rss_feed:!0}).partial()).and(Rt.object({uri:Rt.string(),image:Rt.string().nullable().optional(),spotBanner:Rt.record(ga).or(Rt.array(Rt.never())).optional(),token:Rt.string().optional(),uriCommunity:Rt.string().optional(),custom_widgets:Rt.record(Sa).optional(),rss_feed:Rt.string()})),Aa=Rt.object({idWidget:Rt.string(),title:Rt.string(),url:Rt.string(),type:Rt.string(),icon:Rt.string(),description:Rt.string()}),Oa=Rt.object({id:Rt.string(),idorder:Rt.number(),label:Rt.string()}),La=Ii.extend({dateCreation:Rt.string(),dateModified:Rt.string(),category:Rt.number(),privacy:Rt.number()}),Ra=La.extend({description:Rt.string(),edito:Rt.string().nullable(),language:Rt.string()}),Ea=Ra.extend({image:Rt.string().nullable().optional(),spotBanner:Rt.record(ga).or(Rt.array(Rt.never())).optional(),idCommunity:Rt.string().optional(),useTeaser:Rt.union([Rt.literal(""),Rt.literal("0"),Rt.literal("1")]).nullable().optional()}),Fa=Rt.object({idSpot:Rt.union([Rt.string(),Rt.number()]),mailFrequency:Rt.union([Rt.string(),Rt.number()]),mailSpotit:Rt.boolean(),mailComment:Rt.boolean(),mailSubscriber:Rt.boolean()}),Pa=Rt.object({type:Rt.string().optional(),format:Li.optional(),query:Rt.string().optional(),limit:Rt.number().optional(),page:Rt.number().optional(),orders:xi.optional(),filters:Ci.or(Rt.undefined()).optional()}),Ia=e=>ba.safeParse(e).success,Ma=Ii.extend({description:Rt.string().optional().nullable(),_user:kn,_right:Dn}),Da=e=>Ma.safeParse(e).success,Na=Ii.extend({type:Rt.enum(["folder","rootFolder"]),folderColor:Rt.string().optional()}),Za=Rt.union([kn,La,Na]),qa=Ii.extend({dateCreation:Rt.string(),dateModified:Rt.string()}),Ua=qa.extend({description:Rt.string().nullable().optional(),_user:kn,_right:Dn,_audience:Za.array(),image:qn.optional(),articleWidgets:la.array().optional()}),Wa=Ua,Ba=Wa.extend({_attachedFiles:Wn.array()}),$a=Ba.extend({processContext:Rt.null(),_transientCtx:Rt.null(),uiObjectLink:Ii.array().optional()}),Va=e=>Ba.extend({idDraft:Rt.number(),form:e}),za=Rt.object({type:Rt.string().optional(),format:Li.optional(),formatExtend:Ri.optional(),query:Rt.string().optional(),limit:Rt.number().optional(),page:Rt.number().optional(),orders:xi.optional(),filters:Ci.optional(),public:Rt.boolean().optional()}),Ga=Rt.object({uri:Rt.string().optional(),idArticle:Rt.number().optional(),format:Li.optional()}),Ja=Rt.object({title:Rt.string().optional(),description:Rt.string().optional().nullable(),type:Rt.string().optional(),publishTo:Rt.string().optional(),idSpot:Rt.array(Rt.string()).optional()}),Qa=Rt.object({id:Rt.number(),type:Rt.string(),dateCreation:Rt.string(),dateModified:Rt.string(),title:Rt.string(),uri:Rt.string()}),Ka=Rt.object({attachment:Rt.boolean().optional(),idArticle:Rt.number(),limits:Rt.object({max:Rt.number(),start:Rt.number()}).optional()}),Ha=Rt.object({token:Rt.string(),content:Rt.string(),idArticle:Rt.number(),sendAlert:Rt.boolean(),alertAuthor:Rt.boolean(),widgets:la.array().optional(),type:Rt.union([Rt.literal("comment"),Rt.literal("commentResponse")]).optional()}),Ya=Rt.object({token:Rt.string().optional(),description:Rt.string().optional(),idComment:Rt.number(),widgets:la.array().optional()}),Xa=Rt.object({idUser:Rt.string(),dateRead:Rt.string(),Pseudo:Rt.string(),type:Rt.string()}),es=Na.merge(Wa).extend({_nbItems:Rt.number(),parentURI:Rt.string().optional()}),ts=Wa.extend({place:Rt.string(),address:Rt.string(),dateStart:Rt.string(),dateEnd:Rt.string(),noGestion:Rt.boolean()}),is=e=>ts.safeParse(e).success,ns=Ba.and(ts).and(Rt.object({allDay:Rt.null(),useQrcode:Rt.null(),textColor:Rt.string(),bgColor:Rt.string(),socialEventUseCeiling:Rt.null(),socialEventCeiling:Rt.null(),hideFromCalendar:Rt.null(),urlGestion:Rt.string().optional().nullable()})),rs=e=>ns.safeParse(e).success,as=Pi.extend({srcId:Rt.number(),srcType:Rt.string(),targetId:Rt.number(),targetType:Rt.string().nullable()}),ss=e=>as.extend({value:Rt.string().nullable(),_src:e.optional(),_target:e.optional().or(Rt.undefined())}),os=e=>ss(null!=e?e:Ii.or(kn)).extend({bookmarkUrl:Rt.string().optional().nullable(),bookmarkOrder:Rt.number().optional(),bookmarkLabel:Rt.string().optional(),bookmarkMeta:Rt.string().optional().nullable(),url:Rt.string().optional().nullable(),type:Rt.literal("bookmarkLink")}),ls=e=>Rt.object({id:Rt.number(),mainType:Rt.string(),type:Rt.string(),uri:Rt.string(),_values:Rt.object({dateCreation:Rt.string(),dateModified:Rt.string()}).optional(),srcId:Rt.number(),srcType:Rt.string(),targetId:Rt.number(),targetType:Rt.string().nullable(),value:Rt.string().nullable(),_cssColor:Rt.string(),_cssClass:Rt.string(),_src:(null!=e?e:Ii).optional(),_target:(null!=e?e:Ii).optional(),bookmarkUrl:Rt.string().optional().nullable(),bookmarkOrder:Rt.string().optional(),bookmarkLabel:Rt.string().optional(),bookmarkMeta:Rt.string().optional().nullable(),url:Rt.string().optional().nullable()});var cs;!function(e){e.RAW_LIST="raw-list",e.LIST="list"}(cs||(cs={}));const us=Rt.object({targetId:Rt.number(),targetType:Rt.string(),format:Rt.nativeEnum(cs).transform((e=>`${e}`)).optional()}),ds=Rt.object({[cs.RAW_LIST]:os(),[cs.LIST]:ls()}),ps=Rt.object({bookmarkLabel:os(Ii).shape.bookmarkLabel,bookmarkMeta:os(Ii).shape.bookmarkMeta,bookmarkUrl:os(Ii).shape.bookmarkUrl}),ms=Rt.object({countActiveUsersWithoutLicense:Rt.number().optional(),countLicensesAssigned:Rt.number(),countLicensesNotAssigned:Rt.number()}),gs=Rt.object({name:Rt.string(),operator:Rt.string(),value:Rt.number()}),hs=Rt.record(Rt.number()),fs=Rt.object({id:Rt.number(),kind:Rt.string(),dateCreation:Rt.string(),idFeature:Rt.number(),uri:Rt.string(),contentId:Rt.number(),contentType:Rt.string(),status:Rt.number()}),bs=Rt.object({id:Rt.number(),kind:Rt.string(),dateCreation:Rt.string(),idFeature:Rt.number(),uri:Rt.string(),contentId:Rt.number(),contentType:Rt.string(),status:Rt.number()}),ys=_n.extend({_extend:Rt.object({licenses:Rt.array(bs)})}),vs=Ei.extend({data:ys.array()}),ws=Rt.object({dateCreation:Rt.string(),action:Rt.string(),idUser:Rt.number(),pseudo:Rt.string(),level:Rt.number(),ip:Rt.string(),url:Rt.string(),extended:Rt.string().optional()}),ks=Rt.object({dateCreation:Rt.string(),action:Rt.string(),mainType:Rt.string(),idObject:Rt.number(),typeObject:Rt.string(),mail:Rt.string().optional(),url:Rt.string(),extended:Rt.string().optional()}),_s=Rt.object({dateCreation:Rt.string(),type:Rt.string(),msg:Rt.string()}),Ss=Rt.object({uri:Rt.string(),title:Rt.string(),price:Rt.number(),image:Rt.string(),license:Rt.boolean()}),js=Rt.object({url:Rt.string()}),xs=Rt.object({sref:Rt.string().optional(),href:Rt.string().optional(),idDiv:Rt.string(),label:Rt.string(),icon:Rt.string(),licenseMode:Rt.literal("classic").optional(),hook:Rt.string().optional()}),Cs=Rt.object({name:Rt.string(),label:Rt.string(),icon:Rt.string(),color:Rt.tuple([Rt.string(),Rt.string(),Rt.string()]),state:Rt.string().optional(),access:Rt.boolean(),url:Rt.string().optional(),tabs:Rt.array(xs).optional()}),Ts=Rt.array(Cs),As=Rt.union([Rt.literal("Christmas"),Rt.literal("Halloween"),Rt.literal("Celebration"),Rt.literal("Olympics"),Rt.literal("Maythefourth"),Rt.literal("Spring"),Rt.literal("MusicFestival"),Rt.literal("EasterEggs"),Rt.literal("CustomAnimation")]),Os=Rt.object({name:As,activeClickEffect:Rt.number(),activeDecor:Rt.number(),auto:Rt.boolean(),audience:Rt.array(Rt.string())}),Ls=Rt.object({date:Rt.string(),number:Rt.number()}),Rs=Rt.object({id:Rt.number(),mainType:Rt.string(),type:Rt.string(),uri:Rt.string(),dateCreation:Rt.string().nullable(),dateModified:Rt.string().nullable(),animationName:Rt.string(),dateStart:Rt.string(),dateEnd:Rt.string().nullable(),auto:Rt.boolean(),stats:Rt.array(Ls),animAudience:Rt.array(Rt.string())}),Es=Rt.union([Rt.literal("created"),Rt.literal("validated"),Rt.literal("handled")]),Fs=Ba.extend({aseiClearanceTicketValidator:kn.array(),aseiClearanceTicketHandler:Ii.array(),aseiClearanceTicketApplicationManagers:Ii.array(),aseiClearanceTicketInstitution:Ii.array(),processContext:Rt.null(),_transientCtx:Rt.null(),aseiClearanceTicketNatureOfDemand:Rt.string(),aseiClearanceTicketInternetAccess:Rt.string(),aseiClearanceTicketInternetAccessSpecify:Rt.string(),aseiClearanceTicketMicrosoftTeams:Rt.string().nullable(),aseiClearanceTicketVariousNetworks:Rt.string().nullable(),aseiClearanceTicketFreeText:Rt.string(),aseiClearanceTicketOfficeAccess:Rt.string().nullable(),aseiClearanceTicketSharedDirectoriesSpecify:Rt.string(),aseiClearanceTicketBlueKanGo:Rt.string().nullable(),aseiClearanceTicketAccounting:Rt.string(),aseiClearanceTicketAccountingBudget:Rt.string(),aseiClearanceTicketTransfers:Rt.string().nullable(),aseiClearanceTicketBilling:Rt.string(),aseiClearanceTicketPayroll:Rt.string(),aseiClearanceTicketPayrollBudget:Rt.string(),aseiClearanceTicketAccommodationCosts:Rt.string(),aseiClearanceTicketCommercialManagement:Rt.string(),aseiClearanceTicketInventoryManagement:Rt.string(),aseiClearanceTicketTimeManagement:Rt.string(),aseiClearanceTicketBdes:Rt.string(),aseiClearanceTicketMandateStart:Rt.string().nullable(),aseiClearanceTicketMandateEnd:Rt.string().nullable(),aseiClearanceTicketIndicatorsPlatform:Rt.string().nullable(),aseiClearanceTicketBudgetLetters:Rt.string(),aseiClearanceTicketComputerisedFile:Rt.string().nullable(),aseiClearanceTicketRecruiterAccess:Rt.string().nullable(),aseiClearanceTicketTypeOfWorkContractFrom:Rt.null(),aseiClearanceTicketTypeOfWorkContractTo:Rt.null(),aseiClearanceTicketLastName:Rt.string(),aseiClearanceTicketFirstName:Rt.string(),aseiClearanceTicketUser:kn.array(),aseiClearanceTicketTypeOfWorkContract:Rt.string(),aseiClearanceTicketTypeOfWorkContractSpecify:Rt.string(),aseiClearanceTicketPosition:Rt.string(),aseiClearanceTicketStatus:Es}),Ps=qa.extend({_right:Dn,_user:kn,aseiInstitutionValidator:Ii.array(),processContext:Rt.null()}),Is=Rt.object({dsi:Rt.string(),gestionnaireApplicatif:Rt.string(),createurDemande:Rt.string()}),Ms=Rt.object({accessWriter:Rt.boolean(),accessApp:Rt.boolean()}),Ds=Rt.object({description:Rt.string(),right:Rt.object({manage:Rt.boolean()}),daysOff:Rt.array(Rt.string()).optional(),weekEnd:Rt.union([Rt.literal("0"),Rt.literal("1")]),bookingOpeningTime:Rt.string(),bookingClosingTime:Rt.string(),lastBookingSchedule:Rt.string()}),Ns=Wa.extend({_isColorDark:Rt.boolean().nullable(),assetPlannerBackgroundColor:Rt.string().nullable()}),Zs=Ns.extend({assetBanner:Rt.record(Rt.object({id:Rt.string(),name:Rt.string(),size:Rt.string()}))}),qs=Wa.extend({dateStart:Rt.string(),dateEnd:Rt.string(),reservationCancelled:Rt.boolean(),_asset:Ns}),Us=Rt.object({id:Rt.string(),uri:Rt.string(),shortUri:Rt.string(),title:Rt.string(),name:Rt.string(),mainType:Rt.string(),type:Rt.string(),label:Rt.string(),cssClass:Rt.string(),cssColor:Rt.string(),class:Rt.string()}),Ws=Us.extend({title:Rt.string()}),Bs=Ws.extend({Pseudo:Rt.string(),_url:Rt.string()}),$s=Ws.extend({idspot:Rt.string()}),Vs=Rt.union([Ws,Bs,$s]),zs=Ii.extend({isTechnical:Rt.number(),status:Rt.number(),image:Rt.string(),isMember:Rt.boolean(),stats:Rt.object({moderators:Rt.number(),members:Rt.string()}),_members:Rt.array(Ii)}),Gs=Rt.object({token:Rt.string(),fullname:Rt.string()}),Js=Rt.object({redirectUrl:Rt.string()}),Qs=Rt.object({token:Rt.string()}),Ks=Rt.object({dateStart:Rt.string(),title:Rt.string()}),Hs=qa.extend({type:Rt.literal("businessContactCard")}),Ys=Wa.and(Hs.and(Rt.object({mail:Rt.string().nullable(),pseudo:Rt.string().nullable(),firstName:Rt.string().nullable(),lastName:Rt.string().nullable(),phoneNumber:Rt.string().nullable(),company:Rt.string().nullable(),function:Rt.string().nullable(),champ1:Rt.string().nullable().optional(),champ2:Rt.string().nullable().optional(),champ3:Rt.string().nullable().optional(),champ4:Rt.string().nullable().optional(),champ5:Rt.string().nullable().optional()}))),Xs=Rt.object({idArticle:Rt.number(),title:Rt.string(),start:Rt.string(),end:Rt.string(),url:Rt.string(),textColor:Rt.string().optional(),color:Rt.string().optional(),bgColor:Rt.string().optional(),backgroundColor:Rt.string().optional(),subscribe:Rt.boolean()}),eo=e=>Xs.safeParse(e).success,to=Rt.object({maxdate:Rt.string().optional(),subscribers:kn.array(),subscribersTotal:Rt.number()}),io=Rt.literal("read"),no=Rt.object({type:Rt.string(),class:Rt.string(),isActive:Rt.boolean(),label:Rt.string(),cssClass:Rt.string(),cssColor:Rt.string(),struct:Rt.object({action:Rt.string(),do:Rt.string(),type:Rt.string(),targetId:Rt.number(),targetType:Rt.string()}),stats:Rt.object({total:Rt.number()})}),ro=Pi.omit({dateModified:!0}).extend({dateCreation:Rt.string(),dateModified:Rt.string().nullable(),description:Rt.string().nullable(),_user:kn}),ao=ro.extend({_right:Dn,_attachedFiles:Rt.array(Wn).optional(),_actions:Rt.record(no).optional(),_widgets:Rt.array(la).optional()}),so=Ma.extend({dateStart:Rt.string(),animatedMeetingContent:Rt.record(Rt.unknown()),_extend:Rt.object({status:Rt.string(),statusValue:Rt.literal(1).or(Rt.literal(2)).or(Rt.literal(3)),date:Rt.string()}),_audience:Za.array(),_audienceLeft:Rt.number()}),oo=Rt.union([Rt.literal("groups"),Rt.literal("sites"),Rt.literal("onedrive"),Rt.literal("group"),Rt.literal("documents"),Rt.literal("me")]),lo=Fi({title:Rt.string(),id:Rt.string(),type:Rt.string()}),co=lo.omit({id:!0}).extend({name:oo.optional()}),uo=lo.and(Rt.object({})),po=lo.extend({visibility:Rt.union([Rt.literal("public"),Rt.literal("private")]).optional()}),mo=lo.extend({mimetype:Rt.string().optional(),webUrl:Rt.string().optional(),size:Rt.number().optional()}),go=mo,ho=mo.extend({_extend:Rt.object({path:Rt.string()})}),fo=po.and(mo),bo=Rt.object({id:Rt.string(),title:Rt.string(),mail:Rt.string(),default:Rt.boolean().optional()}),yo=Rt.object({title:Rt.string(),id:Rt.string(),type:Rt.string(),mimetype:Rt.string().optional(),webUrl:Rt.string().optional()}),vo=Rt.object({msTenant:Rt.union([oo,Rt.undefined()]),msId:Rt.union([Rt.string(),Rt.undefined()]),idFolder:Rt.union([Rt.string(),Rt.undefined()]),page:Rt.number(),limit:Rt.number(),query:Rt.string().optional().nullable()}),wo=Rt.object({path_lower:Rt.string(),query:Rt.string().optional().nullable()}),ko=Rt.object({id:Rt.number(),name:Rt.string(),type:Rt.string(),token:Rt.string(),size:Rt.number(),mediaKey:Rt.string()}),_o=Rt.object({token:Rt.string().optional(),attrName:Rt.string(),file:Rt.object({service:Rt.string(),account:Rt.string(),title:Rt.string(),mimetype:Rt.string().optional(),_document:mo})}),So=Rt.object({id:Rt.string(),service:Rt.string()}),jo=Rt.object({service:Rt.string(),id:Rt.string()}),xo=Rt.object({account:bo}),Co=Rt.object({service:Rt.string(),account:Rt.string()}),To=Rt.object({allow:Rt.union([Rt.literal("groups"),Rt.literal("me")]).array().optional(),id:Rt.string()}),Ao=Rt.object({id:Rt.string(),documentParams:vo}),Oo=Rt.object({id:Rt.string(),documentParams:wo}),Lo=Rt.object({query:Rt.string().optional(),filter:Rt.string().optional(),id:Rt.string()}),Ro=Wa.extend({faqColor:Rt.string().optional(),image:qn.optional(),type:Rt.literal("faq")}),Eo=Ba.and(Ro).and(Rt.object({_audience:Vs.array(),tags:Ws.array().optional(),isWeb:Rt.boolean(),faqContent:Rt.array(Rt.object({title:Rt.string(),id:Rt.string().optional(),items:Rt.array(Rt.string())})).optional()})),Fo=e=>e.and(Rt.object({_extend:Rt.object({itemsCount:Rt.number()})})),Po=Wa.extend({type:Rt.literal("faqItem"),hierarchy:Rt.object({category:Rt.string().optional(),theme:Rt.string().optional()})}),Io=Po.omit({hierarchy:!0}).extend({faqResponse:Rt.string(),tags:Ws.array().optional(),uriCategory:qa.array(),themeId:Rt.string(),_nbAttachedFiles:Rt.number().optional(),_attachedFiles:Wn.array(),uiObjectLink:Rt.unknown()}),Mo=Ti(Ja.omit({idSpot:!0})).and(Rt.object({image:qn.nullable().optional(),tags:Rt.string().optional(),faqColor:Rt.string().optional(),isWeb:Rt.boolean().optional(),type:Rt.literal("faq")})),Do=Mo.and(Rt.object({uri:Rt.string(),format:Li.optional()})),No=Rt.object({title:Rt.string(),id:Rt.string()}),Zo=Rt.object({_web:Rt.union([Rt.literal("0"),Rt.literal("1"),Rt.literal("")]).optional(),appImageText:Rt.string().optional(),appImage:Rt.union([Rt.string(),Rt.object({image:Rt.object({id:Rt.string(),type:Rt.string()})})]).optional(),_displayComment:Rt.union([Rt.literal("0"),Rt.literal("1"),Rt.literal("")]).optional()}),qo=Rt.object({createCategory:Rt.boolean()}),Uo=Rt.object({idCategory:Rt.number(),title:Rt.string()}),Wo=Rt.object({idCategory:Rt.number(),indexTheme:Rt.number(),deleteEntries:Rt.boolean().optional()}),Bo=Rt.object({idCategory:Rt.number(),indexTheme:Rt.number(),title:Rt.string()}),$o=Ti(Ja).and(Rt.object({tags:Rt.string().optional(),faqResponse:Rt.string().optional(),type:Rt.literal("faqItem")})),Vo=Rt.object({idEntry:Rt.number(),idCategory:Rt.number(),theme:Rt.number()}),zo=$o.and(Rt.object({uri:Rt.string()})),Go=Rt.object({entryURI:Rt.string(),sourceURI:Rt.string().optional(),targetURI:Rt.string(),theme:Rt.number()}),Jo=Rt.object({sourceUri:Rt.string(),targetUri:Rt.string(),themeIndex:Rt.number()}),Qo=e=>Rt.object({isActive:Rt.boolean()}).and(e),Ko=Rt.enum(["drive_microsoft_graph","drive_dropbox","drive_google"]),Ho=Qo(Rt.object({drives:Rt.record(Ko,Rt.boolean())})),Yo=Qo(Rt.object({label:Rt.string()})),Xo=Qo(Rt.object({orderBy:Rt.string(),order:Rt.enum(["ASC","DESC"])})),el=Rt.object({label:Rt.string(),description:Rt.string(),extension:Rt.string(),icon:Rt.string(),color:Rt.string()}),tl=Qo(Rt.object({hasLicense:Rt.boolean(),label:Rt.string(),description:Rt.string(),color:Rt.string(),templates:el.array()})),il=Qo(Rt.object({hasLicense:Rt.boolean()})),nl=Qo(Rt.object({sendAlert:Rt.boolean()})),rl=Qo(Rt.object({})),al=Qo(Rt.object({create:Rt.boolean(),autorize:Rt.array(Rt.enum(["message","comment","board","article"]).optional())})),sl=Qo(Rt.object({label:Rt.string(),hasLicense:Rt.boolean()})),ol=Rt.object({MagicPadHook:sl}).partial(),ll=Rt.object({DriveHook:Ho,calendarHook:Yo,FileBankHook:Xo,StudioHook:il,OnlyOfficeHook:tl,spotRssFeed:rl,WidgetHook:al,AdminAdvancedHook:nl}).partial().and(ol),cl=Rt.union([Rt.literal("summarize"),Rt.literal("develop"),Rt.literal("reformulate"),Rt.literal("tldr"),Rt.literal("en"),Rt.literal("es"),Rt.literal("formal"),Rt.literal("funny")]),ul=Rt.object({text:Rt.string()}),dl=Rt.object({idLog:Rt.number(),slug:Rt.string(),dateCreation:Rt.string(),map:Rt.string(),mail:Rt.string(),action:Rt.string(),mode:Rt.string()}),pl=Rt.object({mail:Rt.string(),cnt:Rt.string()}),ml=Rt.string(),gl=Rt.string(),hl=qa.extend({jlandMapFlavor:ml,jlandMapKind:gl,waMapUrl:Rt.string().optional(),limit:Rt.number().optional(),_extend:Rt.object({licenses:Rt.array(bs)})}),fl=Ja.extend({jlandMapAggregated:Rt.string(),type:Rt.literal("jlandmap")}),bl=Rt.object({jlandMapKind:Rt.string(),jlandMapFlavor:Rt.string(),limit:Rt.number().nullable(),waMapUrl:Rt.string().nullable()}),yl=qa.and(bl),vl=Wa.and(bl),wl=Ba.and(bl),kl=Rt.object({kind:Rt.string(),page:Rt.number(),limit:Rt.number(),filters:ji.array().optional(),orders:wi.array().optional()}),_l=e=>Rt.object({license:Rt.union([Rt.literal("1"),Rt.literal("0")]),user:e}),Sl=qa.extend({attachment:Wn,description:Rt.string()}),jl=Wa.extend({description:Rt.string(),attachment:Wn,_audience:Vs.array()}),xl=Rt.object({format:Li,page:Rt.number().optional(),limit:Rt.number().optional(),nolimit:Rt.boolean().optional()}),Cl=Rt.object({id:Rt.number(),idFolder:Rt.number().optional(),fileName:Rt.string(),nbViews:Rt.number(),nbDistinctViews:Rt.number(),nbDownloads:Rt.number()}),Tl=Rt.object({id:Rt.number(),folderName:Rt.string(),nb:Rt.number(),nbDistinct:Rt.number()}),Al=Rt.object({nbFolders:Rt.number(),nbFiles:Rt.number()}),Ol=Rt.object({uriFile:Rt.string(),uriFolder:Rt.string()}),Ll=ts.extend({}),Rl=e=>Ll.safeParse(e).success,El=Ba.and(Ll).and(Rt.object({allDay:Rt.null(),agenda:Rt.string(),useQrcode:Rt.null(),textColor:Rt.string(),bgColor:Rt.string(),report:Rt.string(),reportFile:Rt.array(Rt.never()),urlGestion:Rt.string().nullable().optional()})),Fl={all:0,admin:1,custom:2},Pl=Rt.object({uri:Rt.string(),title:Rt.string(),type:Rt.string(),mainType:Rt.string()}),Il=Wa.extend({anonymousResponse:Rt.null(),multipleResponse:Rt.number(),publicResults:Rt.null(),pollProgression:Rt.object({colors:Rt.record(Rt.string()),maxRespondentsValue:Rt.number(),countRespondentsValue:Rt.number()}),pollResponseShowProgression:Rt.number(),dateEnd:Rt.string(),status:Rt.object({name:Rt.string(),value:Rt.number()})}),Ml=Ba.and(Il).and(Rt.object({pollContent:Rt.null(),pollLinks:Rt.null(),pollForceClose:Rt.null(),pollResponseUserVisibility:Rt.null(),pollResponseAuthorVisibility:Rt.null(),pollResponseShowRespondent:Rt.null(),pollBanner:Rt.tuple([]),pollMessage:Rt.string()})),Dl=Rt.object({idQuestion:Rt.number(),idResponse:Rt.number()}),Nl=Rt.object({idQuestion:Rt.number()}),Zl=Wa.extend({quizzDescription:Rt.string().nullable(),quizzClosingDate:Rt.string().nullable(),dateStart:Rt.string().nullable(),dateEnd:Rt.string().nullable()}),ql=Ba.and(Zl).and(Rt.object({quizzInvitation:Rt.null(),quizzFormSpec:Rt.string(),quizzRandom:Rt.null(),quizzHideResponses:Rt.null(),quizzStatus:Rt.null(),quizzPublicationDate:Rt.string().nullable()})),Ul=Rt.object({count:Rt.number(),id:Rt.string()}),Wl=Rt.union([Rt.literal("AND"),Rt.literal("OR")]),Bl=Rt.object({facetType:Rt.string(),facetOptions:Rt.union([Rt.record(Rt.union([Rt.object({}).passthrough(),Rt.number(),Rt.string()])),Rt.array(Rt.never())]),facetMode:Wl.optional(),field:Rt.string(),title:Rt.string(),description:Rt.string().optional(),category:Rt.string().optional()}),$l=Rt.object({id:Rt.string(),mainType:Rt.string(),type:Rt.string().optional(),title:Rt.string(),cssclass:Rt.string().optional(),active:Rt.boolean().optional(),count:Rt.number().optional(),typesExcluded:Rt.array(Rt.string()),facets:Bl.array()}),Vl=Rt.object({count:Rt.number(),value:Rt.string(),title:Rt.string()}),zl=Rt.object({name:Rt.string(),count:Rt.number(),values:Vl.array(),title:Rt.string()}),Gl=Rt.object({field:Rt.string(),value:Rt.union([Rt.string(),Rt.array(Rt.string())]),exclude:Rt.boolean().optional(),or:Rt.boolean().optional()}),Jl=Rt.object({field:Rt.string(),order:Rt.union([Rt.literal("desc"),Rt.literal("asc")])}),Ql=Rt.object({facetLimit:Rt.number(),skipEmptyFacets:Rt.boolean()}),Kl=Rt.object({home:Rt.object({mode:Rt.union([Rt.literal("result"),Rt.literal("category")]),facets:Bl.array()}),categories:$l.array(),viewcard:Rt.record(Rt.array(Rt.object({name:Rt.string(),title:Rt.string()}))),facetMode:Rt.boolean()}),Hl=Rt.object({name:Rt.string(),title:Rt.string(),img:Rt.string(),icon:Rt.string().optional(),color:Rt.string().optional(),urlTarget:Rt.enum(["_blank"]).optional(),urlNoReferrer:Rt.boolean().optional(),_url:Rt.string()}),Yl=Rt.object({id:Rt.number().optional(),title:Rt.string(),picture:Rt.string().optional(),uri:Rt.string(),mainType:Rt.string(),type:Rt.string().optional(),icon:Rt.string().optional(),_cssColor:Rt.string().optional(),_cssClass:Rt.string().optional(),_url:Rt.string().optional(),idArticle:Rt.number().optional(),_user:Rt.object({title:Rt.string()}).optional(),_values:Rt.object({privacy:Rt.number().optional(),category:Rt.string().optional(),dateCreation:Rt.string(),dateModified:Rt.string()}).optional()}),Xl=Rt.object({keywords:Rt.string().optional(),category:Rt.string().optional(),facetCategories:Rt.boolean().optional(),filters:Gl.array().optional(),facets:Bl.array().optional(),page:Rt.number().optional(),limit:Rt.number().optional(),sort:Jl.optional(),options:Ql.optional(),format:Li.optional()}),ec=e=>Rt.object({start:Rt.number(),count:Rt.number(),results:Rt.array(null!=e?e:Ii),facets:zl.array(),categories:Ul.array()}),tc=Rt.object({keywords:Rt.string()}),ic=Rt.union([Hl,Yl]),nc=Rt.object({title:Rt.string(),id:Rt.string(),showAll:Rt.boolean().optional(),results:ic.array()}),rc=Rt.union([Rt.literal("link"),Rt.literal("invitation")]),ac=Rt.object({id:Rt.number(),title:Rt.string(),uri:Rt.string(),idUser:Rt.number(),_right:Dn}),sc=Rt.object({audience:Rt.array(Za),read:Rt.array(Rt.string()),write:Rt.array(Rt.string())}),oc=Rt.object({id:Rt.number(),type:Rt.string(),uri:Rt.string(),title:Rt.string(),generalAccessRule:rc,generalAccessHash:Rt.string().nullable(),idUser:Rt.number(),_audience:Rt.array(Za),_right:Dn}),lc=Rt.object({targetId:Rt.number(),targetType:Rt.string(),type:Rt.string()}),cc=Rt.object({targetId:Rt.number(),targetType:Rt.string(),type:Rt.string()}),uc=Wa.extend({supportStatus:Rt.union([Rt.number(),Rt.string()]).nullable(),supportType:Rt.union([Rt.number(),Rt.string()]).nullable(),supportOwner:Rt.array(kn)}),dc=Ba.and(uc).and(Rt.object({})),pc=Wa.extend({dates:Rt.array(Rt.string()),dateStart:Rt.string().nullable(),dateEnd:Rt.string()}),mc=Ba.and(pc).and(Rt.object({surveyObjectLink:Rt.array(qa)})),gc=Rt.union([Rt.literal("DYNAMIC"),Rt.literal("SLIDESHOW")]),hc=e=>Ma.extend({tvChannelType:e,tvChannelBackgroundColor:Rt.string().nullable(),tvChannelNumImages:Rt.number(),tvChannelGroupTarget:La.optional(),tvChannelConfig:Rt.object({backgroundType:Rt.union([Rt.literal("color"),Rt.literal("image")]).optional(),globalShowComment:Rt.boolean().optional(),scaleImg:Rt.boolean().optional(),key:Rt.string(),contents:Rt.array(Rt.object({uri:Rt.string(),dateEnd:Rt.string().optional(),showComments:Rt.boolean().optional(),order:Rt.number().optional()})).optional()})}),fc=hc(Rt.literal("DYNAMIC")).extend({tvChannelNumImages:Rt.literal(0)}),bc=hc(Rt.literal("SLIDESHOW")),yc=qa.readonly(),vc=Wa.and(fc).readonly(),wc=Wa.and(bc).readonly(),kc=Wa.and(fc).readonly().or(bc),_c=vc.or(wc),Sc=Ja.and(fc.partial().or(bc.partial())).and(Rt.object({tvChannelType:gc})).readonly(),jc=Rt.object({tvChannelGroupTarget:Rt.array(Rt.string()).optional(),tvChannelNumImages:Rt.never().optional()}),xc=ao.extend({_extend:Rt.object({userImageSecureUrl:Rt.string(),descriptionSecure:Rt.string()})}).readonly(),Cc=Wa.extend({_extend:Rt.object({imageSecureUrl:Rt.string().optional(),descriptionSecure:Rt.string(),comments:Rt.array(xc)}).optional()}).readonly(),Tc=Wn.extend({_extend:Rt.object({imageSecureUrl:Rt.string().optional()})}),Ac=vc.and(Rt.object({_extend:Rt.object({imageSecureUrl:Rt.string().optional(),articles:Rt.array(Cc).optional()})})),Oc=e=>Ac.safeParse(e).success,Lc=wc.and(Rt.object({_extend:Rt.object({attachments:Rt.array(Tc).optional()})})),Rc=e=>Lc.safeParse(e).success,Ec=Ac.or(Lc),Fc=Rt.object({interval:Rt.number(),channel:Ec}),Pc=Rt.object({cache_suffix:Rt.string(),toolbar:Rt.string(),language:Rt.string(),content_css:Rt.string(),quickbars_selection_toolbar:Rt.string()}),Ic=Pc.extend({plugins:Rt.array(Rt.string()),text_patterns:Rt.array(Rt.object({start:Rt.string(),end:Rt.string().optional(),format:Rt.string().optional(),cmd:Rt.string().optional()})),height:Rt.number(),menubar:Rt.boolean(),branding:Rt.boolean(),skin:Rt.string(),convert_urls:Rt.boolean(),invalid_elements:Rt.string(),extended_valid_elements:Rt.string(),custom_elements:Rt.string(),inline_boundaries_selector:Rt.string(),toolbar_mode:Rt.union([Rt.literal("floating"),Rt.literal("sliding"),Rt.literal("scrolling"),Rt.literal("wrap")]),promotion:Rt.boolean(),font_size_formats:Rt.string(),contextmenu:Rt.union([Rt.string(),Rt.literal(!1)]),paste_data_images:Rt.boolean(),browser_spellcheck:Rt.boolean(),quickbars_insert_toolbar:Rt.boolean(),license_key:Rt.literal("gpl")}),Mc=Rt.object({commentsToolbar:Rt.string()}),Dc=Rt.object({createdAt:Rt.string(),filename:Rt.string(),isExpired:Rt.boolean(),url:Rt.string()}),Nc=Rt.object({id:Rt.number(),subject:Rt.string(),createdAt:Rt.string(),updatedAt:Rt.string(),idArticle:Rt.number(),idUser:Rt.number(),user:Rt.object({id:Rt.number(),uri:Rt.string(),title:Rt.string()}),stats:Rt.object({participantsNumber:Rt.number(),totalDurationSeconds:Rt.number(),visioSessionsNumber:Rt.number()})}),Zc=Rt.object({rooms:Rt.object({totalItems:Rt.number(),member:Rt.array(Nc)}),platform:Rt.object({sessionsNumber:Rt.number(),durationAverage:Rt.number(),durationMedian:Rt.number(),participantsNumber:Rt.number()})}),qc=Rt.object({id:Rt.number(),room:Rt.string(),duration:Rt.number(),participantsNb:Rt.number(),startedAt:Rt.string(),endedAt:Rt.string()}),Uc=Rt.object({totalItems:Rt.number(),member:Rt.array(qc)}),Wc="accept",Bc="deny",$c=Rt.union([Rt.literal(Wc),Rt.literal(Bc)]),Vc=Rt.object({color:Rt.string(),description:Rt.string(),extension:Rt.string(),icon:Rt.string(),label:Rt.string()}),zc=Pi.extend({title:Rt.string(),mimetype:Rt.string(),_extend:Rt.object({generalAccessRule:Rt.string(),generalAccessHash:Rt.union([Rt.string(),Rt.undefined()]),dateModified:Rt.string(),dateCreation:Rt.string(),fileInfo:Vc,parentId:Rt.number(),parentType:Rt.string(),parentFiles:Rt.array(Rt.number()),_url:Rt.string()}),_audience:Rt.array(Ii),_right:Dn,_user:kn}),Gc=Ii,Jc=Rt.object({color:Rt.string(),description:Rt.string(),extension:Rt.string(),icon:Rt.string(),label:Rt.string()}),Qc=Rt.object({page:Rt.number(),cnt:Rt.number(),limit:Rt.number(),data:Rt.array(zc)}),Kc=Rt.object({query:Rt.string(),filters:Ci,orders:xi,page:Rt.number(),limit:Rt.number()}),Hc=Rt.object({}),Yc=Rt.object({label:Rt.string(),description:Rt.string(),name:Jn,img:Rt.string(),available:Rt.boolean(),panel:Rt.object({useWrapper:Rt.boolean(),useEditor:Rt.boolean(),useWidgets:Rt.boolean()})}),Xc=e=>Yc.safeParse(e).success,eu=e=>void 0!==e&&"type"in e&&"uri"in e,tu=qa.extend({articleWidgets:la.array(),articleWidgetDisplayMode:nr.nullable().or(Rt.undefined())}),iu=Rt.object({uniqid:Rt.string(),title:Rt.string(),locked:Rt.boolean(),visible:Rt.boolean(),widgets:la.array(),position:ir.optional()}),nu=Rt.enum(["edit","view","preview"]),ru=Rt.object({width:Rt.number().or(Rt.undefined()).optional(),inplace:Rt.boolean(),isComponentVisible:Rt.boolean().optional(),mode:nu,onClick:Rt.function().returns(Rt.void()).optional(),onChange:Rt.function().args(ca,Rt.boolean()).returns(Rt.void()),onStateChange:Rt.function().args(pa).returns(Rt.void())}),au=Rt.object({text:Rt.string(),value:Rt.boolean().optional(),links:vi.array().optional(),uri:Rt.string().optional(),mimetype:Rt.string().optional(),id:Rt.number().optional(),user:kn.optional()}),su=Rt.object({arr:au.array().optional(),edit:Rt.boolean().optional()}),ou=Rt.object({name:Rt.literal("widget-check-list"),uniqid:Rt.string(),content:su,title:Rt.string()}),lu=Rt.object({title:Rt.string().optional(),view:Rt.any().optional()}),cu=Rt.object({uniqid:Rt.string(),fn:Rt.enum(["widget-presence-response","check-list-response","widget-update","widget-quick-survey-response"]),object:Ii}),uu=Rt.object({token:Rt.string().or(Rt.undefined()).optional(),ids:Rt.record(Rt.string(),la),layers:Rt.record(Rt.string(),iu),states:Rt.record(Rt.string(),pa),modal:lu.or(Rt.undefined()),editableMap:Rt.record(Rt.string(),Rt.object({index:Rt.number(),uniqid:Rt.string()})),currentEditableIndex:Rt.number(),currentEditableWidgetId:Rt.string().or(Rt.undefined()),widgetObject:Rt.record(Rt.string(),Ii.partial()),widgetObjectRights:Rt.record(Rt.string(),Dn),widgetAuthor:Rt.record(Rt.string(),kn.partial()),flushedWidgets:Rt.string().array(),rtObjectStack:cu.array()}),du=Rt.object({widgets:uu}),pu=Wa.extend({articleWidgets:la.array(),articleWidgetDisplayMode:nr.nullable().or(Rt.undefined()),articleWidgetsCover:Rt.number().or(Rt.undefined()),_audience:Vs.array()}),mu=e=>la.safeParse(e).success,gu=e=>rr(e,or),hu=e=>rr(e,mr),fu=e=>rr(e,hr),bu=e=>rr(e,br),yu=e=>rr(e,wr),vu=e=>rr(e,_r),wu=e=>rr(e,jr),ku=(e,t)=>rr(e,Tr,t),_u=e=>rr(e,Wr),Su=e=>rr(e,$r),ju=e=>rr(e,na);class xu extends i{list(e){var t,i;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"jamespotArticleQueryList"},e),{format:yi(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:yi(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 Cu=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 Tu 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=Cu(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=Cu(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"BookByDate",format:t},i))}getList(e){var{format:t="raw-list"}=e,i=Cu(e,["format"]);return this.network.post(Object.assign({o:"objectList",f:"assetReservationList",format:t},i))}}class Au 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 Ou 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))}recordingDelete(e,t,i){return this.network.post({o:"bigBlueButton",f:"videoRecordingDelete",id:e,filename:t},null==i?void 0:i.signal)}}class Lu 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 Ru extends i{getInfos(e,t){return this.network.post({o:"BusinessNetworking",f:"MarkerInfo",id:e,format:null!=t?t:"raw-little"})}}class Eu 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 Fu extends i{getEvents(e){return this.network.post(Object.assign({o:"calendar",f:"getEvents"},e))}getLastEvents(e){return this.network.post(Object.assign({o:"calendar",f:"getLastEvents"},e))}}class Pu 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 Iu 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})}}class Mu extends i{save(e,t){return this.network.postCSRF(Object.assign({o:"externalApp",f:"save"},e),null==t?void 0:t.signal)}list(e){return this.network.post({o:"externalApp",f:"list"},null==e?void 0:e.signal)}delete(e,t){return this.network.postCSRF(Object.assign({o:"externalApp",f:"delete"},e),null==t?void 0:t.signal)}}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{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 Du(this,void 0,void 0,(function*(){return Promise.all(e.map((e=>this.upload(e))))}))}get(e,t,i){return Du(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 Du(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 Du(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 Du(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"duplicateFile",idFile:e,title:t,publishTo:i})}))}updateFile(e,t){return Du(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"updateFile",idFile:e,title:t})}))}update(e,t,i,n){return Du(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 Du(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 Du(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 Zu 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 qu 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 Uu 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 Wu 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:yi(null!==(i=e.format)&&void 0!==i?i:"raw-little",null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}}class Bu 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 $u 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 Vu 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 zu 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 Gu 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 Ju 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:yi(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 Qu=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 Ku 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=Qu(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=Qu(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 Hu 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:yi(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:yi(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})}getSpots(e={},t){var{format:i="raw-little"}=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,["format"]),r=(void 0===t?{}:t).signal;return this.network.post(Object.assign(Object.assign({o:"user",f:"getSpots"},n),{format:i}),r)}}class Yu 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 Xu 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 ed 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 td=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 id extends i{SaveAnimationConfiguration(e){return td(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"saveConfiguration",animation:e})}))}DeleteAnimation(){return td(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"deleteAnimation"})}))}GetCurrentAnimation(e){return td(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfiguration"},null==e?void 0:e.signal)}))}GetCurrentAnimationApp(){return td(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfigurationApp"})}))}ToggleAnimationActive(){return td(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"toggleAnimationActive"})}))}GetAnimationActive(e){return td(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getAnimationActive"},null==e?void 0:e.signal)}))}GetAnimationStats(e){return td(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStats",name:e})}))}GetAnimationStatsCurrent(e){return td(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStatsCurrent",uri:e})}))}}class nd 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 rd 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 ad 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 sd 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 od extends i{textEnhancement({text:e,capacity:t}){return this.network.post({o:"jia",f:"textEnhancement",text:e,capacity:t})}}class ld 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 cd extends i{getThumbnailUrl(e){return this.network.post({o:"magicPad",f:"getThumbnailUrl",uri:e})}}class ud 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 dd extends i{recordingDelete(e,t,i){return this.network.post({o:"visioConnect",f:"videoRecordingDelete",id:e,filename:t},null==i?void 0:i.signal)}statistics(e,t){return this.network.post(Object.assign({o:"visioConnect",f:"statistics"},e),null==t?void 0:t.signal)}statisticsRoomSessions(e,t){return this.network.post(Object.assign({o:"visioConnect",f:"statisticsRoomSessions"},e),null==t?void 0:t.signal)}resolveUrl({uri:e},t){return this.network.post({o:"visioConnect",f:"resolveUrl",uri:e},t)}}var pd=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 md extends i{getConfiguration(e,t){return pd(this,void 0,void 0,(function*(){return this.network.post(Object.assign({o:"module",f:"getConfiguration"},e),null==t?void 0:t.signal)}))}setConfiguration(e,t){return pd(this,void 0,void 0,(function*(){return this.network.postCSRF(Object.assign({o:"module",f:"setConfiguration"},e),null==t?void 0:t.signal)}))}}class gd extends i{resolveUrl({id:e},t){return this.network.post({o:"jitsi",f:"resolveUrl",id:e},t)}}class hd{constructor(e){this.version="1.0",this.network=e,this.admin={license:new r(this),store:new a(this),utils:new s(this),logs:new o(this)},this.accessibility=new nd(this),this.application=new l(this),this.article=new xu(this),this.asei=new Bu(this),this.assetReservation=new Tu(this),this.audience=new Au(this),this.bbb=new Ou(this),this.bookmark=new Lu(this),this.businessNetworking=new Ru(this),this.calendar=new Fu(this),this.community=new Eu(this),this.datasource=new Pu(this),this.diapazone=new Iu(this),this.drive=new $u(this),this.externalApp=new Mu(this),this.faq=new Zu(this),this.file=new Nu(this),this.filebank=new qu(this),this.fileSync=new ad(this),this.global=new Uu(this),this.group=new Wu(this),this.jia=new od(this),this.jitsi=new gd(this),this.jland=new zu(this),this.magicPad=new cd(this),this.mediaLibrary=new Vu(this),this.messenger=new Gu(this),this.module=new md(this),this.object=new rd(this),this.questionAnswer=new ud(this),this.search=new Ju(this),this.share=new ed(this),this.socialAction=new sd(this),this.taxonomy=new Ku(this),this.tvDisplay=new Xu(this),this.user=new Hu(this),this.visioConnect=new dd(this),this.wedoc=new Yu(this),this.widget=new ld(this),this.animations=new id(this)}}class fd{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 bd=new pi(new fd),yd=new hd(bd);window.JamespotUserApi=yd;const vd=yd,wd=hd;module.exports=t})();
2
2
  //# sourceMappingURL=jamespot-user-api.js.map