(function(){var e={6587:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdminApiClient=void 0;const r=n(6998),i=n(6904);class o{constructor(e){this.client=e.buildHttpClient(),this._attachment=new i.AttachmentClient(this.client),this._backup=new i.BackupClient(this.client),this._category=new i.CategoryClient(this.client),this._installation=new i.InstallationClient(this.client),this._journalComment=new i.JournalCommentClient(this.client),this._journal=new i.JournalClient(this.client),this._link=new i.LinkClient(this.client),this._log=new i.LogClient(this.client),this._mail=new i.MailClient(this.client),this._menu=new i.MenuClient(this.client),this._migration=new i.MigrationClient(this.client),this._option=new i.OptionClient(this.client),this._photo=new i.PhotoClient(this.client),this._postComment=new i.PostCommentClient(this.client),this._post=new i.PostClient(this.client),this._sheetComment=new i.SheetCommentClient(this.client),this._sheet=new i.SheetClient(this.client),this._statistic=new i.StatisticClient(this.client),this._tag=new i.TagClient(this.client),this._theme=new i.ThemeClient(this.client),this._user=new i.UserClient(this.client),this._staticStorage=new i.StaticStorageClient(this.client),this._comment=new i.CommentClient(this.client),this._actuator=new i.ActuatorClient(this.client)}get attachment(){return this._attachment}get backup(){return this._backup}get category(){return this._category}get installation(){return this._installation}get journalComment(){return this._journalComment}get journal(){return this._journal}get link(){return this._link}get log(){return this._log}get mail(){return this._mail}get menu(){return this._menu}get migration(){return this._migration}get option(){return this._option}get photo(){return this._photo}get postComment(){return this._postComment}get post(){return this._post}get sheetComment(){return this._sheetComment}get sheet(){return this._sheet}get statistic(){return this._statistic}get tag(){return this._tag}get theme(){return this._theme}get user(){return this._user}get staticStorage(){return this._staticStorage}get comment(){return this._comment}get actuator(){return this._actuator}getEnvironment(){const e=(0,r.buildPath)({endpointName:"environments"});return this.client.get(e,{})}getLogFile(e){const t=(0,r.buildPath)({endpointName:"halo/logfile"});return this.client.get(t,{lines:e})}isInstalled(){const e=(0,r.buildPath)({endpointName:"is_installed"});return this.client.get(e,{})}logout(){const e=(0,r.buildPath)({endpointName:"logout"});return this.client.post(e,{})}sendResetPasswordCode(e){const t=(0,r.buildPath)({endpointName:"password/code"});return this.client.post(t,e)}resetPassword(e){const t=(0,r.buildPath)({endpointName:"password/reset"});return this.client.put(t,e)}refreshToken(e){const t=(0,r.buildPath)({endpointName:`refresh/${e}`});return this.client.post(t,{})}needMFACode(e){const t=(0,r.buildPath)({endpointName:"login/precheck"});return this.client.post(t,Object.assign({},e))}login(e){const t=(0,r.buildPath)({endpointName:"login"});return this.client.post(t,Object.assign({},e))}}t.AdminApiClient=o},6710:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthorizedClient=void 0;const r=n(6998),i=n(920);class o{constructor(e){const t=new i.HaloRequestConfigBuilder({baseUrl:e}),n=new i.HaloResponseHandler;this.client=new i.DefaultHttpClient({responseHandler:n,requestConfigBuilder:t})}isInstalled(){const e=(0,r.buildPath)({endpointName:"is_installed"});return this.client.get(e,{})}sendResetPasswordCode(e){const t=(0,r.buildPath)({endpointName:"password/code"});return this.client.post(t,e)}resetPassword(e){const t=(0,r.buildPath)({endpointName:"password/reset"});return this.client.post(t,e)}refreshToken(e){const t=(0,r.buildPath)({endpointName:`refresh/${e}`});return this.client.post(t,{})}login(e){const t=(0,r.buildPath)({endpointName:"login"});return this.client.post(t,Object.assign({},e))}needMFACode(e){const t=(0,r.buildPath)({endpointName:"login/precheck"});return this.client.post(t,Object.assign({},e))}}t.AuthorizedClient=o},6618:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActuatorClient=void 0;const r=n(6998);class i{constructor(e){this.client=e}getLogfile(){const e=(0,r.buildPath)({endpointName:"actuator/logfile"});return this.client.get(e,{})}getEnv(){const e=(0,r.buildPath)({endpointName:"actuator/env"});return this.client.get(e,{})}getSystemCpuCount(){const e=(0,r.buildPath)({endpointName:"actuator/metrics/system.cpu.count"});return this.client.get(e,{})}getSystemCpuUsage(){const e=(0,r.buildPath)({endpointName:"actuator/metrics/system.cpu.usage"});return this.client.get(e,{})}getProcessUptime(){const e=(0,r.buildPath)({endpointName:"actuator/metrics/process.uptime"});return this.client.get(e,{})}getProcessStartTime(){const e=(0,r.buildPath)({endpointName:"actuator/metrics/process.start.time"});return this.client.get(e,{})}getProcessCpuUsage(){const e=(0,r.buildPath)({endpointName:"actuator/metrics/process.cpu.usage"});return this.client.get(e,{})}getJvmMemoryMax(){const e=(0,r.buildPath)({endpointName:"actuator/metrics/jvm.memory.max"});return this.client.get(e,{})}getJvmMemoryCommitted(){const e=(0,r.buildPath)({endpointName:"actuator/metrics/jvm.memory.committed"});return this.client.get(e,{})}getJvmMemoryUsed(){const e=(0,r.buildPath)({endpointName:"actuator/metrics/jvm.memory.used"});return this.client.get(e,{})}getJvmGcPause(){const e=(0,r.buildPath)({endpointName:"actuator/metrics/jvm.gc.pause"});return this.client.get(e,{})}}t.ActuatorClient=i},399:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttachmentClient=void 0;const r=n(920),i=n(6998);class o{constructor(e){this.client=e}get(e){const t=(0,i.buildPath)({endpointName:`attachments/${e}`});return this.client.get(t,{})}list(e){const t=(0,i.buildPath)({endpointName:"attachments"});return this.client.get(t,Object.assign({},e))}deleteInBatch(e){const t=(0,i.buildPath)({endpointName:"attachments"});return this.client.delete(t,e)}delete(e){const t=(0,i.buildPath)({endpointName:`attachments/${e}`});return this.client.delete(t,{})}update(e,t){const n=(0,i.buildPath)({endpointName:`attachments/${e}`});return this.client.put(n,{name:t})}listMediaTypes(){const e=(0,i.buildPath)({endpointName:"attachments/media_types"});return this.client.get(e,{})}listTypes(){const e=(0,i.buildPath)({endpointName:"attachments/types"});return this.client.get(e,{})}upload(e,t){const n=(0,i.buildPath)({endpointName:"attachments/upload"}),o=new r.FormData;return o.append("file",e),this.client.post(n,o,Object.assign({},t))}uploadInBatch(e,t){const n=(0,i.buildPath)({endpointName:"attachments/uploads"}),o=new r.FormData;return e.forEach((e=>{o.append("files",e)})),this.client.post(n,o,Object.assign({},t))}}t.AttachmentClient=o},5260:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackupClient=void 0;const r=n(6998);class i{constructor(e){this.client=e}getWorkdirBackup(e){const t=(0,r.buildPath)({endpointName:`backups/work-dir/fetch?filename=${e}`});return this.client.get(t,{})}getDataBackup(e){const t=(0,r.buildPath)({endpointName:`backups/data/fetch?filename=${e}`});return this.client.get(t,{})}getMarkdownBackup(e){const t=(0,r.buildPath)({endpointName:`backups/markdown/fetch?filename=${e}`});return this.client.get(t,{})}backupWorkdir(e){const t=(0,r.buildPath)({endpointName:"backups/work-dir"});return this.client.post(t,e)}getWorkdirBackupOptions(){const e=(0,r.buildPath)({endpointName:"backups/work-dir/options"});return this.client.get(e,{})}listWorkdirBackups(){const e=(0,r.buildPath)({endpointName:"backups/work-dir"});return this.client.get(e,{})}deleteWorkdirBackup(e){const t=(0,r.buildPath)({endpointName:"backups/work-dir"});return this.client.delete(t,{filename:e})}backupData(){const e=(0,r.buildPath)({endpointName:"backups/data"});return this.client.post(e,{})}listDataBackups(){const e=(0,r.buildPath)({endpointName:"backups/data"});return this.client.get(e,{})}deleteDataBackup(e){const t=(0,r.buildPath)({endpointName:"backups/data"});return this.client.delete(t,{filename:e})}backupMarkdown(e){const t=(0,r.buildPath)({endpointName:"backups/markdown/export"});return this.client.post(t,e)}listMarkdownBackups(){const e=(0,r.buildPath)({endpointName:"backups/markdown/export"});return this.client.get(e,{})}deleteMarkdownBackup(e){const t=(0,r.buildPath)({endpointName:"backups/markdown/export"});return this.client.delete(t,{filename:e})}importMarkdown(e,t){const n=(0,r.buildPath)({endpointName:"backups/markdown/import"}),i=new FormData;return i.append("file",e),this.client.post(n,i,Object.assign({},t))}}t.BackupClient=i},6774:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CategoryClient=void 0;const r=n(655),i=n(6998);class o{constructor(e){this.client=e}list(e){const t=(0,i.buildPath)({endpointName:"categories"});return this.client.get(t,Object.assign({},e))}listAsTree(e){const t=(0,i.buildPath)({endpointName:"categories/tree_view"});return this.client.get(t,{sort:e})}get(e){const t=(0,i.buildPath)({endpointName:`categories/${e}`});return this.client.get(t,{})}create(e){const t=(0,i.buildPath)({endpointName:"categories"});return this.client.post(t,Object.assign({},e))}update(e,t){const n=(0,i.buildPath)({endpointName:`categories/${e}`});return this.client.put(n,Object.assign({},t))}updateInBatch(e){const t=(0,i.buildPath)({endpointName:"categories/batch"});return this.client.put(t,[...e])}delete(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(0,i.buildPath)({endpointName:`categories/${e}`});yield this.client.delete(t,{})}))}}t.CategoryClient=o},8666:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommentClient=void 0;const r=n(6998);class i{constructor(e){this.client=e}list(e,t){const n=(0,r.buildPath)({endpointName:`${e}/comments`});return this.client.get(n,t)}latest(e,t,n){const i=(0,r.buildPath)({endpointName:`${e}/comments/latest`});return this.client.get(i,{top:t,status:n})}listAsView(e,t,n){const i=(0,r.buildPath)({endpointName:`${e}/comments/${t}/list_view`});return this.client.get(i,n)}listAsTreeView(e,t,n){const i=(0,r.buildPath)({endpointName:`${e}/comments/${t}/tree_view`});return this.client.get(i,n)}get(e,t){const n=(0,r.buildPath)({endpointName:`${e}/comments/${t}`});return this.client.get(n,{})}create(e,t){const n=(0,r.buildPath)({endpointName:`${e}/comments`});return this.client.post(n,t)}update(e,t,n){const i=(0,r.buildPath)({endpointName:`${e}/comments/${t}`});return this.client.get(i,n)}updateStatusById(e,t,n){const i=(0,r.buildPath)({endpointName:`${e}/comments/${t}/status/${n}`});return this.client.put(i,{})}updateStatusInBatch(e,t,n){const i=(0,r.buildPath)({endpointName:`${e}/comments/status/${n}`});return this.client.put(i,t)}delete(e,t){const n=(0,r.buildPath)({endpointName:`${e}/comments/${t}`});return this.client.delete(n,{})}deleteInBatch(e,t){const n=(0,r.buildPath)({endpointName:`${e}/comments`});return this.client.delete(n,t)}}t.CommentClient=i},8400:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InstallationClient=void 0;const r=n(6998);class i{constructor(e){this.client=e}install(e){const t=(0,r.buildPath)({endpointName:"installations"});return this.client.post(t,Object.assign({},e))}}t.InstallationClient=i},173:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JournalClient=void 0;const r=n(655),i=n(6998);class o{constructor(e){this.client=e}list(e){const t=(0,i.buildPath)({endpointName:"journals"});return this.client.get(t,Object.assign({},e))}latest(e){const t=(0,i.buildPath)({endpointName:"journals/latest"});return this.client.get(t,{top:e})}create(e){const t=(0,i.buildPath)({endpointName:"journals"});return this.client.post(t,Object.assign({},e))}update(e,t){const n=(0,i.buildPath)({endpointName:`journals/${e}`});return this.client.put(n,Object.assign({},t))}delete(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(0,i.buildPath)({endpointName:`journals/${e}`});yield this.client.delete(t,{})}))}}t.JournalClient=o},5503:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JournalCommentClient=void 0;const r=n(655),i=n(6998);class o{constructor(e){this.client=e}list(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(0,i.buildPath)({endpointName:"journals/comments"});return this.client.get(t,Object.assign({},e))}))}create(e){const t=(0,i.buildPath)({endpointName:"journals/comments"});return this.client.post(t,Object.assign({},e))}delete(e){const t=(0,i.buildPath)({endpointName:`journals/comments/${e}`});return this.client.delete(t,{})}update(e,t){const n=(0,i.buildPath)({endpointName:`journals/comments/${e}/status/${t}`});return this.client.put(n,{})}listAsView(e){const t=(0,i.buildPath)({endpointName:`journals/comments/${e.journalId}/list_view`});return this.client.get(t,Object.assign({},e))}listAsTree(e){const t=(0,i.buildPath)({endpointName:`journals/comments/${e.journalId}/tree_view`});return this.client.get(t,Object.assign({},e))}latest(e){const t=(0,i.buildPath)({endpointName:"journals/comments/latest"});return this.client.get(t,Object.assign({},e))}}t.JournalCommentClient=o},9207:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkClient=void 0;const r=n(655),i=n(6998);class o{constructor(e){this.client=e}list(e){const t=(0,i.buildPath)({endpointName:"links"});return this.client.get(t,{sort:e})}create(e){const t=(0,i.buildPath)({endpointName:"links"});return this.client.post(t,Object.assign({},e))}get(e){const t=(0,i.buildPath)({endpointName:`links/${e}`});return this.client.get(t,{})}update(e,t){const n=(0,i.buildPath)({endpointName:`links/${e}`});return this.client.put(n,Object.assign({},t))}updateInBatch(e){const t=(0,i.buildPath)({endpointName:"links/batch"});return this.client.put(t,[...e])}delete(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(0,i.buildPath)({endpointName:`links/${e}`});yield this.client.delete(t,{})}))}listTeams(){const e=(0,i.buildPath)({endpointName:"links/teams"});return this.client.get(e,{})}}t.LinkClient=o},9842:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogClient=void 0;const r=n(655),i=n(6998);class o{constructor(e){this.client=e}list(e){const t=(0,i.buildPath)({endpointName:"logs"});return this.client.get(t,Object.assign({},e))}clear(){return r.__awaiter(this,void 0,void 0,(function*(){const e=(0,i.buildPath)({endpointName:"logs/clear"});yield this.client.get(e,{})}))}latest(e){const t=(0,i.buildPath)({endpointName:"logs/latest"});return this.client.get(t,{top:e})}}t.LogClient=o},7206:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MailClient=void 0;const r=n(6998);class i{constructor(e){this.client=e}testSmtpService(e){const t=(0,r.buildPath)({endpointName:"mails/test"});return this.client.post(t,Object.assign({},e))}testConnect(){const e=(0,r.buildPath)({endpointName:"mails/test/connection"});return this.client.post(e,{})}}t.MailClient=i},7530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MenuClient=void 0;const r=n(655),i=n(6998);class o{constructor(e){this.client=e}list(){const e=(0,i.buildPath)({endpointName:"menus"});return this.client.get(e,{})}create(e){const t=(0,i.buildPath)({endpointName:"menus"});return this.client.post(t,Object.assign({},e))}createInBatch(e){const t=(0,i.buildPath)({endpointName:"menus/batch"});return this.client.post(t,[...e])}get(e){const t=(0,i.buildPath)({endpointName:`menus/${e}`});return this.client.post(t,{})}update(e,t){const n=(0,i.buildPath)({endpointName:`menus/${e}`});return this.client.put(n,Object.assign({},t))}updateInBatch(e){const t=(0,i.buildPath)({endpointName:"menus/batch"});return this.client.put(t,[...e])}delete(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(0,i.buildPath)({endpointName:`menus/${e}`});yield this.client.delete(t,{})}))}deleteInBatch(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(0,i.buildPath)({endpointName:"menus/batch"});yield this.client.delete(t,[...e])}))}listTreeViewByTeam(e,t){const n=(0,i.buildPath)({endpointName:"menus/team/tree_view"});return this.client.get(n,{team:e,sort:t})}listTeams(){const e=(0,i.buildPath)({endpointName:"menus/teams"});return this.client.get(e,{})}listTreeView(e){const t=(0,i.buildPath)({endpointName:"menus/tree_view"});return this.client.get(t,{sort:e})}}t.MenuClient=o},9644:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MigrationClient=void 0;const r=n(655),i=n(920),o=n(6998);class a{constructor(e){this.client=e}migrate(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const n=(0,o.buildPath)({endpointName:"migrations/halo"}),r=new i.FormData;r.append("file",e),yield this.client.post(n,r,Object.assign({},t))}))}}t.MigrationClient=a},3913:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptionClient=void 0;const r=n(655),i=n(6998);class o{constructor(e){this.client=e}list(){const e=(0,i.buildPath)({endpointName:"options"});return this.client.get(e,{})}create(e){const t=(0,i.buildPath)({endpointName:"options"});return this.client.post(t,Object.assign({},e))}get(e){const t=(0,i.buildPath)({endpointName:`options/${e}`});return this.client.get(t,{})}update(e,t){const n=(0,i.buildPath)({endpointName:`options/${e}`});return this.client.put(n,Object.assign({},t))}delete(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(0,i.buildPath)({endpointName:`options/${e}`});yield this.client.delete(t,{})}))}listAsView(e){const t=(0,i.buildPath)({endpointName:"options/list_view"});return this.client.get(t,Object.assign({},e))}listAsMapView(){const e=(0,i.buildPath)({endpointName:"options/map_view"});return this.client.get(e,{})}listAsMapViewByKeys(e){const t=(0,i.buildPath)({endpointName:"options/map_view/keys"});return this.client.post(t,e)}saveMapView(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(0,i.buildPath)({endpointName:"options/map_view/saving"});yield this.client.post(t,Object.assign({},e))}))}save(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(0,i.buildPath)({endpointName:"options/saving"});yield this.client.post(t,[...e])}))}}t.OptionClient=o},402:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoClient=void 0;const r=n(655),i=n(6998);class o{constructor(e){this.client=e}list(e){const t=(0,i.buildPath)({endpointName:"photos"});return this.client.get(t,Object.assign({},e))}create(e){const t=(0,i.buildPath)({endpointName:"photos"});return this.client.post(t,Object.assign({},e))}createInBatch(e){const t=(0,i.buildPath)({endpointName:"photos/batch"});return this.client.post(t,[...e])}get(e){const t=(0,i.buildPath)({endpointName:`photos/${e}`});return this.client.get(t,{})}update(e,t){const n=(0,i.buildPath)({endpointName:`photos/${e}`});return this.client.put(n,Object.assign({},t))}updateInBatch(e){const t=(0,i.buildPath)({endpointName:"photos/batch"});return this.client.put(t,[...e])}delete(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(0,i.buildPath)({endpointName:`photos/${e}`});yield this.client.delete(t,{})}))}deleteInBatch(e){const t=(0,i.buildPath)({endpointName:"photos/batch"});return this.client.delete(t,e)}latest(e){const t=(0,i.buildPath)({endpointName:"photos/latest"});return this.client.get(t,{sort:e})}listTeams(){const e=(0,i.buildPath)({endpointName:"photos/teams"});return this.client.get(e,{})}}t.PhotoClient=o},4682:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostClient=void 0;const r=n(655),i=n(6998);class o{constructor(e){this.client=e}list(e){const t=(0,i.buildPath)({endpointName:"posts"});return this.client.get(t,Object.assign({},e))}get(e){const t=(0,i.buildPath)({endpointName:`posts/${e}`});return this.client.get(t,{})}getPreviewLinkById(e){const t=(0,i.buildPath)({endpointName:`posts/${e}/preview`});return this.client.get(t,{})}latest(e){const t=(0,i.buildPath)({endpointName:"posts/latest"});return this.client.get(t,{top:e})}listByStatus(e,t){const n=(0,i.buildPath)({endpointName:`posts/status/${e}`});return this.client.get(n,Object.assign({},t))}create(e){const t=(0,i.buildPath)({endpointName:"posts"});return this.client.post(t,Object.assign({},e))}update(e,t){const n=(0,i.buildPath)({endpointName:`posts/${e}`});return this.client.put(n,Object.assign({},t))}updateStatusById(e,t){const n=(0,i.buildPath)({endpointName:`posts/${e}/status/${t}`});return this.client.put(n,{})}updateStatusInBatch(e,t){const n=(0,i.buildPath)({endpointName:`posts/status/${t}`});return this.client.put(n,e)}updateDraftById(e,t,n,r){const o=(0,i.buildPath)({endpointName:`posts/${e}/status/draft/content`});return this.client.put(o,{originalContent:t,content:n,keepRaw:r})}like(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(0,i.buildPath)({endpointName:`posts/${e}/likes`});yield this.client.put(t,{})}))}delete(e){const t=(0,i.buildPath)({endpointName:`posts/${e}`});return this.client.delete(t,{})}deleteInBatch(e){const t=(0,i.buildPath)({endpointName:"posts"});return this.client.delete(t,e)}}t.PostClient=o},6494:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostCommentClient=void 0;const r=n(6998);class i{constructor(e){this.client=e}list(e){const t=(0,r.buildPath)({endpointName:"posts/comments"});return this.client.get(t,Object.assign({},e))}listAsView(e){const t=(0,r.buildPath)({endpointName:`posts/comments/${e.postId}/list_view`});return this.client.get(t,Object.assign({},e))}listAsTreeView(e){const t=(0,r.buildPath)({endpointName:`posts/comments/${e.postId}/tree_view`});return this.client.get(t,Object.assign({},e))}latest(e){const t=(0,r.buildPath)({endpointName:"posts/comments/latest"});return this.client.get(t,Object.assign({},e))}create(e){const t=(0,r.buildPath)({endpointName:"posts/comments"});return this.client.post(t,Object.assign({},e))}update(e,t){const n=(0,r.buildPath)({endpointName:`posts/comments/${e}`});return this.client.get(n,Object.assign({},t))}updateStatusById(e,t){const n=(0,r.buildPath)({endpointName:`posts/comments/${e}/status/${t}`});return this.client.put(n,{})}updateStatusInBatch(e,t){const n=(0,r.buildPath)({endpointName:`posts/comments/status/${t}`});return this.client.put(n,e)}delete(e){const t=(0,r.buildPath)({endpointName:`posts/comments/${e}`});return this.client.delete(t,{})}deleteInBatch(e){const t=(0,r.buildPath)({endpointName:"posts/comments"});return this.client.delete(t,e)}}t.PostCommentClient=i},771:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SheetClient=void 0;const r=n(655),i=n(6998);class o{constructor(e){this.client=e}list(e){const t=(0,i.buildPath)({endpointName:"sheets"});return this.client.get(t,Object.assign({},e))}listIndependents(){const e=(0,i.buildPath)({endpointName:"sheets/independent"});return this.client.get(e,{})}create(e){const t=(0,i.buildPath)({endpointName:"sheets"});return this.client.post(t,Object.assign({},e))}get(e){const t=(0,i.buildPath)({endpointName:`sheets/${e}`});return this.client.get(t,{})}getPreviewLinkById(e){const t=(0,i.buildPath)({endpointName:`sheets/preview/${e}`});return this.client.get(t,{})}update(e,t){const n=(0,i.buildPath)({endpointName:`sheets/${e}`});return this.client.put(n,Object.assign({},t))}updateStatusById(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const n=(0,i.buildPath)({endpointName:`sheets/${e}/${t}`});yield this.client.put(n,{})}))}updateDraftById(e,t,n,r){const o=(0,i.buildPath)({endpointName:`sheets/${e}/status/draft/content`});return this.client.put(o,{originalContent:t,content:n,keepRaw:r})}delete(e){const t=(0,i.buildPath)({endpointName:`sheets/${e}`});return this.client.delete(t,{})}}t.SheetClient=o},6094:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SheetCommentClient=void 0;const r=n(6998);class i{constructor(e){this.client=e}list(e){const t=(0,r.buildPath)({endpointName:"sheets/comments"});return this.client.get(t,Object.assign({},e))}get(e){const t=(0,r.buildPath)({endpointName:`sheets/comments/${e}`});return this.client.get(t,{})}listAsView(e){const t=(0,r.buildPath)({endpointName:`sheets/comments/${e.sheetId}/list_view`});return this.client.get(t,Object.assign({},e))}listAsTreeView(e){const t=(0,r.buildPath)({endpointName:`sheets/comments/${e.sheetId}/tree_view`});return this.client.get(t,Object.assign({},e))}latest(e){const t=(0,r.buildPath)({endpointName:"sheets/comments/latest"});return this.client.get(t,Object.assign({},e))}create(e){const t=(0,r.buildPath)({endpointName:"sheets/comments"});return this.client.post(t,Object.assign({},e))}update(e,t){const n=(0,r.buildPath)({endpointName:`sheets/comments/${e}`});return this.client.put(n,Object.assign({},t))}updateStatusById(e,t){const n=(0,r.buildPath)({endpointName:`sheets/comments/${e}/status/${t}`});return this.client.put(n,{})}updateStatusInBatch(e,t){const n=(0,r.buildPath)({endpointName:`sheets/comments/status/${t}`});return this.client.put(n,e)}deleteInBatch(e){const t=(0,r.buildPath)({endpointName:"sheets/comments"});return this.client.delete(t,e)}delete(e){const t=(0,r.buildPath)({endpointName:`sheets/comments/${e}`});return this.client.delete(t,{})}}t.SheetCommentClient=i},7742:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StaticStorageClient=void 0;const r=n(920),i=n(6998);class o{constructor(e){this.client=e}list(){const e=(0,i.buildPath)({endpointName:"statics"});return this.client.get(e,{})}delete(e){const t=(0,i.buildPath)({endpointName:"statics"});return this.client.delete(t,{path:e})}createFolder(e,t){const n=(0,i.buildPath)({endpointName:`statics?basePath=${e}&folderName=${t}`});return this.client.post(n,{})}upload(e,t,n){const o=(0,i.buildPath)({endpointName:`statics/upload?basePath=${n}`}),a=new r.FormData;return a.append("file",e),this.client.post(o,a,Object.assign({},t))}rename(e,t){const n=(0,i.buildPath)({endpointName:`statics/rename?basePath=${e}&newName=${t}`});return this.client.post(n,{})}saveContent(e){const t=(0,i.buildPath)({endpointName:"statics/files"});return this.client.put(t,e)}}t.StaticStorageClient=o},7922:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatisticClient=void 0;const r=n(6998);class i{constructor(e){this.client=e}statistics(){const e=(0,r.buildPath)({endpointName:"statistics"});return this.client.get(e,{})}statisticsWithUser(){const e=(0,r.buildPath)({endpointName:"statistics/user"});return this.client.get(e,{})}}t.StatisticClient=i},4898:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagClient=void 0;const r=n(6998);class i{constructor(e){this.client=e}list(e){const t=(0,r.buildPath)({endpointName:"tags"});return this.client.get(t,Object.assign({},e))}create(e){const t=(0,r.buildPath)({endpointName:"tags"});return this.client.post(t,Object.assign({},e))}get(e){const t=(0,r.buildPath)({endpointName:`tags/${e}`});return this.client.get(t,{})}update(e,t){const n=(0,r.buildPath)({endpointName:`tags/${e}`});return this.client.put(n,Object.assign({},t))}delete(e){const t=(0,r.buildPath)({endpointName:`tags/${e}`});return this.client.delete(t,{})}}t.TagClient=i},8842:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeClient=void 0;const r=n(655),i=n(920),o=n(6998);class a{constructor(e){this.client=e}list(){const e=(0,o.buildPath)({endpointName:"themes"});return this.client.get(e,{})}get(e){const t=(0,o.buildPath)({endpointName:`themes/${e}`});return this.client.get(t,{})}delete(e,t){const n=(0,o.buildPath)({endpointName:`themes/${e}`});return this.client.delete(n,{deleteSettings:t})}active(e){const t=(0,o.buildPath)({endpointName:`themes/${e}/activation`});return this.client.post(t,{})}listConfigurationGroups(e){const t=(0,o.buildPath)({endpointName:`themes/${e}/configurations/groups`});return this.client.get(t,{})}listConfigurationsByGroup(e,t){const n=(0,o.buildPath)({endpointName:`themes/${e}/configurations/groups/${t}`});return this.client.get(n,{})}listActivatedConfigurations(){const e=(0,o.buildPath)({endpointName:"themes/activation/configurations"});return this.client.get(e,{})}listConfigurations(e){const t=(0,o.buildPath)({endpointName:`themes/${e}/configurations`});return this.client.get(t,{})}listFiles(e){const t=(0,o.buildPath)({endpointName:`themes/${e}/files`});return this.client.get(t,{})}listActivatedFiles(){const e=(0,o.buildPath)({endpointName:"themes/activation/files"});return this.client.get(e,{})}getActivatedTemplateContent(e){const t=(0,o.buildPath)({endpointName:"themes/files/content"});return this.client.get(t,{path:e})}getTemplateContent(e,t){const n=(0,o.buildPath)({endpointName:`themes/${e}/files/content`});return this.client.get(n,{path:t})}updateTemplateContent(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const n=(0,o.buildPath)({endpointName:`themes/${e}/files/content`});yield this.client.put(n,Object.assign({},t))}))}listSettings(e){const t=(0,o.buildPath)({endpointName:`themes/${e}/settings`});return this.client.get(t,{})}listActivatedSettings(){const e=(0,o.buildPath)({endpointName:"themes/activation/settings"});return this.client.get(e,{})}listSettingsByGroup(e,t){const n=(0,o.buildPath)({endpointName:`themes/${e}/groups/${t}/settings`});return this.client.get(n,{})}saveSettings(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const n=(0,o.buildPath)({endpointName:`themes/${e}/settings`});yield this.client.post(n,t)}))}saveActivatedSettings(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(0,o.buildPath)({endpointName:"themes/activation/settings"});yield this.client.post(t,e)}))}getActivatedTheme(){const e=(0,o.buildPath)({endpointName:"themes/activation"});return this.client.get(e,{})}listCustomPostTemplates(){const e=(0,o.buildPath)({endpointName:"themes/activation/template/custom/post"});return this.client.get(e,{})}listCustomSheetTemplates(){const e=(0,o.buildPath)({endpointName:"themes/activation/template/custom/sheet"});return this.client.get(e,{})}exists(e){const t=(0,o.buildPath)({endpointName:"themes/activation/template/exists"});return this.client.get(t,{template:e})}fetchTheme(e){const t=(0,o.buildPath)({endpointName:`themes/fetching?uri=${e}`});return this.client.post(t,{})}updateThemeByFetching(e){const t=(0,o.buildPath)({endpointName:`themes/fetching/${e}`});return this.client.put(t,{})}updateActivatedTemplateContent(e){const t=(0,o.buildPath)({endpointName:"themes/files/content"});return this.client.put(t,Object.assign({},e))}reload(){const e=(0,o.buildPath)({endpointName:"themes/reload"});return this.client.post(e,{})}upload(e,t){const n=(0,o.buildPath)({endpointName:"themes/upload"}),r=new i.FormData;return r.append("file",e),this.client.post(n,r,Object.assign({},t))}updateByUpload(e,t,n){const r=(0,o.buildPath)({endpointName:`themes/upload/${n}`}),a=new i.FormData;return a.append("file",e),this.client.put(r,a,Object.assign({},t))}}t.ThemeClient=a},5412:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserClient=void 0;const r=n(6998);class i{constructor(e){this.client=e}getProfile(){const e=(0,r.buildPath)({endpointName:"users/profiles"});return this.client.get(e,{})}updateProfile(e){const t=(0,r.buildPath)({endpointName:"users/profiles"});return this.client.put(t,e)}updatePassword(e){const t=(0,r.buildPath)({endpointName:"users/profiles/password"});return this.client.put(t,Object.assign({},e))}generateMFAQrImage(e){const t=(0,r.buildPath)({endpointName:"users/mfa/generate"});return this.client.put(t,Object.assign({},e))}updateMFAuth(e){const t=(0,r.buildPath)({endpointName:"users/mfa/update"});return this.client.put(t,Object.assign({},e))}}t.UserClient=i},6904:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActuatorClient=t.CommentClient=t.StaticStorageClient=t.UserClient=t.ThemeClient=t.TagClient=t.StatisticClient=t.SheetClient=t.SheetCommentClient=t.PostClient=t.PostCommentClient=t.PhotoClient=t.OptionClient=t.MigrationClient=t.MenuClient=t.MailClient=t.LogClient=t.LinkClient=t.JournalClient=t.JournalCommentClient=t.InstallationClient=t.CategoryClient=t.BackupClient=t.AttachmentClient=void 0;var r=n(399);Object.defineProperty(t,"AttachmentClient",{enumerable:!0,get:function(){return r.AttachmentClient}});var i=n(5260);Object.defineProperty(t,"BackupClient",{enumerable:!0,get:function(){return i.BackupClient}});var o=n(6774);Object.defineProperty(t,"CategoryClient",{enumerable:!0,get:function(){return o.CategoryClient}});var a=n(8400);Object.defineProperty(t,"InstallationClient",{enumerable:!0,get:function(){return a.InstallationClient}});var s=n(5503);Object.defineProperty(t,"JournalCommentClient",{enumerable:!0,get:function(){return s.JournalCommentClient}});var l=n(173);Object.defineProperty(t,"JournalClient",{enumerable:!0,get:function(){return l.JournalClient}});var c=n(9207);Object.defineProperty(t,"LinkClient",{enumerable:!0,get:function(){return c.LinkClient}});var u=n(9842);Object.defineProperty(t,"LogClient",{enumerable:!0,get:function(){return u.LogClient}});var p=n(7206);Object.defineProperty(t,"MailClient",{enumerable:!0,get:function(){return p.MailClient}});var d=n(7530);Object.defineProperty(t,"MenuClient",{enumerable:!0,get:function(){return d.MenuClient}});var h=n(9644);Object.defineProperty(t,"MigrationClient",{enumerable:!0,get:function(){return h.MigrationClient}});var m=n(3913);Object.defineProperty(t,"OptionClient",{enumerable:!0,get:function(){return m.OptionClient}});var f=n(402);Object.defineProperty(t,"PhotoClient",{enumerable:!0,get:function(){return f.PhotoClient}});var g=n(6494);Object.defineProperty(t,"PostCommentClient",{enumerable:!0,get:function(){return g.PostCommentClient}});var b=n(4682);Object.defineProperty(t,"PostClient",{enumerable:!0,get:function(){return b.PostClient}});var y=n(6094);Object.defineProperty(t,"SheetCommentClient",{enumerable:!0,get:function(){return y.SheetCommentClient}});var w=n(771);Object.defineProperty(t,"SheetClient",{enumerable:!0,get:function(){return w.SheetClient}});var v=n(7922);Object.defineProperty(t,"StatisticClient",{enumerable:!0,get:function(){return v.StatisticClient}});var x=n(4898);Object.defineProperty(t,"TagClient",{enumerable:!0,get:function(){return x.TagClient}});var k=n(8842);Object.defineProperty(t,"ThemeClient",{enumerable:!0,get:function(){return k.ThemeClient}});var _=n(5412);Object.defineProperty(t,"UserClient",{enumerable:!0,get:function(){return _.UserClient}});var C=n(7742);Object.defineProperty(t,"StaticStorageClient",{enumerable:!0,get:function(){return C.StaticStorageClient}});var P=n(8666);Object.defineProperty(t,"CommentClient",{enumerable:!0,get:function(){return P.CommentClient}});var j=n(6618);Object.defineProperty(t,"ActuatorClient",{enumerable:!0,get:function(){return j.ActuatorClient}})},5597:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthorizedClient=t.AdminApiClient=void 0;const r=n(655);var i=n(6587);Object.defineProperty(t,"AdminApiClient",{enumerable:!0,get:function(){return i.AdminApiClient}});var o=n(6710);Object.defineProperty(t,"AuthorizedClient",{enumerable:!0,get:function(){return o.AuthorizedClient}}),r.__exportStar(n(920),t),r.__exportStar(n(6904),t)},6998:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildPath=void 0;const n=e=>{const{endpointName:t,scope:n}=e,r=void 0!==n?`${n}`:"admin";return`/api/${r}/${t}`};t.buildPath=n},6838:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentApiClient=void 0;const r=n(3891);class i{constructor(e){this.client=e.buildHttpClient(),this._archive=new r.ArchiveClient(this.client),this._category=new r.CategoryClient(this.client),this._journal=new r.JournalClient(this.client),this._link=new r.LinkClient(this.client),this._menu=new r.MenuClient(this.client),this._option=new r.OptionClient(this.client),this._photo=new r.PhotoClient(this.client),this._post=new r.PostClient(this.client),this._sheet=new r.SheetClient(this.client),this._statistic=new r.StatisticClient(this.client),this._tag=new r.TagClient(this.client),this._theme=new r.ThemeClient(this.client),this._user=new r.UserClient(this.client),this._comment=new r.CommentClient(this.client)}get archive(){return this._archive}get category(){return this._category}get journal(){return this._journal}get link(){return this._link}get menu(){return this._menu}get option(){return this._option}get photo(){return this._photo}get post(){return this._post}get sheet(){return this._sheet}get statistic(){return this._statistic}get tag(){return this._tag}get theme(){return this._theme}get user(){return this._user}get comment(){return this._comment}}t.ContentApiClient=i},9619:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArchiveClient=void 0;const r=n(9489);class i{constructor(e){this.client=e}listYearArchives(){const e=(0,r.buildPath)({endpointName:"archives/years"});return this.client.get(e,{})}listMonthArchives(){const e=(0,r.buildPath)({endpointName:"archives/years"});return this.client.get(e,{})}}t.ArchiveClient=i},413:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CategoryClient=void 0;const r=n(9489);class i{constructor(e){this.client=e}list(e){const t=(0,r.buildPath)({endpointName:"categories"});return this.client.get(t,Object.assign({},e))}listPostBySlug(e){const t=(0,r.buildPath)({endpointName:`categories/${e.slug}/posts`});return this.client.get(t,Object.assign({},e))}}t.CategoryClient=i},7929:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommentClient=void 0;const r=n(9489);class i{constructor(e){this.client=e}listTopComments(e,t,n){const i=(0,r.buildPath)({endpointName:`${e}/${t}/comments/top_view`});return this.client.get(i,Object.assign({},n))}listChildren(e,t,n,i){const o=(0,r.buildPath)({endpointName:`${e}/${t}/comments/${n}/children`});return this.client.get(o,Object.assign({},i))}listAsTreeView(e,t,n){const i=(0,r.buildPath)({endpointName:`${e}/${t}/comments/tree_view`});return this.client.get(i,Object.assign({},n))}listAsView(e,t,n){const i=(0,r.buildPath)({endpointName:`${e}/${t}/comments/list_view`});return this.client.get(i,Object.assign({},n))}create(e,t){const n=(0,r.buildPath)({endpointName:`${e}/comments`});return this.client.post(n,t)}}t.CommentClient=i},3313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JournalClient=void 0;const r=n(655),i=n(9489);class o{constructor(e){this.client=e}list(){const e=(0,i.buildPath)({endpointName:"journals"});return this.client.get(e,{})}get(e){const t=(0,i.buildPath)({endpointName:`journals/${e}`});return this.client.get(t,{})}like(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(0,i.buildPath)({endpointName:`journals/${e}/likes`});yield this.client.post(t,{})}))}}t.JournalClient=o},8241:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkClient=void 0;const r=n(9489);class i{constructor(e){this.client=e}list(e){const t=(0,r.buildPath)({endpointName:"links"});return this.client.get(t,{sort:e})}listTeams(e){const t=(0,r.buildPath)({endpointName:"links/team_view"});return this.client.get(t,{sort:e})}}t.LinkClient=i},428:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MenuClient=void 0;const r=n(9489);class i{constructor(e){this.client=e}list(e){const t=(0,r.buildPath)({endpointName:"menus"});return this.client.get(t,{sort:e})}listAsTreeView(e){const t=(0,r.buildPath)({endpointName:"menus/tree_view"});return this.client.get(t,{sort:e})}}t.MenuClient=i},3664:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptionClient=void 0;const r=n(9489);class i{constructor(e){this.client=e}list(){const e=(0,r.buildPath)({endpointName:"options/list_view"});return this.client.get(e,{})}listAsMapView(e){const t=(0,r.buildPath)({endpointName:"options/map_view"});return this.client.get(t,{key:e})}getByKey(e){const t=(0,r.buildPath)({endpointName:`options/keys/${e}`});return this.client.get(t,{key:e})}comment(){const e=(0,r.buildPath)({endpointName:"options/comment"});return this.client.get(e,{})}}t.OptionClient=i},4353:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoClient=void 0;const r=n(9489);class i{constructor(e){this.client=e}latest(e){const t=(0,r.buildPath)({endpointName:"photos/latest"});return this.client.get(t,{sort:e})}list(e){const t=(0,r.buildPath)({endpointName:"photos"});return this.client.get(t,Object.assign({},e))}}t.PhotoClient=i},2312:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostClient=void 0;const r=n(655),i=n(9489);class o{constructor(e){this.client=e}list(e,t,n){const r=(0,i.buildPath)({endpointName:"posts"});return this.client.get(r,Object.assign({keyword:t,categoryId:n},e))}search(e,t){const n=(0,i.buildPath)({endpointName:"posts/search"});return this.client.get(n,Object.assign({keyword:e},t))}get(e,t){const n=(0,i.buildPath)({endpointName:`posts/${e}`});return this.client.get(n,Object.assign({},t))}getBySlug(e,t){const n=(0,i.buildPath)({endpointName:"posts/slug"});return this.client.get(n,Object.assign({slug:e},t))}getPrevPostById(e){const t=(0,i.buildPath)({endpointName:`posts/${e}/prev`});return this.client.get(t,{})}getNextPostById(e){const t=(0,i.buildPath)({endpointName:`posts/${e}/next`});return this.client.get(t,{})}like(e){return r.__awaiter(this,void 0,void 0,(function*(){const t=(0,i.buildPath)({endpointName:`posts/${e}/likes`});yield this.client.get(t,{})}))}}t.PostClient=o},6490:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SheetClient=void 0;const r=n(9489);class i{constructor(e){this.client=e}list(e){const t=(0,r.buildPath)({endpointName:"sheets"});return this.client.get(t,Object.assign({},e))}get(e,t){const n=(0,r.buildPath)({endpointName:`sheets/${e}`});return this.client.get(n,Object.assign({},t))}getBySlug(e,t){const n=(0,r.buildPath)({endpointName:"sheets/slug"});return this.client.get(n,Object.assign({slug:e},t))}}t.SheetClient=i},8435:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatisticClient=void 0;const r=n(9489);class i{constructor(e){this.client=e}statistics(){const e=(0,r.buildPath)({endpointName:"statistics"});return this.client.get(e,{})}statisticsWithUser(){const e=(0,r.buildPath)({endpointName:"statistics/user"});return this.client.get(e,{})}}t.StatisticClient=i},2367:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagClient=void 0;const r=n(9489);class i{constructor(e){this.client=e}list(e){const t=(0,r.buildPath)({endpointName:"tags"});return this.client.get(t,Object.assign({},e))}listPostsBySlug(e,t){const n=(0,r.buildPath)({endpointName:`tags/${e}/posts`});return this.client.get(n,Object.assign({},t))}}t.TagClient=i},9895:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeClient=void 0;const r=n(9489);class i{constructor(e){this.client=e}getProperty(){const e=(0,r.buildPath)({endpointName:"themes/activation"});return this.client.get(e,{})}listSettings(){const e=(0,r.buildPath)({endpointName:"themes/activation/settings"});return this.client.get(e,{})}getPropertyById(e){const t=(0,r.buildPath)({endpointName:`themes/${e}`});return this.client.get(t,{})}listSettingsById(e){const t=(0,r.buildPath)({endpointName:`themes/${e}/settings`});return this.client.get(t,{})}}t.ThemeClient=i},2849:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserClient=void 0;const r=n(9489);class i{constructor(e){this.client=e}getProfile(){const e=(0,r.buildPath)({endpointName:"users/profile"});return this.client.get(e,{})}}t.UserClient=i},3891:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommentClient=t.UserClient=t.ThemeClient=t.TagClient=t.StatisticClient=t.SheetClient=t.PostClient=t.PhotoClient=t.OptionClient=t.MenuClient=t.LinkClient=t.JournalClient=t.CategoryClient=t.ArchiveClient=void 0;var r=n(9619);Object.defineProperty(t,"ArchiveClient",{enumerable:!0,get:function(){return r.ArchiveClient}});var i=n(413);Object.defineProperty(t,"CategoryClient",{enumerable:!0,get:function(){return i.CategoryClient}});var o=n(3313);Object.defineProperty(t,"JournalClient",{enumerable:!0,get:function(){return o.JournalClient}});var a=n(8241);Object.defineProperty(t,"LinkClient",{enumerable:!0,get:function(){return a.LinkClient}});var s=n(428);Object.defineProperty(t,"MenuClient",{enumerable:!0,get:function(){return s.MenuClient}});var l=n(3664);Object.defineProperty(t,"OptionClient",{enumerable:!0,get:function(){return l.OptionClient}});var c=n(4353);Object.defineProperty(t,"PhotoClient",{enumerable:!0,get:function(){return c.PhotoClient}});var u=n(2312);Object.defineProperty(t,"PostClient",{enumerable:!0,get:function(){return u.PostClient}});var p=n(6490);Object.defineProperty(t,"SheetClient",{enumerable:!0,get:function(){return p.SheetClient}});var d=n(8435);Object.defineProperty(t,"StatisticClient",{enumerable:!0,get:function(){return d.StatisticClient}});var h=n(2367);Object.defineProperty(t,"TagClient",{enumerable:!0,get:function(){return h.TagClient}});var m=n(9895);Object.defineProperty(t,"ThemeClient",{enumerable:!0,get:function(){return m.ThemeClient}});var f=n(2849);Object.defineProperty(t,"UserClient",{enumerable:!0,get:function(){return f.UserClient}});var g=n(7929);Object.defineProperty(t,"CommentClient",{enumerable:!0,get:function(){return g.CommentClient}})},3977:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentApiClient=void 0;const r=n(655);var i=n(6838);Object.defineProperty(t,"ContentApiClient",{enumerable:!0,get:function(){return i.ContentApiClient}}),r.__exportStar(n(920),t),r.__exportStar(n(3356),t),r.__exportStar(n(3891),t)},3356:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9489:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildPath=void 0;const n=e=>{const{endpointName:t,scope:n}=e,r=void 0!==n?`${n}`:"content";return`/api/${r}/${t}`};t.buildPath=n},5668:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HaloRequestConfigBuilder=void 0;const r=n(655),i=r.__importDefault(n(6230)),o=r.__importDefault(n(129)),a=n(9575),s=n(3064),l=n(6595),c=4096;class u{constructor({baseUrl:e,auth:t,basicAuth:n,clientCertAuth:r,proxy:i,userAgent:o}){this.baseUrl=e,this.auth=t,this.headers=this.buildHeaders({basicAuth:n,userAgent:o}),this.clientCertAuth=r,this.proxy=i,this.requestToken=null}build(e,t,n,o){return r.__awaiter(this,void 0,void 0,(function*(){const r=Object.assign(Object.assign(Object.assign({method:e,headers:this.headers,url:`${this.baseUrl}${t}`},o||{}),l.platformDeps.buildPlatformDependentConfig({clientCertAuth:this.clientCertAuth})),{proxy:this.proxy});switch(e){case"get":{const e=this.buildRequestUrl(t,n);return e.length>c?Object.assign(Object.assign({},r),{method:"post",headers:Object.assign(Object.assign({},this.headers),{"X-HTTP-Method-Override":"GET"}),data:yield this.buildData(n)}):Object.assign(Object.assign({},r),{url:e})}case"post":if(n instanceof i.default){const e=yield this.buildData(n);return Object.assign(Object.assign({},r),{headers:"function"===typeof e.getHeaders?Object.assign(Object.assign({},this.headers),e.getHeaders()):this.headers,data:e})}return Object.assign(Object.assign({},r),{data:yield this.buildData(n)});case"put":return Object.assign(Object.assign({},r),{data:yield this.buildData(n)});case"delete":{if(n instanceof Array)return Object.assign(Object.assign({},r),{headers:this.headers,data:n});const e=this.buildRequestUrl(t,yield this.buildData(n));return Object.assign(Object.assign({},r),{url:e})}default:throw new Error(`${e} method is not supported`)}}))}buildRequestUrl(e,t){const n=`${this.baseUrl}${e}`,r=o.default.stringify(t,{indices:!1});return r?`${n}?${r}`:n}buildData(e){return r.__awaiter(this,void 0,void 0,(function*(){if(this.auth&&"session"===this.auth.type){const t=yield this.getRequestToken();return e instanceof i.default?(e.append(s.SESSION_TOKEN_KEY,t),e):Object.assign({[s.SESSION_TOKEN_KEY]:t},e)}return e}))}buildHeaders(e){const{basicAuth:t,userAgent:n}=e,r=t?{Authorization:`Basic ${a.Base64.encode(`${t.username}:${t.password}`)}`}:{},i=l.platformDeps.buildHeaders({userAgent:n}),o=Object.assign(Object.assign({},i),r);if(!this.auth)return{};switch(this.auth.type){case"password":return Object.assign(Object.assign({},o),{Authorization:a.Base64.encode(`${this.auth.username}:${this.auth.password}`)});case"adminToken":{const e=this.auth.adminToken;return Object.assign(Object.assign({},o),{"Admin-Authorization":e})}case"apiToken":{const e=this.auth.apiToken;return Array.isArray(e)?Object.assign(Object.assign({},o),{"API-Authorization":e.join(",")}):Object.assign(Object.assign({},o),{"API-Authorization":e})}case"oAuthToken":return Object.assign(Object.assign({},o),{Authorization:`Bearer ${this.auth.oAuthToken}`});case"customizeAuth":return Object.assign(Object.assign({},o),{[this.auth.authHeader]:this.auth.getToken()});default:return Object.assign(Object.assign({},o),{"X-Requested-With":"XMLHttpRequest"})}}getRequestToken(){return r.__awaiter(this,void 0,void 0,(function*(){return null===this.requestToken&&(this.requestToken=yield l.platformDeps.getRequestToken()),this.requestToken}))}}t.HaloRequestConfigBuilder=u},8867:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HaloResponseHandler=void 0;const r=n(655),i=n(2203);class o{handle(e){return e.then((e=>this.handleSuccessResponse(e)),(e=>this.handleErrorResponse(e)))}handleSuccessResponse(e){return e.data}handleErrorResponse(e){if(!e.response){if(/MAC address verify failure/.test(e.toString()))throw new Error("invalid clientCertAuth setting");throw e}const t=e.response,{data:n}=t,o=r.__rest(t,["data"]);if("string"===typeof n)throw new Error(`${o.status}: ${o.statusText}`);throw new i.HaloRestAPIError(Object.assign({data:n},o))}}t.HaloResponseHandler=o},9230:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HaloRestAPIClient=void 0;const r=n(5208),i=n(5668),o=n(8867),a=n(6595),s=e=>"username"in e?Object.assign({type:"password"},e):"apiToken"in e?Object.assign({type:"apiToken"},e):"adminToken"in e?Object.assign({type:"adminToken"},e):"oAuthToken"in e?Object.assign({type:"oAuthToken"},e):"type"in e&&"customizeAuth"==e["type"]?e:void 0;class l{constructor(e={}){var t;this.baseUrl=a.platformDeps.buildBaseUrl(e.baseUrl);const n=s(null!==(t=e.auth)&&void 0!==t?t:{}),l=new i.HaloRequestConfigBuilder(Object.assign(Object.assign({},e),{baseUrl:this.baseUrl,auth:n})),c=new o.HaloResponseHandler;this.httpClient=new r.DefaultHttpClient({responseHandler:c,requestConfigBuilder:l}),this._interceptors=this.httpClient.interceptors}static get version(){return a.platformDeps.getVersion()}get interceptors(){return this._interceptors}getBaseUrl(){return this.baseUrl}buildHttpClient(){return this.httpClient}}t.HaloRestAPIClient=l},2203:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HaloRestAPIError=void 0;class n extends Error{constructor(e){const{data:t}=n.buildErrorResponseDate(e);super(t.message),this.name="HaloRestAPIError",this.data=t,this.status=t.status,this.headers=e.headers,this.message=`[${this.status}] ${this.message}`,Error.captureStackTrace&&Error.captureStackTrace(this,n),Object.setPrototypeOf(this,n.prototype)}static buildErrorResponseDate(e){return{data:e.data}}}t.HaloRestAPIError=n},7518:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AxiosClient=void 0;const r=n(655),i=r.__importDefault(n(9669)),o=n(1916);class a{constructor({responseHandler:e,requestConfigBuilder:t}){this.responseHandler=e,this.requestConfigBuilder=t,this.interceptors={request:new o.RequestInterceptor,response:new o.ResponseInterceptor}}get(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const n=yield this.requestConfigBuilder.build("get",e,t);return this.sendRequest(n)}))}getData(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const n=yield this.requestConfigBuilder.build("get",e,t,{responseType:"arraybuffer"});return this.sendRequest(n)}))}post(e,t,n){return r.__awaiter(this,void 0,void 0,(function*(){const r=yield this.requestConfigBuilder.build("post",e,t,n);return this.sendRequest(r)}))}postData(e,t){return r.__awaiter(this,void 0,void 0,(function*(){const n=yield this.requestConfigBuilder.build("post",e,t);return this.sendRequest(n)}))}put(e,t,n){return r.__awaiter(this,void 0,void 0,(function*(){const r=yield this.requestConfigBuilder.build("put",e,t,n);return this.sendRequest(r)}))}delete(e,t,n){return r.__awaiter(this,void 0,void 0,(function*(){const r=yield this.requestConfigBuilder.build("delete",e,t,n);return this.sendRequest(r)}))}sendRequest(e){return r.__awaiter(this,void 0,void 0,(function*(){return this.responseHandler.handle((0,i.default)(Object.assign(Object.assign({},e),{maxContentLength:1/0})))}))}}t.AxiosClient=a},1916:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseInterceptor=t.RequestInterceptor=void 0;const r=n(655),i=r.__importDefault(n(9669));class o{use(e,t){return i.default.interceptors.request.use(e,t)}eject(e){i.default.interceptors.request.eject(e)}}t.RequestInterceptor=o;class a{use(e,t){return i.default.interceptors.response.use(e,t)}eject(e){i.default.interceptors.response.eject(e)}}t.ResponseInterceptor=a},5208:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultHttpClient=void 0;var r=n(7518);Object.defineProperty(t,"DefaultHttpClient",{enumerable:!0,get:function(){return r.AxiosClient}})},920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Axios=t.FormData=t.DefaultHttpClient=t.HaloRequestConfigBuilder=t.HaloResponseHandler=t.HaloRestAPIClient=void 0;const r=n(655),i=n(6595),o=r.__importStar(n(4014)),a=r.__importDefault(n(6230));t.FormData=a.default;const s=r.__importDefault(n(9669));t.Axios=s.default,(0,i.injectPlatformDeps)(o);var l=n(9230);Object.defineProperty(t,"HaloRestAPIClient",{enumerable:!0,get:function(){return l.HaloRestAPIClient}});var c=n(8867);Object.defineProperty(t,"HaloResponseHandler",{enumerable:!0,get:function(){return c.HaloResponseHandler}});var u=n(5668);Object.defineProperty(t,"HaloRequestConfigBuilder",{enumerable:!0,get:function(){return u.HaloRequestConfigBuilder}});var p=n(5208);Object.defineProperty(t,"DefaultHttpClient",{enumerable:!0,get:function(){return p.DefaultHttpClient}})},8689:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedPlatformError=void 0;class n extends Error{constructor(e){const t=`This function is not supported in ${e} environment`;super(t),Error.captureStackTrace&&Error.captureStackTrace(this,n),this.name="UnsupportedPlatformError",this.platform=e,Object.setPrototypeOf(this,n.prototype)}}t.UnsupportedPlatformError=n},4014:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVersion=t.buildBaseUrl=t.buildFormDataValue=t.buildHeaders=t.buildPlatformDependentConfig=t.getDefaultAuth=t.getRequestToken=t.readFileFromPath=void 0;const r=n(655),i=n(8689),o=()=>{throw new i.UnsupportedPlatformError("Browser")};t.readFileFromPath=o;const a=()=>r.__awaiter(void 0,void 0,void 0,(function*(){if("object"===typeof halo&&null!==halo&&"function"===typeof halo.getRequestToken)return halo.getRequestToken();throw new Error("session authentication must specify a request token")}));t.getRequestToken=a;const s=()=>({type:"session"});t.getDefaultAuth=s;const l=()=>({});t.buildPlatformDependentConfig=l;const c=()=>({});t.buildHeaders=c;const u=e=>new Blob([e]);t.buildFormDataValue=u;const p=e=>{if("undefined"===typeof e)throw new Error("in browser environment, baseUrl is required");return e};t.buildBaseUrl=p;const d=()=>PACKAGE_VERSION;t.getVersion=d},6595:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectPlatformDeps=t.platformDeps=void 0,t.platformDeps={readFileFromPath:()=>{throw new Error("not implemented")},getRequestToken:()=>{throw new Error("not implemented")},getDefaultAuth:()=>{throw new Error("not implemented")},buildPlatformDependentConfig:()=>{throw new Error("not implemented")},buildHeaders:()=>{throw new Error("not implemented")},buildFormDataValue:()=>{throw new Error("not implemented")},buildBaseUrl:()=>{throw new Error("not implemented")},getVersion:()=>{throw new Error("not implemented")}};const n=e=>{t.platformDeps.readFileFromPath=e.readFileFromPath,t.platformDeps.getRequestToken=e.getRequestToken,t.platformDeps.getDefaultAuth=e.getDefaultAuth,t.platformDeps.buildPlatformDependentConfig=e.buildPlatformDependentConfig,t.platformDeps.buildHeaders=e.buildHeaders,t.platformDeps.buildFormDataValue=e.buildFormDataValue,t.platformDeps.buildBaseUrl=e.buildBaseUrl,t.platformDeps.getVersion=e.getVersion};t.injectPlatformDeps=n},3064:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SESSION_TOKEN_KEY=void 0,t.SESSION_TOKEN_KEY="__REQUEST_TOKEN__"},7679:function(e,t){var n,r,i;(function(o,a){r=[],n=a,i="function"===typeof n?n.apply(t,r):n,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(h.stack)||a.exec(h.stack),l=s&&s[1]||!1,c=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");l===u&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*