diff --git a/console/src/views/MigrateView.vue b/console/src/views/MigrateView.vue index 9746d99..a341daa 100644 --- a/console/src/views/MigrateView.vue +++ b/console/src/views/MigrateView.vue @@ -80,6 +80,14 @@ async function handleOpenFile() { return; } + const { protocol, hostname } = location; + + // https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API + if (!["localhost", "127.0.0.1"].includes(hostname) && protocol === "http:") { + Toast.warning("当前无法选择文件,站点必须使用 HTTPS 协议"); + return; + } + await res.open(); if (!res.data.value) { diff --git a/src/main/resources/console/main.js b/src/main/resources/console/main.js index a139479..12b625b 100644 --- a/src/main/resources/console/main.js +++ b/src/main/resources/console/main.js @@ -1,3 +1,3 @@ -var PluginMigrate=function(m,j,oe,tn){"use strict";var gl=Object.defineProperty,Ol=Object.defineProperties;var bl=Object.getOwnPropertyDescriptors;var en=Object.getOwnPropertySymbols;var wl=Object.prototype.hasOwnProperty,Cl=Object.prototype.propertyIsEnumerable;var an=(m,j,oe)=>j in m?gl(m,j,{enumerable:!0,configurable:!0,writable:!0,value:oe}):m[j]=oe,i=(m,j)=>{for(var oe in j||(j={}))wl.call(j,oe)&&an(m,oe,j[oe]);if(en)for(var oe of en(j))Cl.call(j,oe)&&an(m,oe,j[oe]);return m},na=(m,j)=>Ol(m,bl(j));function Al(a){return a}const nn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},rn=[m.createElementVNode("path",{fill:"currentColor",d:"M15 17v-3h3v-2l4 3.5l-4 3.5v-2h-3m2 1v3h-3v2l-4-3.5l4-3.5v2h3M12 8c-2.21 0-4 1.8-4 4c0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0 0 12 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2s2 .9 2 2s-.89 2-2 2m9.66-5.27l-2-3.46c-.12-.22-.38-.31-.61-.22l-2.49 1c-.51-.41-1.06-.74-1.69-1l-.37-2.63A.506.506 0 0 0 14 2h-4c-.25 0-.46.18-.5.42l-.37 2.65c-.63.26-1.17.59-1.69 1L5 5.05c-.23-.09-.5 0-.61.22l-2 3.46c-.13.21-.08.49.11.64L4.57 11l-.07 1l.07 1l-2.11 1.63c-.2.15-.25.43-.12.64l2 3.46c.11.27.4.38.66.27l2.5-1c.24.19.5.37.76.53l1.65-1.4c-.77-.33-1.45-.82-2-1.45l-2.41 1l-.77-1.3L6.8 13.8a5.55 5.55 0 0 1 0-3.6L4.69 8.65l.75-1.3l2.41 1c.78-.9 1.83-1.53 3-1.78l.4-2.57h1.5l.37 2.62c1.17.24 2.22.88 3 1.77l2.41-1l.75 1.3l-2.08 1.51c.09.26.16.53.2.8h2l2.1-1.63a.48.48 0 0 0 .16-.64M12 8c-2.21 0-4 1.8-4 4c0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0 0 12 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2s2 .9 2 2s-.89 2-2 2m0-6c-2.21 0-4 1.8-4 4c0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0 0 12 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2s2 .9 2 2s-.89 2-2 2Z"},null,-1)];function sn(a,e){return m.openBlock(),m.createElementBlock("svg",nn,rn)}var tt={name:"mdi-cog-transfer-outline",render:sn};const on={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ln=[m.createElementVNode("path",{fill:"currentColor",d:"M14 2H6a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 2-2V8l-6-6m4 18H6V4h7v5h5v11m-8.46-4.35l2.09 2.09L10.35 19L7 15.65l3.35-3.35l1.28 1.26l-2.09 2.09m7.46 0L13.65 19l-1.27-1.26l2.09-2.09l-2.09-2.09l1.27-1.26L17 15.65Z"},null,-1)];function cn(a,e){return m.openBlock(),m.createElementBlock("svg",on,ln)}var hn={name:"mdi-file-code-outline",render:cn};function nt(a,e){return function(){return a.apply(e,arguments)}}const{toString:rt}=Object.prototype,{getPrototypeOf:Sa}=Object,xa=(a=>e=>{const t=rt.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),pe=a=>(a=a.toLowerCase(),e=>xa(e)===a),ra=a=>e=>typeof e===a,{isArray:Te}=Array,Fe=ra("undefined");function pn(a){return a!==null&&!Fe(a)&&a.constructor!==null&&!Fe(a.constructor)&&we(a.constructor.isBuffer)&&a.constructor.isBuffer(a)}const st=pe("ArrayBuffer");function un(a){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(a):e=a&&a.buffer&&st(a.buffer),e}const dn=ra("string"),we=ra("function"),ot=ra("number"),Ta=a=>a!==null&&typeof a=="object",mn=a=>a===!0||a===!1,sa=a=>{if(xa(a)!=="object")return!1;const e=Sa(a);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in a)&&!(Symbol.iterator in a)},Vn=pe("Date"),fn=pe("File"),yn=pe("Blob"),Rn=pe("FileList"),Pn=a=>Ta(a)&&we(a.pipe),gn=a=>{const e="[object FormData]";return a&&(typeof FormData=="function"&&a instanceof FormData||rt.call(a)===e||we(a.toString)&&a.toString()===e)},On=pe("URLSearchParams"),bn=a=>a.trim?a.trim():a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _e(a,e,{allOwnKeys:t=!1}={}){if(a===null||typeof a=="undefined")return;let n,s;if(typeof a!="object"&&(a=[a]),Te(a))for(n=0,s=a.length;n0;)if(s=t[n],e===s.toLowerCase())return s;return null}const it=typeof self=="undefined"?typeof global=="undefined"?globalThis:global:self,ct=a=>!Fe(a)&&a!==it;function Ua(){const{caseless:a}=ct(this)&&this||{},e={},t=(n,s)=>{const r=a&<(e,s)||s;sa(e[r])&&sa(n)?e[r]=Ua(e[r],n):sa(n)?e[r]=Ua({},n):Te(n)?e[r]=n.slice():e[r]=n};for(let n=0,s=arguments.length;n(_e(e,(s,r)=>{t&&we(s)?a[r]=nt(s,t):a[r]=s},{allOwnKeys:n}),a),Cn=a=>(a.charCodeAt(0)===65279&&(a=a.slice(1)),a),An=(a,e,t,n)=>{a.prototype=Object.create(e.prototype,n),a.prototype.constructor=a,Object.defineProperty(a,"super",{value:e.prototype}),t&&Object.assign(a.prototype,t)},Hn=(a,e,t,n)=>{let s,r,o;const l={};if(e=e||{},a==null)return e;do{for(s=Object.getOwnPropertyNames(a),r=s.length;r-- >0;)o=s[r],(!n||n(o,a,e))&&!l[o]&&(e[o]=a[o],l[o]=!0);a=t!==!1&&Sa(a)}while(a&&(!t||t(a,e))&&a!==Object.prototype);return e},Sn=(a,e,t)=>{a=String(a),(t===void 0||t>a.length)&&(t=a.length),t-=e.length;const n=a.indexOf(e,t);return n!==-1&&n===t},xn=a=>{if(!a)return null;if(Te(a))return a;let e=a.length;if(!ot(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=a[e];return t},Tn=(a=>e=>a&&e instanceof a)(typeof Uint8Array!="undefined"&&Sa(Uint8Array)),Un=(a,e)=>{const n=(a&&a[Symbol.iterator]).call(a);let s;for(;(s=n.next())&&!s.done;){const r=s.value;e.call(a,r[0],r[1])}},En=(a,e)=>{let t;const n=[];for(;(t=a.exec(e))!==null;)n.push(t);return n},vn=pe("HTMLFormElement"),Fn=a=>a.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(t,n,s){return n.toUpperCase()+s}),ht=(({hasOwnProperty:a})=>(e,t)=>a.call(e,t))(Object.prototype),_n=pe("RegExp"),pt=(a,e)=>{const t=Object.getOwnPropertyDescriptors(a),n={};_e(t,(s,r)=>{e(s,r,a)!==!1&&(n[r]=s)}),Object.defineProperties(a,n)};var y={isArray:Te,isArrayBuffer:st,isBuffer:pn,isFormData:gn,isArrayBufferView:un,isString:dn,isNumber:ot,isBoolean:mn,isObject:Ta,isPlainObject:sa,isUndefined:Fe,isDate:Vn,isFile:fn,isBlob:yn,isRegExp:_n,isFunction:we,isStream:Pn,isURLSearchParams:On,isTypedArray:Tn,isFileList:Rn,forEach:_e,merge:Ua,extend:wn,trim:bn,stripBOM:Cn,inherits:An,toFlatObject:Hn,kindOf:xa,kindOfTest:pe,endsWith:Sn,toArray:xn,forEachEntry:Un,matchAll:En,isHTMLForm:vn,hasOwnProperty:ht,hasOwnProp:ht,reduceDescriptors:pt,freezeMethods:a=>{pt(a,(e,t)=>{if(we(a)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=a[t];if(!!we(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},toObjectSet:(a,e)=>{const t={},n=s=>{s.forEach(r=>{t[r]=!0})};return Te(a)?n(a):n(String(a).split(e)),t},toCamelCase:Fn,noop:()=>{},toFiniteNumber:(a,e)=>(a=+a,Number.isFinite(a)?a:e),findKey:lt,global:it,isContextDefined:ct,toJSONObject:a=>{const e=new Array(10),t=(n,s)=>{if(Ta(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[s]=n;const r=Te(n)?[]:{};return _e(n,(o,l)=>{const c=t(o,s+1);!Fe(c)&&(r[l]=c)}),e[s]=void 0,r}}return n};return t(a,0)}};function Q(a,e,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=a,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}y.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ut=Q.prototype,dt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(a=>{dt[a]={value:a}}),Object.defineProperties(Q,dt),Object.defineProperty(ut,"isAxiosError",{value:!0}),Q.from=(a,e,t,n,s,r)=>{const o=Object.create(ut);return y.toFlatObject(a,o,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Q.call(o,a.message,e,t,n,s),o.cause=a,o.name=a.name,r&&Object.assign(o,r),o};var Ue=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Bn=typeof self=="object"?self.FormData:window.FormData,Ln=Bn;function Ea(a){return y.isPlainObject(a)||y.isArray(a)}function mt(a){return y.endsWith(a,"[]")?a.slice(0,-2):a}function Vt(a,e,t){return a?a.concat(e).map(function(s,r){return s=mt(s),!t&&r?"["+s+"]":s}).join(t?".":""):e}function In(a){return y.isArray(a)&&!a.some(Ea)}const jn=y.toFlatObject(y,{},null,function(e){return/^is[A-Z]/.test(e)});function Nn(a){return a&&y.isFunction(a.append)&&a[Symbol.toStringTag]==="FormData"&&a[Symbol.iterator]}function oa(a,e,t){if(!y.isObject(a))throw new TypeError("target must be an object");e=e||new(Ln||FormData),t=y.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,N){return!y.isUndefined(N[E])});const n=t.metaTokens,s=t.visitor||d,r=t.dots,o=t.indexes,c=(t.Blob||typeof Blob!="undefined"&&Blob)&&Nn(e);if(!y.isFunction(s))throw new TypeError("visitor must be a function");function h(T){if(T===null)return"";if(y.isDate(T))return T.toISOString();if(!c&&y.isBlob(T))throw new Q("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(T)||y.isTypedArray(T)?c&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function d(T,E,N){let M=T;if(T&&!N&&typeof T=="object"){if(y.endsWith(E,"{}"))E=n?E:E.slice(0,-2),T=JSON.stringify(T);else if(y.isArray(T)&&In(T)||y.isFileList(T)||y.endsWith(E,"[]")&&(M=y.toArray(T)))return E=mt(E),M.forEach(function(L,W){!(y.isUndefined(L)||L===null)&&e.append(o===!0?Vt([E],W,r):o===null?E:E+"[]",h(L))}),!1}return Ea(T)?!0:(e.append(Vt(N,E,r),h(T)),!1)}const V=[],S=Object.assign(jn,{defaultVisitor:d,convertValue:h,isVisitable:Ea});function _(T,E){if(!y.isUndefined(T)){if(V.indexOf(T)!==-1)throw Error("Circular reference detected in "+E.join("."));V.push(T),y.forEach(T,function(M,x){(!(y.isUndefined(M)||M===null)&&s.call(e,M,y.isString(x)?x.trim():x,E,S))===!0&&_(M,E?E.concat(x):[x])}),V.pop()}}if(!y.isObject(a))throw new TypeError("data must be an object");return _(a),e}function ft(a){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(a).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function va(a,e){this._pairs=[],a&&oa(a,this,e)}const yt=va.prototype;yt.append=function(e,t){this._pairs.push([e,t])},yt.toString=function(e){const t=e?function(n){return e.call(this,n,ft)}:ft;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function Mn(a){return encodeURIComponent(a).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rt(a,e,t){if(!e)return a;const n=t&&t.encode||Mn,s=t&&t.serialize;let r;if(s?r=s(e,t):r=y.isURLSearchParams(e)?e.toString():new va(e,t).toString(n),r){const o=a.indexOf("#");o!==-1&&(a=a.slice(0,o)),a+=(a.indexOf("?")===-1?"?":"&")+r}return a}class Dn{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){y.forEach(this.handlers,function(n){n!==null&&e(n)})}}var Pt=Dn,gt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$n=typeof URLSearchParams!="undefined"?URLSearchParams:va,Qn=FormData;const Gn=(()=>{let a;return typeof navigator!="undefined"&&((a=navigator.product)==="ReactNative"||a==="NativeScript"||a==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})();var ue={isBrowser:!0,classes:{URLSearchParams:$n,FormData:Qn,Blob},isStandardBrowserEnv:Gn,protocols:["http","https","file","blob","url","data"]};function kn(a,e){return oa(a,new ue.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,r){return ue.isNode&&y.isBuffer(t)?(this.append(n,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}function qn(a){return y.matchAll(/\w+|\[(\w*)]/g,a).map(e=>e[0]==="[]"?"":e[1]||e[0])}function zn(a){const e={},t=Object.keys(a);let n;const s=t.length;let r;for(n=0;n=t.length;return o=!o&&y.isArray(s)?s.length:o,c?(y.hasOwnProp(s,o)?s[o]=[s[o],n]:s[o]=n,!l):((!s[o]||!y.isObject(s[o]))&&(s[o]=[]),e(t,n,s[o],r)&&y.isArray(s[o])&&(s[o]=zn(s[o])),!l)}if(y.isFormData(a)&&y.isFunction(a.entries)){const t={};return y.forEachEntry(a,(n,s)=>{e(qn(n),s,t,0)}),t}return null}const Jn={"Content-Type":void 0};function Kn(a,e,t){if(y.isString(a))try{return(e||JSON.parse)(a),y.trim(a)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(a)}const la={transitional:gt,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",s=n.indexOf("application/json")>-1,r=y.isObject(e);if(r&&y.isHTMLForm(e)&&(e=new FormData(e)),y.isFormData(e))return s&&s?JSON.stringify(Ot(e)):e;if(y.isArrayBuffer(e)||y.isBuffer(e)||y.isStream(e)||y.isFile(e)||y.isBlob(e))return e;if(y.isArrayBufferView(e))return e.buffer;if(y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return kn(e,this.formSerializer).toString();if((l=y.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return oa(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return r||s?(t.setContentType("application/json",!1),Kn(e)):e}],transformResponse:[function(e){const t=this.transitional||la.transitional,n=t&&t.forcedJSONParsing,s=this.responseType==="json";if(e&&y.isString(e)&&(n&&!this.responseType||s)){const o=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(l){if(o)throw l.name==="SyntaxError"?Q.from(l,Q.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ue.classes.FormData,Blob:ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};y.forEach(["delete","get","head"],function(e){la.headers[e]={}}),y.forEach(["post","put","patch"],function(e){la.headers[e]=y.merge(Jn)});var Fa=la;const Wn=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Xn=a=>{const e={};let t,n,s;return a&&a.split(` +var PluginMigrate=function(m,j,oe,tn){"use strict";var gl=Object.defineProperty,Ol=Object.defineProperties;var bl=Object.getOwnPropertyDescriptors;var en=Object.getOwnPropertySymbols;var wl=Object.prototype.hasOwnProperty,Cl=Object.prototype.propertyIsEnumerable;var an=(m,j,oe)=>j in m?gl(m,j,{enumerable:!0,configurable:!0,writable:!0,value:oe}):m[j]=oe,i=(m,j)=>{for(var oe in j||(j={}))wl.call(j,oe)&&an(m,oe,j[oe]);if(en)for(var oe of en(j))Cl.call(j,oe)&&an(m,oe,j[oe]);return m},na=(m,j)=>Ol(m,bl(j));function Al(a){return a}const nn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},rn=[m.createElementVNode("path",{fill:"currentColor",d:"M15 17v-3h3v-2l4 3.5l-4 3.5v-2h-3m2 1v3h-3v2l-4-3.5l4-3.5v2h3M12 8c-2.21 0-4 1.8-4 4c0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0 0 12 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2s2 .9 2 2s-.89 2-2 2m9.66-5.27l-2-3.46c-.12-.22-.38-.31-.61-.22l-2.49 1c-.51-.41-1.06-.74-1.69-1l-.37-2.63A.506.506 0 0 0 14 2h-4c-.25 0-.46.18-.5.42l-.37 2.65c-.63.26-1.17.59-1.69 1L5 5.05c-.23-.09-.5 0-.61.22l-2 3.46c-.13.21-.08.49.11.64L4.57 11l-.07 1l.07 1l-2.11 1.63c-.2.15-.25.43-.12.64l2 3.46c.11.27.4.38.66.27l2.5-1c.24.19.5.37.76.53l1.65-1.4c-.77-.33-1.45-.82-2-1.45l-2.41 1l-.77-1.3L6.8 13.8a5.55 5.55 0 0 1 0-3.6L4.69 8.65l.75-1.3l2.41 1c.78-.9 1.83-1.53 3-1.78l.4-2.57h1.5l.37 2.62c1.17.24 2.22.88 3 1.77l2.41-1l.75 1.3l-2.08 1.51c.09.26.16.53.2.8h2l2.1-1.63a.48.48 0 0 0 .16-.64M12 8c-2.21 0-4 1.8-4 4c0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0 0 12 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2s2 .9 2 2s-.89 2-2 2m0-6c-2.21 0-4 1.8-4 4c0 1.91 1.35 3.54 3.21 3.92L16 11.86A3.997 3.997 0 0 0 12 8m0 6c-1.1 0-2-.89-2-2s.9-2 2-2s2 .9 2 2s-.89 2-2 2Z"},null,-1)];function sn(a,e){return m.openBlock(),m.createElementBlock("svg",nn,rn)}var tt={name:"mdi-cog-transfer-outline",render:sn};const on={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ln=[m.createElementVNode("path",{fill:"currentColor",d:"M14 2H6a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 2-2V8l-6-6m4 18H6V4h7v5h5v11m-8.46-4.35l2.09 2.09L10.35 19L7 15.65l3.35-3.35l1.28 1.26l-2.09 2.09m7.46 0L13.65 19l-1.27-1.26l2.09-2.09l-2.09-2.09l1.27-1.26L17 15.65Z"},null,-1)];function cn(a,e){return m.openBlock(),m.createElementBlock("svg",on,ln)}var hn={name:"mdi-file-code-outline",render:cn};function nt(a,e){return function(){return a.apply(e,arguments)}}const{toString:rt}=Object.prototype,{getPrototypeOf:Sa}=Object,xa=(a=>e=>{const t=rt.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),pe=a=>(a=a.toLowerCase(),e=>xa(e)===a),ra=a=>e=>typeof e===a,{isArray:Te}=Array,Fe=ra("undefined");function pn(a){return a!==null&&!Fe(a)&&a.constructor!==null&&!Fe(a.constructor)&&we(a.constructor.isBuffer)&&a.constructor.isBuffer(a)}const st=pe("ArrayBuffer");function un(a){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(a):e=a&&a.buffer&&st(a.buffer),e}const dn=ra("string"),we=ra("function"),ot=ra("number"),Ta=a=>a!==null&&typeof a=="object",mn=a=>a===!0||a===!1,sa=a=>{if(xa(a)!=="object")return!1;const e=Sa(a);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in a)&&!(Symbol.iterator in a)},Vn=pe("Date"),fn=pe("File"),yn=pe("Blob"),Rn=pe("FileList"),Pn=a=>Ta(a)&&we(a.pipe),gn=a=>{const e="[object FormData]";return a&&(typeof FormData=="function"&&a instanceof FormData||rt.call(a)===e||we(a.toString)&&a.toString()===e)},On=pe("URLSearchParams"),bn=a=>a.trim?a.trim():a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _e(a,e,{allOwnKeys:t=!1}={}){if(a===null||typeof a=="undefined")return;let n,s;if(typeof a!="object"&&(a=[a]),Te(a))for(n=0,s=a.length;n0;)if(s=t[n],e===s.toLowerCase())return s;return null}const it=typeof self=="undefined"?typeof global=="undefined"?globalThis:global:self,ct=a=>!Fe(a)&&a!==it;function Ua(){const{caseless:a}=ct(this)&&this||{},e={},t=(n,s)=>{const r=a&<(e,s)||s;sa(e[r])&&sa(n)?e[r]=Ua(e[r],n):sa(n)?e[r]=Ua({},n):Te(n)?e[r]=n.slice():e[r]=n};for(let n=0,s=arguments.length;n(_e(e,(s,r)=>{t&&we(s)?a[r]=nt(s,t):a[r]=s},{allOwnKeys:n}),a),Cn=a=>(a.charCodeAt(0)===65279&&(a=a.slice(1)),a),An=(a,e,t,n)=>{a.prototype=Object.create(e.prototype,n),a.prototype.constructor=a,Object.defineProperty(a,"super",{value:e.prototype}),t&&Object.assign(a.prototype,t)},Hn=(a,e,t,n)=>{let s,r,o;const l={};if(e=e||{},a==null)return e;do{for(s=Object.getOwnPropertyNames(a),r=s.length;r-- >0;)o=s[r],(!n||n(o,a,e))&&!l[o]&&(e[o]=a[o],l[o]=!0);a=t!==!1&&Sa(a)}while(a&&(!t||t(a,e))&&a!==Object.prototype);return e},Sn=(a,e,t)=>{a=String(a),(t===void 0||t>a.length)&&(t=a.length),t-=e.length;const n=a.indexOf(e,t);return n!==-1&&n===t},xn=a=>{if(!a)return null;if(Te(a))return a;let e=a.length;if(!ot(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=a[e];return t},Tn=(a=>e=>a&&e instanceof a)(typeof Uint8Array!="undefined"&&Sa(Uint8Array)),Un=(a,e)=>{const n=(a&&a[Symbol.iterator]).call(a);let s;for(;(s=n.next())&&!s.done;){const r=s.value;e.call(a,r[0],r[1])}},En=(a,e)=>{let t;const n=[];for(;(t=a.exec(e))!==null;)n.push(t);return n},vn=pe("HTMLFormElement"),Fn=a=>a.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(t,n,s){return n.toUpperCase()+s}),ht=(({hasOwnProperty:a})=>(e,t)=>a.call(e,t))(Object.prototype),_n=pe("RegExp"),pt=(a,e)=>{const t=Object.getOwnPropertyDescriptors(a),n={};_e(t,(s,r)=>{e(s,r,a)!==!1&&(n[r]=s)}),Object.defineProperties(a,n)};var y={isArray:Te,isArrayBuffer:st,isBuffer:pn,isFormData:gn,isArrayBufferView:un,isString:dn,isNumber:ot,isBoolean:mn,isObject:Ta,isPlainObject:sa,isUndefined:Fe,isDate:Vn,isFile:fn,isBlob:yn,isRegExp:_n,isFunction:we,isStream:Pn,isURLSearchParams:On,isTypedArray:Tn,isFileList:Rn,forEach:_e,merge:Ua,extend:wn,trim:bn,stripBOM:Cn,inherits:An,toFlatObject:Hn,kindOf:xa,kindOfTest:pe,endsWith:Sn,toArray:xn,forEachEntry:Un,matchAll:En,isHTMLForm:vn,hasOwnProperty:ht,hasOwnProp:ht,reduceDescriptors:pt,freezeMethods:a=>{pt(a,(e,t)=>{if(we(a)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=a[t];if(!!we(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},toObjectSet:(a,e)=>{const t={},n=s=>{s.forEach(r=>{t[r]=!0})};return Te(a)?n(a):n(String(a).split(e)),t},toCamelCase:Fn,noop:()=>{},toFiniteNumber:(a,e)=>(a=+a,Number.isFinite(a)?a:e),findKey:lt,global:it,isContextDefined:ct,toJSONObject:a=>{const e=new Array(10),t=(n,s)=>{if(Ta(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[s]=n;const r=Te(n)?[]:{};return _e(n,(o,l)=>{const c=t(o,s+1);!Fe(c)&&(r[l]=c)}),e[s]=void 0,r}}return n};return t(a,0)}};function G(a,e,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=a,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}y.inherits(G,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ut=G.prototype,dt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(a=>{dt[a]={value:a}}),Object.defineProperties(G,dt),Object.defineProperty(ut,"isAxiosError",{value:!0}),G.from=(a,e,t,n,s,r)=>{const o=Object.create(ut);return y.toFlatObject(a,o,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),G.call(o,a.message,e,t,n,s),o.cause=a,o.name=a.name,r&&Object.assign(o,r),o};var Ue=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Bn=typeof self=="object"?self.FormData:window.FormData,Ln=Bn;function Ea(a){return y.isPlainObject(a)||y.isArray(a)}function mt(a){return y.endsWith(a,"[]")?a.slice(0,-2):a}function Vt(a,e,t){return a?a.concat(e).map(function(s,r){return s=mt(s),!t&&r?"["+s+"]":s}).join(t?".":""):e}function In(a){return y.isArray(a)&&!a.some(Ea)}const jn=y.toFlatObject(y,{},null,function(e){return/^is[A-Z]/.test(e)});function Nn(a){return a&&y.isFunction(a.append)&&a[Symbol.toStringTag]==="FormData"&&a[Symbol.iterator]}function oa(a,e,t){if(!y.isObject(a))throw new TypeError("target must be an object");e=e||new(Ln||FormData),t=y.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,N){return!y.isUndefined(N[E])});const n=t.metaTokens,s=t.visitor||d,r=t.dots,o=t.indexes,c=(t.Blob||typeof Blob!="undefined"&&Blob)&&Nn(e);if(!y.isFunction(s))throw new TypeError("visitor must be a function");function h(T){if(T===null)return"";if(y.isDate(T))return T.toISOString();if(!c&&y.isBlob(T))throw new G("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(T)||y.isTypedArray(T)?c&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function d(T,E,N){let M=T;if(T&&!N&&typeof T=="object"){if(y.endsWith(E,"{}"))E=n?E:E.slice(0,-2),T=JSON.stringify(T);else if(y.isArray(T)&&In(T)||y.isFileList(T)||y.endsWith(E,"[]")&&(M=y.toArray(T)))return E=mt(E),M.forEach(function(I,W){!(y.isUndefined(I)||I===null)&&e.append(o===!0?Vt([E],W,r):o===null?E:E+"[]",h(I))}),!1}return Ea(T)?!0:(e.append(Vt(N,E,r),h(T)),!1)}const V=[],S=Object.assign(jn,{defaultVisitor:d,convertValue:h,isVisitable:Ea});function B(T,E){if(!y.isUndefined(T)){if(V.indexOf(T)!==-1)throw Error("Circular reference detected in "+E.join("."));V.push(T),y.forEach(T,function(M,x){(!(y.isUndefined(M)||M===null)&&s.call(e,M,y.isString(x)?x.trim():x,E,S))===!0&&B(M,E?E.concat(x):[x])}),V.pop()}}if(!y.isObject(a))throw new TypeError("data must be an object");return B(a),e}function ft(a){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(a).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function va(a,e){this._pairs=[],a&&oa(a,this,e)}const yt=va.prototype;yt.append=function(e,t){this._pairs.push([e,t])},yt.toString=function(e){const t=e?function(n){return e.call(this,n,ft)}:ft;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function Mn(a){return encodeURIComponent(a).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rt(a,e,t){if(!e)return a;const n=t&&t.encode||Mn,s=t&&t.serialize;let r;if(s?r=s(e,t):r=y.isURLSearchParams(e)?e.toString():new va(e,t).toString(n),r){const o=a.indexOf("#");o!==-1&&(a=a.slice(0,o)),a+=(a.indexOf("?")===-1?"?":"&")+r}return a}class Dn{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){y.forEach(this.handlers,function(n){n!==null&&e(n)})}}var Pt=Dn,gt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$n=typeof URLSearchParams!="undefined"?URLSearchParams:va,Qn=FormData;const Gn=(()=>{let a;return typeof navigator!="undefined"&&((a=navigator.product)==="ReactNative"||a==="NativeScript"||a==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})();var ue={isBrowser:!0,classes:{URLSearchParams:$n,FormData:Qn,Blob},isStandardBrowserEnv:Gn,protocols:["http","https","file","blob","url","data"]};function kn(a,e){return oa(a,new ue.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,r){return ue.isNode&&y.isBuffer(t)?(this.append(n,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}function qn(a){return y.matchAll(/\w+|\[(\w*)]/g,a).map(e=>e[0]==="[]"?"":e[1]||e[0])}function zn(a){const e={},t=Object.keys(a);let n;const s=t.length;let r;for(n=0;n=t.length;return o=!o&&y.isArray(s)?s.length:o,c?(y.hasOwnProp(s,o)?s[o]=[s[o],n]:s[o]=n,!l):((!s[o]||!y.isObject(s[o]))&&(s[o]=[]),e(t,n,s[o],r)&&y.isArray(s[o])&&(s[o]=zn(s[o])),!l)}if(y.isFormData(a)&&y.isFunction(a.entries)){const t={};return y.forEachEntry(a,(n,s)=>{e(qn(n),s,t,0)}),t}return null}const Jn={"Content-Type":void 0};function Kn(a,e,t){if(y.isString(a))try{return(e||JSON.parse)(a),y.trim(a)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(a)}const la={transitional:gt,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",s=n.indexOf("application/json")>-1,r=y.isObject(e);if(r&&y.isHTMLForm(e)&&(e=new FormData(e)),y.isFormData(e))return s&&s?JSON.stringify(Ot(e)):e;if(y.isArrayBuffer(e)||y.isBuffer(e)||y.isStream(e)||y.isFile(e)||y.isBlob(e))return e;if(y.isArrayBufferView(e))return e.buffer;if(y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return kn(e,this.formSerializer).toString();if((l=y.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return oa(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return r||s?(t.setContentType("application/json",!1),Kn(e)):e}],transformResponse:[function(e){const t=this.transitional||la.transitional,n=t&&t.forcedJSONParsing,s=this.responseType==="json";if(e&&y.isString(e)&&(n&&!this.responseType||s)){const o=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(l){if(o)throw l.name==="SyntaxError"?G.from(l,G.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ue.classes.FormData,Blob:ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};y.forEach(["delete","get","head"],function(e){la.headers[e]={}}),y.forEach(["post","put","patch"],function(e){la.headers[e]=y.merge(Jn)});var Fa=la;const Wn=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Xn=a=>{const e={};let t,n,s;return a&&a.split(` `).forEach(function(o){s=o.indexOf(":"),t=o.substring(0,s).trim().toLowerCase(),n=o.substring(s+1).trim(),!(!t||e[t]&&Wn[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e};const bt=Symbol("internals");function Be(a){return a&&String(a).trim().toLowerCase()}function ia(a){return a===!1||a==null?a:y.isArray(a)?a.map(ia):String(a)}function Yn(a){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(a);)e[n[1]]=n[2];return e}function Zn(a){return/^[-_a-zA-Z]+$/.test(a.trim())}function wt(a,e,t,n){if(y.isFunction(n))return n.call(this,e,t);if(!!y.isString(e)){if(y.isString(n))return e.indexOf(n)!==-1;if(y.isRegExp(n))return n.test(e)}}function er(a){return a.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function ar(a,e){const t=y.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(a,n+t,{value:function(s,r,o){return this[n].call(this,e,s,r,o)},configurable:!0})})}class ca{constructor(e){e&&this.set(e)}set(e,t,n){const s=this;function r(l,c,h){const d=Be(c);if(!d)throw new Error("header name must be a non-empty string");const V=y.findKey(s,d);(!V||s[V]===void 0||h===!0||h===void 0&&s[V]!==!1)&&(s[V||c]=ia(l))}const o=(l,c)=>y.forEach(l,(h,d)=>r(h,d,c));return y.isPlainObject(e)||e instanceof this.constructor?o(e,t):y.isString(e)&&(e=e.trim())&&!Zn(e)?o(Xn(e),t):e!=null&&r(t,e,n),this}get(e,t){if(e=Be(e),e){const n=y.findKey(this,e);if(n){const s=this[n];if(!t)return s;if(t===!0)return Yn(s);if(y.isFunction(t))return t.call(this,s,n);if(y.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Be(e),e){const n=y.findKey(this,e);return!!(n&&(!t||wt(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let s=!1;function r(o){if(o=Be(o),o){const l=y.findKey(n,o);l&&(!t||wt(n,n[l],l,t))&&(delete n[l],s=!0)}}return y.isArray(e)?e.forEach(r):r(e),s}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(e){const t=this,n={};return y.forEach(this,(s,r)=>{const o=y.findKey(n,r);if(o){t[o]=ia(s),delete t[r];return}const l=e?er(r):String(r).trim();l!==r&&delete t[r],t[l]=ia(s),n[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return y.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=e&&y.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(s=>n.set(s)),n}static accessor(e){const n=(this[bt]=this[bt]={accessors:{}}).accessors,s=this.prototype;function r(o){const l=Be(o);n[l]||(ar(s,o),n[l]=!0)}return y.isArray(e)?e.forEach(r):r(e),this}}ca.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),y.freezeMethods(ca.prototype),y.freezeMethods(ca);var de=ca;function _a(a,e){const t=this||Fa,n=e||t,s=de.from(n.headers);let r=n.data;return y.forEach(a,function(l){r=l.call(t,r,s.normalize(),e?e.status:void 0)}),s.normalize(),r}function Ct(a){return!!(a&&a.__CANCEL__)}function Le(a,e,t){Q.call(this,a==null?"canceled":a,Q.ERR_CANCELED,e,t),this.name="CanceledError"}y.inherits(Le,Q,{__CANCEL__:!0});var tr=null;function nr(a,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?a(t):e(new Q("Request failed with status code "+t.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}var rr=ue.isStandardBrowserEnv?function(){return{write:function(t,n,s,r,o,l){const c=[];c.push(t+"="+encodeURIComponent(n)),y.isNumber(s)&&c.push("expires="+new Date(s).toGMTString()),y.isString(r)&&c.push("path="+r),y.isString(o)&&c.push("domain="+o),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function sr(a){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a)}function or(a,e){return e?a.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):a}function At(a,e){return a&&!sr(e)?or(a,e):e}var lr=ue.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function s(r){let o=r;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=s(window.location.href),function(o){const l=y.isString(o)?s(o):o;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}();function ir(a){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(a);return e&&e[1]||""}function cr(a,e){a=a||10;const t=new Array(a),n=new Array(a);let s=0,r=0,o;return e=e!==void 0?e:1e3,function(c){const h=Date.now(),d=n[r];o||(o=h),t[s]=c,n[s]=h;let V=r,S=0;for(;V!==s;)S+=t[V++],V=V%a;if(s=(s+1)%a,s===r&&(r=(r+1)%a),h-o{const r=s.loaded,o=s.lengthComputable?s.total:void 0,l=r-t,c=n(l),h=r<=o;t=r;const d={loaded:r,total:o,progress:o?r/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o&&h?(o-r)/c:void 0,event:s};d[e?"download":"upload"]=!0,a(d)}}var hr=typeof XMLHttpRequest!="undefined"&&function(a){return new Promise(function(t,n){let s=a.data;const r=de.from(a.headers).normalize(),o=a.responseType;let l;function c(){a.cancelToken&&a.cancelToken.unsubscribe(l),a.signal&&a.signal.removeEventListener("abort",l)}y.isFormData(s)&&ue.isStandardBrowserEnv&&r.setContentType(!1);let h=new XMLHttpRequest;if(a.auth){const _=a.auth.username||"",T=a.auth.password?unescape(encodeURIComponent(a.auth.password)):"";r.set("Authorization","Basic "+btoa(_+":"+T))}const d=At(a.baseURL,a.url);h.open(a.method.toUpperCase(),Rt(d,a.params,a.paramsSerializer),!0),h.timeout=a.timeout;function V(){if(!h)return;const _=de.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),E={data:!o||o==="text"||o==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:_,config:a,request:h};nr(function(M){t(M),c()},function(M){n(M),c()},E),h=null}if("onloadend"in h?h.onloadend=V:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(V)},h.onabort=function(){!h||(n(new Q("Request aborted",Q.ECONNABORTED,a,h)),h=null)},h.onerror=function(){n(new Q("Network Error",Q.ERR_NETWORK,a,h)),h=null},h.ontimeout=function(){let T=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const E=a.transitional||gt;a.timeoutErrorMessage&&(T=a.timeoutErrorMessage),n(new Q(T,E.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,a,h)),h=null},ue.isStandardBrowserEnv){const _=(a.withCredentials||lr(d))&&a.xsrfCookieName&&rr.read(a.xsrfCookieName);_&&r.set(a.xsrfHeaderName,_)}s===void 0&&r.setContentType(null),"setRequestHeader"in h&&y.forEach(r.toJSON(),function(T,E){h.setRequestHeader(E,T)}),y.isUndefined(a.withCredentials)||(h.withCredentials=!!a.withCredentials),o&&o!=="json"&&(h.responseType=a.responseType),typeof a.onDownloadProgress=="function"&&h.addEventListener("progress",Ht(a.onDownloadProgress,!0)),typeof a.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",Ht(a.onUploadProgress)),(a.cancelToken||a.signal)&&(l=_=>{!h||(n(!_||_.type?new Le(null,a,h):_),h.abort(),h=null)},a.cancelToken&&a.cancelToken.subscribe(l),a.signal&&(a.signal.aborted?l():a.signal.addEventListener("abort",l)));const S=ir(d);if(S&&ue.protocols.indexOf(S)===-1){n(new Q("Unsupported protocol "+S+":",Q.ERR_BAD_REQUEST,a));return}h.send(s||null)})};const ha={http:tr,xhr:hr};y.forEach(ha,(a,e)=>{if(a){try{Object.defineProperty(a,"name",{value:e})}catch{}Object.defineProperty(a,"adapterName",{value:e})}});var pr={getAdapter:a=>{a=y.isArray(a)?a:[a];const{length:e}=a;let t,n;for(let s=0;sa instanceof de?a.toJSON():a;function Ie(a,e){e=e||{};const t={};function n(h,d,V){return y.isPlainObject(h)&&y.isPlainObject(d)?y.merge.call({caseless:V},h,d):y.isPlainObject(d)?y.merge({},d):y.isArray(d)?d.slice():d}function s(h,d,V){if(y.isUndefined(d)){if(!y.isUndefined(h))return n(void 0,h,V)}else return n(h,d,V)}function r(h,d){if(!y.isUndefined(d))return n(void 0,d)}function o(h,d){if(y.isUndefined(d)){if(!y.isUndefined(h))return n(void 0,h)}else return n(void 0,d)}function l(h,d,V){if(V in e)return n(h,d);if(V in a)return n(void 0,h)}const c={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(h,d)=>s(xt(h),xt(d),!0)};return y.forEach(Object.keys(a).concat(Object.keys(e)),function(d){const V=c[d]||s,S=V(a[d],e[d],d);y.isUndefined(S)&&V!==l||(t[d]=S)}),t}const Tt="1.2.0",La={};["object","boolean","number","function","string","symbol"].forEach((a,e)=>{La[a]=function(n){return typeof n===a||"a"+(e<1?"n ":" ")+a}});const Ut={};La.transitional=function(e,t,n){function s(r,o){return"[Axios v"+Tt+"] Transitional option '"+r+"'"+o+(n?". "+n:"")}return(r,o,l)=>{if(e===!1)throw new Q(s(o," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!Ut[o]&&(Ut[o]=!0,console.warn(s(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(r,o,l):!0}};function ur(a,e,t){if(typeof a!="object")throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const n=Object.keys(a);let s=n.length;for(;s-- >0;){const r=n[s],o=e[r];if(o){const l=a[r],c=l===void 0||o(l,r,a);if(c!==!0)throw new Q("option "+r+" must be "+c,Q.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Q("Unknown option "+r,Q.ERR_BAD_OPTION)}}var Ia={assertOptions:ur,validators:La};const Re=Ia.validators;class pa{constructor(e){this.defaults=e,this.interceptors={request:new Pt,response:new Pt}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Ie(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:r}=t;n!==void 0&&Ia.assertOptions(n,{silentJSONParsing:Re.transitional(Re.boolean),forcedJSONParsing:Re.transitional(Re.boolean),clarifyTimeoutError:Re.transitional(Re.boolean)},!1),s!==void 0&&Ia.assertOptions(s,{encode:Re.function,serialize:Re.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o;o=r&&y.merge(r.common,r[t.method]),o&&y.forEach(["delete","get","head","post","put","patch","common"],T=>{delete r[T]}),t.headers=de.concat(o,r);const l=[];let c=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(t)===!1||(c=c&&E.synchronous,l.unshift(E.fulfilled,E.rejected))});const h=[];this.interceptors.response.forEach(function(E){h.push(E.fulfilled,E.rejected)});let d,V=0,S;if(!c){const T=[St.bind(this),void 0];for(T.unshift.apply(T,l),T.push.apply(T,h),S=T.length,d=Promise.resolve(t);V{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](s);n._listeners=null}),this.promise.then=s=>{let r;const o=new Promise(l=>{n.subscribe(l),r=l}).then(s);return o.cancel=function(){n.unsubscribe(r)},o},e(function(r,o,l){n.reason||(n.reason=new Le(r,o,l),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new ja(function(s){e=s}),cancel:e}}}var dr=ja;function mr(a){return function(t){return a.apply(null,t)}}function Vr(a){return y.isObject(a)&&a.isAxiosError===!0}function Et(a){const e=new ua(a),t=nt(ua.prototype.request,e);return y.extend(t,ua.prototype,e,{allOwnKeys:!0}),y.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return Et(Ie(a,s))},t}const ae=Et(Fa);ae.Axios=ua,ae.CanceledError=Le,ae.CancelToken=dr,ae.isCancel=Ct,ae.VERSION=Tt,ae.toFormData=oa,ae.AxiosError=Q,ae.Cancel=ae.CanceledError,ae.all=function(e){return Promise.all(e)},ae.spread=mr,ae.isAxiosError=Vr,ae.AxiosHeaders=de,ae.formToJSON=a=>Ot(y.isHTMLForm(a)?new FormData(a):a),ae.default=ae;var R=ae;const P="http://localhost:8090".replace(/\/+$/,"");class J{constructor(e,t=P,n=R){this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class fr extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const g="https://example.com",U=function(a,e,t){if(t==null)throw new fr(e,`Required parameter ${e} was null or undefined when calling ${a}.`)},O=function(a,e){e&&(e.username||e.password)&&(a.auth={username:e.username,password:e.password})},b=async function(a,e){if(e&&e.accessToken){const t=typeof e.accessToken=="function"?await e.accessToken():await e.accessToken;a.Authorization="Bearer "+t}},w=function(a,...e){const t=new URLSearchParams(a.search);for(const n of e)for(const s in n)if(Array.isArray(n[s])){t.delete(s);for(const r of n[s])t.append(s,r)}else t.set(s,n[s]);a.search=t.toString()},D=function(a,e,t){const n=typeof a!="string";return(n&&t&&t.isJsonMime?t.isJsonMime(e.headers["Content-Type"]):n)?JSON.stringify(a!==void 0?a:{}):a||""},C=function(a){return a.pathname+a.search+a.hash},A=function(a,e,t,n){return(s=e,r=t)=>{const o=na(i({},a.options),{url:((n==null?void 0:n.basePath)||r)+a.url});return s.request(o)}},yr=function(a){return{createComment:async(e,t={})=>{U("createComment","commentRequest",e);const n="/apis/api.console.halo.run/v1alpha1/comments",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},createReply:async(e,t,n={})=>{U("createReply","name",e),U("createReply","replyRequest",t);const s="/apis/api.console.halo.run/v1alpha1/comments/{name}/reply".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"POST"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}},listComments:async(e,t,n,s,r,o,l,c,h,d,V,S,_,T,E,N={})=>{const M="/apis/api.console.halo.run/v1alpha1/comments",x=new URL(M,g);let L;a&&(L=a.baseOptions);const W=i(i({method:"GET"},L),N),te={},v={};O(W,a),await b(te,a),e!==void 0&&(v.sort=e),t!==void 0&&(v.keyword=t),n!==void 0&&(v.hidden=n),s!==void 0&&(v.top=s),r!==void 0&&(v.sortOrder=r),o!==void 0&&(v.approved=o),l!==void 0&&(v.allowNotification=l),c!==void 0&&(v.ownerKind=c),h!==void 0&&(v.ownerName=h),d!==void 0&&(v.subjectKind=d),V!==void 0&&(v.subjectName=V),S!==void 0&&(v.size=S),_!==void 0&&(v.page=_),T&&(v.labelSelector=T),E&&(v.fieldSelector=E),w(x,v);let X=L&&L.headers?L.headers:{};return W.headers=i(i(i({},te),X),N.headers),{url:C(x),options:W}}}},Na=function(a){const e=yr(a);return{async createComment(t,n){const s=await e.createComment(t,n);return A(s,R,P,a)},async createReply(t,n,s){const r=await e.createReply(t,n,s);return A(r,R,P,a)},async listComments(t,n,s,r,o,l,c,h,d,V,S,_,T,E,N,M){const x=await e.listComments(t,n,s,r,o,l,c,h,d,V,S,_,T,E,N,M);return A(x,R,P,a)}}};class Rr extends J{createComment(e,t){return Na(this.configuration).createComment(e.commentRequest,t).then(n=>n(this.axios,this.basePath))}createReply(e,t){return Na(this.configuration).createReply(e.name,e.replyRequest,t).then(n=>n(this.axios,this.basePath))}listComments(e={},t){return Na(this.configuration).listComments(e.sort,e.keyword,e.hidden,e.top,e.sortOrder,e.approved,e.allowNotification,e.ownerKind,e.ownerName,e.subjectKind,e.subjectName,e.size,e.page,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}}const Pr=function(a){return{draftSnapshotContent:async(e,t={})=>{U("draftSnapshotContent","contentRequest",e);const n="/apis/api.console.halo.run/v1alpha1/contents",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},obtainSnapshotContent:async(e,t={})=>{U("obtainSnapshotContent","snapshotName",e);const n="/apis/api.console.halo.run/v1alpha1/contents/{snapshotName}".replace("{snapshotName}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},updateSnapshotContent:async(e,t,n={})=>{U("updateSnapshotContent","snapshotName",e),U("updateSnapshotContent","contentRequest",t);const s="/apis/api.console.halo.run/v1alpha1/contents/{snapshotName}".replace("{snapshotName}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Ma=function(a){const e=Pr(a);return{async draftSnapshotContent(t,n){const s=await e.draftSnapshotContent(t,n);return A(s,R,P,a)},async obtainSnapshotContent(t,n){const s=await e.obtainSnapshotContent(t,n);return A(s,R,P,a)},async updateSnapshotContent(t,n,s){const r=await e.updateSnapshotContent(t,n,s);return A(r,R,P,a)}}};class gr extends J{draftSnapshotContent(e,t){return Ma(this.configuration).draftSnapshotContent(e.contentRequest,t).then(n=>n(this.axios,this.basePath))}obtainSnapshotContent(e,t){return Ma(this.configuration).obtainSnapshotContent(e.snapshotName,t).then(n=>n(this.axios,this.basePath))}updateSnapshotContent(e,t){return Ma(this.configuration).updateSnapshotContent(e.snapshotName,e.contentRequest,t).then(n=>n(this.axios,this.basePath))}}const Or=function(a){return{draftPost:async(e,t={})=>{U("draftPost","postRequest",e);const n="/apis/api.console.halo.run/v1alpha1/posts",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},listPosts:async(e,t,n,s,r,o,l,c,h,d,V,S,_={})=>{const T="/apis/api.console.halo.run/v1alpha1/posts",E=new URL(T,g);let N;a&&(N=a.baseOptions);const M=i(i({method:"GET"},N),_),x={},L={};O(M,a),await b(x,a),e!==void 0&&(L.sort=e),t!==void 0&&(L.keyword=t),n!==void 0&&(L.visible=n),s&&(L.tag=Array.from(s)),r!==void 0&&(L.sortOrder=r),o!==void 0&&(L.publishPhase=o),l&&(L.category=Array.from(l)),c&&(L.contributor=Array.from(c)),h!==void 0&&(L.size=h),d!==void 0&&(L.page=d),V&&(L.labelSelector=V),S&&(L.fieldSelector=S),w(E,L);let W=N&&N.headers?N.headers:{};return M.headers=i(i(i({},x),W),_.headers),{url:C(E),options:M}},publishPost:async(e,t,n={})=>{U("publishPost","name",e);const s="/apis/api.console.halo.run/v1alpha1/posts/{name}/publish".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),t!==void 0&&(h.headSnapshot=t),w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),{url:C(r),options:l}},recyclePost:async(e,t={})=>{U("recyclePost","name",e);const n="/apis/api.console.halo.run/v1alpha1/posts/{name}/recycle".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"PUT"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},unpublishPost:async(e,t={})=>{U("unpublishPost","name",e);const n="/apis/api.console.halo.run/v1alpha1/posts/{name}/unpublish".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"PUT"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},updateDraftPost:async(e,t,n={})=>{U("updateDraftPost","name",e),U("updateDraftPost","postRequest",t);const s="/apis/api.console.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}},updatePostContent:async(e,t,n={})=>{U("updatePostContent","name",e),U("updatePostContent","content",t);const s="/apis/api.console.halo.run/v1alpha1/posts/{name}/content".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Ce=function(a){const e=Or(a);return{async draftPost(t,n){const s=await e.draftPost(t,n);return A(s,R,P,a)},async listPosts(t,n,s,r,o,l,c,h,d,V,S,_,T){const E=await e.listPosts(t,n,s,r,o,l,c,h,d,V,S,_,T);return A(E,R,P,a)},async publishPost(t,n,s){const r=await e.publishPost(t,n,s);return A(r,R,P,a)},async recyclePost(t,n){const s=await e.recyclePost(t,n);return A(s,R,P,a)},async unpublishPost(t,n){const s=await e.unpublishPost(t,n);return A(s,R,P,a)},async updateDraftPost(t,n,s){const r=await e.updateDraftPost(t,n,s);return A(r,R,P,a)},async updatePostContent(t,n,s){const r=await e.updatePostContent(t,n,s);return A(r,R,P,a)}}};class br extends J{draftPost(e,t){return Ce(this.configuration).draftPost(e.postRequest,t).then(n=>n(this.axios,this.basePath))}listPosts(e={},t){return Ce(this.configuration).listPosts(e.sort,e.keyword,e.visible,e.tag,e.sortOrder,e.publishPhase,e.category,e.contributor,e.size,e.page,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}publishPost(e,t){return Ce(this.configuration).publishPost(e.name,e.headSnapshot,t).then(n=>n(this.axios,this.basePath))}recyclePost(e,t){return Ce(this.configuration).recyclePost(e.name,t).then(n=>n(this.axios,this.basePath))}unpublishPost(e,t){return Ce(this.configuration).unpublishPost(e.name,t).then(n=>n(this.axios,this.basePath))}updateDraftPost(e,t){return Ce(this.configuration).updateDraftPost(e.name,e.postRequest,t).then(n=>n(this.axios,this.basePath))}updatePostContent(e,t){return Ce(this.configuration).updatePostContent(e.name,e.content,t).then(n=>n(this.axios,this.basePath))}}const wr=function(a){return{listReplies:async(e,t,n,s,r,o={})=>{const l="/apis/api.console.halo.run/v1alpha1/replies",c=new URL(l,g);let h;a&&(h=a.baseOptions);const d=i(i({method:"GET"},h),o),V={},S={};O(d,a),await b(V,a),e!==void 0&&(S.commentName=e),t!==void 0&&(S.size=t),n!==void 0&&(S.page=n),s&&(S.labelSelector=s),r&&(S.fieldSelector=r),w(c,S);let _=h&&h.headers?h.headers:{};return d.headers=i(i(i({},V),_),o.headers),{url:C(c),options:d}}}},Cr=function(a){const e=wr(a);return{async listReplies(t,n,s,r,o,l){const c=await e.listReplies(t,n,s,r,o,l);return A(c,R,P,a)}}};class Ar extends J{listReplies(e={},t){return Cr(this.configuration).listReplies(e.commentName,e.size,e.page,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}}const Hr=function(a){return{draftSinglePage:async(e,t={})=>{U("draftSinglePage","singlePageRequest",e);const n="/apis/api.console.halo.run/v1alpha1/singlepages",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},listSinglePages:async(e,t,n,s,r,o,l,c,h,d,V={})=>{const S="/apis/api.console.halo.run/v1alpha1/singlepages",_=new URL(S,g);let T;a&&(T=a.baseOptions);const E=i(i({method:"GET"},T),V),N={},M={};O(E,a),await b(N,a),e!==void 0&&(M.sort=e),t!==void 0&&(M.keyword=t),n!==void 0&&(M.visible=n),s!==void 0&&(M.sortOrder=s),r!==void 0&&(M.publishPhase=r),o&&(M.contributor=Array.from(o)),l!==void 0&&(M.size=l),c!==void 0&&(M.page=c),h&&(M.labelSelector=h),d&&(M.fieldSelector=d),w(_,M);let x=T&&T.headers?T.headers:{};return E.headers=i(i(i({},N),x),V.headers),{url:C(_),options:E}},publishSinglePage:async(e,t={})=>{U("publishSinglePage","name",e);const n="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/publish".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"PUT"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},updateDraftSinglePage:async(e,t,n={})=>{U("updateDraftSinglePage","name",e),U("updateDraftSinglePage","singlePageRequest",t);const s="/apis/api.console.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}},updateSinglePageContent:async(e,t,n={})=>{U("updateSinglePageContent","name",e),U("updateSinglePageContent","content",t);const s="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},je=function(a){const e=Hr(a);return{async draftSinglePage(t,n){const s=await e.draftSinglePage(t,n);return A(s,R,P,a)},async listSinglePages(t,n,s,r,o,l,c,h,d,V,S){const _=await e.listSinglePages(t,n,s,r,o,l,c,h,d,V,S);return A(_,R,P,a)},async publishSinglePage(t,n){const s=await e.publishSinglePage(t,n);return A(s,R,P,a)},async updateDraftSinglePage(t,n,s){const r=await e.updateDraftSinglePage(t,n,s);return A(r,R,P,a)},async updateSinglePageContent(t,n,s){const r=await e.updateSinglePageContent(t,n,s);return A(r,R,P,a)}}};class Sr extends J{draftSinglePage(e,t){return je(this.configuration).draftSinglePage(e.singlePageRequest,t).then(n=>n(this.axios,this.basePath))}listSinglePages(e={},t){return je(this.configuration).listSinglePages(e.sort,e.keyword,e.visible,e.sortOrder,e.publishPhase,e.contributor,e.size,e.page,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}publishSinglePage(e,t){return je(this.configuration).publishSinglePage(e.name,t).then(n=>n(this.axios,this.basePath))}updateDraftSinglePage(e,t){return je(this.configuration).updateDraftSinglePage(e.name,e.singlePageRequest,t).then(n=>n(this.axios,this.basePath))}updateSinglePageContent(e,t){return je(this.configuration).updateSinglePageContent(e.name,e.content,t).then(n=>n(this.axios,this.basePath))}}const xr=function(a){return{getStats:async(e={})=>{const t="/apis/api.console.halo.run/v1alpha1/stats",n=new URL(t,g);let s;a&&(s=a.baseOptions);const r=i(i({method:"GET"},s),e),o={},l={};O(r,a),await b(o,a),w(n,l);let c=s&&s.headers?s.headers:{};return r.headers=i(i(i({},o),c),e.headers),{url:C(n),options:r}}}},Tr=function(a){const e=xr(a);return{async getStats(t){const n=await e.getStats(t);return A(n,R,P,a)}}};class Ur extends J{getStats(e){return Tr(this.configuration).getStats(e).then(t=>t(this.axios,this.basePath))}}const Er=function(a){return{changePassword:async(e,t,n={})=>{U("changePassword","name",e),U("changePassword","changePasswordRequest",t);const s="/apis/api.console.halo.run/v1alpha1/users/{name}/password".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}},getCurrentUserDetail:async(e={})=>{const t="/apis/api.console.halo.run/v1alpha1/users/-",n=new URL(t,g);let s;a&&(s=a.baseOptions);const r=i(i({method:"GET"},s),e),o={},l={};O(r,a),await b(o,a),w(n,l);let c=s&&s.headers?s.headers:{};return r.headers=i(i(i({},o),c),e.headers),{url:C(n),options:r}},getPermissions:async(e,t={})=>{U("getPermissions","name",e);const n="/apis/api.console.halo.run/v1alpha1/users/{name}/permissions".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},grantPermission:async(e,t,n={})=>{U("grantPermission","name",e),U("grantPermission","grantRequest",t);const s="/apis/api.console.halo.run/v1alpha1/users/{name}/permissions".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"POST"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},da=function(a){const e=Er(a);return{async changePassword(t,n,s){const r=await e.changePassword(t,n,s);return A(r,R,P,a)},async getCurrentUserDetail(t){const n=await e.getCurrentUserDetail(t);return A(n,R,P,a)},async getPermissions(t,n){const s=await e.getPermissions(t,n);return A(s,R,P,a)},async grantPermission(t,n,s){const r=await e.grantPermission(t,n,s);return A(r,R,P,a)}}};class vr extends J{changePassword(e,t){return da(this.configuration).changePassword(e.name,e.changePasswordRequest,t).then(n=>n(this.axios,this.basePath))}getCurrentUserDetail(e){return da(this.configuration).getCurrentUserDetail(e).then(t=>t(this.axios,this.basePath))}getPermissions(e,t){return da(this.configuration).getPermissions(e.name,t).then(n=>n(this.axios,this.basePath))}grantPermission(e,t){return da(this.configuration).grantPermission(e.name,e.grantRequest,t).then(n=>n(this.axios,this.basePath))}}const Fr=function(a){return{createcontentHaloRunV1alpha1Category:async(e,t={})=>{const n="/apis/content.halo.run/v1alpha1/categories",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletecontentHaloRunV1alpha1Category:async(e,t={})=>{U("deletecontentHaloRunV1alpha1Category","name",e);const n="/apis/content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getcontentHaloRunV1alpha1Category:async(e,t={})=>{U("getcontentHaloRunV1alpha1Category","name",e);const n="/apis/content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listcontentHaloRunV1alpha1Category:async(e,t,n,s,r={})=>{const o="/apis/content.halo.run/v1alpha1/categories",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatecontentHaloRunV1alpha1Category:async(e,t,n={})=>{U("updatecontentHaloRunV1alpha1Category","name",e);const s="/apis/content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Ne=function(a){const e=Fr(a);return{async createcontentHaloRunV1alpha1Category(t,n){const s=await e.createcontentHaloRunV1alpha1Category(t,n);return A(s,R,P,a)},async deletecontentHaloRunV1alpha1Category(t,n){const s=await e.deletecontentHaloRunV1alpha1Category(t,n);return A(s,R,P,a)},async getcontentHaloRunV1alpha1Category(t,n){const s=await e.getcontentHaloRunV1alpha1Category(t,n);return A(s,R,P,a)},async listcontentHaloRunV1alpha1Category(t,n,s,r,o){const l=await e.listcontentHaloRunV1alpha1Category(t,n,s,r,o);return A(l,R,P,a)},async updatecontentHaloRunV1alpha1Category(t,n,s){const r=await e.updatecontentHaloRunV1alpha1Category(t,n,s);return A(r,R,P,a)}}};class _r extends J{createcontentHaloRunV1alpha1Category(e={},t){return Ne(this.configuration).createcontentHaloRunV1alpha1Category(e.category,t).then(n=>n(this.axios,this.basePath))}deletecontentHaloRunV1alpha1Category(e,t){return Ne(this.configuration).deletecontentHaloRunV1alpha1Category(e.name,t).then(n=>n(this.axios,this.basePath))}getcontentHaloRunV1alpha1Category(e,t){return Ne(this.configuration).getcontentHaloRunV1alpha1Category(e.name,t).then(n=>n(this.axios,this.basePath))}listcontentHaloRunV1alpha1Category(e={},t){return Ne(this.configuration).listcontentHaloRunV1alpha1Category(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatecontentHaloRunV1alpha1Category(e,t){return Ne(this.configuration).updatecontentHaloRunV1alpha1Category(e.name,e.category,t).then(n=>n(this.axios,this.basePath))}}const Br=function(a){return{createcontentHaloRunV1alpha1Comment:async(e,t={})=>{const n="/apis/content.halo.run/v1alpha1/comments",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletecontentHaloRunV1alpha1Comment:async(e,t={})=>{U("deletecontentHaloRunV1alpha1Comment","name",e);const n="/apis/content.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getcontentHaloRunV1alpha1Comment:async(e,t={})=>{U("getcontentHaloRunV1alpha1Comment","name",e);const n="/apis/content.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listcontentHaloRunV1alpha1Comment:async(e,t,n,s,r={})=>{const o="/apis/content.halo.run/v1alpha1/comments",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatecontentHaloRunV1alpha1Comment:async(e,t,n={})=>{U("updatecontentHaloRunV1alpha1Comment","name",e);const s="/apis/content.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Me=function(a){const e=Br(a);return{async createcontentHaloRunV1alpha1Comment(t,n){const s=await e.createcontentHaloRunV1alpha1Comment(t,n);return A(s,R,P,a)},async deletecontentHaloRunV1alpha1Comment(t,n){const s=await e.deletecontentHaloRunV1alpha1Comment(t,n);return A(s,R,P,a)},async getcontentHaloRunV1alpha1Comment(t,n){const s=await e.getcontentHaloRunV1alpha1Comment(t,n);return A(s,R,P,a)},async listcontentHaloRunV1alpha1Comment(t,n,s,r,o){const l=await e.listcontentHaloRunV1alpha1Comment(t,n,s,r,o);return A(l,R,P,a)},async updatecontentHaloRunV1alpha1Comment(t,n,s){const r=await e.updatecontentHaloRunV1alpha1Comment(t,n,s);return A(r,R,P,a)}}};class Lr extends J{createcontentHaloRunV1alpha1Comment(e={},t){return Me(this.configuration).createcontentHaloRunV1alpha1Comment(e.comment,t).then(n=>n(this.axios,this.basePath))}deletecontentHaloRunV1alpha1Comment(e,t){return Me(this.configuration).deletecontentHaloRunV1alpha1Comment(e.name,t).then(n=>n(this.axios,this.basePath))}getcontentHaloRunV1alpha1Comment(e,t){return Me(this.configuration).getcontentHaloRunV1alpha1Comment(e.name,t).then(n=>n(this.axios,this.basePath))}listcontentHaloRunV1alpha1Comment(e={},t){return Me(this.configuration).listcontentHaloRunV1alpha1Comment(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatecontentHaloRunV1alpha1Comment(e,t){return Me(this.configuration).updatecontentHaloRunV1alpha1Comment(e.name,e.comment,t).then(n=>n(this.axios,this.basePath))}}const Ir=function(a){return{createcontentHaloRunV1alpha1Post:async(e,t={})=>{const n="/apis/content.halo.run/v1alpha1/posts",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletecontentHaloRunV1alpha1Post:async(e,t={})=>{U("deletecontentHaloRunV1alpha1Post","name",e);const n="/apis/content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getcontentHaloRunV1alpha1Post:async(e,t={})=>{U("getcontentHaloRunV1alpha1Post","name",e);const n="/apis/content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listcontentHaloRunV1alpha1Post:async(e,t,n,s,r={})=>{const o="/apis/content.halo.run/v1alpha1/posts",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatecontentHaloRunV1alpha1Post:async(e,t,n={})=>{U("updatecontentHaloRunV1alpha1Post","name",e);const s="/apis/content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},De=function(a){const e=Ir(a);return{async createcontentHaloRunV1alpha1Post(t,n){const s=await e.createcontentHaloRunV1alpha1Post(t,n);return A(s,R,P,a)},async deletecontentHaloRunV1alpha1Post(t,n){const s=await e.deletecontentHaloRunV1alpha1Post(t,n);return A(s,R,P,a)},async getcontentHaloRunV1alpha1Post(t,n){const s=await e.getcontentHaloRunV1alpha1Post(t,n);return A(s,R,P,a)},async listcontentHaloRunV1alpha1Post(t,n,s,r,o){const l=await e.listcontentHaloRunV1alpha1Post(t,n,s,r,o);return A(l,R,P,a)},async updatecontentHaloRunV1alpha1Post(t,n,s){const r=await e.updatecontentHaloRunV1alpha1Post(t,n,s);return A(r,R,P,a)}}};class jr extends J{createcontentHaloRunV1alpha1Post(e={},t){return De(this.configuration).createcontentHaloRunV1alpha1Post(e.post,t).then(n=>n(this.axios,this.basePath))}deletecontentHaloRunV1alpha1Post(e,t){return De(this.configuration).deletecontentHaloRunV1alpha1Post(e.name,t).then(n=>n(this.axios,this.basePath))}getcontentHaloRunV1alpha1Post(e,t){return De(this.configuration).getcontentHaloRunV1alpha1Post(e.name,t).then(n=>n(this.axios,this.basePath))}listcontentHaloRunV1alpha1Post(e={},t){return De(this.configuration).listcontentHaloRunV1alpha1Post(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatecontentHaloRunV1alpha1Post(e,t){return De(this.configuration).updatecontentHaloRunV1alpha1Post(e.name,e.post,t).then(n=>n(this.axios,this.basePath))}}const Nr=function(a){return{createcontentHaloRunV1alpha1Reply:async(e,t={})=>{const n="/apis/content.halo.run/v1alpha1/replies",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletecontentHaloRunV1alpha1Reply:async(e,t={})=>{U("deletecontentHaloRunV1alpha1Reply","name",e);const n="/apis/content.halo.run/v1alpha1/replies/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getcontentHaloRunV1alpha1Reply:async(e,t={})=>{U("getcontentHaloRunV1alpha1Reply","name",e);const n="/apis/content.halo.run/v1alpha1/replies/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listcontentHaloRunV1alpha1Reply:async(e,t,n,s,r={})=>{const o="/apis/content.halo.run/v1alpha1/replies",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatecontentHaloRunV1alpha1Reply:async(e,t,n={})=>{U("updatecontentHaloRunV1alpha1Reply","name",e);const s="/apis/content.halo.run/v1alpha1/replies/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},$e=function(a){const e=Nr(a);return{async createcontentHaloRunV1alpha1Reply(t,n){const s=await e.createcontentHaloRunV1alpha1Reply(t,n);return A(s,R,P,a)},async deletecontentHaloRunV1alpha1Reply(t,n){const s=await e.deletecontentHaloRunV1alpha1Reply(t,n);return A(s,R,P,a)},async getcontentHaloRunV1alpha1Reply(t,n){const s=await e.getcontentHaloRunV1alpha1Reply(t,n);return A(s,R,P,a)},async listcontentHaloRunV1alpha1Reply(t,n,s,r,o){const l=await e.listcontentHaloRunV1alpha1Reply(t,n,s,r,o);return A(l,R,P,a)},async updatecontentHaloRunV1alpha1Reply(t,n,s){const r=await e.updatecontentHaloRunV1alpha1Reply(t,n,s);return A(r,R,P,a)}}};class Mr extends J{createcontentHaloRunV1alpha1Reply(e={},t){return $e(this.configuration).createcontentHaloRunV1alpha1Reply(e.reply,t).then(n=>n(this.axios,this.basePath))}deletecontentHaloRunV1alpha1Reply(e,t){return $e(this.configuration).deletecontentHaloRunV1alpha1Reply(e.name,t).then(n=>n(this.axios,this.basePath))}getcontentHaloRunV1alpha1Reply(e,t){return $e(this.configuration).getcontentHaloRunV1alpha1Reply(e.name,t).then(n=>n(this.axios,this.basePath))}listcontentHaloRunV1alpha1Reply(e={},t){return $e(this.configuration).listcontentHaloRunV1alpha1Reply(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatecontentHaloRunV1alpha1Reply(e,t){return $e(this.configuration).updatecontentHaloRunV1alpha1Reply(e.name,e.reply,t).then(n=>n(this.axios,this.basePath))}}const Dr=function(a){return{createcontentHaloRunV1alpha1SinglePage:async(e,t={})=>{const n="/apis/content.halo.run/v1alpha1/singlepages",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletecontentHaloRunV1alpha1SinglePage:async(e,t={})=>{U("deletecontentHaloRunV1alpha1SinglePage","name",e);const n="/apis/content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getcontentHaloRunV1alpha1SinglePage:async(e,t={})=>{U("getcontentHaloRunV1alpha1SinglePage","name",e);const n="/apis/content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listcontentHaloRunV1alpha1SinglePage:async(e,t,n,s,r={})=>{const o="/apis/content.halo.run/v1alpha1/singlepages",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatecontentHaloRunV1alpha1SinglePage:async(e,t,n={})=>{U("updatecontentHaloRunV1alpha1SinglePage","name",e);const s="/apis/content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Qe=function(a){const e=Dr(a);return{async createcontentHaloRunV1alpha1SinglePage(t,n){const s=await e.createcontentHaloRunV1alpha1SinglePage(t,n);return A(s,R,P,a)},async deletecontentHaloRunV1alpha1SinglePage(t,n){const s=await e.deletecontentHaloRunV1alpha1SinglePage(t,n);return A(s,R,P,a)},async getcontentHaloRunV1alpha1SinglePage(t,n){const s=await e.getcontentHaloRunV1alpha1SinglePage(t,n);return A(s,R,P,a)},async listcontentHaloRunV1alpha1SinglePage(t,n,s,r,o){const l=await e.listcontentHaloRunV1alpha1SinglePage(t,n,s,r,o);return A(l,R,P,a)},async updatecontentHaloRunV1alpha1SinglePage(t,n,s){const r=await e.updatecontentHaloRunV1alpha1SinglePage(t,n,s);return A(r,R,P,a)}}};class $r extends J{createcontentHaloRunV1alpha1SinglePage(e={},t){return Qe(this.configuration).createcontentHaloRunV1alpha1SinglePage(e.singlePage,t).then(n=>n(this.axios,this.basePath))}deletecontentHaloRunV1alpha1SinglePage(e,t){return Qe(this.configuration).deletecontentHaloRunV1alpha1SinglePage(e.name,t).then(n=>n(this.axios,this.basePath))}getcontentHaloRunV1alpha1SinglePage(e,t){return Qe(this.configuration).getcontentHaloRunV1alpha1SinglePage(e.name,t).then(n=>n(this.axios,this.basePath))}listcontentHaloRunV1alpha1SinglePage(e={},t){return Qe(this.configuration).listcontentHaloRunV1alpha1SinglePage(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatecontentHaloRunV1alpha1SinglePage(e,t){return Qe(this.configuration).updatecontentHaloRunV1alpha1SinglePage(e.name,e.singlePage,t).then(n=>n(this.axios,this.basePath))}}const Qr=function(a){return{createcontentHaloRunV1alpha1Tag:async(e,t={})=>{const n="/apis/content.halo.run/v1alpha1/tags",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletecontentHaloRunV1alpha1Tag:async(e,t={})=>{U("deletecontentHaloRunV1alpha1Tag","name",e);const n="/apis/content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getcontentHaloRunV1alpha1Tag:async(e,t={})=>{U("getcontentHaloRunV1alpha1Tag","name",e);const n="/apis/content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listcontentHaloRunV1alpha1Tag:async(e,t,n,s,r={})=>{const o="/apis/content.halo.run/v1alpha1/tags",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatecontentHaloRunV1alpha1Tag:async(e,t,n={})=>{U("updatecontentHaloRunV1alpha1Tag","name",e);const s="/apis/content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Ge=function(a){const e=Qr(a);return{async createcontentHaloRunV1alpha1Tag(t,n){const s=await e.createcontentHaloRunV1alpha1Tag(t,n);return A(s,R,P,a)},async deletecontentHaloRunV1alpha1Tag(t,n){const s=await e.deletecontentHaloRunV1alpha1Tag(t,n);return A(s,R,P,a)},async getcontentHaloRunV1alpha1Tag(t,n){const s=await e.getcontentHaloRunV1alpha1Tag(t,n);return A(s,R,P,a)},async listcontentHaloRunV1alpha1Tag(t,n,s,r,o){const l=await e.listcontentHaloRunV1alpha1Tag(t,n,s,r,o);return A(l,R,P,a)},async updatecontentHaloRunV1alpha1Tag(t,n,s){const r=await e.updatecontentHaloRunV1alpha1Tag(t,n,s);return A(r,R,P,a)}}};class Gr extends J{createcontentHaloRunV1alpha1Tag(e={},t){return Ge(this.configuration).createcontentHaloRunV1alpha1Tag(e.tag,t).then(n=>n(this.axios,this.basePath))}deletecontentHaloRunV1alpha1Tag(e,t){return Ge(this.configuration).deletecontentHaloRunV1alpha1Tag(e.name,t).then(n=>n(this.axios,this.basePath))}getcontentHaloRunV1alpha1Tag(e,t){return Ge(this.configuration).getcontentHaloRunV1alpha1Tag(e.name,t).then(n=>n(this.axios,this.basePath))}listcontentHaloRunV1alpha1Tag(e={},t){return Ge(this.configuration).listcontentHaloRunV1alpha1Tag(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatecontentHaloRunV1alpha1Tag(e,t){return Ge(this.configuration).updatecontentHaloRunV1alpha1Tag(e.name,e.tag,t).then(n=>n(this.axios,this.basePath))}}const kr=function(a){return{createmetricsHaloRunV1alpha1Counter:async(e,t={})=>{const n="/apis/metrics.halo.run/v1alpha1/counters",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletemetricsHaloRunV1alpha1Counter:async(e,t={})=>{U("deletemetricsHaloRunV1alpha1Counter","name",e);const n="/apis/metrics.halo.run/v1alpha1/counters/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getmetricsHaloRunV1alpha1Counter:async(e,t={})=>{U("getmetricsHaloRunV1alpha1Counter","name",e);const n="/apis/metrics.halo.run/v1alpha1/counters/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listmetricsHaloRunV1alpha1Counter:async(e,t,n,s,r={})=>{const o="/apis/metrics.halo.run/v1alpha1/counters",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatemetricsHaloRunV1alpha1Counter:async(e,t,n={})=>{U("updatemetricsHaloRunV1alpha1Counter","name",e);const s="/apis/metrics.halo.run/v1alpha1/counters/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},ke=function(a){const e=kr(a);return{async createmetricsHaloRunV1alpha1Counter(t,n){const s=await e.createmetricsHaloRunV1alpha1Counter(t,n);return A(s,R,P,a)},async deletemetricsHaloRunV1alpha1Counter(t,n){const s=await e.deletemetricsHaloRunV1alpha1Counter(t,n);return A(s,R,P,a)},async getmetricsHaloRunV1alpha1Counter(t,n){const s=await e.getmetricsHaloRunV1alpha1Counter(t,n);return A(s,R,P,a)},async listmetricsHaloRunV1alpha1Counter(t,n,s,r,o){const l=await e.listmetricsHaloRunV1alpha1Counter(t,n,s,r,o);return A(l,R,P,a)},async updatemetricsHaloRunV1alpha1Counter(t,n,s){const r=await e.updatemetricsHaloRunV1alpha1Counter(t,n,s);return A(r,R,P,a)}}};class qr extends J{createmetricsHaloRunV1alpha1Counter(e={},t){return ke(this.configuration).createmetricsHaloRunV1alpha1Counter(e.counter,t).then(n=>n(this.axios,this.basePath))}deletemetricsHaloRunV1alpha1Counter(e,t){return ke(this.configuration).deletemetricsHaloRunV1alpha1Counter(e.name,t).then(n=>n(this.axios,this.basePath))}getmetricsHaloRunV1alpha1Counter(e,t){return ke(this.configuration).getmetricsHaloRunV1alpha1Counter(e.name,t).then(n=>n(this.axios,this.basePath))}listmetricsHaloRunV1alpha1Counter(e={},t){return ke(this.configuration).listmetricsHaloRunV1alpha1Counter(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatemetricsHaloRunV1alpha1Counter(e,t){return ke(this.configuration).updatemetricsHaloRunV1alpha1Counter(e.name,e.counter,t).then(n=>n(this.axios,this.basePath))}}const zr=function(a){return{createstorageHaloRunV1alpha1Attachment:async(e,t={})=>{const n="/apis/storage.halo.run/v1alpha1/attachments",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletestorageHaloRunV1alpha1Attachment:async(e,t={})=>{U("deletestorageHaloRunV1alpha1Attachment","name",e);const n="/apis/storage.halo.run/v1alpha1/attachments/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getstorageHaloRunV1alpha1Attachment:async(e,t={})=>{U("getstorageHaloRunV1alpha1Attachment","name",e);const n="/apis/storage.halo.run/v1alpha1/attachments/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},liststorageHaloRunV1alpha1Attachment:async(e,t,n,s,r={})=>{const o="/apis/storage.halo.run/v1alpha1/attachments",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatestorageHaloRunV1alpha1Attachment:async(e,t,n={})=>{U("updatestorageHaloRunV1alpha1Attachment","name",e);const s="/apis/storage.halo.run/v1alpha1/attachments/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},qe=function(a){const e=zr(a);return{async createstorageHaloRunV1alpha1Attachment(t,n){const s=await e.createstorageHaloRunV1alpha1Attachment(t,n);return A(s,R,P,a)},async deletestorageHaloRunV1alpha1Attachment(t,n){const s=await e.deletestorageHaloRunV1alpha1Attachment(t,n);return A(s,R,P,a)},async getstorageHaloRunV1alpha1Attachment(t,n){const s=await e.getstorageHaloRunV1alpha1Attachment(t,n);return A(s,R,P,a)},async liststorageHaloRunV1alpha1Attachment(t,n,s,r,o){const l=await e.liststorageHaloRunV1alpha1Attachment(t,n,s,r,o);return A(l,R,P,a)},async updatestorageHaloRunV1alpha1Attachment(t,n,s){const r=await e.updatestorageHaloRunV1alpha1Attachment(t,n,s);return A(r,R,P,a)}}};class Jr extends J{createstorageHaloRunV1alpha1Attachment(e={},t){return qe(this.configuration).createstorageHaloRunV1alpha1Attachment(e.attachment,t).then(n=>n(this.axios,this.basePath))}deletestorageHaloRunV1alpha1Attachment(e,t){return qe(this.configuration).deletestorageHaloRunV1alpha1Attachment(e.name,t).then(n=>n(this.axios,this.basePath))}getstorageHaloRunV1alpha1Attachment(e,t){return qe(this.configuration).getstorageHaloRunV1alpha1Attachment(e.name,t).then(n=>n(this.axios,this.basePath))}liststorageHaloRunV1alpha1Attachment(e={},t){return qe(this.configuration).liststorageHaloRunV1alpha1Attachment(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatestorageHaloRunV1alpha1Attachment(e,t){return qe(this.configuration).updatestorageHaloRunV1alpha1Attachment(e.name,e.attachment,t).then(n=>n(this.axios,this.basePath))}}const Kr=function(a){return{createstorageHaloRunV1alpha1Group:async(e,t={})=>{const n="/apis/storage.halo.run/v1alpha1/groups",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletestorageHaloRunV1alpha1Group:async(e,t={})=>{U("deletestorageHaloRunV1alpha1Group","name",e);const n="/apis/storage.halo.run/v1alpha1/groups/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getstorageHaloRunV1alpha1Group:async(e,t={})=>{U("getstorageHaloRunV1alpha1Group","name",e);const n="/apis/storage.halo.run/v1alpha1/groups/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},liststorageHaloRunV1alpha1Group:async(e,t,n,s,r={})=>{const o="/apis/storage.halo.run/v1alpha1/groups",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatestorageHaloRunV1alpha1Group:async(e,t,n={})=>{U("updatestorageHaloRunV1alpha1Group","name",e);const s="/apis/storage.halo.run/v1alpha1/groups/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},ze=function(a){const e=Kr(a);return{async createstorageHaloRunV1alpha1Group(t,n){const s=await e.createstorageHaloRunV1alpha1Group(t,n);return A(s,R,P,a)},async deletestorageHaloRunV1alpha1Group(t,n){const s=await e.deletestorageHaloRunV1alpha1Group(t,n);return A(s,R,P,a)},async getstorageHaloRunV1alpha1Group(t,n){const s=await e.getstorageHaloRunV1alpha1Group(t,n);return A(s,R,P,a)},async liststorageHaloRunV1alpha1Group(t,n,s,r,o){const l=await e.liststorageHaloRunV1alpha1Group(t,n,s,r,o);return A(l,R,P,a)},async updatestorageHaloRunV1alpha1Group(t,n,s){const r=await e.updatestorageHaloRunV1alpha1Group(t,n,s);return A(r,R,P,a)}}};class Wr extends J{createstorageHaloRunV1alpha1Group(e={},t){return ze(this.configuration).createstorageHaloRunV1alpha1Group(e.group,t).then(n=>n(this.axios,this.basePath))}deletestorageHaloRunV1alpha1Group(e,t){return ze(this.configuration).deletestorageHaloRunV1alpha1Group(e.name,t).then(n=>n(this.axios,this.basePath))}getstorageHaloRunV1alpha1Group(e,t){return ze(this.configuration).getstorageHaloRunV1alpha1Group(e.name,t).then(n=>n(this.axios,this.basePath))}liststorageHaloRunV1alpha1Group(e={},t){return ze(this.configuration).liststorageHaloRunV1alpha1Group(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatestorageHaloRunV1alpha1Group(e,t){return ze(this.configuration).updatestorageHaloRunV1alpha1Group(e.name,e.group,t).then(n=>n(this.axios,this.basePath))}}const Xr=function(a){return{createstorageHaloRunV1alpha1Policy:async(e,t={})=>{const n="/apis/storage.halo.run/v1alpha1/policies",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletestorageHaloRunV1alpha1Policy:async(e,t={})=>{U("deletestorageHaloRunV1alpha1Policy","name",e);const n="/apis/storage.halo.run/v1alpha1/policies/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getstorageHaloRunV1alpha1Policy:async(e,t={})=>{U("getstorageHaloRunV1alpha1Policy","name",e);const n="/apis/storage.halo.run/v1alpha1/policies/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},liststorageHaloRunV1alpha1Policy:async(e,t,n,s,r={})=>{const o="/apis/storage.halo.run/v1alpha1/policies",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatestorageHaloRunV1alpha1Policy:async(e,t,n={})=>{U("updatestorageHaloRunV1alpha1Policy","name",e);const s="/apis/storage.halo.run/v1alpha1/policies/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Je=function(a){const e=Xr(a);return{async createstorageHaloRunV1alpha1Policy(t,n){const s=await e.createstorageHaloRunV1alpha1Policy(t,n);return A(s,R,P,a)},async deletestorageHaloRunV1alpha1Policy(t,n){const s=await e.deletestorageHaloRunV1alpha1Policy(t,n);return A(s,R,P,a)},async getstorageHaloRunV1alpha1Policy(t,n){const s=await e.getstorageHaloRunV1alpha1Policy(t,n);return A(s,R,P,a)},async liststorageHaloRunV1alpha1Policy(t,n,s,r,o){const l=await e.liststorageHaloRunV1alpha1Policy(t,n,s,r,o);return A(l,R,P,a)},async updatestorageHaloRunV1alpha1Policy(t,n,s){const r=await e.updatestorageHaloRunV1alpha1Policy(t,n,s);return A(r,R,P,a)}}};class Yr extends J{createstorageHaloRunV1alpha1Policy(e={},t){return Je(this.configuration).createstorageHaloRunV1alpha1Policy(e.policy,t).then(n=>n(this.axios,this.basePath))}deletestorageHaloRunV1alpha1Policy(e,t){return Je(this.configuration).deletestorageHaloRunV1alpha1Policy(e.name,t).then(n=>n(this.axios,this.basePath))}getstorageHaloRunV1alpha1Policy(e,t){return Je(this.configuration).getstorageHaloRunV1alpha1Policy(e.name,t).then(n=>n(this.axios,this.basePath))}liststorageHaloRunV1alpha1Policy(e={},t){return Je(this.configuration).liststorageHaloRunV1alpha1Policy(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatestorageHaloRunV1alpha1Policy(e,t){return Je(this.configuration).updatestorageHaloRunV1alpha1Policy(e.name,e.policy,t).then(n=>n(this.axios,this.basePath))}}const Zr=function(a){return{createstorageHaloRunV1alpha1PolicyTemplate:async(e,t={})=>{const n="/apis/storage.halo.run/v1alpha1/policytemplates",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletestorageHaloRunV1alpha1PolicyTemplate:async(e,t={})=>{U("deletestorageHaloRunV1alpha1PolicyTemplate","name",e);const n="/apis/storage.halo.run/v1alpha1/policytemplates/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getstorageHaloRunV1alpha1PolicyTemplate:async(e,t={})=>{U("getstorageHaloRunV1alpha1PolicyTemplate","name",e);const n="/apis/storage.halo.run/v1alpha1/policytemplates/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},liststorageHaloRunV1alpha1PolicyTemplate:async(e,t,n,s,r={})=>{const o="/apis/storage.halo.run/v1alpha1/policytemplates",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatestorageHaloRunV1alpha1PolicyTemplate:async(e,t,n={})=>{U("updatestorageHaloRunV1alpha1PolicyTemplate","name",e);const s="/apis/storage.halo.run/v1alpha1/policytemplates/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Ke=function(a){const e=Zr(a);return{async createstorageHaloRunV1alpha1PolicyTemplate(t,n){const s=await e.createstorageHaloRunV1alpha1PolicyTemplate(t,n);return A(s,R,P,a)},async deletestorageHaloRunV1alpha1PolicyTemplate(t,n){const s=await e.deletestorageHaloRunV1alpha1PolicyTemplate(t,n);return A(s,R,P,a)},async getstorageHaloRunV1alpha1PolicyTemplate(t,n){const s=await e.getstorageHaloRunV1alpha1PolicyTemplate(t,n);return A(s,R,P,a)},async liststorageHaloRunV1alpha1PolicyTemplate(t,n,s,r,o){const l=await e.liststorageHaloRunV1alpha1PolicyTemplate(t,n,s,r,o);return A(l,R,P,a)},async updatestorageHaloRunV1alpha1PolicyTemplate(t,n,s){const r=await e.updatestorageHaloRunV1alpha1PolicyTemplate(t,n,s);return A(r,R,P,a)}}};class es extends J{createstorageHaloRunV1alpha1PolicyTemplate(e={},t){return Ke(this.configuration).createstorageHaloRunV1alpha1PolicyTemplate(e.policyTemplate,t).then(n=>n(this.axios,this.basePath))}deletestorageHaloRunV1alpha1PolicyTemplate(e,t){return Ke(this.configuration).deletestorageHaloRunV1alpha1PolicyTemplate(e.name,t).then(n=>n(this.axios,this.basePath))}getstorageHaloRunV1alpha1PolicyTemplate(e,t){return Ke(this.configuration).getstorageHaloRunV1alpha1PolicyTemplate(e.name,t).then(n=>n(this.axios,this.basePath))}liststorageHaloRunV1alpha1PolicyTemplate(e={},t){return Ke(this.configuration).liststorageHaloRunV1alpha1PolicyTemplate(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatestorageHaloRunV1alpha1PolicyTemplate(e,t){return Ke(this.configuration).updatestorageHaloRunV1alpha1PolicyTemplate(e.name,e.policyTemplate,t).then(n=>n(this.axios,this.basePath))}}const as=function(a){return{createv1alpha1ConfigMap:async(e,t={})=>{const n="/api/v1alpha1/configmaps",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletev1alpha1ConfigMap:async(e,t={})=>{U("deletev1alpha1ConfigMap","name",e);const n="/api/v1alpha1/configmaps/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getv1alpha1ConfigMap:async(e,t={})=>{U("getv1alpha1ConfigMap","name",e);const n="/api/v1alpha1/configmaps/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listv1alpha1ConfigMap:async(e,t,n,s,r={})=>{const o="/api/v1alpha1/configmaps",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatev1alpha1ConfigMap:async(e,t,n={})=>{U("updatev1alpha1ConfigMap","name",e);const s="/api/v1alpha1/configmaps/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},We=function(a){const e=as(a);return{async createv1alpha1ConfigMap(t,n){const s=await e.createv1alpha1ConfigMap(t,n);return A(s,R,P,a)},async deletev1alpha1ConfigMap(t,n){const s=await e.deletev1alpha1ConfigMap(t,n);return A(s,R,P,a)},async getv1alpha1ConfigMap(t,n){const s=await e.getv1alpha1ConfigMap(t,n);return A(s,R,P,a)},async listv1alpha1ConfigMap(t,n,s,r,o){const l=await e.listv1alpha1ConfigMap(t,n,s,r,o);return A(l,R,P,a)},async updatev1alpha1ConfigMap(t,n,s){const r=await e.updatev1alpha1ConfigMap(t,n,s);return A(r,R,P,a)}}};class ts extends J{createv1alpha1ConfigMap(e={},t){return We(this.configuration).createv1alpha1ConfigMap(e.configMap,t).then(n=>n(this.axios,this.basePath))}deletev1alpha1ConfigMap(e,t){return We(this.configuration).deletev1alpha1ConfigMap(e.name,t).then(n=>n(this.axios,this.basePath))}getv1alpha1ConfigMap(e,t){return We(this.configuration).getv1alpha1ConfigMap(e.name,t).then(n=>n(this.axios,this.basePath))}listv1alpha1ConfigMap(e={},t){return We(this.configuration).listv1alpha1ConfigMap(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatev1alpha1ConfigMap(e,t){return We(this.configuration).updatev1alpha1ConfigMap(e.name,e.configMap,t).then(n=>n(this.axios,this.basePath))}}const ns=function(a){return{createv1alpha1Menu:async(e,t={})=>{const n="/api/v1alpha1/menus",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletev1alpha1Menu:async(e,t={})=>{U("deletev1alpha1Menu","name",e);const n="/api/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getv1alpha1Menu:async(e,t={})=>{U("getv1alpha1Menu","name",e);const n="/api/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listv1alpha1Menu:async(e,t,n,s,r={})=>{const o="/api/v1alpha1/menus",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatev1alpha1Menu:async(e,t,n={})=>{U("updatev1alpha1Menu","name",e);const s="/api/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Xe=function(a){const e=ns(a);return{async createv1alpha1Menu(t,n){const s=await e.createv1alpha1Menu(t,n);return A(s,R,P,a)},async deletev1alpha1Menu(t,n){const s=await e.deletev1alpha1Menu(t,n);return A(s,R,P,a)},async getv1alpha1Menu(t,n){const s=await e.getv1alpha1Menu(t,n);return A(s,R,P,a)},async listv1alpha1Menu(t,n,s,r,o){const l=await e.listv1alpha1Menu(t,n,s,r,o);return A(l,R,P,a)},async updatev1alpha1Menu(t,n,s){const r=await e.updatev1alpha1Menu(t,n,s);return A(r,R,P,a)}}};class rs extends J{createv1alpha1Menu(e={},t){return Xe(this.configuration).createv1alpha1Menu(e.menu,t).then(n=>n(this.axios,this.basePath))}deletev1alpha1Menu(e,t){return Xe(this.configuration).deletev1alpha1Menu(e.name,t).then(n=>n(this.axios,this.basePath))}getv1alpha1Menu(e,t){return Xe(this.configuration).getv1alpha1Menu(e.name,t).then(n=>n(this.axios,this.basePath))}listv1alpha1Menu(e={},t){return Xe(this.configuration).listv1alpha1Menu(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatev1alpha1Menu(e,t){return Xe(this.configuration).updatev1alpha1Menu(e.name,e.menu,t).then(n=>n(this.axios,this.basePath))}}const ss=function(a){return{createv1alpha1MenuItem:async(e,t={})=>{const n="/api/v1alpha1/menuitems",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletev1alpha1MenuItem:async(e,t={})=>{U("deletev1alpha1MenuItem","name",e);const n="/api/v1alpha1/menuitems/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getv1alpha1MenuItem:async(e,t={})=>{U("getv1alpha1MenuItem","name",e);const n="/api/v1alpha1/menuitems/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listv1alpha1MenuItem:async(e,t,n,s,r={})=>{const o="/api/v1alpha1/menuitems",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatev1alpha1MenuItem:async(e,t,n={})=>{U("updatev1alpha1MenuItem","name",e);const s="/api/v1alpha1/menuitems/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Ye=function(a){const e=ss(a);return{async createv1alpha1MenuItem(t,n){const s=await e.createv1alpha1MenuItem(t,n);return A(s,R,P,a)},async deletev1alpha1MenuItem(t,n){const s=await e.deletev1alpha1MenuItem(t,n);return A(s,R,P,a)},async getv1alpha1MenuItem(t,n){const s=await e.getv1alpha1MenuItem(t,n);return A(s,R,P,a)},async listv1alpha1MenuItem(t,n,s,r,o){const l=await e.listv1alpha1MenuItem(t,n,s,r,o);return A(l,R,P,a)},async updatev1alpha1MenuItem(t,n,s){const r=await e.updatev1alpha1MenuItem(t,n,s);return A(r,R,P,a)}}};class os extends J{createv1alpha1MenuItem(e={},t){return Ye(this.configuration).createv1alpha1MenuItem(e.menuItem,t).then(n=>n(this.axios,this.basePath))}deletev1alpha1MenuItem(e,t){return Ye(this.configuration).deletev1alpha1MenuItem(e.name,t).then(n=>n(this.axios,this.basePath))}getv1alpha1MenuItem(e,t){return Ye(this.configuration).getv1alpha1MenuItem(e.name,t).then(n=>n(this.axios,this.basePath))}listv1alpha1MenuItem(e={},t){return Ye(this.configuration).listv1alpha1MenuItem(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatev1alpha1MenuItem(e,t){return Ye(this.configuration).updatev1alpha1MenuItem(e.name,e.menuItem,t).then(n=>n(this.axios,this.basePath))}}const ls=function(a){return{createv1alpha1Setting:async(e,t={})=>{const n="/api/v1alpha1/settings",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletev1alpha1Setting:async(e,t={})=>{U("deletev1alpha1Setting","name",e);const n="/api/v1alpha1/settings/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getv1alpha1Setting:async(e,t={})=>{U("getv1alpha1Setting","name",e);const n="/api/v1alpha1/settings/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listv1alpha1Setting:async(e,t,n,s,r={})=>{const o="/api/v1alpha1/settings",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatev1alpha1Setting:async(e,t,n={})=>{U("updatev1alpha1Setting","name",e);const s="/api/v1alpha1/settings/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Ze=function(a){const e=ls(a);return{async createv1alpha1Setting(t,n){const s=await e.createv1alpha1Setting(t,n);return A(s,R,P,a)},async deletev1alpha1Setting(t,n){const s=await e.deletev1alpha1Setting(t,n);return A(s,R,P,a)},async getv1alpha1Setting(t,n){const s=await e.getv1alpha1Setting(t,n);return A(s,R,P,a)},async listv1alpha1Setting(t,n,s,r,o){const l=await e.listv1alpha1Setting(t,n,s,r,o);return A(l,R,P,a)},async updatev1alpha1Setting(t,n,s){const r=await e.updatev1alpha1Setting(t,n,s);return A(r,R,P,a)}}};class is extends J{createv1alpha1Setting(e={},t){return Ze(this.configuration).createv1alpha1Setting(e.setting,t).then(n=>n(this.axios,this.basePath))}deletev1alpha1Setting(e,t){return Ze(this.configuration).deletev1alpha1Setting(e.name,t).then(n=>n(this.axios,this.basePath))}getv1alpha1Setting(e,t){return Ze(this.configuration).getv1alpha1Setting(e.name,t).then(n=>n(this.axios,this.basePath))}listv1alpha1Setting(e={},t){return Ze(this.configuration).listv1alpha1Setting(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatev1alpha1Setting(e,t){return Ze(this.configuration).updatev1alpha1Setting(e.name,e.setting,t).then(n=>n(this.axios,this.basePath))}}const cs=function(a){return{createv1alpha1User:async(e,t={})=>{const n="/api/v1alpha1/users",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletev1alpha1User:async(e,t={})=>{U("deletev1alpha1User","name",e);const n="/api/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getv1alpha1User:async(e,t={})=>{U("getv1alpha1User","name",e);const n="/api/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listv1alpha1User:async(e,t,n,s,r={})=>{const o="/api/v1alpha1/users",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatev1alpha1User:async(e,t,n={})=>{U("updatev1alpha1User","name",e);const s="/api/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},ea=function(a){const e=cs(a);return{async createv1alpha1User(t,n){const s=await e.createv1alpha1User(t,n);return A(s,R,P,a)},async deletev1alpha1User(t,n){const s=await e.deletev1alpha1User(t,n);return A(s,R,P,a)},async getv1alpha1User(t,n){const s=await e.getv1alpha1User(t,n);return A(s,R,P,a)},async listv1alpha1User(t,n,s,r,o){const l=await e.listv1alpha1User(t,n,s,r,o);return A(l,R,P,a)},async updatev1alpha1User(t,n,s){const r=await e.updatev1alpha1User(t,n,s);return A(r,R,P,a)}}};class hs extends J{createv1alpha1User(e={},t){return ea(this.configuration).createv1alpha1User(e.user,t).then(n=>n(this.axios,this.basePath))}deletev1alpha1User(e,t){return ea(this.configuration).deletev1alpha1User(e.name,t).then(n=>n(this.axios,this.basePath))}getv1alpha1User(e,t){return ea(this.configuration).getv1alpha1User(e.name,t).then(n=>n(this.axios,this.basePath))}listv1alpha1User(e={},t){return ea(this.configuration).listv1alpha1User(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatev1alpha1User(e,t){return ea(this.configuration).updatev1alpha1User(e.name,e.user,t).then(n=>n(this.axios,this.basePath))}}const z="",vt=R.create({baseURL:z,withCredentials:!0});vt.interceptors.response.use(a=>a,async a=>(a.response.status===401&&console.log(a),Promise.reject(a)));const ce=ps(vt);function ps(a){return{extension:{configMap:new ts(void 0,z,a),setting:new is(void 0,z,a),user:new hs(void 0,z,a),menu:new rs(void 0,z,a),menuItem:new os(void 0,z,a),post:new jr(void 0,z,a),singlePage:new $r(void 0,z,a),category:new _r(void 0,z,a),tag:new Gr(void 0,z,a),comment:new Lr(void 0,z,a),reply:new Mr(void 0,z,a),storage:{group:new Wr(void 0,z,a),attachment:new Jr(void 0,z,a),policy:new Yr(void 0,z,a),policyTemplate:new es(void 0,z,a)},counter:new qr(void 0,z,a)},user:new vr(void 0,z,a),post:new br(void 0,z,a),singlePage:new Sr(void 0,z,a),content:new gr(void 0,z,a),comment:new Rr(void 0,z,a),reply:new Ar(void 0,z,a),stats:new Ur(void 0,z,a)}}var Da={};(function(a){var e=Ue&&Ue.__assign||function(){return(e=Object.assign||function(o){for(var l,c=1,h=arguments.length;c-1}function Ao(p,u){var f=this.__data__,H=Ra(f,p);return H<0?f.push([p,u]):f[H][1]=u,this}me.prototype.clear=Oo,me.prototype.delete=bo,me.prototype.get=wo,me.prototype.has=Co,me.prototype.set=Ao;function Ve(p){var u=-1,f=p?p.length:0;for(this.clear();++uk))return!1;var Z=F.get(p);if(Z&&F.get(u))return Z==u;var ne=-1,re=!0,ee=B&r?new ya:void 0;for(F.set(p,u),F.set(u,p);++ne-1&&p%1==0&&p-1&&p%1==0&&p<=c}function ba(p){var u=typeof p;return!!p&&(u=="object"||u=="function")}function wa(p){return!!p&&typeof p=="object"}function at(p){return typeof p=="symbol"||wa(p)&&Ee.call(p)==X}var ml=jt?Zs(jt):Jo;function Vl(p){return p==null?"":el(p)}function fl(p,u,f){var H=p==null?void 0:Gt(p,u);return H===void 0?f:H}function yl(p,u){return p!=null&&ll(p,u,Go)}function Ca(p){return Za(p)?jo(p):Wo(p)}function Rl(p){return p}function Pl(p){return ga(p)?Xs(Oa(p)):Zo(p)}a.exports=ul})($a,$a.exports);var us=$a.exports;function ds(a,e,t,n,s,r,o,l,c,h){function d(){return a.value.map(x=>ce.extension.tag.createcontentHaloRunV1alpha1Tag({tag:{metadata:{name:x.id+""},kind:"Tag",apiVersion:"content.halo.run/v1alpha1",spec:{displayName:x.name,slug:x.slug,color:x.color,cover:x.thumbnail}}}))}function V(){return e.value.reduce((x,L,W,te)=>{const v=[];return te.forEach(X=>{(v.includes(X.parentId+"")||X.parentId===L.id)&&v.push(X.id+"")}),x.concat(na(i({},L),{children:v}))},[]).map(x=>ce.extension.category.createcontentHaloRunV1alpha1Category({category:{metadata:{name:x.id+""},kind:"Category",apiVersion:"content.halo.run/v1alpha1",spec:{displayName:x.name,slug:x.slug,description:x.description,cover:x.thumbnail,priority:x.priority,children:x.children||[]}}}))}function S(){return[...t.value.map(x=>{const L=n.value.find(v=>v.id===x.id),W=s.value.filter(v=>v.postId===x.id).map(v=>v.tagId+""),te=r.value.filter(v=>v.postId===x.id).map(v=>v.categoryId+"");return ce.post.draftPost({postRequest:{post:{spec:{title:x.title,slug:x.slug,template:"",cover:x.thumbnail,deleted:x.status==="RECYCLE",publish:x.status==="PUBLISHED",publishTime:new Date(x.createTime).toISOString(),pinned:x.topPriority>0,allowComment:!x.disallowComment,visible:"PUBLIC",version:1,priority:0,excerpt:{autoGenerate:!1,raw:x.summary},categories:te,tags:W,htmlMetas:[]},apiVersion:"content.halo.run/v1alpha1",kind:"Post",metadata:{name:x.id+""}},content:{raw:L==null?void 0:L.content,content:L==null?void 0:L.content,rawType:"HTML"}}})}),...t.value.map(x=>ce.extension.counter.createmetricsHaloRunV1alpha1Counter({counter:{visit:x.visits,upvote:x.likes,downvote:0,totalComment:0,approvedComment:0,apiVersion:"metrics.halo.run/v1alpha1",kind:"Counter",metadata:{name:`posts.content.halo.run/${x.id}`}}}))]}function _(){return[...l.value.map(x=>{const L=n.value.find(W=>W.id===x.id);return ce.singlePage.draftSinglePage({singlePageRequest:{page:{spec:{title:x.title,slug:x.slug,template:"",cover:x.thumbnail,deleted:x.status==="RECYCLE",publish:x.status==="PUBLISHED",publishTime:new Date(x.createTime).toISOString(),pinned:x.topPriority>0,allowComment:!x.disallowComment,visible:"PUBLIC",version:1,priority:0,excerpt:{autoGenerate:!1,raw:x.summary},htmlMetas:[]},apiVersion:"content.halo.run/v1alpha1",kind:"SinglePage",metadata:{name:x.id+""}},content:{raw:L==null?void 0:L.content,content:L==null?void 0:L.content,rawType:"HTML"}}})}),...l.value.map(x=>ce.extension.counter.createmetricsHaloRunV1alpha1Counter({counter:{visit:x.visits,upvote:x.likes,downvote:0,totalComment:0,approvedComment:0,apiVersion:"metrics.halo.run/v1alpha1",kind:"Counter",metadata:{name:`singlepages.content.halo.run/${x.id}`}}}))]}function T(x,L){const W=[],te=[];v(x,void 0);function v(X,G){X.forEach(I=>{var se;I.parentId===0?(G=I.id,W.push(ce.extension.comment.createcontentHaloRunV1alpha1Comment({comment:{kind:"Comment",apiVersion:"content.halo.run/v1alpha1",spec:{raw:I.content,content:I.content,owner:{kind:"Email",name:I.email,displayName:I.author,annotations:{avatar:`https://www.gravatar.com/avatar/${I.gravatarMd5}?s=64&d=identicon&r=PG`,website:I.authorUrl}},userAgent:I.userAgent,ipAddress:I.ipAddress,priority:0,top:!1,allowNotification:I.allowNotification,approved:I.status==="PUBLISHED",approvedTime:new Date(I.createTime).toISOString(),hidden:!1,subjectRef:na(i({},L),{name:I.postId+""}),lastReadTime:void 0},metadata:{name:I.id+""}}}))):te.push(ce.extension.reply.createcontentHaloRunV1alpha1Reply({reply:{kind:"Reply",apiVersion:"content.halo.run/v1alpha1",metadata:{name:I.id+""},spec:{raw:I.content,content:I.content,owner:{kind:"Email",name:I.email,displayName:I.author,annotations:{avatar:`https://www.gravatar.com/avatar/${I.gravatarMd5}?s=64&d=identicon&r=PG`,website:I.authorUrl}},userAgent:I.userAgent,ipAddress:I.ipAddress,priority:0,top:!1,allowNotification:I.allowNotification,approved:I.status==="PUBLISHED",approvedTime:new Date(I.createTime).toISOString(),hidden:!1,commentName:G+"",quoteReply:I.parentId+""}}})),(se=I.children)!=null&&se.length&&v(I.children,G)})}return[...W,...te]}function E(){return T(Da.arrayToTree(o.value,{dataField:null,rootParentIds:{0:!0}}),{kind:"Post",group:"content.halo.run",version:"v1alpha1"})}function N(){return T(Da.arrayToTree(c.value,{dataField:null,rootParentIds:{0:!0}}),{kind:"SinglePage",group:"content.halo.run",version:"v1alpha1"})}function M(){const x=us(h.value,"team"),L=[];return Object.keys(x).forEach(v=>{L.push(ce.extension.menu.createv1alpha1Menu({menu:{kind:"Menu",apiVersion:"v1alpha1",metadata:{name:v||"default"},spec:{displayName:v||"\u672A\u5206\u7EC4",menuItems:x[v].map(X=>X.id+"")}}}))}),[...h.value.reduce((v,X,G,I)=>{const se=[];return I.forEach(Ae=>{(se.includes(Ae.parentId+"")||Ae.parentId===X.id)&&se.push(Ae.id+"")}),v.concat(na(i({},X),{children:se}))},[]).map(v=>({kind:"MenuItem",apiVersion:"v1alpha1",metadata:{name:v.id+""},spec:{displayName:v.name,href:v.url,priority:v.priority,children:v.children||[]}})).map(v=>ce.extension.menuItem.createv1alpha1MenuItem({menuItem:v})),...L]}return{createTagRequests:d,createCategoryRequests:V,createPostRequests:S,createSinglePageRequests:_,createPostCommentRequests:E,createSinglePageCommentRequests:N,createMenuRequests:M}}const ms={class:"p-4"},Vs={key:1,class:"migrate-flex migrate-flex-1 migrate-flex-col"},fs={class:"migrate-grid migrate-grid-cols-1 migrate-gap-3 sm:migrate-grid-cols-4"},ys={class:"migrate-h-96"},Rs={class:"box-border h-full w-full divide-y divide-gray-100",role:"list"},Ps={class:"migrate-h-96"},gs={class:"box-border h-full w-full divide-y divide-gray-100",role:"list"},Os={class:"migrate-h-96"},bs={class:"box-border h-full w-full divide-y divide-gray-100",role:"list"},ws={class:"migrate-h-96"},Cs={class:"box-border h-full w-full divide-y divide-gray-100",role:"list"},As={class:"migrate-h-96"},Hs={class:"box-border h-full w-full divide-y divide-gray-100",role:"list"},Ss={class:"migrate-h-96"},xs={class:"box-border h-full w-full divide-y divide-gray-100",role:"list"},Ts={class:"migrate-h-96"},Us={class:"box-border h-full w-full divide-y divide-gray-100",role:"list"},Es={class:"migrate-mt-8 migrate-self-center"},vs=m.defineComponent({__name:"MigrateView",setup(a){const e=oe.useFileSystemAccess({dataType:"Text",types:[{description:"json",accept:{"text/yaml":[".json"]}}],excludeAcceptAllOption:!0}),t=m.ref([]),n=m.ref([]),s=m.ref([]),r=m.ref([]),o=m.ref([]),l=m.ref([]),c=m.ref([]),h=m.ref([]),d=m.ref([]),V=m.ref([]),S=m.ref(!1),{createTagRequests:_,createCategoryRequests:T,createPostRequests:E,createSinglePageRequests:N,createPostCommentRequests:M,createSinglePageCommentRequests:x,createMenuRequests:L}=ds(t,n,s,r,o,l,c,h,d,V);async function W(){if(!e.isSupported){j.Toast.warning("\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u9009\u62E9\u6587\u4EF6\uFF0C\u63A8\u8350\u4F7F\u7528 Google Chrome");return}if(await e.open(),!e.data.value){j.Toast.warning("\u6240\u9009\u6587\u4EF6\u4E0D\u7B26\u5408\u8981\u6C42");return}const v=JSON.parse(e.data.value),{version:X}=v;X.startsWith("1.5")||X.startsWith("1.6")||j.Toast.warning("\u6682\u4E0D\u652F\u6301\u8BE5\u7248\u672C\u7684\u8FC1\u79FB\uFF0C\u4EC5\u652F\u6301 Halo 1.5 / 1.6 \u7248\u672C"),t.value=v.tags,n.value=v.categories,s.value=v.posts,r.value=v.contents,o.value=v.post_tags,l.value=v.post_categories,c.value=v.post_comments,h.value=v.sheets,d.value=v.sheet_comments,V.value=v.menus}const te=async()=>{window.onbeforeunload=function(Y){const ma="\u6570\u636E\u6B63\u5728\u5BFC\u5165\u4E2D\uFF0C\u8BF7\u52FF\u5173\u95ED\u6216\u5237\u65B0\u6B64\u9875\u9762\u3002";return Y=Y||window.event,Y&&(Y.returnValue=ma),ma},S.value=!0;const v=_();try{await Promise.all(v)}catch(Y){console.error("Failed to create tags",Y)}const X=T();try{await Promise.all(X)}catch(Y){console.error("Failed to create categories",Y)}const G=E();try{await Promise.all(G)}catch(Y){console.error("Failed to create posts",Y)}const I=N();try{await Promise.all(I)}catch(Y){console.error("Failed to create single pages",Y)}const se=M();try{await Promise.all(se)}catch(Y){console.error("Failed to create post comments",Y)}const Ae=x();try{await Promise.all(Ae)}catch(Y){console.error("Failed to create single page comments",Y)}const Qa=L();try{await Promise.all(Qa)}catch(Y){console.error("Failed to create menus",Y)}S.value=!1,j.Dialog.success({title:"\u5BFC\u5165\u5B8C\u6210"}),window.onbeforeunload=null};return tn.onBeforeRouteLeave((v,X,G)=>{S.value&&(j.Dialog.warning({title:"\u63D0\u793A",description:"\u6570\u636E\u6B63\u5728\u5BFC\u5165\u4E2D\uFF0C\u8BF7\u52FF\u5173\u95ED\u6216\u5237\u65B0\u6B64\u9875\u9762\u3002"}),G(!1)),G()}),(v,X)=>(m.openBlock(),m.createElementBlock(m.Fragment,null,[m.createVNode(m.unref(j.VPageHeader),{title:"\u8FC1\u79FB"},{icon:m.withCtx(()=>[m.createVNode(m.unref(tt),{class:"mr-2 self-center"})]),actions:m.withCtx(()=>[m.createVNode(m.unref(j.VSpace),null,{default:m.withCtx(()=>[m.createVNode(m.unref(j.VButton),{onClick:W,type:"secondary"},{icon:m.withCtx(()=>[m.createVNode(m.unref(hn),{class:"h-full w-full"})]),default:m.withCtx(()=>[m.createTextVNode(" \u9009\u62E9\u6587\u4EF6 ")]),_:1})]),_:1})]),_:1}),m.createElementVNode("div",ms,[m.unref(e).data.value?(m.openBlock(),m.createElementBlock("div",Vs,[m.createElementVNode("div",fs,[m.createElementVNode("div",ys,[m.createVNode(m.unref(j.VCard),{"body-class":["h-full","!p-0","overflow-y-auto"],class:"h-full",title:`\u6807\u7B7E\uFF08${t.value.length}\uFF09`},{default:m.withCtx(()=>[m.createElementVNode("ul",Rs,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(t.value,(G,I)=>(m.openBlock(),m.createElementBlock("li",{key:I},[m.createVNode(m.unref(j.VEntity),null,{start:m.withCtx(()=>[m.createVNode(m.unref(j.VEntityField),{title:G.name,description:G.slug},null,8,["title","description"])]),_:2},1024)]))),128))])]),_:1},8,["title"])]),m.createElementVNode("div",Ps,[m.createVNode(m.unref(j.VCard),{"body-class":["h-full","!p-0","overflow-y-auto"],class:"h-full",title:`\u5206\u7C7B\uFF08${n.value.length}\uFF09`},{default:m.withCtx(()=>[m.createElementVNode("ul",gs,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(n.value,(G,I)=>(m.openBlock(),m.createElementBlock("li",{key:I},[m.createVNode(m.unref(j.VEntity),null,{start:m.withCtx(()=>[m.createVNode(m.unref(j.VEntityField),{title:G.name,description:G.slug},null,8,["title","description"])]),_:2},1024)]))),128))])]),_:1},8,["title"])]),m.createElementVNode("div",Os,[m.createVNode(m.unref(j.VCard),{"body-class":["h-full","!p-0","overflow-y-auto"],class:"h-full",title:`\u6587\u7AE0\uFF08${s.value.length}\uFF09`},{default:m.withCtx(()=>[m.createElementVNode("ul",bs,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(s.value,(G,I)=>(m.openBlock(),m.createElementBlock("li",{key:I},[m.createVNode(m.unref(j.VEntity),null,{start:m.withCtx(()=>[m.createVNode(m.unref(j.VEntityField),{title:G.title,description:G.slug},null,8,["title","description"])]),_:2},1024)]))),128))])]),_:1},8,["title"])]),m.createElementVNode("div",ws,[m.createVNode(m.unref(j.VCard),{"body-class":["h-full","!p-0","overflow-y-auto"],class:"h-full",title:`\u81EA\u5B9A\u4E49\u9875\u9762\uFF08${h.value.length}\uFF09`},{default:m.withCtx(()=>[m.createElementVNode("ul",Cs,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(h.value,(G,I)=>(m.openBlock(),m.createElementBlock("li",{key:I},[m.createVNode(m.unref(j.VEntity),null,{start:m.withCtx(()=>[m.createVNode(m.unref(j.VEntityField),{title:G.title,description:G.slug},null,8,["title","description"])]),_:2},1024)]))),128))])]),_:1},8,["title"])]),m.createElementVNode("div",As,[m.createVNode(m.unref(j.VCard),{"body-class":["h-full","!p-0","overflow-y-auto"],class:"h-full",title:`\u6587\u7AE0\u8BC4\u8BBA\uFF08${c.value.length}\uFF09`},{default:m.withCtx(()=>[m.createElementVNode("ul",Hs,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(c.value,(G,I)=>(m.openBlock(),m.createElementBlock("li",{key:I},[m.createVNode(m.unref(j.VEntity),null,{start:m.withCtx(()=>[m.createVNode(m.unref(j.VEntityField),{title:G.author},null,8,["title"])]),_:2},1024)]))),128))])]),_:1},8,["title"])]),m.createElementVNode("div",Ss,[m.createVNode(m.unref(j.VCard),{"body-class":["h-full","!p-0","overflow-y-auto"],class:"h-full",title:`\u81EA\u5B9A\u4E49\u9875\u9762\u8BC4\u8BBA\uFF08${d.value.length}\uFF09`},{default:m.withCtx(()=>[m.createElementVNode("ul",xs,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(d.value,(G,I)=>(m.openBlock(),m.createElementBlock("li",{key:I},[m.createVNode(m.unref(j.VEntity),null,{start:m.withCtx(()=>[m.createVNode(m.unref(j.VEntityField),{title:G.author},null,8,["title"])]),_:2},1024)]))),128))])]),_:1},8,["title"])]),m.createElementVNode("div",Ts,[m.createVNode(m.unref(j.VCard),{"body-class":["h-full","!p-0","overflow-y-auto"],class:"h-full",title:`\u83DC\u5355\uFF08${V.value.length}\uFF09`},{default:m.withCtx(()=>[m.createElementVNode("ul",Us,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(V.value,(G,I)=>(m.openBlock(),m.createElementBlock("li",{key:I},[m.createVNode(m.unref(j.VEntity),null,{start:m.withCtx(()=>[m.createVNode(m.unref(j.VEntityField),{title:G.name,description:G.team},null,8,["title","description"])]),_:2},1024)]))),128))])]),_:1},8,["title"])])]),m.createElementVNode("div",Es,[m.createVNode(m.unref(j.VButton),{loading:S.value,type:"secondary",onClick:te},{default:m.withCtx(()=>[m.createTextVNode(" \u6267\u884C\u5BFC\u5165 ")]),_:1},8,["loading"])])])):(m.openBlock(),m.createBlock(m.unref(j.VEmpty),{key:0,message:"\u8BF7\u9009\u62E9 Halo 1.5 / 1.6 \u4E2D\u5BFC\u51FA\u7684 JSON \u6570\u636E\u6587\u4EF6",title:"\u5F53\u524D\u6CA1\u6709\u9009\u62E9\u6570\u636E\u6587\u4EF6"},{actions:m.withCtx(()=>[m.createVNode(m.unref(j.VSpace),null,{default:m.withCtx(()=>[m.createVNode(m.unref(j.VButton),{onClick:W},{default:m.withCtx(()=>[m.createTextVNode("\u9009\u62E9\u6587\u4EF6")]),_:1})]),_:1})]),_:1}))])],64))}});var _l="",Fs={name:"PluginMigrate",components:[],routes:[{parentName:"Root",route:{path:"/migrate",children:[{path:"",name:"Migrate",component:vs,meta:{title:"\u8FC1\u79FB",searchable:!0,menu:{name:"\u8FC1\u79FB",group:"tool",icon:m.markRaw(tt),priority:0}}}]}}],extensionPoints:{}};return Fs}(Vue,HaloComponents,VueUse,VueRouter); +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(s=>n.set(s)),n}static accessor(e){const n=(this[bt]=this[bt]={accessors:{}}).accessors,s=this.prototype;function r(o){const l=Be(o);n[l]||(ar(s,o),n[l]=!0)}return y.isArray(e)?e.forEach(r):r(e),this}}ca.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),y.freezeMethods(ca.prototype),y.freezeMethods(ca);var de=ca;function _a(a,e){const t=this||Fa,n=e||t,s=de.from(n.headers);let r=n.data;return y.forEach(a,function(l){r=l.call(t,r,s.normalize(),e?e.status:void 0)}),s.normalize(),r}function Ct(a){return!!(a&&a.__CANCEL__)}function Le(a,e,t){G.call(this,a==null?"canceled":a,G.ERR_CANCELED,e,t),this.name="CanceledError"}y.inherits(Le,G,{__CANCEL__:!0});var tr=null;function nr(a,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?a(t):e(new G("Request failed with status code "+t.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}var rr=ue.isStandardBrowserEnv?function(){return{write:function(t,n,s,r,o,l){const c=[];c.push(t+"="+encodeURIComponent(n)),y.isNumber(s)&&c.push("expires="+new Date(s).toGMTString()),y.isString(r)&&c.push("path="+r),y.isString(o)&&c.push("domain="+o),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function sr(a){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a)}function or(a,e){return e?a.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):a}function At(a,e){return a&&!sr(e)?or(a,e):e}var lr=ue.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function s(r){let o=r;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=s(window.location.href),function(o){const l=y.isString(o)?s(o):o;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}();function ir(a){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(a);return e&&e[1]||""}function cr(a,e){a=a||10;const t=new Array(a),n=new Array(a);let s=0,r=0,o;return e=e!==void 0?e:1e3,function(c){const h=Date.now(),d=n[r];o||(o=h),t[s]=c,n[s]=h;let V=r,S=0;for(;V!==s;)S+=t[V++],V=V%a;if(s=(s+1)%a,s===r&&(r=(r+1)%a),h-o{const r=s.loaded,o=s.lengthComputable?s.total:void 0,l=r-t,c=n(l),h=r<=o;t=r;const d={loaded:r,total:o,progress:o?r/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o&&h?(o-r)/c:void 0,event:s};d[e?"download":"upload"]=!0,a(d)}}var hr=typeof XMLHttpRequest!="undefined"&&function(a){return new Promise(function(t,n){let s=a.data;const r=de.from(a.headers).normalize(),o=a.responseType;let l;function c(){a.cancelToken&&a.cancelToken.unsubscribe(l),a.signal&&a.signal.removeEventListener("abort",l)}y.isFormData(s)&&ue.isStandardBrowserEnv&&r.setContentType(!1);let h=new XMLHttpRequest;if(a.auth){const B=a.auth.username||"",T=a.auth.password?unescape(encodeURIComponent(a.auth.password)):"";r.set("Authorization","Basic "+btoa(B+":"+T))}const d=At(a.baseURL,a.url);h.open(a.method.toUpperCase(),Rt(d,a.params,a.paramsSerializer),!0),h.timeout=a.timeout;function V(){if(!h)return;const B=de.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),E={data:!o||o==="text"||o==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:B,config:a,request:h};nr(function(M){t(M),c()},function(M){n(M),c()},E),h=null}if("onloadend"in h?h.onloadend=V:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(V)},h.onabort=function(){!h||(n(new G("Request aborted",G.ECONNABORTED,a,h)),h=null)},h.onerror=function(){n(new G("Network Error",G.ERR_NETWORK,a,h)),h=null},h.ontimeout=function(){let T=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const E=a.transitional||gt;a.timeoutErrorMessage&&(T=a.timeoutErrorMessage),n(new G(T,E.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,a,h)),h=null},ue.isStandardBrowserEnv){const B=(a.withCredentials||lr(d))&&a.xsrfCookieName&&rr.read(a.xsrfCookieName);B&&r.set(a.xsrfHeaderName,B)}s===void 0&&r.setContentType(null),"setRequestHeader"in h&&y.forEach(r.toJSON(),function(T,E){h.setRequestHeader(E,T)}),y.isUndefined(a.withCredentials)||(h.withCredentials=!!a.withCredentials),o&&o!=="json"&&(h.responseType=a.responseType),typeof a.onDownloadProgress=="function"&&h.addEventListener("progress",Ht(a.onDownloadProgress,!0)),typeof a.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",Ht(a.onUploadProgress)),(a.cancelToken||a.signal)&&(l=B=>{!h||(n(!B||B.type?new Le(null,a,h):B),h.abort(),h=null)},a.cancelToken&&a.cancelToken.subscribe(l),a.signal&&(a.signal.aborted?l():a.signal.addEventListener("abort",l)));const S=ir(d);if(S&&ue.protocols.indexOf(S)===-1){n(new G("Unsupported protocol "+S+":",G.ERR_BAD_REQUEST,a));return}h.send(s||null)})};const ha={http:tr,xhr:hr};y.forEach(ha,(a,e)=>{if(a){try{Object.defineProperty(a,"name",{value:e})}catch{}Object.defineProperty(a,"adapterName",{value:e})}});var pr={getAdapter:a=>{a=y.isArray(a)?a:[a];const{length:e}=a;let t,n;for(let s=0;sa instanceof de?a.toJSON():a;function Ie(a,e){e=e||{};const t={};function n(h,d,V){return y.isPlainObject(h)&&y.isPlainObject(d)?y.merge.call({caseless:V},h,d):y.isPlainObject(d)?y.merge({},d):y.isArray(d)?d.slice():d}function s(h,d,V){if(y.isUndefined(d)){if(!y.isUndefined(h))return n(void 0,h,V)}else return n(h,d,V)}function r(h,d){if(!y.isUndefined(d))return n(void 0,d)}function o(h,d){if(y.isUndefined(d)){if(!y.isUndefined(h))return n(void 0,h)}else return n(void 0,d)}function l(h,d,V){if(V in e)return n(h,d);if(V in a)return n(void 0,h)}const c={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(h,d)=>s(xt(h),xt(d),!0)};return y.forEach(Object.keys(a).concat(Object.keys(e)),function(d){const V=c[d]||s,S=V(a[d],e[d],d);y.isUndefined(S)&&V!==l||(t[d]=S)}),t}const Tt="1.2.0",La={};["object","boolean","number","function","string","symbol"].forEach((a,e)=>{La[a]=function(n){return typeof n===a||"a"+(e<1?"n ":" ")+a}});const Ut={};La.transitional=function(e,t,n){function s(r,o){return"[Axios v"+Tt+"] Transitional option '"+r+"'"+o+(n?". "+n:"")}return(r,o,l)=>{if(e===!1)throw new G(s(o," has been removed"+(t?" in "+t:"")),G.ERR_DEPRECATED);return t&&!Ut[o]&&(Ut[o]=!0,console.warn(s(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(r,o,l):!0}};function ur(a,e,t){if(typeof a!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const n=Object.keys(a);let s=n.length;for(;s-- >0;){const r=n[s],o=e[r];if(o){const l=a[r],c=l===void 0||o(l,r,a);if(c!==!0)throw new G("option "+r+" must be "+c,G.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new G("Unknown option "+r,G.ERR_BAD_OPTION)}}var Ia={assertOptions:ur,validators:La};const Re=Ia.validators;class pa{constructor(e){this.defaults=e,this.interceptors={request:new Pt,response:new Pt}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Ie(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:r}=t;n!==void 0&&Ia.assertOptions(n,{silentJSONParsing:Re.transitional(Re.boolean),forcedJSONParsing:Re.transitional(Re.boolean),clarifyTimeoutError:Re.transitional(Re.boolean)},!1),s!==void 0&&Ia.assertOptions(s,{encode:Re.function,serialize:Re.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o;o=r&&y.merge(r.common,r[t.method]),o&&y.forEach(["delete","get","head","post","put","patch","common"],T=>{delete r[T]}),t.headers=de.concat(o,r);const l=[];let c=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(t)===!1||(c=c&&E.synchronous,l.unshift(E.fulfilled,E.rejected))});const h=[];this.interceptors.response.forEach(function(E){h.push(E.fulfilled,E.rejected)});let d,V=0,S;if(!c){const T=[St.bind(this),void 0];for(T.unshift.apply(T,l),T.push.apply(T,h),S=T.length,d=Promise.resolve(t);V{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](s);n._listeners=null}),this.promise.then=s=>{let r;const o=new Promise(l=>{n.subscribe(l),r=l}).then(s);return o.cancel=function(){n.unsubscribe(r)},o},e(function(r,o,l){n.reason||(n.reason=new Le(r,o,l),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new ja(function(s){e=s}),cancel:e}}}var dr=ja;function mr(a){return function(t){return a.apply(null,t)}}function Vr(a){return y.isObject(a)&&a.isAxiosError===!0}function Et(a){const e=new ua(a),t=nt(ua.prototype.request,e);return y.extend(t,ua.prototype,e,{allOwnKeys:!0}),y.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return Et(Ie(a,s))},t}const ae=Et(Fa);ae.Axios=ua,ae.CanceledError=Le,ae.CancelToken=dr,ae.isCancel=Ct,ae.VERSION=Tt,ae.toFormData=oa,ae.AxiosError=G,ae.Cancel=ae.CanceledError,ae.all=function(e){return Promise.all(e)},ae.spread=mr,ae.isAxiosError=Vr,ae.AxiosHeaders=de,ae.formToJSON=a=>Ot(y.isHTMLForm(a)?new FormData(a):a),ae.default=ae;var R=ae;const P="http://localhost:8090".replace(/\/+$/,"");class J{constructor(e,t=P,n=R){this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class fr extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const g="https://example.com",U=function(a,e,t){if(t==null)throw new fr(e,`Required parameter ${e} was null or undefined when calling ${a}.`)},O=function(a,e){e&&(e.username||e.password)&&(a.auth={username:e.username,password:e.password})},b=async function(a,e){if(e&&e.accessToken){const t=typeof e.accessToken=="function"?await e.accessToken():await e.accessToken;a.Authorization="Bearer "+t}},w=function(a,...e){const t=new URLSearchParams(a.search);for(const n of e)for(const s in n)if(Array.isArray(n[s])){t.delete(s);for(const r of n[s])t.append(s,r)}else t.set(s,n[s]);a.search=t.toString()},D=function(a,e,t){const n=typeof a!="string";return(n&&t&&t.isJsonMime?t.isJsonMime(e.headers["Content-Type"]):n)?JSON.stringify(a!==void 0?a:{}):a||""},C=function(a){return a.pathname+a.search+a.hash},A=function(a,e,t,n){return(s=e,r=t)=>{const o=na(i({},a.options),{url:((n==null?void 0:n.basePath)||r)+a.url});return s.request(o)}},yr=function(a){return{createComment:async(e,t={})=>{U("createComment","commentRequest",e);const n="/apis/api.console.halo.run/v1alpha1/comments",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},createReply:async(e,t,n={})=>{U("createReply","name",e),U("createReply","replyRequest",t);const s="/apis/api.console.halo.run/v1alpha1/comments/{name}/reply".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"POST"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}},listComments:async(e,t,n,s,r,o,l,c,h,d,V,S,B,T,E,N={})=>{const M="/apis/api.console.halo.run/v1alpha1/comments",x=new URL(M,g);let I;a&&(I=a.baseOptions);const W=i(i({method:"GET"},I),N),te={},F={};O(W,a),await b(te,a),e!==void 0&&(F.sort=e),t!==void 0&&(F.keyword=t),n!==void 0&&(F.hidden=n),s!==void 0&&(F.top=s),r!==void 0&&(F.sortOrder=r),o!==void 0&&(F.approved=o),l!==void 0&&(F.allowNotification=l),c!==void 0&&(F.ownerKind=c),h!==void 0&&(F.ownerName=h),d!==void 0&&(F.subjectKind=d),V!==void 0&&(F.subjectName=V),S!==void 0&&(F.size=S),B!==void 0&&(F.page=B),T&&(F.labelSelector=T),E&&(F.fieldSelector=E),w(x,F);let X=I&&I.headers?I.headers:{};return W.headers=i(i(i({},te),X),N.headers),{url:C(x),options:W}}}},Na=function(a){const e=yr(a);return{async createComment(t,n){const s=await e.createComment(t,n);return A(s,R,P,a)},async createReply(t,n,s){const r=await e.createReply(t,n,s);return A(r,R,P,a)},async listComments(t,n,s,r,o,l,c,h,d,V,S,B,T,E,N,M){const x=await e.listComments(t,n,s,r,o,l,c,h,d,V,S,B,T,E,N,M);return A(x,R,P,a)}}};class Rr extends J{createComment(e,t){return Na(this.configuration).createComment(e.commentRequest,t).then(n=>n(this.axios,this.basePath))}createReply(e,t){return Na(this.configuration).createReply(e.name,e.replyRequest,t).then(n=>n(this.axios,this.basePath))}listComments(e={},t){return Na(this.configuration).listComments(e.sort,e.keyword,e.hidden,e.top,e.sortOrder,e.approved,e.allowNotification,e.ownerKind,e.ownerName,e.subjectKind,e.subjectName,e.size,e.page,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}}const Pr=function(a){return{draftSnapshotContent:async(e,t={})=>{U("draftSnapshotContent","contentRequest",e);const n="/apis/api.console.halo.run/v1alpha1/contents",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},obtainSnapshotContent:async(e,t={})=>{U("obtainSnapshotContent","snapshotName",e);const n="/apis/api.console.halo.run/v1alpha1/contents/{snapshotName}".replace("{snapshotName}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},updateSnapshotContent:async(e,t,n={})=>{U("updateSnapshotContent","snapshotName",e),U("updateSnapshotContent","contentRequest",t);const s="/apis/api.console.halo.run/v1alpha1/contents/{snapshotName}".replace("{snapshotName}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Ma=function(a){const e=Pr(a);return{async draftSnapshotContent(t,n){const s=await e.draftSnapshotContent(t,n);return A(s,R,P,a)},async obtainSnapshotContent(t,n){const s=await e.obtainSnapshotContent(t,n);return A(s,R,P,a)},async updateSnapshotContent(t,n,s){const r=await e.updateSnapshotContent(t,n,s);return A(r,R,P,a)}}};class gr extends J{draftSnapshotContent(e,t){return Ma(this.configuration).draftSnapshotContent(e.contentRequest,t).then(n=>n(this.axios,this.basePath))}obtainSnapshotContent(e,t){return Ma(this.configuration).obtainSnapshotContent(e.snapshotName,t).then(n=>n(this.axios,this.basePath))}updateSnapshotContent(e,t){return Ma(this.configuration).updateSnapshotContent(e.snapshotName,e.contentRequest,t).then(n=>n(this.axios,this.basePath))}}const Or=function(a){return{draftPost:async(e,t={})=>{U("draftPost","postRequest",e);const n="/apis/api.console.halo.run/v1alpha1/posts",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},listPosts:async(e,t,n,s,r,o,l,c,h,d,V,S,B={})=>{const T="/apis/api.console.halo.run/v1alpha1/posts",E=new URL(T,g);let N;a&&(N=a.baseOptions);const M=i(i({method:"GET"},N),B),x={},I={};O(M,a),await b(x,a),e!==void 0&&(I.sort=e),t!==void 0&&(I.keyword=t),n!==void 0&&(I.visible=n),s&&(I.tag=Array.from(s)),r!==void 0&&(I.sortOrder=r),o!==void 0&&(I.publishPhase=o),l&&(I.category=Array.from(l)),c&&(I.contributor=Array.from(c)),h!==void 0&&(I.size=h),d!==void 0&&(I.page=d),V&&(I.labelSelector=V),S&&(I.fieldSelector=S),w(E,I);let W=N&&N.headers?N.headers:{};return M.headers=i(i(i({},x),W),B.headers),{url:C(E),options:M}},publishPost:async(e,t,n={})=>{U("publishPost","name",e);const s="/apis/api.console.halo.run/v1alpha1/posts/{name}/publish".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),t!==void 0&&(h.headSnapshot=t),w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),{url:C(r),options:l}},recyclePost:async(e,t={})=>{U("recyclePost","name",e);const n="/apis/api.console.halo.run/v1alpha1/posts/{name}/recycle".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"PUT"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},unpublishPost:async(e,t={})=>{U("unpublishPost","name",e);const n="/apis/api.console.halo.run/v1alpha1/posts/{name}/unpublish".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"PUT"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},updateDraftPost:async(e,t,n={})=>{U("updateDraftPost","name",e),U("updateDraftPost","postRequest",t);const s="/apis/api.console.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}},updatePostContent:async(e,t,n={})=>{U("updatePostContent","name",e),U("updatePostContent","content",t);const s="/apis/api.console.halo.run/v1alpha1/posts/{name}/content".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Ce=function(a){const e=Or(a);return{async draftPost(t,n){const s=await e.draftPost(t,n);return A(s,R,P,a)},async listPosts(t,n,s,r,o,l,c,h,d,V,S,B,T){const E=await e.listPosts(t,n,s,r,o,l,c,h,d,V,S,B,T);return A(E,R,P,a)},async publishPost(t,n,s){const r=await e.publishPost(t,n,s);return A(r,R,P,a)},async recyclePost(t,n){const s=await e.recyclePost(t,n);return A(s,R,P,a)},async unpublishPost(t,n){const s=await e.unpublishPost(t,n);return A(s,R,P,a)},async updateDraftPost(t,n,s){const r=await e.updateDraftPost(t,n,s);return A(r,R,P,a)},async updatePostContent(t,n,s){const r=await e.updatePostContent(t,n,s);return A(r,R,P,a)}}};class br extends J{draftPost(e,t){return Ce(this.configuration).draftPost(e.postRequest,t).then(n=>n(this.axios,this.basePath))}listPosts(e={},t){return Ce(this.configuration).listPosts(e.sort,e.keyword,e.visible,e.tag,e.sortOrder,e.publishPhase,e.category,e.contributor,e.size,e.page,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}publishPost(e,t){return Ce(this.configuration).publishPost(e.name,e.headSnapshot,t).then(n=>n(this.axios,this.basePath))}recyclePost(e,t){return Ce(this.configuration).recyclePost(e.name,t).then(n=>n(this.axios,this.basePath))}unpublishPost(e,t){return Ce(this.configuration).unpublishPost(e.name,t).then(n=>n(this.axios,this.basePath))}updateDraftPost(e,t){return Ce(this.configuration).updateDraftPost(e.name,e.postRequest,t).then(n=>n(this.axios,this.basePath))}updatePostContent(e,t){return Ce(this.configuration).updatePostContent(e.name,e.content,t).then(n=>n(this.axios,this.basePath))}}const wr=function(a){return{listReplies:async(e,t,n,s,r,o={})=>{const l="/apis/api.console.halo.run/v1alpha1/replies",c=new URL(l,g);let h;a&&(h=a.baseOptions);const d=i(i({method:"GET"},h),o),V={},S={};O(d,a),await b(V,a),e!==void 0&&(S.commentName=e),t!==void 0&&(S.size=t),n!==void 0&&(S.page=n),s&&(S.labelSelector=s),r&&(S.fieldSelector=r),w(c,S);let B=h&&h.headers?h.headers:{};return d.headers=i(i(i({},V),B),o.headers),{url:C(c),options:d}}}},Cr=function(a){const e=wr(a);return{async listReplies(t,n,s,r,o,l){const c=await e.listReplies(t,n,s,r,o,l);return A(c,R,P,a)}}};class Ar extends J{listReplies(e={},t){return Cr(this.configuration).listReplies(e.commentName,e.size,e.page,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}}const Hr=function(a){return{draftSinglePage:async(e,t={})=>{U("draftSinglePage","singlePageRequest",e);const n="/apis/api.console.halo.run/v1alpha1/singlepages",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},listSinglePages:async(e,t,n,s,r,o,l,c,h,d,V={})=>{const S="/apis/api.console.halo.run/v1alpha1/singlepages",B=new URL(S,g);let T;a&&(T=a.baseOptions);const E=i(i({method:"GET"},T),V),N={},M={};O(E,a),await b(N,a),e!==void 0&&(M.sort=e),t!==void 0&&(M.keyword=t),n!==void 0&&(M.visible=n),s!==void 0&&(M.sortOrder=s),r!==void 0&&(M.publishPhase=r),o&&(M.contributor=Array.from(o)),l!==void 0&&(M.size=l),c!==void 0&&(M.page=c),h&&(M.labelSelector=h),d&&(M.fieldSelector=d),w(B,M);let x=T&&T.headers?T.headers:{};return E.headers=i(i(i({},N),x),V.headers),{url:C(B),options:E}},publishSinglePage:async(e,t={})=>{U("publishSinglePage","name",e);const n="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/publish".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"PUT"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},updateDraftSinglePage:async(e,t,n={})=>{U("updateDraftSinglePage","name",e),U("updateDraftSinglePage","singlePageRequest",t);const s="/apis/api.console.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}},updateSinglePageContent:async(e,t,n={})=>{U("updateSinglePageContent","name",e),U("updateSinglePageContent","content",t);const s="/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},je=function(a){const e=Hr(a);return{async draftSinglePage(t,n){const s=await e.draftSinglePage(t,n);return A(s,R,P,a)},async listSinglePages(t,n,s,r,o,l,c,h,d,V,S){const B=await e.listSinglePages(t,n,s,r,o,l,c,h,d,V,S);return A(B,R,P,a)},async publishSinglePage(t,n){const s=await e.publishSinglePage(t,n);return A(s,R,P,a)},async updateDraftSinglePage(t,n,s){const r=await e.updateDraftSinglePage(t,n,s);return A(r,R,P,a)},async updateSinglePageContent(t,n,s){const r=await e.updateSinglePageContent(t,n,s);return A(r,R,P,a)}}};class Sr extends J{draftSinglePage(e,t){return je(this.configuration).draftSinglePage(e.singlePageRequest,t).then(n=>n(this.axios,this.basePath))}listSinglePages(e={},t){return je(this.configuration).listSinglePages(e.sort,e.keyword,e.visible,e.sortOrder,e.publishPhase,e.contributor,e.size,e.page,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}publishSinglePage(e,t){return je(this.configuration).publishSinglePage(e.name,t).then(n=>n(this.axios,this.basePath))}updateDraftSinglePage(e,t){return je(this.configuration).updateDraftSinglePage(e.name,e.singlePageRequest,t).then(n=>n(this.axios,this.basePath))}updateSinglePageContent(e,t){return je(this.configuration).updateSinglePageContent(e.name,e.content,t).then(n=>n(this.axios,this.basePath))}}const xr=function(a){return{getStats:async(e={})=>{const t="/apis/api.console.halo.run/v1alpha1/stats",n=new URL(t,g);let s;a&&(s=a.baseOptions);const r=i(i({method:"GET"},s),e),o={},l={};O(r,a),await b(o,a),w(n,l);let c=s&&s.headers?s.headers:{};return r.headers=i(i(i({},o),c),e.headers),{url:C(n),options:r}}}},Tr=function(a){const e=xr(a);return{async getStats(t){const n=await e.getStats(t);return A(n,R,P,a)}}};class Ur extends J{getStats(e){return Tr(this.configuration).getStats(e).then(t=>t(this.axios,this.basePath))}}const Er=function(a){return{changePassword:async(e,t,n={})=>{U("changePassword","name",e),U("changePassword","changePasswordRequest",t);const s="/apis/api.console.halo.run/v1alpha1/users/{name}/password".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}},getCurrentUserDetail:async(e={})=>{const t="/apis/api.console.halo.run/v1alpha1/users/-",n=new URL(t,g);let s;a&&(s=a.baseOptions);const r=i(i({method:"GET"},s),e),o={},l={};O(r,a),await b(o,a),w(n,l);let c=s&&s.headers?s.headers:{};return r.headers=i(i(i({},o),c),e.headers),{url:C(n),options:r}},getPermissions:async(e,t={})=>{U("getPermissions","name",e);const n="/apis/api.console.halo.run/v1alpha1/users/{name}/permissions".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},grantPermission:async(e,t,n={})=>{U("grantPermission","name",e),U("grantPermission","grantRequest",t);const s="/apis/api.console.halo.run/v1alpha1/users/{name}/permissions".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"POST"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},da=function(a){const e=Er(a);return{async changePassword(t,n,s){const r=await e.changePassword(t,n,s);return A(r,R,P,a)},async getCurrentUserDetail(t){const n=await e.getCurrentUserDetail(t);return A(n,R,P,a)},async getPermissions(t,n){const s=await e.getPermissions(t,n);return A(s,R,P,a)},async grantPermission(t,n,s){const r=await e.grantPermission(t,n,s);return A(r,R,P,a)}}};class vr extends J{changePassword(e,t){return da(this.configuration).changePassword(e.name,e.changePasswordRequest,t).then(n=>n(this.axios,this.basePath))}getCurrentUserDetail(e){return da(this.configuration).getCurrentUserDetail(e).then(t=>t(this.axios,this.basePath))}getPermissions(e,t){return da(this.configuration).getPermissions(e.name,t).then(n=>n(this.axios,this.basePath))}grantPermission(e,t){return da(this.configuration).grantPermission(e.name,e.grantRequest,t).then(n=>n(this.axios,this.basePath))}}const Fr=function(a){return{createcontentHaloRunV1alpha1Category:async(e,t={})=>{const n="/apis/content.halo.run/v1alpha1/categories",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletecontentHaloRunV1alpha1Category:async(e,t={})=>{U("deletecontentHaloRunV1alpha1Category","name",e);const n="/apis/content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getcontentHaloRunV1alpha1Category:async(e,t={})=>{U("getcontentHaloRunV1alpha1Category","name",e);const n="/apis/content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listcontentHaloRunV1alpha1Category:async(e,t,n,s,r={})=>{const o="/apis/content.halo.run/v1alpha1/categories",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatecontentHaloRunV1alpha1Category:async(e,t,n={})=>{U("updatecontentHaloRunV1alpha1Category","name",e);const s="/apis/content.halo.run/v1alpha1/categories/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Ne=function(a){const e=Fr(a);return{async createcontentHaloRunV1alpha1Category(t,n){const s=await e.createcontentHaloRunV1alpha1Category(t,n);return A(s,R,P,a)},async deletecontentHaloRunV1alpha1Category(t,n){const s=await e.deletecontentHaloRunV1alpha1Category(t,n);return A(s,R,P,a)},async getcontentHaloRunV1alpha1Category(t,n){const s=await e.getcontentHaloRunV1alpha1Category(t,n);return A(s,R,P,a)},async listcontentHaloRunV1alpha1Category(t,n,s,r,o){const l=await e.listcontentHaloRunV1alpha1Category(t,n,s,r,o);return A(l,R,P,a)},async updatecontentHaloRunV1alpha1Category(t,n,s){const r=await e.updatecontentHaloRunV1alpha1Category(t,n,s);return A(r,R,P,a)}}};class _r extends J{createcontentHaloRunV1alpha1Category(e={},t){return Ne(this.configuration).createcontentHaloRunV1alpha1Category(e.category,t).then(n=>n(this.axios,this.basePath))}deletecontentHaloRunV1alpha1Category(e,t){return Ne(this.configuration).deletecontentHaloRunV1alpha1Category(e.name,t).then(n=>n(this.axios,this.basePath))}getcontentHaloRunV1alpha1Category(e,t){return Ne(this.configuration).getcontentHaloRunV1alpha1Category(e.name,t).then(n=>n(this.axios,this.basePath))}listcontentHaloRunV1alpha1Category(e={},t){return Ne(this.configuration).listcontentHaloRunV1alpha1Category(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatecontentHaloRunV1alpha1Category(e,t){return Ne(this.configuration).updatecontentHaloRunV1alpha1Category(e.name,e.category,t).then(n=>n(this.axios,this.basePath))}}const Br=function(a){return{createcontentHaloRunV1alpha1Comment:async(e,t={})=>{const n="/apis/content.halo.run/v1alpha1/comments",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletecontentHaloRunV1alpha1Comment:async(e,t={})=>{U("deletecontentHaloRunV1alpha1Comment","name",e);const n="/apis/content.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getcontentHaloRunV1alpha1Comment:async(e,t={})=>{U("getcontentHaloRunV1alpha1Comment","name",e);const n="/apis/content.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listcontentHaloRunV1alpha1Comment:async(e,t,n,s,r={})=>{const o="/apis/content.halo.run/v1alpha1/comments",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatecontentHaloRunV1alpha1Comment:async(e,t,n={})=>{U("updatecontentHaloRunV1alpha1Comment","name",e);const s="/apis/content.halo.run/v1alpha1/comments/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Me=function(a){const e=Br(a);return{async createcontentHaloRunV1alpha1Comment(t,n){const s=await e.createcontentHaloRunV1alpha1Comment(t,n);return A(s,R,P,a)},async deletecontentHaloRunV1alpha1Comment(t,n){const s=await e.deletecontentHaloRunV1alpha1Comment(t,n);return A(s,R,P,a)},async getcontentHaloRunV1alpha1Comment(t,n){const s=await e.getcontentHaloRunV1alpha1Comment(t,n);return A(s,R,P,a)},async listcontentHaloRunV1alpha1Comment(t,n,s,r,o){const l=await e.listcontentHaloRunV1alpha1Comment(t,n,s,r,o);return A(l,R,P,a)},async updatecontentHaloRunV1alpha1Comment(t,n,s){const r=await e.updatecontentHaloRunV1alpha1Comment(t,n,s);return A(r,R,P,a)}}};class Lr extends J{createcontentHaloRunV1alpha1Comment(e={},t){return Me(this.configuration).createcontentHaloRunV1alpha1Comment(e.comment,t).then(n=>n(this.axios,this.basePath))}deletecontentHaloRunV1alpha1Comment(e,t){return Me(this.configuration).deletecontentHaloRunV1alpha1Comment(e.name,t).then(n=>n(this.axios,this.basePath))}getcontentHaloRunV1alpha1Comment(e,t){return Me(this.configuration).getcontentHaloRunV1alpha1Comment(e.name,t).then(n=>n(this.axios,this.basePath))}listcontentHaloRunV1alpha1Comment(e={},t){return Me(this.configuration).listcontentHaloRunV1alpha1Comment(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatecontentHaloRunV1alpha1Comment(e,t){return Me(this.configuration).updatecontentHaloRunV1alpha1Comment(e.name,e.comment,t).then(n=>n(this.axios,this.basePath))}}const Ir=function(a){return{createcontentHaloRunV1alpha1Post:async(e,t={})=>{const n="/apis/content.halo.run/v1alpha1/posts",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletecontentHaloRunV1alpha1Post:async(e,t={})=>{U("deletecontentHaloRunV1alpha1Post","name",e);const n="/apis/content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getcontentHaloRunV1alpha1Post:async(e,t={})=>{U("getcontentHaloRunV1alpha1Post","name",e);const n="/apis/content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listcontentHaloRunV1alpha1Post:async(e,t,n,s,r={})=>{const o="/apis/content.halo.run/v1alpha1/posts",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatecontentHaloRunV1alpha1Post:async(e,t,n={})=>{U("updatecontentHaloRunV1alpha1Post","name",e);const s="/apis/content.halo.run/v1alpha1/posts/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},De=function(a){const e=Ir(a);return{async createcontentHaloRunV1alpha1Post(t,n){const s=await e.createcontentHaloRunV1alpha1Post(t,n);return A(s,R,P,a)},async deletecontentHaloRunV1alpha1Post(t,n){const s=await e.deletecontentHaloRunV1alpha1Post(t,n);return A(s,R,P,a)},async getcontentHaloRunV1alpha1Post(t,n){const s=await e.getcontentHaloRunV1alpha1Post(t,n);return A(s,R,P,a)},async listcontentHaloRunV1alpha1Post(t,n,s,r,o){const l=await e.listcontentHaloRunV1alpha1Post(t,n,s,r,o);return A(l,R,P,a)},async updatecontentHaloRunV1alpha1Post(t,n,s){const r=await e.updatecontentHaloRunV1alpha1Post(t,n,s);return A(r,R,P,a)}}};class jr extends J{createcontentHaloRunV1alpha1Post(e={},t){return De(this.configuration).createcontentHaloRunV1alpha1Post(e.post,t).then(n=>n(this.axios,this.basePath))}deletecontentHaloRunV1alpha1Post(e,t){return De(this.configuration).deletecontentHaloRunV1alpha1Post(e.name,t).then(n=>n(this.axios,this.basePath))}getcontentHaloRunV1alpha1Post(e,t){return De(this.configuration).getcontentHaloRunV1alpha1Post(e.name,t).then(n=>n(this.axios,this.basePath))}listcontentHaloRunV1alpha1Post(e={},t){return De(this.configuration).listcontentHaloRunV1alpha1Post(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatecontentHaloRunV1alpha1Post(e,t){return De(this.configuration).updatecontentHaloRunV1alpha1Post(e.name,e.post,t).then(n=>n(this.axios,this.basePath))}}const Nr=function(a){return{createcontentHaloRunV1alpha1Reply:async(e,t={})=>{const n="/apis/content.halo.run/v1alpha1/replies",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletecontentHaloRunV1alpha1Reply:async(e,t={})=>{U("deletecontentHaloRunV1alpha1Reply","name",e);const n="/apis/content.halo.run/v1alpha1/replies/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getcontentHaloRunV1alpha1Reply:async(e,t={})=>{U("getcontentHaloRunV1alpha1Reply","name",e);const n="/apis/content.halo.run/v1alpha1/replies/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listcontentHaloRunV1alpha1Reply:async(e,t,n,s,r={})=>{const o="/apis/content.halo.run/v1alpha1/replies",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatecontentHaloRunV1alpha1Reply:async(e,t,n={})=>{U("updatecontentHaloRunV1alpha1Reply","name",e);const s="/apis/content.halo.run/v1alpha1/replies/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},$e=function(a){const e=Nr(a);return{async createcontentHaloRunV1alpha1Reply(t,n){const s=await e.createcontentHaloRunV1alpha1Reply(t,n);return A(s,R,P,a)},async deletecontentHaloRunV1alpha1Reply(t,n){const s=await e.deletecontentHaloRunV1alpha1Reply(t,n);return A(s,R,P,a)},async getcontentHaloRunV1alpha1Reply(t,n){const s=await e.getcontentHaloRunV1alpha1Reply(t,n);return A(s,R,P,a)},async listcontentHaloRunV1alpha1Reply(t,n,s,r,o){const l=await e.listcontentHaloRunV1alpha1Reply(t,n,s,r,o);return A(l,R,P,a)},async updatecontentHaloRunV1alpha1Reply(t,n,s){const r=await e.updatecontentHaloRunV1alpha1Reply(t,n,s);return A(r,R,P,a)}}};class Mr extends J{createcontentHaloRunV1alpha1Reply(e={},t){return $e(this.configuration).createcontentHaloRunV1alpha1Reply(e.reply,t).then(n=>n(this.axios,this.basePath))}deletecontentHaloRunV1alpha1Reply(e,t){return $e(this.configuration).deletecontentHaloRunV1alpha1Reply(e.name,t).then(n=>n(this.axios,this.basePath))}getcontentHaloRunV1alpha1Reply(e,t){return $e(this.configuration).getcontentHaloRunV1alpha1Reply(e.name,t).then(n=>n(this.axios,this.basePath))}listcontentHaloRunV1alpha1Reply(e={},t){return $e(this.configuration).listcontentHaloRunV1alpha1Reply(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatecontentHaloRunV1alpha1Reply(e,t){return $e(this.configuration).updatecontentHaloRunV1alpha1Reply(e.name,e.reply,t).then(n=>n(this.axios,this.basePath))}}const Dr=function(a){return{createcontentHaloRunV1alpha1SinglePage:async(e,t={})=>{const n="/apis/content.halo.run/v1alpha1/singlepages",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletecontentHaloRunV1alpha1SinglePage:async(e,t={})=>{U("deletecontentHaloRunV1alpha1SinglePage","name",e);const n="/apis/content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getcontentHaloRunV1alpha1SinglePage:async(e,t={})=>{U("getcontentHaloRunV1alpha1SinglePage","name",e);const n="/apis/content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listcontentHaloRunV1alpha1SinglePage:async(e,t,n,s,r={})=>{const o="/apis/content.halo.run/v1alpha1/singlepages",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatecontentHaloRunV1alpha1SinglePage:async(e,t,n={})=>{U("updatecontentHaloRunV1alpha1SinglePage","name",e);const s="/apis/content.halo.run/v1alpha1/singlepages/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Qe=function(a){const e=Dr(a);return{async createcontentHaloRunV1alpha1SinglePage(t,n){const s=await e.createcontentHaloRunV1alpha1SinglePage(t,n);return A(s,R,P,a)},async deletecontentHaloRunV1alpha1SinglePage(t,n){const s=await e.deletecontentHaloRunV1alpha1SinglePage(t,n);return A(s,R,P,a)},async getcontentHaloRunV1alpha1SinglePage(t,n){const s=await e.getcontentHaloRunV1alpha1SinglePage(t,n);return A(s,R,P,a)},async listcontentHaloRunV1alpha1SinglePage(t,n,s,r,o){const l=await e.listcontentHaloRunV1alpha1SinglePage(t,n,s,r,o);return A(l,R,P,a)},async updatecontentHaloRunV1alpha1SinglePage(t,n,s){const r=await e.updatecontentHaloRunV1alpha1SinglePage(t,n,s);return A(r,R,P,a)}}};class $r extends J{createcontentHaloRunV1alpha1SinglePage(e={},t){return Qe(this.configuration).createcontentHaloRunV1alpha1SinglePage(e.singlePage,t).then(n=>n(this.axios,this.basePath))}deletecontentHaloRunV1alpha1SinglePage(e,t){return Qe(this.configuration).deletecontentHaloRunV1alpha1SinglePage(e.name,t).then(n=>n(this.axios,this.basePath))}getcontentHaloRunV1alpha1SinglePage(e,t){return Qe(this.configuration).getcontentHaloRunV1alpha1SinglePage(e.name,t).then(n=>n(this.axios,this.basePath))}listcontentHaloRunV1alpha1SinglePage(e={},t){return Qe(this.configuration).listcontentHaloRunV1alpha1SinglePage(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatecontentHaloRunV1alpha1SinglePage(e,t){return Qe(this.configuration).updatecontentHaloRunV1alpha1SinglePage(e.name,e.singlePage,t).then(n=>n(this.axios,this.basePath))}}const Qr=function(a){return{createcontentHaloRunV1alpha1Tag:async(e,t={})=>{const n="/apis/content.halo.run/v1alpha1/tags",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletecontentHaloRunV1alpha1Tag:async(e,t={})=>{U("deletecontentHaloRunV1alpha1Tag","name",e);const n="/apis/content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getcontentHaloRunV1alpha1Tag:async(e,t={})=>{U("getcontentHaloRunV1alpha1Tag","name",e);const n="/apis/content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listcontentHaloRunV1alpha1Tag:async(e,t,n,s,r={})=>{const o="/apis/content.halo.run/v1alpha1/tags",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatecontentHaloRunV1alpha1Tag:async(e,t,n={})=>{U("updatecontentHaloRunV1alpha1Tag","name",e);const s="/apis/content.halo.run/v1alpha1/tags/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Ge=function(a){const e=Qr(a);return{async createcontentHaloRunV1alpha1Tag(t,n){const s=await e.createcontentHaloRunV1alpha1Tag(t,n);return A(s,R,P,a)},async deletecontentHaloRunV1alpha1Tag(t,n){const s=await e.deletecontentHaloRunV1alpha1Tag(t,n);return A(s,R,P,a)},async getcontentHaloRunV1alpha1Tag(t,n){const s=await e.getcontentHaloRunV1alpha1Tag(t,n);return A(s,R,P,a)},async listcontentHaloRunV1alpha1Tag(t,n,s,r,o){const l=await e.listcontentHaloRunV1alpha1Tag(t,n,s,r,o);return A(l,R,P,a)},async updatecontentHaloRunV1alpha1Tag(t,n,s){const r=await e.updatecontentHaloRunV1alpha1Tag(t,n,s);return A(r,R,P,a)}}};class Gr extends J{createcontentHaloRunV1alpha1Tag(e={},t){return Ge(this.configuration).createcontentHaloRunV1alpha1Tag(e.tag,t).then(n=>n(this.axios,this.basePath))}deletecontentHaloRunV1alpha1Tag(e,t){return Ge(this.configuration).deletecontentHaloRunV1alpha1Tag(e.name,t).then(n=>n(this.axios,this.basePath))}getcontentHaloRunV1alpha1Tag(e,t){return Ge(this.configuration).getcontentHaloRunV1alpha1Tag(e.name,t).then(n=>n(this.axios,this.basePath))}listcontentHaloRunV1alpha1Tag(e={},t){return Ge(this.configuration).listcontentHaloRunV1alpha1Tag(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatecontentHaloRunV1alpha1Tag(e,t){return Ge(this.configuration).updatecontentHaloRunV1alpha1Tag(e.name,e.tag,t).then(n=>n(this.axios,this.basePath))}}const kr=function(a){return{createmetricsHaloRunV1alpha1Counter:async(e,t={})=>{const n="/apis/metrics.halo.run/v1alpha1/counters",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletemetricsHaloRunV1alpha1Counter:async(e,t={})=>{U("deletemetricsHaloRunV1alpha1Counter","name",e);const n="/apis/metrics.halo.run/v1alpha1/counters/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getmetricsHaloRunV1alpha1Counter:async(e,t={})=>{U("getmetricsHaloRunV1alpha1Counter","name",e);const n="/apis/metrics.halo.run/v1alpha1/counters/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listmetricsHaloRunV1alpha1Counter:async(e,t,n,s,r={})=>{const o="/apis/metrics.halo.run/v1alpha1/counters",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatemetricsHaloRunV1alpha1Counter:async(e,t,n={})=>{U("updatemetricsHaloRunV1alpha1Counter","name",e);const s="/apis/metrics.halo.run/v1alpha1/counters/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},ke=function(a){const e=kr(a);return{async createmetricsHaloRunV1alpha1Counter(t,n){const s=await e.createmetricsHaloRunV1alpha1Counter(t,n);return A(s,R,P,a)},async deletemetricsHaloRunV1alpha1Counter(t,n){const s=await e.deletemetricsHaloRunV1alpha1Counter(t,n);return A(s,R,P,a)},async getmetricsHaloRunV1alpha1Counter(t,n){const s=await e.getmetricsHaloRunV1alpha1Counter(t,n);return A(s,R,P,a)},async listmetricsHaloRunV1alpha1Counter(t,n,s,r,o){const l=await e.listmetricsHaloRunV1alpha1Counter(t,n,s,r,o);return A(l,R,P,a)},async updatemetricsHaloRunV1alpha1Counter(t,n,s){const r=await e.updatemetricsHaloRunV1alpha1Counter(t,n,s);return A(r,R,P,a)}}};class qr extends J{createmetricsHaloRunV1alpha1Counter(e={},t){return ke(this.configuration).createmetricsHaloRunV1alpha1Counter(e.counter,t).then(n=>n(this.axios,this.basePath))}deletemetricsHaloRunV1alpha1Counter(e,t){return ke(this.configuration).deletemetricsHaloRunV1alpha1Counter(e.name,t).then(n=>n(this.axios,this.basePath))}getmetricsHaloRunV1alpha1Counter(e,t){return ke(this.configuration).getmetricsHaloRunV1alpha1Counter(e.name,t).then(n=>n(this.axios,this.basePath))}listmetricsHaloRunV1alpha1Counter(e={},t){return ke(this.configuration).listmetricsHaloRunV1alpha1Counter(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatemetricsHaloRunV1alpha1Counter(e,t){return ke(this.configuration).updatemetricsHaloRunV1alpha1Counter(e.name,e.counter,t).then(n=>n(this.axios,this.basePath))}}const zr=function(a){return{createstorageHaloRunV1alpha1Attachment:async(e,t={})=>{const n="/apis/storage.halo.run/v1alpha1/attachments",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletestorageHaloRunV1alpha1Attachment:async(e,t={})=>{U("deletestorageHaloRunV1alpha1Attachment","name",e);const n="/apis/storage.halo.run/v1alpha1/attachments/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getstorageHaloRunV1alpha1Attachment:async(e,t={})=>{U("getstorageHaloRunV1alpha1Attachment","name",e);const n="/apis/storage.halo.run/v1alpha1/attachments/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},liststorageHaloRunV1alpha1Attachment:async(e,t,n,s,r={})=>{const o="/apis/storage.halo.run/v1alpha1/attachments",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatestorageHaloRunV1alpha1Attachment:async(e,t,n={})=>{U("updatestorageHaloRunV1alpha1Attachment","name",e);const s="/apis/storage.halo.run/v1alpha1/attachments/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},qe=function(a){const e=zr(a);return{async createstorageHaloRunV1alpha1Attachment(t,n){const s=await e.createstorageHaloRunV1alpha1Attachment(t,n);return A(s,R,P,a)},async deletestorageHaloRunV1alpha1Attachment(t,n){const s=await e.deletestorageHaloRunV1alpha1Attachment(t,n);return A(s,R,P,a)},async getstorageHaloRunV1alpha1Attachment(t,n){const s=await e.getstorageHaloRunV1alpha1Attachment(t,n);return A(s,R,P,a)},async liststorageHaloRunV1alpha1Attachment(t,n,s,r,o){const l=await e.liststorageHaloRunV1alpha1Attachment(t,n,s,r,o);return A(l,R,P,a)},async updatestorageHaloRunV1alpha1Attachment(t,n,s){const r=await e.updatestorageHaloRunV1alpha1Attachment(t,n,s);return A(r,R,P,a)}}};class Jr extends J{createstorageHaloRunV1alpha1Attachment(e={},t){return qe(this.configuration).createstorageHaloRunV1alpha1Attachment(e.attachment,t).then(n=>n(this.axios,this.basePath))}deletestorageHaloRunV1alpha1Attachment(e,t){return qe(this.configuration).deletestorageHaloRunV1alpha1Attachment(e.name,t).then(n=>n(this.axios,this.basePath))}getstorageHaloRunV1alpha1Attachment(e,t){return qe(this.configuration).getstorageHaloRunV1alpha1Attachment(e.name,t).then(n=>n(this.axios,this.basePath))}liststorageHaloRunV1alpha1Attachment(e={},t){return qe(this.configuration).liststorageHaloRunV1alpha1Attachment(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatestorageHaloRunV1alpha1Attachment(e,t){return qe(this.configuration).updatestorageHaloRunV1alpha1Attachment(e.name,e.attachment,t).then(n=>n(this.axios,this.basePath))}}const Kr=function(a){return{createstorageHaloRunV1alpha1Group:async(e,t={})=>{const n="/apis/storage.halo.run/v1alpha1/groups",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletestorageHaloRunV1alpha1Group:async(e,t={})=>{U("deletestorageHaloRunV1alpha1Group","name",e);const n="/apis/storage.halo.run/v1alpha1/groups/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getstorageHaloRunV1alpha1Group:async(e,t={})=>{U("getstorageHaloRunV1alpha1Group","name",e);const n="/apis/storage.halo.run/v1alpha1/groups/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},liststorageHaloRunV1alpha1Group:async(e,t,n,s,r={})=>{const o="/apis/storage.halo.run/v1alpha1/groups",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatestorageHaloRunV1alpha1Group:async(e,t,n={})=>{U("updatestorageHaloRunV1alpha1Group","name",e);const s="/apis/storage.halo.run/v1alpha1/groups/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},ze=function(a){const e=Kr(a);return{async createstorageHaloRunV1alpha1Group(t,n){const s=await e.createstorageHaloRunV1alpha1Group(t,n);return A(s,R,P,a)},async deletestorageHaloRunV1alpha1Group(t,n){const s=await e.deletestorageHaloRunV1alpha1Group(t,n);return A(s,R,P,a)},async getstorageHaloRunV1alpha1Group(t,n){const s=await e.getstorageHaloRunV1alpha1Group(t,n);return A(s,R,P,a)},async liststorageHaloRunV1alpha1Group(t,n,s,r,o){const l=await e.liststorageHaloRunV1alpha1Group(t,n,s,r,o);return A(l,R,P,a)},async updatestorageHaloRunV1alpha1Group(t,n,s){const r=await e.updatestorageHaloRunV1alpha1Group(t,n,s);return A(r,R,P,a)}}};class Wr extends J{createstorageHaloRunV1alpha1Group(e={},t){return ze(this.configuration).createstorageHaloRunV1alpha1Group(e.group,t).then(n=>n(this.axios,this.basePath))}deletestorageHaloRunV1alpha1Group(e,t){return ze(this.configuration).deletestorageHaloRunV1alpha1Group(e.name,t).then(n=>n(this.axios,this.basePath))}getstorageHaloRunV1alpha1Group(e,t){return ze(this.configuration).getstorageHaloRunV1alpha1Group(e.name,t).then(n=>n(this.axios,this.basePath))}liststorageHaloRunV1alpha1Group(e={},t){return ze(this.configuration).liststorageHaloRunV1alpha1Group(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatestorageHaloRunV1alpha1Group(e,t){return ze(this.configuration).updatestorageHaloRunV1alpha1Group(e.name,e.group,t).then(n=>n(this.axios,this.basePath))}}const Xr=function(a){return{createstorageHaloRunV1alpha1Policy:async(e,t={})=>{const n="/apis/storage.halo.run/v1alpha1/policies",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletestorageHaloRunV1alpha1Policy:async(e,t={})=>{U("deletestorageHaloRunV1alpha1Policy","name",e);const n="/apis/storage.halo.run/v1alpha1/policies/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getstorageHaloRunV1alpha1Policy:async(e,t={})=>{U("getstorageHaloRunV1alpha1Policy","name",e);const n="/apis/storage.halo.run/v1alpha1/policies/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},liststorageHaloRunV1alpha1Policy:async(e,t,n,s,r={})=>{const o="/apis/storage.halo.run/v1alpha1/policies",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatestorageHaloRunV1alpha1Policy:async(e,t,n={})=>{U("updatestorageHaloRunV1alpha1Policy","name",e);const s="/apis/storage.halo.run/v1alpha1/policies/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Je=function(a){const e=Xr(a);return{async createstorageHaloRunV1alpha1Policy(t,n){const s=await e.createstorageHaloRunV1alpha1Policy(t,n);return A(s,R,P,a)},async deletestorageHaloRunV1alpha1Policy(t,n){const s=await e.deletestorageHaloRunV1alpha1Policy(t,n);return A(s,R,P,a)},async getstorageHaloRunV1alpha1Policy(t,n){const s=await e.getstorageHaloRunV1alpha1Policy(t,n);return A(s,R,P,a)},async liststorageHaloRunV1alpha1Policy(t,n,s,r,o){const l=await e.liststorageHaloRunV1alpha1Policy(t,n,s,r,o);return A(l,R,P,a)},async updatestorageHaloRunV1alpha1Policy(t,n,s){const r=await e.updatestorageHaloRunV1alpha1Policy(t,n,s);return A(r,R,P,a)}}};class Yr extends J{createstorageHaloRunV1alpha1Policy(e={},t){return Je(this.configuration).createstorageHaloRunV1alpha1Policy(e.policy,t).then(n=>n(this.axios,this.basePath))}deletestorageHaloRunV1alpha1Policy(e,t){return Je(this.configuration).deletestorageHaloRunV1alpha1Policy(e.name,t).then(n=>n(this.axios,this.basePath))}getstorageHaloRunV1alpha1Policy(e,t){return Je(this.configuration).getstorageHaloRunV1alpha1Policy(e.name,t).then(n=>n(this.axios,this.basePath))}liststorageHaloRunV1alpha1Policy(e={},t){return Je(this.configuration).liststorageHaloRunV1alpha1Policy(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatestorageHaloRunV1alpha1Policy(e,t){return Je(this.configuration).updatestorageHaloRunV1alpha1Policy(e.name,e.policy,t).then(n=>n(this.axios,this.basePath))}}const Zr=function(a){return{createstorageHaloRunV1alpha1PolicyTemplate:async(e,t={})=>{const n="/apis/storage.halo.run/v1alpha1/policytemplates",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletestorageHaloRunV1alpha1PolicyTemplate:async(e,t={})=>{U("deletestorageHaloRunV1alpha1PolicyTemplate","name",e);const n="/apis/storage.halo.run/v1alpha1/policytemplates/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getstorageHaloRunV1alpha1PolicyTemplate:async(e,t={})=>{U("getstorageHaloRunV1alpha1PolicyTemplate","name",e);const n="/apis/storage.halo.run/v1alpha1/policytemplates/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},liststorageHaloRunV1alpha1PolicyTemplate:async(e,t,n,s,r={})=>{const o="/apis/storage.halo.run/v1alpha1/policytemplates",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatestorageHaloRunV1alpha1PolicyTemplate:async(e,t,n={})=>{U("updatestorageHaloRunV1alpha1PolicyTemplate","name",e);const s="/apis/storage.halo.run/v1alpha1/policytemplates/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Ke=function(a){const e=Zr(a);return{async createstorageHaloRunV1alpha1PolicyTemplate(t,n){const s=await e.createstorageHaloRunV1alpha1PolicyTemplate(t,n);return A(s,R,P,a)},async deletestorageHaloRunV1alpha1PolicyTemplate(t,n){const s=await e.deletestorageHaloRunV1alpha1PolicyTemplate(t,n);return A(s,R,P,a)},async getstorageHaloRunV1alpha1PolicyTemplate(t,n){const s=await e.getstorageHaloRunV1alpha1PolicyTemplate(t,n);return A(s,R,P,a)},async liststorageHaloRunV1alpha1PolicyTemplate(t,n,s,r,o){const l=await e.liststorageHaloRunV1alpha1PolicyTemplate(t,n,s,r,o);return A(l,R,P,a)},async updatestorageHaloRunV1alpha1PolicyTemplate(t,n,s){const r=await e.updatestorageHaloRunV1alpha1PolicyTemplate(t,n,s);return A(r,R,P,a)}}};class es extends J{createstorageHaloRunV1alpha1PolicyTemplate(e={},t){return Ke(this.configuration).createstorageHaloRunV1alpha1PolicyTemplate(e.policyTemplate,t).then(n=>n(this.axios,this.basePath))}deletestorageHaloRunV1alpha1PolicyTemplate(e,t){return Ke(this.configuration).deletestorageHaloRunV1alpha1PolicyTemplate(e.name,t).then(n=>n(this.axios,this.basePath))}getstorageHaloRunV1alpha1PolicyTemplate(e,t){return Ke(this.configuration).getstorageHaloRunV1alpha1PolicyTemplate(e.name,t).then(n=>n(this.axios,this.basePath))}liststorageHaloRunV1alpha1PolicyTemplate(e={},t){return Ke(this.configuration).liststorageHaloRunV1alpha1PolicyTemplate(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatestorageHaloRunV1alpha1PolicyTemplate(e,t){return Ke(this.configuration).updatestorageHaloRunV1alpha1PolicyTemplate(e.name,e.policyTemplate,t).then(n=>n(this.axios,this.basePath))}}const as=function(a){return{createv1alpha1ConfigMap:async(e,t={})=>{const n="/api/v1alpha1/configmaps",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletev1alpha1ConfigMap:async(e,t={})=>{U("deletev1alpha1ConfigMap","name",e);const n="/api/v1alpha1/configmaps/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getv1alpha1ConfigMap:async(e,t={})=>{U("getv1alpha1ConfigMap","name",e);const n="/api/v1alpha1/configmaps/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listv1alpha1ConfigMap:async(e,t,n,s,r={})=>{const o="/api/v1alpha1/configmaps",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatev1alpha1ConfigMap:async(e,t,n={})=>{U("updatev1alpha1ConfigMap","name",e);const s="/api/v1alpha1/configmaps/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},We=function(a){const e=as(a);return{async createv1alpha1ConfigMap(t,n){const s=await e.createv1alpha1ConfigMap(t,n);return A(s,R,P,a)},async deletev1alpha1ConfigMap(t,n){const s=await e.deletev1alpha1ConfigMap(t,n);return A(s,R,P,a)},async getv1alpha1ConfigMap(t,n){const s=await e.getv1alpha1ConfigMap(t,n);return A(s,R,P,a)},async listv1alpha1ConfigMap(t,n,s,r,o){const l=await e.listv1alpha1ConfigMap(t,n,s,r,o);return A(l,R,P,a)},async updatev1alpha1ConfigMap(t,n,s){const r=await e.updatev1alpha1ConfigMap(t,n,s);return A(r,R,P,a)}}};class ts extends J{createv1alpha1ConfigMap(e={},t){return We(this.configuration).createv1alpha1ConfigMap(e.configMap,t).then(n=>n(this.axios,this.basePath))}deletev1alpha1ConfigMap(e,t){return We(this.configuration).deletev1alpha1ConfigMap(e.name,t).then(n=>n(this.axios,this.basePath))}getv1alpha1ConfigMap(e,t){return We(this.configuration).getv1alpha1ConfigMap(e.name,t).then(n=>n(this.axios,this.basePath))}listv1alpha1ConfigMap(e={},t){return We(this.configuration).listv1alpha1ConfigMap(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatev1alpha1ConfigMap(e,t){return We(this.configuration).updatev1alpha1ConfigMap(e.name,e.configMap,t).then(n=>n(this.axios,this.basePath))}}const ns=function(a){return{createv1alpha1Menu:async(e,t={})=>{const n="/api/v1alpha1/menus",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletev1alpha1Menu:async(e,t={})=>{U("deletev1alpha1Menu","name",e);const n="/api/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getv1alpha1Menu:async(e,t={})=>{U("getv1alpha1Menu","name",e);const n="/api/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listv1alpha1Menu:async(e,t,n,s,r={})=>{const o="/api/v1alpha1/menus",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatev1alpha1Menu:async(e,t,n={})=>{U("updatev1alpha1Menu","name",e);const s="/api/v1alpha1/menus/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Xe=function(a){const e=ns(a);return{async createv1alpha1Menu(t,n){const s=await e.createv1alpha1Menu(t,n);return A(s,R,P,a)},async deletev1alpha1Menu(t,n){const s=await e.deletev1alpha1Menu(t,n);return A(s,R,P,a)},async getv1alpha1Menu(t,n){const s=await e.getv1alpha1Menu(t,n);return A(s,R,P,a)},async listv1alpha1Menu(t,n,s,r,o){const l=await e.listv1alpha1Menu(t,n,s,r,o);return A(l,R,P,a)},async updatev1alpha1Menu(t,n,s){const r=await e.updatev1alpha1Menu(t,n,s);return A(r,R,P,a)}}};class rs extends J{createv1alpha1Menu(e={},t){return Xe(this.configuration).createv1alpha1Menu(e.menu,t).then(n=>n(this.axios,this.basePath))}deletev1alpha1Menu(e,t){return Xe(this.configuration).deletev1alpha1Menu(e.name,t).then(n=>n(this.axios,this.basePath))}getv1alpha1Menu(e,t){return Xe(this.configuration).getv1alpha1Menu(e.name,t).then(n=>n(this.axios,this.basePath))}listv1alpha1Menu(e={},t){return Xe(this.configuration).listv1alpha1Menu(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatev1alpha1Menu(e,t){return Xe(this.configuration).updatev1alpha1Menu(e.name,e.menu,t).then(n=>n(this.axios,this.basePath))}}const ss=function(a){return{createv1alpha1MenuItem:async(e,t={})=>{const n="/api/v1alpha1/menuitems",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletev1alpha1MenuItem:async(e,t={})=>{U("deletev1alpha1MenuItem","name",e);const n="/api/v1alpha1/menuitems/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getv1alpha1MenuItem:async(e,t={})=>{U("getv1alpha1MenuItem","name",e);const n="/api/v1alpha1/menuitems/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listv1alpha1MenuItem:async(e,t,n,s,r={})=>{const o="/api/v1alpha1/menuitems",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatev1alpha1MenuItem:async(e,t,n={})=>{U("updatev1alpha1MenuItem","name",e);const s="/api/v1alpha1/menuitems/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Ye=function(a){const e=ss(a);return{async createv1alpha1MenuItem(t,n){const s=await e.createv1alpha1MenuItem(t,n);return A(s,R,P,a)},async deletev1alpha1MenuItem(t,n){const s=await e.deletev1alpha1MenuItem(t,n);return A(s,R,P,a)},async getv1alpha1MenuItem(t,n){const s=await e.getv1alpha1MenuItem(t,n);return A(s,R,P,a)},async listv1alpha1MenuItem(t,n,s,r,o){const l=await e.listv1alpha1MenuItem(t,n,s,r,o);return A(l,R,P,a)},async updatev1alpha1MenuItem(t,n,s){const r=await e.updatev1alpha1MenuItem(t,n,s);return A(r,R,P,a)}}};class os extends J{createv1alpha1MenuItem(e={},t){return Ye(this.configuration).createv1alpha1MenuItem(e.menuItem,t).then(n=>n(this.axios,this.basePath))}deletev1alpha1MenuItem(e,t){return Ye(this.configuration).deletev1alpha1MenuItem(e.name,t).then(n=>n(this.axios,this.basePath))}getv1alpha1MenuItem(e,t){return Ye(this.configuration).getv1alpha1MenuItem(e.name,t).then(n=>n(this.axios,this.basePath))}listv1alpha1MenuItem(e={},t){return Ye(this.configuration).listv1alpha1MenuItem(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatev1alpha1MenuItem(e,t){return Ye(this.configuration).updatev1alpha1MenuItem(e.name,e.menuItem,t).then(n=>n(this.axios,this.basePath))}}const ls=function(a){return{createv1alpha1Setting:async(e,t={})=>{const n="/api/v1alpha1/settings",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletev1alpha1Setting:async(e,t={})=>{U("deletev1alpha1Setting","name",e);const n="/api/v1alpha1/settings/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getv1alpha1Setting:async(e,t={})=>{U("getv1alpha1Setting","name",e);const n="/api/v1alpha1/settings/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listv1alpha1Setting:async(e,t,n,s,r={})=>{const o="/api/v1alpha1/settings",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatev1alpha1Setting:async(e,t,n={})=>{U("updatev1alpha1Setting","name",e);const s="/api/v1alpha1/settings/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},Ze=function(a){const e=ls(a);return{async createv1alpha1Setting(t,n){const s=await e.createv1alpha1Setting(t,n);return A(s,R,P,a)},async deletev1alpha1Setting(t,n){const s=await e.deletev1alpha1Setting(t,n);return A(s,R,P,a)},async getv1alpha1Setting(t,n){const s=await e.getv1alpha1Setting(t,n);return A(s,R,P,a)},async listv1alpha1Setting(t,n,s,r,o){const l=await e.listv1alpha1Setting(t,n,s,r,o);return A(l,R,P,a)},async updatev1alpha1Setting(t,n,s){const r=await e.updatev1alpha1Setting(t,n,s);return A(r,R,P,a)}}};class is extends J{createv1alpha1Setting(e={},t){return Ze(this.configuration).createv1alpha1Setting(e.setting,t).then(n=>n(this.axios,this.basePath))}deletev1alpha1Setting(e,t){return Ze(this.configuration).deletev1alpha1Setting(e.name,t).then(n=>n(this.axios,this.basePath))}getv1alpha1Setting(e,t){return Ze(this.configuration).getv1alpha1Setting(e.name,t).then(n=>n(this.axios,this.basePath))}listv1alpha1Setting(e={},t){return Ze(this.configuration).listv1alpha1Setting(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatev1alpha1Setting(e,t){return Ze(this.configuration).updatev1alpha1Setting(e.name,e.setting,t).then(n=>n(this.axios,this.basePath))}}const cs=function(a){return{createv1alpha1User:async(e,t={})=>{const n="/api/v1alpha1/users",s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"POST"},r),t),l={},c={};O(o,a),await b(l,a),l["Content-Type"]="application/json",w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),o.data=D(e,o,a),{url:C(s),options:o}},deletev1alpha1User:async(e,t={})=>{U("deletev1alpha1User","name",e);const n="/api/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"DELETE"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},getv1alpha1User:async(e,t={})=>{U("getv1alpha1User","name",e);const n="/api/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(e))),s=new URL(n,g);let r;a&&(r=a.baseOptions);const o=i(i({method:"GET"},r),t),l={},c={};O(o,a),await b(l,a),w(s,c);let h=r&&r.headers?r.headers:{};return o.headers=i(i(i({},l),h),t.headers),{url:C(s),options:o}},listv1alpha1User:async(e,t,n,s,r={})=>{const o="/api/v1alpha1/users",l=new URL(o,g);let c;a&&(c=a.baseOptions);const h=i(i({method:"GET"},c),r),d={},V={};O(h,a),await b(d,a),e!==void 0&&(V.page=e),t!==void 0&&(V.size=t),n&&(V.labelSelector=n),s&&(V.fieldSelector=s),w(l,V);let S=c&&c.headers?c.headers:{};return h.headers=i(i(i({},d),S),r.headers),{url:C(l),options:h}},updatev1alpha1User:async(e,t,n={})=>{U("updatev1alpha1User","name",e);const s="/api/v1alpha1/users/{name}".replace("{name}",encodeURIComponent(String(e))),r=new URL(s,g);let o;a&&(o=a.baseOptions);const l=i(i({method:"PUT"},o),n),c={},h={};O(l,a),await b(c,a),c["Content-Type"]="application/json",w(r,h);let d=o&&o.headers?o.headers:{};return l.headers=i(i(i({},c),d),n.headers),l.data=D(t,l,a),{url:C(r),options:l}}}},ea=function(a){const e=cs(a);return{async createv1alpha1User(t,n){const s=await e.createv1alpha1User(t,n);return A(s,R,P,a)},async deletev1alpha1User(t,n){const s=await e.deletev1alpha1User(t,n);return A(s,R,P,a)},async getv1alpha1User(t,n){const s=await e.getv1alpha1User(t,n);return A(s,R,P,a)},async listv1alpha1User(t,n,s,r,o){const l=await e.listv1alpha1User(t,n,s,r,o);return A(l,R,P,a)},async updatev1alpha1User(t,n,s){const r=await e.updatev1alpha1User(t,n,s);return A(r,R,P,a)}}};class hs extends J{createv1alpha1User(e={},t){return ea(this.configuration).createv1alpha1User(e.user,t).then(n=>n(this.axios,this.basePath))}deletev1alpha1User(e,t){return ea(this.configuration).deletev1alpha1User(e.name,t).then(n=>n(this.axios,this.basePath))}getv1alpha1User(e,t){return ea(this.configuration).getv1alpha1User(e.name,t).then(n=>n(this.axios,this.basePath))}listv1alpha1User(e={},t){return ea(this.configuration).listv1alpha1User(e.page,e.size,e.labelSelector,e.fieldSelector,t).then(n=>n(this.axios,this.basePath))}updatev1alpha1User(e,t){return ea(this.configuration).updatev1alpha1User(e.name,e.user,t).then(n=>n(this.axios,this.basePath))}}const z="",vt=R.create({baseURL:z,withCredentials:!0});vt.interceptors.response.use(a=>a,async a=>(a.response.status===401&&console.log(a),Promise.reject(a)));const ce=ps(vt);function ps(a){return{extension:{configMap:new ts(void 0,z,a),setting:new is(void 0,z,a),user:new hs(void 0,z,a),menu:new rs(void 0,z,a),menuItem:new os(void 0,z,a),post:new jr(void 0,z,a),singlePage:new $r(void 0,z,a),category:new _r(void 0,z,a),tag:new Gr(void 0,z,a),comment:new Lr(void 0,z,a),reply:new Mr(void 0,z,a),storage:{group:new Wr(void 0,z,a),attachment:new Jr(void 0,z,a),policy:new Yr(void 0,z,a),policyTemplate:new es(void 0,z,a)},counter:new qr(void 0,z,a)},user:new vr(void 0,z,a),post:new br(void 0,z,a),singlePage:new Sr(void 0,z,a),content:new gr(void 0,z,a),comment:new Rr(void 0,z,a),reply:new Ar(void 0,z,a),stats:new Ur(void 0,z,a)}}var Da={};(function(a){var e=Ue&&Ue.__assign||function(){return(e=Object.assign||function(o){for(var l,c=1,h=arguments.length;c-1}function Ao(p,u){var f=this.__data__,H=Ra(f,p);return H<0?f.push([p,u]):f[H][1]=u,this}me.prototype.clear=Oo,me.prototype.delete=bo,me.prototype.get=wo,me.prototype.has=Co,me.prototype.set=Ao;function Ve(p){var u=-1,f=p?p.length:0;for(this.clear();++uk))return!1;var Z=v.get(p);if(Z&&v.get(u))return Z==u;var ne=-1,re=!0,ee=L&r?new ya:void 0;for(v.set(p,u),v.set(u,p);++ne-1&&p%1==0&&p-1&&p%1==0&&p<=c}function ba(p){var u=typeof p;return!!p&&(u=="object"||u=="function")}function wa(p){return!!p&&typeof p=="object"}function at(p){return typeof p=="symbol"||wa(p)&&Ee.call(p)==X}var ml=jt?Zs(jt):Jo;function Vl(p){return p==null?"":el(p)}function fl(p,u,f){var H=p==null?void 0:Gt(p,u);return H===void 0?f:H}function yl(p,u){return p!=null&&ll(p,u,Go)}function Ca(p){return Za(p)?jo(p):Wo(p)}function Rl(p){return p}function Pl(p){return ga(p)?Xs(Oa(p)):Zo(p)}a.exports=ul})($a,$a.exports);var us=$a.exports;function ds(a,e,t,n,s,r,o,l,c,h){function d(){return a.value.map(x=>ce.extension.tag.createcontentHaloRunV1alpha1Tag({tag:{metadata:{name:x.id+""},kind:"Tag",apiVersion:"content.halo.run/v1alpha1",spec:{displayName:x.name,slug:x.slug,color:x.color,cover:x.thumbnail}}}))}function V(){return e.value.reduce((x,I,W,te)=>{const F=[];return te.forEach(X=>{(F.includes(X.parentId+"")||X.parentId===I.id)&&F.push(X.id+"")}),x.concat(na(i({},I),{children:F}))},[]).map(x=>ce.extension.category.createcontentHaloRunV1alpha1Category({category:{metadata:{name:x.id+""},kind:"Category",apiVersion:"content.halo.run/v1alpha1",spec:{displayName:x.name,slug:x.slug,description:x.description,cover:x.thumbnail,priority:x.priority,children:x.children||[]}}}))}function S(){return[...t.value.map(x=>{const I=n.value.find(F=>F.id===x.id),W=s.value.filter(F=>F.postId===x.id).map(F=>F.tagId+""),te=r.value.filter(F=>F.postId===x.id).map(F=>F.categoryId+"");return ce.post.draftPost({postRequest:{post:{spec:{title:x.title,slug:x.slug,template:"",cover:x.thumbnail,deleted:x.status==="RECYCLE",publish:x.status==="PUBLISHED",publishTime:new Date(x.createTime).toISOString(),pinned:x.topPriority>0,allowComment:!x.disallowComment,visible:"PUBLIC",version:1,priority:0,excerpt:{autoGenerate:!1,raw:x.summary},categories:te,tags:W,htmlMetas:[]},apiVersion:"content.halo.run/v1alpha1",kind:"Post",metadata:{name:x.id+""}},content:{raw:I==null?void 0:I.content,content:I==null?void 0:I.content,rawType:"HTML"}}})}),...t.value.map(x=>ce.extension.counter.createmetricsHaloRunV1alpha1Counter({counter:{visit:x.visits,upvote:x.likes,downvote:0,totalComment:0,approvedComment:0,apiVersion:"metrics.halo.run/v1alpha1",kind:"Counter",metadata:{name:`posts.content.halo.run/${x.id}`}}}))]}function B(){return[...l.value.map(x=>{const I=n.value.find(W=>W.id===x.id);return ce.singlePage.draftSinglePage({singlePageRequest:{page:{spec:{title:x.title,slug:x.slug,template:"",cover:x.thumbnail,deleted:x.status==="RECYCLE",publish:x.status==="PUBLISHED",publishTime:new Date(x.createTime).toISOString(),pinned:x.topPriority>0,allowComment:!x.disallowComment,visible:"PUBLIC",version:1,priority:0,excerpt:{autoGenerate:!1,raw:x.summary},htmlMetas:[]},apiVersion:"content.halo.run/v1alpha1",kind:"SinglePage",metadata:{name:x.id+""}},content:{raw:I==null?void 0:I.content,content:I==null?void 0:I.content,rawType:"HTML"}}})}),...l.value.map(x=>ce.extension.counter.createmetricsHaloRunV1alpha1Counter({counter:{visit:x.visits,upvote:x.likes,downvote:0,totalComment:0,approvedComment:0,apiVersion:"metrics.halo.run/v1alpha1",kind:"Counter",metadata:{name:`singlepages.content.halo.run/${x.id}`}}}))]}function T(x,I){const W=[],te=[];F(x,void 0);function F(X,$){X.forEach(_=>{var se;_.parentId===0?($=_.id,W.push(ce.extension.comment.createcontentHaloRunV1alpha1Comment({comment:{kind:"Comment",apiVersion:"content.halo.run/v1alpha1",spec:{raw:_.content,content:_.content,owner:{kind:"Email",name:_.email,displayName:_.author,annotations:{avatar:`https://www.gravatar.com/avatar/${_.gravatarMd5}?s=64&d=identicon&r=PG`,website:_.authorUrl}},userAgent:_.userAgent,ipAddress:_.ipAddress,priority:0,top:!1,allowNotification:_.allowNotification,approved:_.status==="PUBLISHED",approvedTime:new Date(_.createTime).toISOString(),hidden:!1,subjectRef:na(i({},I),{name:_.postId+""}),lastReadTime:void 0},metadata:{name:_.id+""}}}))):te.push(ce.extension.reply.createcontentHaloRunV1alpha1Reply({reply:{kind:"Reply",apiVersion:"content.halo.run/v1alpha1",metadata:{name:_.id+""},spec:{raw:_.content,content:_.content,owner:{kind:"Email",name:_.email,displayName:_.author,annotations:{avatar:`https://www.gravatar.com/avatar/${_.gravatarMd5}?s=64&d=identicon&r=PG`,website:_.authorUrl}},userAgent:_.userAgent,ipAddress:_.ipAddress,priority:0,top:!1,allowNotification:_.allowNotification,approved:_.status==="PUBLISHED",approvedTime:new Date(_.createTime).toISOString(),hidden:!1,commentName:$+"",quoteReply:_.parentId+""}}})),(se=_.children)!=null&&se.length&&F(_.children,$)})}return[...W,...te]}function E(){return T(Da.arrayToTree(o.value,{dataField:null,rootParentIds:{0:!0}}),{kind:"Post",group:"content.halo.run",version:"v1alpha1"})}function N(){return T(Da.arrayToTree(c.value,{dataField:null,rootParentIds:{0:!0}}),{kind:"SinglePage",group:"content.halo.run",version:"v1alpha1"})}function M(){const x=us(h.value,"team"),I=[];return Object.keys(x).forEach(F=>{I.push(ce.extension.menu.createv1alpha1Menu({menu:{kind:"Menu",apiVersion:"v1alpha1",metadata:{name:F||"default"},spec:{displayName:F||"\u672A\u5206\u7EC4",menuItems:x[F].map(X=>X.id+"")}}}))}),[...h.value.reduce((F,X,$,_)=>{const se=[];return _.forEach(Ae=>{(se.includes(Ae.parentId+"")||Ae.parentId===X.id)&&se.push(Ae.id+"")}),F.concat(na(i({},X),{children:se}))},[]).map(F=>({kind:"MenuItem",apiVersion:"v1alpha1",metadata:{name:F.id+""},spec:{displayName:F.name,href:F.url,priority:F.priority,children:F.children||[]}})).map(F=>ce.extension.menuItem.createv1alpha1MenuItem({menuItem:F})),...I]}return{createTagRequests:d,createCategoryRequests:V,createPostRequests:S,createSinglePageRequests:B,createPostCommentRequests:E,createSinglePageCommentRequests:N,createMenuRequests:M}}const ms={class:"p-4"},Vs={key:1,class:"migrate-flex migrate-flex-1 migrate-flex-col"},fs={class:"migrate-grid migrate-grid-cols-1 migrate-gap-3 sm:migrate-grid-cols-4"},ys={class:"migrate-h-96"},Rs={class:"box-border h-full w-full divide-y divide-gray-100",role:"list"},Ps={class:"migrate-h-96"},gs={class:"box-border h-full w-full divide-y divide-gray-100",role:"list"},Os={class:"migrate-h-96"},bs={class:"box-border h-full w-full divide-y divide-gray-100",role:"list"},ws={class:"migrate-h-96"},Cs={class:"box-border h-full w-full divide-y divide-gray-100",role:"list"},As={class:"migrate-h-96"},Hs={class:"box-border h-full w-full divide-y divide-gray-100",role:"list"},Ss={class:"migrate-h-96"},xs={class:"box-border h-full w-full divide-y divide-gray-100",role:"list"},Ts={class:"migrate-h-96"},Us={class:"box-border h-full w-full divide-y divide-gray-100",role:"list"},Es={class:"migrate-mt-8 migrate-self-center"},vs=m.defineComponent({__name:"MigrateView",setup(a){const e=oe.useFileSystemAccess({dataType:"Text",types:[{description:"json",accept:{"text/yaml":[".json"]}}],excludeAcceptAllOption:!0}),t=m.ref([]),n=m.ref([]),s=m.ref([]),r=m.ref([]),o=m.ref([]),l=m.ref([]),c=m.ref([]),h=m.ref([]),d=m.ref([]),V=m.ref([]),S=m.ref(!1),{createTagRequests:B,createCategoryRequests:T,createPostRequests:E,createSinglePageRequests:N,createPostCommentRequests:M,createSinglePageCommentRequests:x,createMenuRequests:I}=ds(t,n,s,r,o,l,c,h,d,V);async function W(){if(!e.isSupported){j.Toast.warning("\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u9009\u62E9\u6587\u4EF6\uFF0C\u63A8\u8350\u4F7F\u7528 Google Chrome");return}const{protocol:F,hostname:X}=location;if(!["localhost","127.0.0.1"].includes(X)&&F==="http:"){j.Toast.warning("\u5F53\u524D\u65E0\u6CD5\u9009\u62E9\u6587\u4EF6\uFF0C\u7AD9\u70B9\u5FC5\u987B\u4F7F\u7528 HTTPS \u534F\u8BAE");return}if(await e.open(),!e.data.value){j.Toast.warning("\u6240\u9009\u6587\u4EF6\u4E0D\u7B26\u5408\u8981\u6C42");return}const $=JSON.parse(e.data.value),{version:_}=$;_.startsWith("1.5")||_.startsWith("1.6")||j.Toast.warning("\u6682\u4E0D\u652F\u6301\u8BE5\u7248\u672C\u7684\u8FC1\u79FB\uFF0C\u4EC5\u652F\u6301 Halo 1.5 / 1.6 \u7248\u672C"),t.value=$.tags,n.value=$.categories,s.value=$.posts,r.value=$.contents,o.value=$.post_tags,l.value=$.post_categories,c.value=$.post_comments,h.value=$.sheets,d.value=$.sheet_comments,V.value=$.menus}const te=async()=>{window.onbeforeunload=function(Y){const ma="\u6570\u636E\u6B63\u5728\u5BFC\u5165\u4E2D\uFF0C\u8BF7\u52FF\u5173\u95ED\u6216\u5237\u65B0\u6B64\u9875\u9762\u3002";return Y=Y||window.event,Y&&(Y.returnValue=ma),ma},S.value=!0;const F=B();try{await Promise.all(F)}catch(Y){console.error("Failed to create tags",Y)}const X=T();try{await Promise.all(X)}catch(Y){console.error("Failed to create categories",Y)}const $=E();try{await Promise.all($)}catch(Y){console.error("Failed to create posts",Y)}const _=N();try{await Promise.all(_)}catch(Y){console.error("Failed to create single pages",Y)}const se=M();try{await Promise.all(se)}catch(Y){console.error("Failed to create post comments",Y)}const Ae=x();try{await Promise.all(Ae)}catch(Y){console.error("Failed to create single page comments",Y)}const Qa=I();try{await Promise.all(Qa)}catch(Y){console.error("Failed to create menus",Y)}S.value=!1,j.Dialog.success({title:"\u5BFC\u5165\u5B8C\u6210"}),window.onbeforeunload=null};return tn.onBeforeRouteLeave((F,X,$)=>{S.value&&(j.Dialog.warning({title:"\u63D0\u793A",description:"\u6570\u636E\u6B63\u5728\u5BFC\u5165\u4E2D\uFF0C\u8BF7\u52FF\u5173\u95ED\u6216\u5237\u65B0\u6B64\u9875\u9762\u3002"}),$(!1)),$()}),(F,X)=>(m.openBlock(),m.createElementBlock(m.Fragment,null,[m.createVNode(m.unref(j.VPageHeader),{title:"\u8FC1\u79FB"},{icon:m.withCtx(()=>[m.createVNode(m.unref(tt),{class:"mr-2 self-center"})]),actions:m.withCtx(()=>[m.createVNode(m.unref(j.VSpace),null,{default:m.withCtx(()=>[m.createVNode(m.unref(j.VButton),{onClick:W,type:"secondary"},{icon:m.withCtx(()=>[m.createVNode(m.unref(hn),{class:"h-full w-full"})]),default:m.withCtx(()=>[m.createTextVNode(" \u9009\u62E9\u6587\u4EF6 ")]),_:1})]),_:1})]),_:1}),m.createElementVNode("div",ms,[m.unref(e).data.value?(m.openBlock(),m.createElementBlock("div",Vs,[m.createElementVNode("div",fs,[m.createElementVNode("div",ys,[m.createVNode(m.unref(j.VCard),{"body-class":["h-full","!p-0","overflow-y-auto"],class:"h-full",title:`\u6807\u7B7E\uFF08${t.value.length}\uFF09`},{default:m.withCtx(()=>[m.createElementVNode("ul",Rs,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(t.value,($,_)=>(m.openBlock(),m.createElementBlock("li",{key:_},[m.createVNode(m.unref(j.VEntity),null,{start:m.withCtx(()=>[m.createVNode(m.unref(j.VEntityField),{title:$.name,description:$.slug},null,8,["title","description"])]),_:2},1024)]))),128))])]),_:1},8,["title"])]),m.createElementVNode("div",Ps,[m.createVNode(m.unref(j.VCard),{"body-class":["h-full","!p-0","overflow-y-auto"],class:"h-full",title:`\u5206\u7C7B\uFF08${n.value.length}\uFF09`},{default:m.withCtx(()=>[m.createElementVNode("ul",gs,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(n.value,($,_)=>(m.openBlock(),m.createElementBlock("li",{key:_},[m.createVNode(m.unref(j.VEntity),null,{start:m.withCtx(()=>[m.createVNode(m.unref(j.VEntityField),{title:$.name,description:$.slug},null,8,["title","description"])]),_:2},1024)]))),128))])]),_:1},8,["title"])]),m.createElementVNode("div",Os,[m.createVNode(m.unref(j.VCard),{"body-class":["h-full","!p-0","overflow-y-auto"],class:"h-full",title:`\u6587\u7AE0\uFF08${s.value.length}\uFF09`},{default:m.withCtx(()=>[m.createElementVNode("ul",bs,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(s.value,($,_)=>(m.openBlock(),m.createElementBlock("li",{key:_},[m.createVNode(m.unref(j.VEntity),null,{start:m.withCtx(()=>[m.createVNode(m.unref(j.VEntityField),{title:$.title,description:$.slug},null,8,["title","description"])]),_:2},1024)]))),128))])]),_:1},8,["title"])]),m.createElementVNode("div",ws,[m.createVNode(m.unref(j.VCard),{"body-class":["h-full","!p-0","overflow-y-auto"],class:"h-full",title:`\u81EA\u5B9A\u4E49\u9875\u9762\uFF08${h.value.length}\uFF09`},{default:m.withCtx(()=>[m.createElementVNode("ul",Cs,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(h.value,($,_)=>(m.openBlock(),m.createElementBlock("li",{key:_},[m.createVNode(m.unref(j.VEntity),null,{start:m.withCtx(()=>[m.createVNode(m.unref(j.VEntityField),{title:$.title,description:$.slug},null,8,["title","description"])]),_:2},1024)]))),128))])]),_:1},8,["title"])]),m.createElementVNode("div",As,[m.createVNode(m.unref(j.VCard),{"body-class":["h-full","!p-0","overflow-y-auto"],class:"h-full",title:`\u6587\u7AE0\u8BC4\u8BBA\uFF08${c.value.length}\uFF09`},{default:m.withCtx(()=>[m.createElementVNode("ul",Hs,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(c.value,($,_)=>(m.openBlock(),m.createElementBlock("li",{key:_},[m.createVNode(m.unref(j.VEntity),null,{start:m.withCtx(()=>[m.createVNode(m.unref(j.VEntityField),{title:$.author},null,8,["title"])]),_:2},1024)]))),128))])]),_:1},8,["title"])]),m.createElementVNode("div",Ss,[m.createVNode(m.unref(j.VCard),{"body-class":["h-full","!p-0","overflow-y-auto"],class:"h-full",title:`\u81EA\u5B9A\u4E49\u9875\u9762\u8BC4\u8BBA\uFF08${d.value.length}\uFF09`},{default:m.withCtx(()=>[m.createElementVNode("ul",xs,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(d.value,($,_)=>(m.openBlock(),m.createElementBlock("li",{key:_},[m.createVNode(m.unref(j.VEntity),null,{start:m.withCtx(()=>[m.createVNode(m.unref(j.VEntityField),{title:$.author},null,8,["title"])]),_:2},1024)]))),128))])]),_:1},8,["title"])]),m.createElementVNode("div",Ts,[m.createVNode(m.unref(j.VCard),{"body-class":["h-full","!p-0","overflow-y-auto"],class:"h-full",title:`\u83DC\u5355\uFF08${V.value.length}\uFF09`},{default:m.withCtx(()=>[m.createElementVNode("ul",Us,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(V.value,($,_)=>(m.openBlock(),m.createElementBlock("li",{key:_},[m.createVNode(m.unref(j.VEntity),null,{start:m.withCtx(()=>[m.createVNode(m.unref(j.VEntityField),{title:$.name,description:$.team},null,8,["title","description"])]),_:2},1024)]))),128))])]),_:1},8,["title"])])]),m.createElementVNode("div",Es,[m.createVNode(m.unref(j.VButton),{loading:S.value,type:"secondary",onClick:te},{default:m.withCtx(()=>[m.createTextVNode(" \u6267\u884C\u5BFC\u5165 ")]),_:1},8,["loading"])])])):(m.openBlock(),m.createBlock(m.unref(j.VEmpty),{key:0,message:"\u8BF7\u9009\u62E9 Halo 1.5 / 1.6 \u4E2D\u5BFC\u51FA\u7684 JSON \u6570\u636E\u6587\u4EF6",title:"\u5F53\u524D\u6CA1\u6709\u9009\u62E9\u6570\u636E\u6587\u4EF6"},{actions:m.withCtx(()=>[m.createVNode(m.unref(j.VSpace),null,{default:m.withCtx(()=>[m.createVNode(m.unref(j.VButton),{onClick:W},{default:m.withCtx(()=>[m.createTextVNode("\u9009\u62E9\u6587\u4EF6")]),_:1})]),_:1})]),_:1}))])],64))}});var _l="",Fs={name:"PluginMigrate",components:[],routes:[{parentName:"Root",route:{path:"/migrate",children:[{path:"",name:"Migrate",component:vs,meta:{title:"\u8FC1\u79FB",searchable:!0,menu:{name:"\u8FC1\u79FB",group:"tool",icon:m.markRaw(tt),priority:0}}}]}}],extensionPoints:{}};return Fs}(Vue,HaloComponents,VueUse,VueRouter);