13 lines
264 KiB
JavaScript
Raw Normal View History

2023-03-21 10:49:35 +08:00
(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))
/*!
autosize 4.0.4
license: MIT
http://www.jacklmoore.com/autosize
*/(function(o,a){r=[e,t],n=a,i="function"===typeof n?n.apply(t,r):n,void 0===i||(e.exports=i)})(0,(function(e,t){"use strict";var n="function"===typeof Map?new Map:function(){var e=[],t=[];return{has:function(t){return e.indexOf(t)>-1},get:function(n){return t[e.indexOf(n)]},set:function(n,r){-1===e.indexOf(n)&&(e.push(n),t.push(r))},delete:function(n){var r=e.indexOf(n);r>-1&&(e.splice(r,1),t.splice(r,1))}}}(),r=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(l){r=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!n.has(e)){var t=null,i=null,o=null,a=function(){e.clientWidth!==i&&d()},s=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),n.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",n.set(e,{destroy:s,update:d}),l()}function l(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),d()}function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(e){var t=[];while(e&&e.parentNode&&e.parentNode instanceof Element)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function p(){if(0!==e.scrollHeight){var n=u(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",i=e.clientWidth,n.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function d(){p();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),i="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(i<t?"hidden"===n.overflowY&&(c("scroll"),p(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),p(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==i){o=i;var a=r("autosize:resized");try{e.dispatchEvent(a)}catch(s){}}}}function o(e){var t=n.get(e);t&&t.destroy()}function a(e){var t=n.get(e);t&&t.update()}var s=null;"undefined"===typeof window||"function"!==typeof window.getComputedStyle?(s=function(e){return e},s.destroy=function(e){return e},s.update=function(e){return e}):(s=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e,t)})),e},s.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=s,e.exports=t["default"]}))},9669:function(e,t,n){e.exports=n(1609)},5448:function(e,t,n){"use strict";var r=n(4867),i=n(6026),o=n(4372),a=n(5327),s=n(4097),l=n(4109),c=n(7985),u=n(5061),p=n(5655),d=n(5263);e.exports=function(e){return new Promise((function(t,n){var h,m=e.data,f=e.headers,g=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(m)&&delete f["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(w+":"+v)}var x=s(e.baseURL,e.url);function k(){if(y){
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&(t(e)||n(e)||!!e._isBuffer)}},9575:function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g&&n.g,(function(){"use strict";var e="3.7.5",t=e,n="function"===typeof atob,r="function"===typeof btoa,i="function"===typeof Buffer,o="function"===typeof TextDecoder?new TextDecoder:void 0,a="function"===typeof TextEncoder?new TextEncoder:void 0,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=Array.prototype.slice.call(s),c=function(e){var t={};return e.forEach((function(e,n){return t[e]=n})),t}(l),u=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,p=String.fromCharCode.bind(String),d="function"===typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e){return new Uint8Array(Array.prototype.slice.call(e,0))},h=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},m=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},f=function(e){for(var t,n,r,i,o="",a=e.length%3,s=0;s<e.length;){if((n=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,o+=l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},g=r?function(e){return btoa(e)}:i?function(e){return Buffer.from(e,"binary").toString("base64")}:f,b=i?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=4096,n=[],r=0,i=e.length;r<i;r+=t)n.push(p.apply(null,e.subarray(r,r+t)));return g(n.join(""))},y=function(e,t){return void 0===t&&(t=!1),t?h(b(e)):b(e)},w=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?p(192|t>>>6)+p(128|63&t):p(224|t>>>12&15)+p(128|t>>>6&63)+p(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return p(240|t>>>18&7)+p(128|t>>>12&63)+p(128|t>>>6&63)+p(128|63&t)},v=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,x=function(e){return e.replace(v,w)},k=i?function(e){return Buffer.from(e,"utf8").toString("base64")}:a?function(e){return b(a.encode(e))}:function(e){return g(x(e))},_=function(e,t){return void 0===t&&(t=!1),t?h(k(e)):k(e)},C=function(e){return _(e,!0)},P=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,j=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return p(55296+(n>>>10))+p(56320+(1023&n));case 3:return p((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return p((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},S=function(e){return e.replace(P,j)},O=function(e){if(e=e.replace(/\s+/g,""),!u.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,i="",o=0;o<e.length;)t=c[e.charAt(o++)]<<18|c[e.charAt(o++)]<<12|(n=c[e.charAt(o++)])<<6|(r=c[e.charAt(o++)]),i+=64===n?p(t>>16&255):64===r?p(t>>16&255,t>>8&255):p(t>>16&255,t>>8&255,255&t);return i},A=n?function(e){return atob(m(e))}:i?function(e){return Buffer.from(e,"base64").toString("binary")}:O,N=i?function(e){return d(Buffer.from(e,"base64"))}:function(e){return d(A(e).split("").map((function(e){return e.charCodeAt(0)})))},E=function(e){return N($(e))},T=i?function(e){return Buffer.from(e,"base64").toString("utf8")}:o?function(e){return o.decode(N(e))}:function(e){return S(A(e))},$=function(e){return m(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},R=function(e){return T($(e))},I=function(e){if("string"!==typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},M=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},B=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,M(t))};e("fromBase64",(function(){return R(this)})),e("toBase64",(function(e){return _(this,e)})),e("toBase64URI",(function(){return _(this,!0)})),e("toBase64URL",(function(){return _(this,!0)})),e("toUint8Array",(function(){return E(th